building apple-gcc42 fails: C compiler cannot create executables.

Timothy Goins ohce86 at kitcarson.net
Sun Dec 7 09:16:41 PST 2008


I encountered this problem compiling 4.3.  In /usr/bin I had the gcc  
executable but no gcc-4.0 file, so I created a link (sudo ln -s /usr/ 
bin/gcc /usr/bin/gcc-4.0).  The -s is unnecessary, I believe, but I  
did it because my symbolic links show up in a different color.

What I don't know why the configuration looks for gcc-4.0(.1) and not  
just /usr/bin/gcc.  Seems to me the link ought be the current  
executable linked to a /usr/bin/gcc pointer.  That way the current  
gcc, like /opt/local/bin/gcc-4.3 on my system, could be located  
anywhere.

Am I missing something here?

On Dec 7, 2008, at 6:22 AM, 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.
>
> Error: Status 1 encountered during processing.
> sh-3.2# whoami
> root
>
> _______________________________________________
> macports-users mailing list
> macports-users at lists.macosforge.org
> http://lists.macosforge.org/mailman/listinfo.cgi/macports-users

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.macosforge.org/pipermail/macports-users/attachments/20081207/d20d8bb2/attachment.html>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: smime.p7s
Type: application/pkcs7-signature
Size: 2116 bytes
Desc: not available
URL: <http://lists.macosforge.org/pipermail/macports-users/attachments/20081207/d20d8bb2/attachment.bin>


More information about the macports-users mailing list