[MacPorts] #23450: gnat-gcc 4.4.2 fails to build on Snow Leopard with GNAT GPL 4.3.4
#23450: gnat-gcc 4.4.2 fails to build on Snow Leopard with GNAT GPL 4.3.4 ------------------------------------------------+--------------------------- Reporter: tsigpla@… | Owner: macports-tickets@… Type: defect | Status: new Priority: Normal | Milestone: Component: ports | Version: 1.8.2 Keywords: gnat-gcc snow leopard gcc gnat ada | Port: gnat-gcc ------------------------------------------------+--------------------------- Port gnat-gcc fails to install on Snow Leopard with GNAT GPL 4.3.4 Mac OSX Snow Leopard (10.6.2)[[BR]] XCode tools 3.2.1 (1613)[[BR]] GNAT GPL 4.3.4[[BR]] Command line: {{{ sudo port -d install gnat-gcc +gnatgpl configure.cc=/opt/gnat- gpl-2009-x86_64/bin/gcc }}} First error encountered: {{{ checking whether we are cross compiling... no checking for suffix of executables... checking for strstr... checking for suffix of object files...Error: Target org.macports.build returned: shell command " cd "/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports .org_release_ports_lang_gnat-gcc/work/build" && /usr/bin/make -j2 bootstrap " returned error 2 DEBUG: Backtrace: shell command " cd "/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports .org_release_ports_lang_gnat-gcc/work/build" && /usr/bin/make -j2 bootstrap " returned error 2 while executing "command_exec build" (procedure "portbuild::build_main" line 9) invoked from within "$procedure $targetname" Error: Status 1 encountered during processing. }}} Second error encountered: {{{ checking for cabsf in -lm... error: "s-conca2.ali" not found, "s-conca2.adb" must be compiled yes checking for cabs in -lm... error: "s-stalib.adb" and "xoscons.adb" compiled with different GNAT versions error: "ada.ads" and "xoscons.adb" compiled with different GNAT versions error: "a-charac.ads" and "xoscons.adb" compiled with different GNAT versions error: "a-chahan.adb" and "xoscons.adb" compiled with different GNAT versions error: "a-chlat1.ads" and "xoscons.adb" compiled with different GNAT versions error: "a-string.ads" and "xoscons.adb" compiled with different GNAT versions error: "system.ads" and "xoscons.adb" compiled with different GNAT versions error: "s-exctab.adb" and "xoscons.adb" compiled with different GNAT versions error: "s-htable.adb" and "xoscons.adb" compiled with different GNAT versions error: "s-soflin.adb" and "xoscons.adb" compiled with different GNAT versions error: "s-parame.adb" and "xoscons.adb" compiled with different GNAT versions error: "s-secsta.adb" and "xoscons.adb" compiled with different GNAT versions error: "s-stoele.adb" and "xoscons.adb" compiled with different GNAT versions error: "a-except.adb" and "xoscons.adb" compiled with different GNAT versions error: "a-elchha.adb" and "xoscons.adb" compiled with different GNAT versions error: "s-except.adb" and "xoscons.adb" compiled with different GNAT versions error: "s-strops.adb" and "xoscons.adb" compiled with different GNAT versions error: "s-sopco3.adb" and "xoscons.adb" compiled with different GNAT versions error: "s-traceb.adb" and "xoscons.adb" compiled with different GNAT versions error: "s-unstyp.ads" and "xoscons.adb" compiled with different GNAT versions error: "s-wchcon.adb" and "xoscons.adb" compiled with different GNAT versions error: "s-wchstw.adb" and "xoscons.adb" compiled with different GNAT versions error: "s-wchcnv.adb" and "xoscons.adb" compiled with different GNAT versions error: "interfac.ads" and "xoscons.adb" compiled with different GNAT versions error: "s-wchjis.adb" and "xoscons.adb" compiled with different GNAT versions error: "s-traent.adb" and "xoscons.adb" compiled with different GNAT versions error: "s-stache.adb" and "xoscons.adb" compiled with different GNAT versions error: "a-strmap.adb" and "xoscons.adb" compiled with different GNAT versions error: "s-bitops.adb" and "xoscons.adb" compiled with different GNAT versions error: "a-stmaco.ads" and "xoscons.adb" compiled with different GNAT versions error: "a-stream.ads" and "xoscons.adb" compiled with different GNAT versions error: "a-tags.adb" and "xoscons.adb" compiled with different GNAT versions error: "s-valuns.adb" and "xoscons.adb" compiled with different GNAT versions error: "s-valuti.adb" and "xoscons.adb" compiled with different GNAT versions error: "s-casuti.adb" and "xoscons.adb" compiled with different GNAT versions error: "a-ststio.adb" and "xoscons.adb" compiled with different GNAT versions error: "i-cstrea.adb" and "xoscons.adb" compiled with different GNAT versions error: "s-crtl.ads" and "xoscons.adb" compiled with different GNAT versions error: "s-fileio.adb" and "xoscons.adb" compiled with different GNAT versions error: "a-finali.adb" and "xoscons.adb" compiled with different GNAT versions error: "s-finroo.adb" and "xoscons.adb" compiled with different GNAT versions error: "s-finimp.adb" and "xoscons.adb" compiled with different GNAT versions error: "s-restri.adb" and "xoscons.adb" compiled with different GNAT versions error: "s-stratt.adb" and "xoscons.adb" compiled with different GNAT versions error: "a-ioexce.ads" and "xoscons.adb" compiled with different GNAT versions error: "i-c.adb" and "xoscons.adb" compiled with different GNAT versions error: "s-os_lib.adb" and "xoscons.adb" compiled with different GNAT versions error: "s-string.adb" and "xoscons.adb" compiled with different GNAT versions error: "s-ficobl.ads" and "xoscons.adb" compiled with different GNAT versions error: "a-filico.adb" and "xoscons.adb" compiled with different GNAT versions error: "a-strfix.adb" and "xoscons.adb" compiled with different GNAT versions error: "a-strsea.adb" and "xoscons.adb" compiled with different GNAT versions error: "a-textio.adb" and "xoscons.adb" compiled with different GNAT versions error: "gnat.ads" and "xoscons.adb" compiled with different GNAT versions error: "s-memory.adb" and "xoscons.adb" compiled with different GNAT versions error: "xoscons.adb" must be recompiled ("a-finali.ads" has been modified) gnatmake: *** bind failed. yes checking for cabsl in -lm... /bin/sh: ./xoscons: No such file or directory yes checking for floorf in -lm... cp: s-oscons.ads: No such file or directory make[3]: *** [ada/s-oscons.ads] Error 1 make[2]: *** [oscons] Error 2 make[1]: *** [all-target-libada] Error 2 make[1]: *** Waiting for unfinished jobs.... }}} Third error encountered: {{{ configure: creating ./config.status config.status: creating Makefile config.status: creating config.h config.status: executing default-1 commands Adding multilib support to Makefile in ../../../../gcc-4.4.2/libgfortran with_multisubdir=i386 config.status: executing depfiles commands config.status: executing libtool commands config.status: executing gstdint.h commands config.status: executing depfiles commands config.status: executing libtool commands config.status: executing gstdint.h commands make: *** [bootstrap] Error 2 Warning: the following items did not execute (for gnat-gcc): org.macports.activate org.macports.build org.macports.destroot org.macports.install }}} End of compilation. The full install log is attached. Thanks. -- Ticket URL: <http://trac.macports.org/ticket/23450> MacPorts <http://www.macports.org/> Ports system for Mac OS
#23450: gnat-gcc 4.4.2 fails to build on Snow Leopard with GNAT GPL 4.3.4 -------------------------------+-------------------------------------------- Reporter: tsigpla@… | Owner: krischik@… Type: defect | Status: new Priority: Normal | Milestone: Component: ports | Version: 1.8.2 Keywords: | Port: gnat-gcc -------------------------------+-------------------------------------------- Changes (by jmr@…): * owner: macports-tickets@… => krischik@… * keywords: gnat-gcc snow leopard gcc gnat ada => Comment: Please remember to cc the maintainer. Why do you need to override configure.cc? Shouldn't the port be setting it appropriately? -- Ticket URL: <http://trac.macports.org/ticket/23450#comment:1> MacPorts <http://www.macports.org/> Ports system for Mac OS
#23450: gnat-gcc 4.4.2 fails to build on Snow Leopard with GNAT GPL 4.3.4 -------------------------------+-------------------------------------------- Reporter: tsigpla@… | Owner: krischik@… Type: defect | Status: new Priority: Normal | Milestone: Component: ports | Version: 1.8.2 Keywords: | Port: gnat-gcc -------------------------------+-------------------------------------------- Comment(by tsigpla@…): Hi, I used the configure.cc parameter to force the use of GNAT GPL for compiling Ada. Now, I configured gcc_select to add GNAT GPL as an available compiler and set it as default. I started a fresh install of gnat-gcc and got the same result. -- Ticket URL: <http://trac.macports.org/ticket/23450#comment:2> MacPorts <http://www.macports.org/> Ports system for Mac OS
#23450: gnat-gcc 4.4.2 fails to build on Snow Leopard with GNAT GPL 4.3.4 -------------------------------+-------------------------------------------- Reporter: tsigpla@… | Owner: krischik@… Type: defect | Status: new Priority: Normal | Milestone: Component: ports | Version: 1.8.2 Keywords: | Port: gnat-gcc -------------------------------+-------------------------------------------- Comment(by krischik@…): Replying to [comment:1 jmr@…]:
Please remember to cc the maintainer. Why do you need to override configure.cc? Shouldn't the port be setting it appropriately?
indeed it should - and it does. Only I use the directory name as embedded in the installation tar: "/opt/gnat-2009-x86_64-apple-darwin9.6.0-bin". Martin -- Ticket URL: <http://trac.macports.org/ticket/23450#comment:3> MacPorts <http://www.macports.org/> Ports system for Mac OS
#23450: gnat-gcc 4.4.2 fails to build on Snow Leopard with GNAT GPL 4.3.4 -------------------------------+-------------------------------------------- Reporter: tsigpla@… | Owner: krischik@… Type: defect | Status: assigned Priority: Normal | Milestone: Component: ports | Version: 1.8.2 Keywords: | Port: gnat-gcc -------------------------------+-------------------------------------------- Changes (by krischik@…): * status: new => assigned Comment: Replying to [comment:2 tsigpla@…]:
I used the configure.cc parameter to force the use of GNAT GPL for compiling Ada. Now, I configured gcc_select to add GNAT GPL as an available compiler and set it as default. I started a fresh install of gnat-gcc and got the same result.
I know. SnowLeopard has turned out to be a pain for GNAT. I begin to fear that it can't be fixed before GNAT GPL 2010 is out :-( . -- Ticket URL: <http://trac.macports.org/ticket/23450#comment:4> MacPorts <http://www.macports.org/> Ports system for Mac OS
#23450: gnat-gcc 4.4.2 fails to build on Snow Leopard with GNAT GPL 4.3.4 -------------------------------+-------------------------------------------- Reporter: tsigpla@… | Owner: krischik@… Type: defect | Status: assigned Priority: Normal | Milestone: Component: ports | Version: 1.8.2 Keywords: | Port: gnat-gcc -------------------------------+-------------------------------------------- Comment(by lvcargnini@…): I also found using the option -d that the when trying to install using +gnatgpl ,for gnat-gcc it look for the gnat-gpl on path /opt/gnat-2009-x86_64-apple-darwin9.6.0-bin So like me that installed using the Gnat GPL script in /usr/local/gnat I did a symbolic link to bypass this minor issue, still an issue. -- Ticket URL: <http://trac.macports.org/ticket/23450#comment:5> MacPorts <http://www.macports.org/> Ports system for Mac OS
#23450: gnat-gcc 4.4.2 fails to build on Snow Leopard with GNAT GPL 4.3.4 -------------------------------+-------------------------------------------- Reporter: tsigpla@… | Owner: krischik@… Type: defect | Status: assigned Priority: Normal | Milestone: Component: ports | Version: 1.8.2 Keywords: | Port: gnat-gcc -------------------------------+-------------------------------------------- Comment(by lvcargnini@…): Also now I had this error message:[[BR]] /opt/gnat-2009-x86_64-apple-darwin9.6.0-bin/bin/gcc -c -g -fkeep-inline- functions -gnatpg -gnata -gnatwns[[BR]] -nostdinc -I- -I. -Iada -I../../gcc-4.4.2/gcc/ada -I../../gcc-4.4.2/gcc/ada/gcc-interface ../../gcc-4.4.2/gcc/ada/errout.adb -o ada/errout.o[[BR]] Undefined symbols:[[BR]] "_sigreturn", referenced from:[[BR]] ___gnat_error_handler in libgnat.a(init.o)[[BR]] ld: symbol(s) not found[[BR]] collect2: ld returned 1 exit status[[BR]] gnatlink: error when calling /usr/local/gnat/bin/gcc[[BR]] gnatmake: *** link failed.[[BR]] make[3]: *** [ada/nmake.adb] Error 4[[BR]] make[3]: *** Waiting for unfinished jobs....[[BR]] make[2]: *** [all-stage1-gcc] Error 2[[BR]] make[1]: *** [stage1-bubble] Error 2[[BR]] make: *** [bootstrap] Error 2[[BR]] Error: Target org.macports.build returned: shell command " cd [[BR]]"/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports .org_release_ports_lang_gnat-gcc/work/build" [[BR]]&& /usr/bin/make -j2 bootstrap " [[BR]]returned error 2[[BR]] DEBUG: Backtrace: shell command " [[BR]]cd "/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports .org_release_ports_lang_gnat-gcc/work/build"[[BR]] && [[BR]]/usr/bin/make -j2 bootstrap " returned error 2[[BR]][[BR]] while executing[[BR]] "command_exec build"[[BR]] (procedure "portbuild::build_main" line 9)[[BR]] invoked from within[[BR]] "$procedure $targetname"[[BR]] Warning: the following items did not execute (for gnat-gcc): org.macports.activate org.macports.build org.macports.destroot org.macports.install[[BR]] Error: Status 1 encountered during processing.[[BR]] -- Ticket URL: <http://trac.macports.org/ticket/23450#comment:6> MacPorts <http://www.macports.org/> Ports system for Mac OS
#23450: gnat-gcc 4.4.2 fails to build on Snow Leopard with GNAT GPL 4.3.4 --------------------------------+------------------------------------------- Reporter: tsigpla@… | Owner: krischik@… Type: defect | Status: closed Priority: Normal | Milestone: Component: ports | Version: 1.8.2 Resolution: wontfix | Keywords: Port: gnat-gcc | --------------------------------+------------------------------------------- Changes (by krischik@…): * status: assigned => closed * resolution: => wontfix Comment: I am currently working on gnat-gcc 4.5.1 - any 4.4 bugs won't be fixed. gnat-gcc is a very time consuming port - any help is welcome. Drop me a mail an I send you the current Portfile and test scripts. -- Ticket URL: <http://trac.macports.org/ticket/23450#comment:7> MacPorts <http://www.macports.org/> Ports system for Mac OS
participants (1)
-
MacPorts