Opened 14 years ago

Closed 14 years ago

#25243 closed defect (wontfix)

Problems compiling gnat-gcc +gnuada on SL

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

Description (last modified by mf2k (Frank Schima))

Hi I'm trying to install gnat-gcc on my OSX, a SL 10.6.3, but I'm having some issues, mainly the biggest issue is the following:

:debug:configure Environment: CPATH='/opt/local/include' CXXFLAGS='-O2' CPPFLAGS='-I/opt/local/include' 
CFLAGS='-O2'
AS_FOR_TARGET='/usr/bin/as' 
LIBRARY_PATH='/opt/local/lib' 
MACOSX_DEPLOYMENT_TARGET='10.6' 
CXX='/opt/local/bin/g++-gnat-4.4'
CC_PRINT_OPTIONS_FILE='/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_release_ports_lang_gnat-gcc/work/.CC_PRINT_OPTIONS' F90FLAGS='-O2 -m64'
 LD_FOR_TARGET='/usr/bin/ld' 
RANLIB_FOR_TARGET='/usr/bin/ranlib' 
LDFLAGS='-L/opt/local/lib -arch x86_64' OBJDUMP_FOR_TARGET='/usr/bin/objdump' 
FCFLAGS='-O2 -m64' 
OBJC='/opt/local/bin/gcc-gnat-4.4' 
INSTALL='/usr/bin/install -c'
AR_FOR_TARGET='/usr/bin/ar'
 NM_FOR_TARGET='/usr/bin/nm' 
GNATBIND='/opt/local/bin/gnatbind'
GNATMAKE='/opt/local/bin/gnatmake'
FFLAGS='-O2 -m64' 
OBJCFLAGS='-O2' 
CC_PRINT_OPTIONS='YES' PATH='/opt/local/bin:/opt/local/bin:/opt/local/sbin:/bin:/sbin:/usr/bin:/usr/sbin' STRIP_FOR_TARGET='/usr/bin/strip' 
CC='/opt/local/bin/gcc-gnat-4.4'
:debug:configure Assembled command: 'cd "/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_release_ports_lang_gnat-gcc/work/build" && ../gcc-4.4.2/configure --prefix=/opt/local --build=x86_64-apple-darwin10 --enable-languages=c,c++,ada,objc,obj-c++,java,fortran --libdir=/opt/local/lib/gnat-gcc --includedir=/opt/local/include/gnat-gcc --infodir=/opt/local/share/info --mandir=/opt/local/share/man --with-local-prefix=/opt/local --with-system-zlib --disable-nls --program-suffix=-gnat-4.4 --with-gxx-include-dir=/opt/local/include/gnat-gcc/c++/ --with-gmp=/opt/local --with-mpfr=/opt/local'
:info:configure checking build system type... x86_64-apple-darwin10
:info:configure checking host system type... x86_64-apple-darwin10
:info:configure checking target system type... x86_64-apple-darwin10
:info:configure checking for a BSD-compatible install... /usr/bin/install -c
:info:configure checking whether ln works... yes
:info:configure checking whether ln -s works... yes
:info:configure checking for gcc... /opt/local/bin/gcc-gnat-4.4
:info:configure checking for C compiler default output file name... configure: error: in `/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_release_ports_lang_gnat-gcc/work/build':
:info:configure configure: error: C compiler cannot create executables
:info:configure See `config.log' for more details.
:info:configure shell command " cd "/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_release_ports_lang_gnat-gcc/work/build" && ../gcc-4.4.2/configure --prefix=/opt/local --build=x86_64-apple-darwin10 --enable-languages=c,c++,ada,objc,obj-c++,java,fortran --libdir=/opt/local/lib/gnat-gcc --includedir=/opt/local/include/gnat-gcc --infodir=/opt/local/share/info --mandir=/opt/local/share/man --with-local-prefix=/opt/local --with-system-zlib --disable-nls --program-suffix=-gnat-4.4 --with-gxx-include-dir=/opt/local/include/gnat-gcc/c++/ --with-gmp=/opt/local --with-mpfr=/opt/local " returned error 77
:error:configure Target org.macports.configure returned: configure failure: shell command failed
:debug:configure Backtrace: configure failure: shell command failed while executing
"$procedure $targetname"
:info:configure Warning: the following items did not execute (for gnat-gcc): org.macports.activate org.macports.configure org.macports.build org.macports.destroot org.macports.install
:notice:configure Log for gnat-gcc is at: /opt/local/var/macports/logs/_opt_local_var_macports_sources_rsync.macports.org_release_ports_lang_gnat-gcc/main.log

Attachments (1)

main.log (15.0 KB) - added by lvcargnini@… 14 years ago.

Download all attachments as: .zip

Change History (8)

Changed 14 years ago by lvcargnini@…

Attachment: main.log added

