[MacPorts] #22191: gnat-gcc 4.4.1 configure: error: C compiler cannot create executables

MacPorts noreply at macports.org
Wed Oct 21 10:50:13 PDT 2009


#22191: gnat-gcc 4.4.1 configure: error: C compiler cannot create executables
--------------------------------------+-------------------------------------
 Reporter:  rperrot@…                 |       Owner:  macports-tickets@…                   
     Type:  defect                    |      Status:  new                                  
 Priority:  Normal                    |   Milestone:                                       
Component:  ports                     |     Version:  1.8.0                                
 Keywords:  gnat-gcc                  |        Port:                                       
--------------------------------------+-------------------------------------
 Hi,

 I'm trying to install gnat-gcc using gnat-gpl variant and it ends with
 that error :

 "configure: error: C compiler cannot create executables"

 here s an extract of config.log :

 {{{
 configure:3280: $? = 0
 configure:3282: /opt/gnat-2009-x86_64-apple-darwin9.6.0-bin/bin/gcc -v
 </dev/null >&5
 Using built-in specs.
 Target: x86_64-apple-darwin9.6.0
 Configured with: /lensk.a/gnatmail/release-gpl/build-lensk/src/configure
 --prefix=/usr/local/gnat --with-build-time-tools=/lensk.a/gnatmail
 /release-gpl/build-lensk/obj --with-gmp=/lensk.a/gnatmail/release-gpl
 /build-lensk/libmpfr/install --with-mpfr=/lensk.a/gnatmail/release-gpl
 /build-lensk/libmpfr/install --build=x86_64-apple-darwin9.6.0 --enable-
 languages=c,ada --disable-nls --without-libiconv-prefix --disable-libada
 --enable-checking=release --with-bugurl=URL:mailto:report at adacore.com
 Thread model: posix
 gcc version 4.3.4 20090511 for GNAT GPL 2009 (20090511) (GCC)
 configure:3285: $? = 0
 configure:3287: /opt/gnat-2009-x86_64-apple-darwin9.6.0-bin/bin/gcc -V
 </dev/null >&5
 gcc: '-V' option must have argument
 configure:3290: $? = 1
 configure:3313: checking for C compiler default output file name
 configure:3316: /opt/gnat-2009-x86_64-apple-darwin9.6.0-bin/bin/gcc -O2
 -arch i386 -I/opt/local/include -L/opt/local/lib conftest.c  >&5
 cc1: error: unrecognized command line option "-arch"
 configure:3319: $? = 1
 configure: failed program was:
 | /* confdefs.h.  */
 |
 | #define PACKAGE_NAME ""
 | #define PACKAGE_TARNAME ""
 | #define PACKAGE_VERSION ""
 | #define PACKAGE_STRING ""
 | #define PACKAGE_BUGREPORT ""
 | /* end confdefs.h.  */
 |
 | int
 | main ()
 | {
 |
 |   ;
 |   return 0;
 | }
 configure:3357: error: in
 `/opt/local/var/macports/build/_opt_local_var_macports_sources_svn.macports
 .org_trunk_dports_lang_gnat-gcc/work/build':
 configure:3360: error: C compiler cannot create executables
 See `config.log' for more details.
 }}}

 I think the problem is the -arch option that cause this issue. Is there a
 way of turning-off that option ?

-- 
Ticket URL: <http://trac.macports.org/ticket/22191>
MacPorts <http://www.macports.org/>
Ports system for Mac OS


More information about the macports-tickets mailing list