#22191: gnat-gcc 4.4.1 configure: error: C compiler cannot create executables --------------------------------------+------------------------------------- Reporter: rperrot@… | Owner: krischik@… Type: defect | Status: assigned Priority: Low | Milestone: Component: ports | Version: 1.8.0 Keywords: | Port: gnat-gcc --------------------------------------+------------------------------------- Comment(by rperrot@…): Here is the full error message : {{{ Error: Target org.macports.build returned: shell command " cd "/opt/local/var/macports/build/_opt_local_var_macports_sources_svn.macports .org_trunk_dports_lang_gnat-gcc/work/build" && /usr/bin/make -j1 bootstrap " returned error 2 Command output: echo stage3 > stage_final rm -f stage_current make[4]: Nothing to be done for `all'. make[3]: Nothing to be done for `all'. make[4]: Nothing to be done for `all'. make[3]: Nothing to be done for `all'. true "AR_FLAGS=rc" "CC_FOR_BUILD=/opt/local/bin/gcc-gnat-4.4" "CFLAGS=-g -fkeep-inline-functions" "CXXFLAGS=-g -fkeep-inline-functions" "CFLAGS_FOR_BUILD=-O2" "CFLAGS_FOR_TARGET=-g -O2" "INSTALL=/usr/bin/install -c" "INSTALL_DATA=/usr/bin/install -c -m 644" "INSTALL_PROGRAM=/usr/bin/install -c" "INSTALL_SCRIPT=/usr/bin/install -c" "LDFLAGS=-L/opt/local/lib" "LIBCFLAGS=-g -O2" "LIBCFLAGS_FOR_TARGET=-g -O2" "MAKE=/usr/bin/make" "MAKEINFO=makeinfo --split-size=5000000 --split- size=5000000 --split-size=5000000 " "PICFLAG=" "PICFLAG_FOR_TARGET=" "SHELL=/bin/sh" "EXPECT=expect" "RUNTEST=runtest" "RUNTESTFLAGS=" "exec_prefix=/opt/local" "infodir=/opt/local/share/info" "libdir=/opt/local/lib/gnat-gcc" "prefix=/opt/local" "tooldir=/opt/local/i386-apple-darwin9" "AR=ar" "AS=as" "CC=/opt/local/bin /gcc-gnat-4.4" "CXX=/opt/local/bin/g++-gnat-4.4" "LD=ld" "LIBCFLAGS=-g -O2" "NM=nm" "PICFLAG=" "RANLIB=ranlib" "DESTDIR=" DO=all multi-do # /usr/bin/make make[3]: Nothing to be done for `all'. make[3]: Nothing to be done for `all'. Makefile:3355: warning: overriding commands for target `gt-darwin.h' ../../gcc-4.4.2/gcc/config/t-darwin:17: warning: ignoring old commands for target `gt-darwin.h' mkdir -p ada/bldtools/nmake_b rm -f ada/bldtools/nmake_b/sinfo.ads ada/bldtools/nmake_b/nmake.adt ada/bldtools/nmake_b/xnmake.adb ada/bldtools/nmake_b/xutil.ads ada/bldtools/nmake_b/xutil.adb cp -p ../../gcc-4.4.2/gcc/ada/sinfo.ads ../../gcc-4.4.2/gcc/ada/nmake.adt ../../gcc-4.4.2/gcc/ada/xnmake.adb ../../gcc-4.4.2/gcc/ada/xutil.ads ../../gcc-4.4.2/gcc/ada/xutil.adb ada/bldtools/nmake_b (cd ada/bldtools/nmake_b && /opt/local/bin/gnatmake -q xnmake && ./xnmake -b ../../nmake.adb ) i686-apple-darwin9-gcc-4.0.1: xnmake.adb: Ada compiler not installed on this system gnatmake: "xnmake.adb" compilation error make[3]: *** [ada/nmake.adb] Error 4 make[2]: *** [all-stage1-gcc] Error 2 make[1]: *** [stage1-bubble] Error 2 make: *** [bootstrap] Error 2 Error: Status 1 encountered during processing. }}} As you can see CC_FOR_BUILD, CC, CXX seem to be OK but I don't understand why i686-apple-darwin9-gcc-4.0.1 is used then ... Replying to [comment:4 krischik@…]:
'''i686-apple-darwin9-gcc-4.0.1'''? Now this seems very wrong! With the mentioned variant '''/opt/local/bin/gcc-gnat-4.4''' should have been used instead.
Also note that with +gnuada you will ultimately need to force (-f) the installation as gnat-gcc-4.4.2.dmg already installed a compiler to /opt/local.
It's noted ! ;) -- Ticket URL: <http://trac.macports.org/ticket/22191#comment:6> MacPorts <http://www.macports.org/> Ports system for Mac OS