Skip to content

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

@dbigge

Description

@dbigge

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions