I need a fortran compiler, so I have installed gcc4.2 on my MacBook (latest version of OS, macport updated etc) The installation procedes seemingly without problem. However when I check the fortran with the command: gfortran -v I get "Using built-in specs. Target: powerpc-apple-darwin8.8.0 Configured with: ../gcc-4.3-20061223/configure --enable-languages=fortran Thread model: posix gcc version 4.3.0 20061223 (experimental)" so the fortran compiler is running as a cross compiler. The other compilers in the gcc suite seem to be fine e.g. g++ -v produces: "Using built-in specs. Target: i686-apple-darwin8 Configured with: /private/var/tmp/gcc/gcc-5367.obj~1/src/configure --disable-checking -enable-werror --prefix=/usr --mandir=/share/man --enable-languages=c,objc,c++,obj-c++ --program-transform-name=/^[cg][^.-]*$/s/$/-4.0/ --with-gxx-include-dir=/include/c++/4.0.0 --with-slibdir=/usr/lib --build=powerpc-apple-darwin8 --with-arch=nocona --with-tune=generic --program-prefix= --host=i686-apple-darwin8 --target=i686-apple-darwin8 Thread model: posix gcc version 4.0.1 (Apple Computer, Inc. build 5367)" Does anybody know what is going on? Cheers Simon -- View this message in context: http://www.nabble.com/Gfortran-strange-target-problem-tf4261683.html#a121276... Sent from the MacPorts - Users mailing list archive at Nabble.com.
On 13/08/07, Simon Martin <phy445@gmail.com> wrote:
I need a fortran compiler, so I have installed gcc4.2 on my MacBook (latest version of OS, macport updated etc) The installation procedes seemingly without problem. However when I check the fortran with the command: gfortran -v
I get
"Using built-in specs. Target: powerpc-apple-darwin8.8.0 Configured with: ../gcc-4.3-20061223/configure --enable-languages=fortran Thread model: posix gcc version 4.3.0 20061223 (experimental)"
the gcc42 port installs gfortran as gfortran-mp-4.2 so it looks like you've installed the 4.3 development snapshot elsewhere on your system and that version is getting picked up. Cheers Adam
Thanks for that Adam. Problem solved. Simon Adam Mercer wrote:
On 13/08/07, Simon Martin <phy445@gmail.com> wrote:
I need a fortran compiler, so I have installed gcc4.2 on my MacBook (latest version of OS, macport updated etc) The installation procedes seemingly without problem. However when I check the fortran with the command: gfortran -v
I get
"Using built-in specs. Target: powerpc-apple-darwin8.8.0 Configured with: ../gcc-4.3-20061223/configure --enable-languages=fortran Thread model: posix gcc version 4.3.0 20061223 (experimental)"
the gcc42 port installs gfortran as gfortran-mp-4.2 so it looks like you've installed the 4.3 development snapshot elsewhere on your system and that version is getting picked up.
Cheers
Adam _______________________________________________ macports-users mailing list macports-users@lists.macosforge.org http://lists.macosforge.org/mailman/listinfo/macports-users
-- View this message in context: http://www.nabble.com/Gfortran-strange-target-problem-tf4261683.html#a121290... Sent from the MacPorts - Users mailing list archive at Nabble.com.
participants (2)
-
Adam Mercer
-
Simon Martin