On May 31, 2012, at 09:49, Julien Salort wrote: > However, netcdf-fortran +universal fails at configure: > :info:configure checking for gcc... /opt/local/bin/gcc-mp-4.5 > :info:configure checking whether the C compiler works... no > :info:configure configure: error: in > `/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_release_tarballs_ports_science_netcdf-fortran/netcdf-fortran/work/netcdf-fortran-4.2': > :info:configure configure: error: C compiler cannot create executables > > Does MacPorts gcc have the capability to make fat executables ?
FSF gcc does not support "-arch" flags, so you cannot create cross-endian universal binaries, and if you want to create single-engian universal binaries (i.e. 32-bit and 64-bit) you have to build twice and lipo together. In MacPorts we model that method in the "muniversal" portgroup. But the netcdf-fortran port does not use the muniversal portgroup. > If no, it means Apple's gcc is required ? Yes, or trying to use the muniversal portgroup. > But then Apple does not provide a fortran compiler, right ? That's right. > Then does it mean netcdf-fortran +universal is not possible ? It might be possible using the muniversal portgroup, I don't know. _______________________________________________ macports-users mailing list [email protected] http://lists.macosforge.org/mailman/listinfo.cgi/macports-users
