Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

MacOs Mojave build problem - cannot find a C99-compatible compiler #73

Open
dbigge opened this issue Oct 25, 2018 · 2 comments
Open

MacOs Mojave build problem - cannot find a C99-compatible compiler #73

dbigge opened this issue Oct 25, 2018 · 2 comments

Comments

@dbigge
Copy link

dbigge commented Oct 25, 2018

Describe the issue

Installation Build issue-

sudo ./anonutil/build-mac.sh -j$(sysctl -n hw.physicalcpu) results in an error

To reproduce

Recently upgraded to MacOS 10.14 and Have re-installed Xcode 10.0. To reproduce:

  1. Follow Mac install instructions
  2. Failure occurs after build

Expected behaviour

Expect build to complete

Actual behaviour + errors

results in error as below:

sudo ./anonutil/build-mac.sh -j$(sysctl -n hw.physicalcpu)
echo Configuring native_ccache...
Configuring native_ccache...
rm -rf /private/etc/anon/depends/x86_64-apple-darwin18.0.0; mkdir -p /private/etc/anon/depends/x86_64-apple-darwin18.0.0/lib; cd /private/etc/anon/depends/x86_64-apple-darwin18.0.0;
mkdir -p /private/etc/anon/depends/work/build/x86_64-apple-darwin18.0.0/native_ccache/3.3.1-79e6a38c70b/.
cd /private/etc/anon/depends/work/build/x86_64-apple-darwin18.0.0/native_ccache/3.3.1-79e6a38c70b/.; PKG_CONFIG_LIBDIR=/private/etc/anon/depends/x86_64-apple-darwin18.0.0/native/lib/pkgconfig PKG_CONFIG_PATH=/private/etc/anon/depends/x86_64-apple-darwin18.0.0/native/share/pkgconfig PATH=/private/etc/anon/depends/x86_64-apple-darwin18.0.0/native/bin:/Users/dusername/anaconda/bin:/Library/Frameworks/Python.framework/Versions/3.6/bin:/usr/local/bin:/usr/bin:/bin:/usr/sbin:/sbin:/Applications/Xcode.app/Contents/Developer/usr/bin:/Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain:/usr/local/go/bin:/opt/X11/bin:/Applications/Wireshark.app/Contents/MacOS ./configure --host=x86_64-apple-darwin18.0.0 --disable-dependency-tracking --prefix=/private/etc/anon/depends/x86_64-apple-darwin18.0.0/native CC="gcc-5" CXX="g++-5" NM="nm" RANLIB="ranlib" AR="ar" CPPFLAGS="-I/private/etc/anon/depends/x86_64-apple-darwin18.0.0/native/include " LDFLAGS="-L/private/etc/anon/depends/x86_64-apple-darwin18.0.0/native/lib "
configure: WARNING: unrecognized options: --disable-dependency-tracking
configure: Configuring ccache
checking build system type... x86_64-apple-darwin18.0.0
checking host system type... x86_64-apple-darwin18.0.0
checking for x86_64-apple-darwin18.0.0-gcc... gcc-5
checking whether the C compiler works... yes
checking for C compiler default output file name... a.out
checking for suffix of executables...
checking whether we are cross compiling... yes
checking for suffix of object files... o
checking whether we are using the GNU C compiler... yes
checking whether gcc-5 accepts -g... yes
checking for gcc-5 option to accept ISO C89... unsupported
checking for gcc-5 option to accept ISO C99... unsupported
configure: error: cannot find a C99-compatible compiler
make: *** [/private/etc/anon/depends/work/build/x86_64-apple-darwin18.0.0/native_ccache/3.3.1-79e6a38c70b/./.stamp_configured] Error 1

The version of ANON you were using:

Run anond --version to find out

Machine specs:

  • OS name + version: MacOS 10.14 Mojave
  • Compiler version (gcc -version): gcc5
@carlosmmelo
Copy link

so no comments here? Im having the same problem.

@carlosmmelo
Copy link

@dbigge since no-one is supporting this project, I discovered in another thread the resolution for this:
https://stackoverflow.com/questions/52509602/cant-compile-c-program-on-a-mac-after-upgrade-to-mojave/52530212#comment91963866_52509602

basically navigate using the Finder to: /Library/Developer/CommandLineTools/Packages/
and run macOS_SDK_headers_for_macOS_10.14.pkg to install the headers needed for mac correctly.

Then rerun the script for configure and make and it will work.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants