Peter Zijlstra - problems bootstrapping gcc-4.0-20051117 on i386-pc-solaris2.10 (original) (raw)

This is the mail archive of the gcc@gcc.gnu.orgmailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Hi,

I'm having a lot of problems bootstrapping this compiler on said target. What I did so far:

from the build dir (which I located in the extracted source dir) ../configure --srcdir=.. --enable-languages="c c++" --with-gnu-as --with-as=/usr/sfw/bin/gas --without-gnu-ld --with-ld=/usr/ccs/bin/ld

however this fails to select '/usr/sfw/bin/gas' as the assembler; per configure output is says:

... checking for i386-pc-solaris2.10-as... no checking for as... as ...

So I set the environment variable 'AS' to point to gas: export AS='/usr/sfw/bin/gas'; removed the build dir and started over. This gave:

... checking for i386-pc-solaris2.10-as... /usr/sfw/bin/gas ...

after which I continued with: make -j5 bootstrap At that point it starts building, but fails with an assembler error:

/usr/local/src/gcc-4.0-20051117/gcc/config/i386/gmon-sol2.c:406: warning: control reaches end of non-void function /usr/local/src/gcc-4.0-20051117/gcc/config/i386/gmon-sol2.c: At top level: /usr/local/src/gcc-4.0-20051117/gcc/config/i386/gmon-sol2.c:58: warning: 'sccsid' defined but not used Fixing headers into /usr/local/src/gcc-4.0-20051117/build/gcc/include for i386-pc-solaris2.10 target Assembler: "", line 1 : Illegal flag (-) make[2]: *** [gmon.o] Error 1 make[2]: *** Waiting for unfinished jobs....

using truss I find that it is actually using /usr/ccs/bin/as ?!? luckyily it stats a few paths before happening on /usr/ccs/bin/as, so what I did is to symlink /usr/sfw/bin/gas to one of the other paths (ln -s /usr/sfw/bin/gas /usr/local/i386-pc-solaris2.10/bin/as) and restart all over again.

This get me further along, however not quite there. Now it fails to configure libstd++ with the following error:

checking for exception model to use... configure: error: unable to detect exception model make[1]: *** [configure-target-libstdc++-v3] Error 1 make[1]: Leaving directory `/usr/local/src/gcc-4.0-20051117/build' make: *** [bootstrap] Error 2

I'm sure I'm doing something horribly wrong here, can somebody point me to the way of a working compiler?

Kind regards,

Peter Zijlstra


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]