Here is the relevant error message: :info:configure checking for gcc... /opt/gnat-2009-x86_64-apple-darwin9.6.0-bin/bin/gcc :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.
What this says /opt/gnat-2009-x86_64-apple-darwin9.6.0-bin/bin/gcc doesn't work. Does this file even exist? Can you diagnose this at all? On Sat, Jan 22, 2011 at 6:22 PM, M <[email protected]> wrote: > Hi, > Thanks for the quick reply. > I tried: sudo -E port install gnat-gcc +gnatgpl > ############################################### > # Ada is self hosted (http://en.wikipedia.org/wiki/Self-hosting) > # > # Bootstrap compiler not found. Please download and install from > # http://libre.adacore.com > ############################################### > ---> Computing dependencies for gnat-gcc > ---> Fetching gnat-gcc > ---> Verifying checksum(s) for gnat-gcc > ---> Extracting gnat-gcc > ---> Configuring gnat-gcc > Error: Target org.macports.configure returned: configure failure: shell > command failed (see log for details) > 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 > Error: Status 1 encountered during processing. > > From the end of main.log (sorry about all the following data - not sure > what may or may not be important in diagnosing this): > :msg:patch ---> Configuring gnat-gcc > :debug:patch Using compiler 'Mac OS X gcc 4.2' > :debug:configure configure phase started at Sat Jan 22 18:10:04 EST 2011 > :debug:configure Executing proc-pre-org.macports.configure-configure-0 > :debug:configure Executing org.macports.configure (gnat-gcc) > :debug:configure Environment: CPATH='/opt/local/include' CXXFLAGS='-pipe > -O2' CPPFLAGS='-I/opt/local/include' CFLAGS='-pipe -O2' > AS_FOR_TARGET='/usr/bin/as' LIBRARY_PATH='/opt/local/lib' > MACOSX_DEPLOYMENT_TARGET='10.6' > CXX='/opt/gnat-2009-x86_64-apple-darwin9.6.0-bin/bin/g++' > 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='-pipe -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='-pipe -O2 -m64' > OBJC='/opt/gnat-2009-x86_64-apple-darwin9.6.0-bin/bin/gcc' > INSTALL='/usr/bin/install -c' AR_FOR_TARGET='/usr/bin/ar' > NM_FOR_TARGET='/usr/bin/nm' > GNATBIND='/opt/gnat-2009-x86_64-apple-darwin9.6.0-bin/bin/gnatbind' > GNATMAKE='/opt/gnat-2009-x86_64-apple-darwin9.6.0-bin/bin/gnatmake' > FFLAGS='-pipe -O2 -m64' OBJCFLAGS='-pipe -O2' CC_PRINT_OPTIONS='YES' > PATH='/opt/gnat-2009-x86_64-apple-darwin9.6.0-bin/bin:/opt/local/bin:/opt/local/sbin:/bin:/sbin:/usr/bin:/usr/sbin' > STRIP_FOR_TARGET='/usr/bin/strip' > CC='/opt/gnat-2009-x86_64-apple-darwin9.6.0-bin/bin/gcc' > :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/gnat-2009-x86_64-apple-darwin9.6.0-bin/bin/gcc > :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 (see log for details) > :debug:configure Backtrace: configure failure: shell command failed (see > log for details) > 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 > > It looks like it wants to use it's own install to do the work instead of my > current install of gnat (and/or the gcc under /usr/local/gnat/bin). > Although there are some references to /opt/local paths in some messages in > main.log. > > > On Jan 22, 2011, at 5:43 PM, Jason Swails wrote: > > Hello, > > I'm guessing that the root user doesn't have /usr/local/gnat/bin in the > PATH. Try the following > > sudo -s > echo $PATH | grep "/usr/local/gnat/bin" || export > PATH=$PATH\:/usr/local/gnat/bin > port -v install gnat-gcc +gnatgpl > exit > > You can also try > sudo -E port install gnat-gcc +gnatgpl > > as -E preserves your environment when you enter the root shell. > > Alternatively, you can take a different approach where you don't need to > use sudo at all (and you avoid all issues involved with launching a root > shell), and is the practice that I use. > > Change ownership of /Applications/Macports and /opt to a user that you > grant install privileges there (i.e. yourself, or create a special user for > it if you want). > > sudo chmod -R `whoami` /opt > sudo chmod -R `whoami` /Applications/MacPorts > > Then you will never have to use sudo again (which I think is an added level > of protection for your system) when installing via MacPorts. > > As a note, also consider changing the ownership of /usr/local as well so > you don't need root privileges there either. > > Hope this helps, > Jason > > On Sat, Jan 22, 2011 at 5:34 PM, M <[email protected]> wrote: > >> Hi, >> First time MacPorts user. I installed MacPorts 1.9.2 on Mac OS 10.6.5 >> (Xcode 3.2.5). First port I wanted to install was gnat-gtkada. I ran: >> "sudo port install gnat-gtkada". Everything went fine until I got this >> message: >> # Ada is self hosted (http://en.wikipedia.org/wiki/Self-hosting) >> # >> # You need to install an existing Ada compiler and then choose >> # an appropiate variant. For more info use: >> # >> # port variants gnat-gcc >> >> I already have GNAT & AdaCore's GPS installed (20100603). Not knowing how >> to tell MacPorts that GNAT is already installed, I tried this: "sudo port -v >> install gnat-gcc +gnatgpl", and got this message: >> # Ada is self hosted (http://en.wikipedia.org/wiki/Self-hosting) >> # >> # Bootstrap compiler not found. Please download and install from >> # http://libre.adacore.com >> >> That's what I've already got installed. >> How do I tell MacPorts that I have GNAT installed (and is already in my >> command path at /usr/local/gnat/bin), so that I can get gtkada installed. >> >> Thanks >> >> _______________________________________________ >> macports-users mailing list >> [email protected] >> http://lists.macosforge.org/mailman/listinfo.cgi/macports-users >> > > > > -- > Jason M. Swails > Quantum Theory Project, > University of Florida > Ph.D. Graduate Student > 352-392-4032 > > > -- Jason M. Swails Quantum Theory Project, University of Florida Ph.D. Graduate Student 352-392-4032
_______________________________________________ macports-users mailing list [email protected] http://lists.macosforge.org/mailman/listinfo.cgi/macports-users
