Ulf Breidenbach wrote:
> Hello, I`m new to Opensolaris. My installation is only 3 days old. The first
> impression is very good.
> But I have really problems with the gcc compiler. Sometimes the compiler
> works but in most cases the gcc don't work. I'm trying to build a package
> with a command like this:
>
> export CC=gcc
> export CXX=g++
> pkgtool build --download SFEsdl-image --autodeps
>
> I get a result like this on here:
>
> ERROR: SFEsdl-image FAILED
> INFO: Check the build log in /tmp/SFEsdl-image.log for details
>
> Summary:
>
> package | status | details
> ---------------------------------+-------------+-------------------------------
> SFEsdl-image | FAILED | pkgbuild build failed
>
>
> the /tmp/SFEsdl-image.log shows this error:
>
> pkgbuild: checking for gcc... /usr/sfw/bin/gcc
> pkgbuild: checking for C compiler default output file name... configure:
> error: C compiler cannot create executables
> pkgbuild: See `config.log' for more details.
> pkgbuild: Bad exit status from /var/tmp/pkgbuild-ulf/pkgbuild-tmp-2.22461
> (%build)
> --- command output ends --- finished at Sonntag, 1. Februar 2009, 17:40:39
> Uhr CET
I usually see this error from configure if I've made the mistake
of setting a CFLAG which the compiler doesn't accept.
Have a look in your config.log file (probably /var/tmp/pkgbuild....)
and see what it's complaining about.
James C. McPherson
--
Solaris kernel software engineer, system admin and troubleshooter
http://www.jmcp.homeunix.com/blog
http://blogs.sun.com/jmcp
Find me on LinkedIn @ http://www.linkedin.com/in/jamescmcpherson