comment:1 Changed 14 years ago by mf2k (Frank Schima)

Description: modified (diff)
Keywords: gnat gcc gnuada removed
Owner: changed from macports-tickets@… to krischik@…

What command did you run to try to install?

comment:2 in reply to:  1 Changed 14 years ago by lvcargnini@…

Replying to macsforever2000@…:

What command did you run to try to install?

I used:
port install gnat-gcc +gnuada
I also tried with variant +ada and get the same error. Also which variant should I use ? Which one is recommended ?

comment:3 Changed 14 years ago by krischik@…

Currently I recommend to wait another week or help me out getting things done faster. There is a new GNAT from http://libre.adacore.com/libre/ which may or may not solve the SL problems.

comment:4 in reply to:  3 Changed 14 years ago by lvcargnini@…

Replying to krischik@…:

Currently I recommend to wait another week or help me out getting things done faster. There is a new GNAT from http://libre.adacore.com/libre/ which may or may not solve the SL problems.


Sorry to say that, but is 'may not', I tried already, okay I'll wait a week is not a huge problem, I need install the Gnat-Gcc to be able to compile the GHDL in my Mac.

Thanks.

comment:5 Changed 14 years ago by lvcargnini@…

Ok, wait but now I tested with both GnuaADA and ADA variants
In Ada variants I get the following error:

:info:configure checking for version 0.10 of PPL... no

:info:configure checking for correct version of CLooG... no
:info:configure configure: error: GNAT is required to build ada
:info:configure shell command "
cd "/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_release_ports_lang_gnat-gcc/work/build"
&& ../gcc-4.4.2/configure --prefix=/opt/local --build=x86_64-apple-darwin10
--enable-languages=c,c++,ada,objc,obj-c++,java,fortran
--libdir=/opt/local/lib/gnat-gcc
--includedir=/opt/local/include/gnat-gcc
--infodir=/opt/local/share/info
--mandir=/opt/local/share/man
--with-local-prefix=/opt/local
--with-system-zlib
--disable-nls
--program-suffix=-gnat-4.4
--with-gxx-include-dir=/opt/local/include/gnat-gcc/c++/
--with-gmp=/opt/local
--with-mpfr=/opt/local "
returned error 1
:error:configure Target org.macports.configure returned: configure failure: shell command failed
:debug:configure Backtrace: configure failure: shell command failed

while executing

"$procedure $targetname"
:info:configure Warning: the following items did not execute (for gnat-gcc): org.macports.activate org.macports.configure org.macports.build org.macports.destroot org.macports.install
:notice:configure Log for gnat-gcc is at: /opt/local/var/macports/logs/_opt_local_var_macports_sources_rsync.macports.org_release_ports_lang_gnat-gcc/main.log

comment:6 Changed 14 years ago by lvcargnini@…

this is the error using +gnuada variant:

:info:configure checking build system type... x86_64-apple-darwin10

:info:configure checking host system type... x86_64-apple-darwin10
:info:configure checking target system type... x86_64-apple-darwin10
:info:configure checking for a BSD-compatible install... /usr/bin/install -c
:info:configure checking whether ln works... yes
:info:configure checking whether ln -s works... yes
:info:configure checking for gcc... /opt/local/bin/gcc-gnat-4.4
:info:configure checking for C compiler default output file name... configure: error: in
`/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_release_ports_lang_gnat-gcc/work/build':
:info:configure configure: error: C compiler cannot create executables
:info:configure See `config.log' for more details.
:info:configure shell command "
cd "/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_release_ports_lang_gnat-gcc/work/build"
&& ../gcc-4.4.2/configure
--prefix=/opt/local
--build=x86_64-apple-darwin10
--enable-languages=c,c++,ada,objc,obj-c++,java,fortran
--libdir=/opt/local/lib/gnat-gcc
--includedir=/opt/local/include/gnat-gcc
--infodir=/opt/local/share/info
--mandir=/opt/local/share/man
--with-local-prefix=/opt/local
--with-system-zlib
--disable-nls
--program-suffix=-gnat-4.4
--with-gxx-include-dir=/opt/local/include/gnat-gcc/c++/
--with-gmp=/opt/local
--with-mpfr=/opt/local "
returned error 77
:error:configure Target org.macports.configure returned: configure failure: shell command failed
:debug:configure Backtrace: configure failure: shell command failed

while executing

"$procedure $targetname"
:info:configure Warning: the following items did not execute (for gnat-gcc):
org.macports.activate org.macports.configure org.macports.build org.macports.destroot org.macports.install
:notice:configure Log for gnat-gcc is at:
/opt/local/var/macports/logs/_opt_local_var_macports_sources_rsync.macports.org_release_ports_lang_gnat-gcc/main.log

comment:7 Changed 14 years ago by krischik@…

Resolution: wontfix
Status: newclosed

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.