Opened 14 years ago

Closed 14 years ago

#23450 closed defect (wontfix)

gnat-gcc 4.4.2 fails to build on Snow Leopard with GNAT GPL 4.3.4

Reported by: tsigpla@… Owned by: krischik@…
Priority: Normal Milestone:
Component: ports Version: 1.8.2
Keywords: Cc:
Port: gnat-gcc

Description

Port gnat-gcc fails to install on Snow Leopard with GNAT GPL 4.3.4

Mac OSX Snow Leopard (10.6.2)
XCode tools 3.2.1 (1613)
GNAT GPL 4.3.4

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.

Attachments (1)

gnat-gcc.log.gz (198.1 KB) - added by tsigpla@… 14 years ago.
installation log (gzipped)

Download all attachments as: .zip

Change History (8)

Changed 14 years ago by tsigpla@…

Attachment: gnat-gcc.log.gz added

installation log (gzipped)

comment:1 Changed 14 years ago by jmroot (Joshua Root)

Keywords: gnat-gcc snow leopard gcc gnat ada removed
Owner: changed from macports-tickets@… to krischik@…

Please remember to cc the maintainer. Why do you need to override configure.cc? Shouldn't the port be setting it appropriately?

comment:2 Changed 14 years ago 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.

comment:3 in reply to:  1 Changed 14 years ago by krischik@…

Replying to 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

comment:4 in reply to:  2 Changed 14 years ago by krischik@…

Status: newassigned

Replying to 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 :-( .

comment:5 Changed 14 years ago 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.

comment:6 Changed 14 years ago by lvcargnini@…

Also now I had this error message:
/opt/gnat-2009-x86_64-apple-darwin9.6.0-bin/bin/gcc -c -g -fkeep-inline-functions -gnatpg -gnata -gnatwns
-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

Undefined symbols:

"_sigreturn", referenced from:

_gnat_error_handler in libgnat.a(init.o)

ld: symbol(s) not found
collect2: ld returned 1 exit status
gnatlink: error when calling /usr/local/gnat/bin/gcc
gnatmake: * link failed.
make[3]:
* [ada/nmake.adb] Error 4
make[3]: * Waiting for unfinished jobs....
make[2]:
* [all-stage1-gcc] Error 2
make[1]: * [stage1-bubble] Error 2
make:
* [bootstrap] Error 2
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"
Warning: the following items did not execute (for gnat-gcc): org.macports.activate org.macports.build org.macports.destroot org.macports.install
Error: Status 1 encountered during processing.

comment:7 Changed 14 years ago by krischik@…

Resolution: wontfix
Status: assignedclosed

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.

Note: See TracTickets for help on using tickets.