building apple-gcc42 fails: C compiler cannot create executables.
Joshua Root
jmr at macports.org
Sun Dec 7 05:49:14 PST 2008
Admin wrote:
> Hi there,
>
> I am not sure where to begin to troubleshoot this issue. Anybody know
> what to do here? Building apple-gcc42 fails.
>
>
> sh-3.2# port install apple-gcc42
> ---> Configuring apple-gcc42
> Error: Target org.macports.configure returned: configure failure: shell
> command " cd
> "/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_release_ports_lang_apple-gcc42/work/build"
> &&
> /opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_release_ports_lang_apple-gcc42/work/gcc_42-5531/configure
> --prefix=/opt/local/lib/apple-gcc42 --enable-languages=c,objc
> --program-suffix=-apple-4.2 " returned error 1
> Command output: loading cache ./config.cache
> checking host system type... powerpc-apple-darwin9.5.0
> checking target system type... powerpc-apple-darwin9.5.0
> checking build system type... powerpc-apple-darwin9.5.0
> checking for a BSD compatible install... /usr/bin/install
> checking whether ln works... yes
> checking whether ln -s works... yes
> checking for gcc... /usr/bin/gcc-4.0
> checking whether the C compiler (/usr/bin/gcc-4.0 ) works... no
> configure: error: installation or configuration problem: C compiler
> cannot create executables.
The usual reason for getting this error is that XCode is not installed,
or it is too old for your current OS. XCode 3.0 is the minimum for
Leopard, and 3.1 or later is highly recommended (latest is 3.1.2).
- Josh
More information about the macports-users
mailing list