[MacPorts] #43262: gmp @6.0.0: error: could not find a working compiler, see config.log for details

MacPorts noreply at macports.org
Sun Apr 6 19:06:01 PDT 2014


#43262: gmp @6.0.0: error: could not find a working compiler, see config.log for
details
--------------------------+------------------------
 Reporter:  ryandesign@…  |      Owner:  mcalhoun@…
     Type:  defect        |     Status:  new
 Priority:  Normal        |  Milestone:
Component:  ports         |    Version:  2.2.99
 Keywords:                |       Port:  gmp
--------------------------+------------------------
 Trying to upgrade gmp universal fails at configuring the i386 part:

 {{{
 :info:configure --->  Configuring gmp for architecture i386
 :debug:configure Environment:
 ABI='32'
 CC='ccache /usr/bin/clang'
 CC_PRINT_OPTIONS='YES'
 CC_PRINT_OPTIONS_FILE='/opt/local/var/macports/build/_Users_rschmidt_macports_dports_devel_gmp/gmp/work/.CC_PRINT_OPTIONS'
 CFLAGS='-isysroot/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.9.sdk'
 CPATH='/opt/local/include'
 CPPFLAGS='-I/opt/local/include
 -isysroot/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.9.sdk'
 CXX='ccache /usr/bin/clang++ -stdlib=libc++'
 CXXFLAGS='-isysroot/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.9.sdk'
 F90FLAGS='-Os'
 FCFLAGS='-Os'
 FFLAGS='-Os'
 INSTALL='/usr/bin/install -c'
 LDFLAGS='-L/opt/local/lib -Wl,-headerpad_max_install_names
 -Wl,-syslibroot,/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.9.sdk'
 LIBRARY_PATH='/opt/local/lib'
 MACOSX_DEPLOYMENT_TARGET='10.9'
 NM='/usr/bin/nm'
 OBJC='ccache /usr/bin/clang'
 OBJCFLAGS='-Os
 -isysroot/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.9.sdk'
 OBJCXX='ccache /usr/bin/clang++'
 OBJCXXFLAGS='-Os
 -isysroot/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.9.sdk'
 :debug:configure Assembled command: 'cd
 "/opt/local/var/macports/build/_Users_rschmidt_macports_dports_devel_gmp/gmp/work/gmp-6.0.0-i386"
 && ./configure --prefix=/opt/local --enable-cxx'
 :debug:configure Executing command line:  cd
 "/opt/local/var/macports/build/_Users_rschmidt_macports_dports_devel_gmp/gmp/work/gmp-6.0.0-i386"
 && ./configure --prefix=/opt/local --enable-cxx
 :info:configure checking build system type... coreisbr-apple-darwin13.1.0
 :info:configure checking host system type... coreisbr-apple-darwin13.1.0
 :info:configure checking for a BSD-compatible install... /usr/bin/install
 -c
 :info:configure checking whether build environment is sane... yes
 :info:configure checking for a thread-safe mkdir -p...
 /opt/local/bin/gmkdir -p
 :info:configure checking for gawk... gawk
 :info:configure checking whether make sets $(MAKE)... yes
 :info:configure checking whether to enable maintainer-specific portions of
 Makefiles... no
 :info:configure checking ABI=32
 :info:configure checking whether ccache /usr/bin/clang is gcc... yes
 :info:configure checking compiler ccache /usr/bin/clang
 -isysroot/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.9.sdk
 -I/opt/local/include
 -isysroot/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.9.sdk...
 yes
 :info:configure checking compiler ccache /usr/bin/clang
 -isysroot/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.9.sdk
 has sizeof(long)==4... no
 :info:configure configure: error: could not find a working compiler, see
 config.log for details
 :info:configure Command failed:  cd
 "/opt/local/var/macports/build/_Users_rschmidt_macports_dports_devel_gmp/gmp/work/gmp-6.0.0-i386"
 && ./configure --prefix=/opt/local --enable-cxx
 :info:configure Exit code: 1
 }}}

 config.log says:

 {{{
 configure:6840: checking compiler ccache /usr/bin/clang
 -isysroot/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.9.sdk
 has sizeof(long)==4
 configure:6853: ccache /usr/bin/clang
 -isysroot/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.9.sdk
 -c conftest.c >&5
 conftest.c:4:26: error: 'test_array' declared as an array with a negative
 size
   static int test_array [1 - 2 * (long) (sizeof (long) != 4)];
                          ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
 1 error generated.
 configure:6856: $? = 1
 configure:6861: result: no
 configure:6903: error: could not find a working compiler, see config.log
 for details
 }}}

-- 
Ticket URL: <https://trac.macports.org/ticket/43262>
MacPorts <http://www.macports.org/>
Ports system for OS X


More information about the macports-tickets mailing list