Re: Compiling gcc-3.4.6 on sparc Solaris 9

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



Hi Daniel,

> As to switching to gcc 4.9, can my currently installed gcc 3.4.6 build it ?

as documented in install.texi (you absolute need to check it!), GCC 4.9
requires a ISO C++98 compiler, so GC 3.4.6 should be good.  If all else
fails, you need to take some intermediate step (like GCC 4.7 which only
needed an ISO C89 compiler).

> While sticking to the 3.4.6 version, I removed the solaris ld out of the

Don't mess around with the installed /usr/ccs/bin/ld.  Just pass
--with-ld=<your desired ld> (and --with-gnu-ld or --without-gnu-ld as
needed.

> way and am building it with gnu ld.

Again: why are you so adamant on using GNU ld here?  Solaris ld works
way better.

> Right now I have the following error :
>
> rm -f libv3test.a
> ar cru libv3test.a testsuite_abi.o testsuite_allocator.o testsuite_hooks.o 
> ranlib libv3test.a
> touch testsuite_wchar_t
> /export/home/dlsa/code/gcc-3.4.6/libstdc++-v3/scripts/create_testsuite_files \
>   /export/home/dlsa/code/gcc-3.4.6/libstdc++-v3/testsuite `${PWDCMD-pwd}`
> /bin/ksh:
> /export/home/dlsa/code/gcc-3.4.6/libstdc++-v3/scripts/create_testsuite_files:
> cannot execute

That script hardcodes /bin/sh which on Solaris 9 probably isn't able to
execute that script.  The invocation should be prefixed with $(SHELL)
(initialized from $CONFIG_SHELL) instead.

I'm pretty certain issues like this have been resolved for GCC 4.9/4.8,
so you'd better not bother with GCC 3.4 anymore.

	Rainer

-- 
-----------------------------------------------------------------------------
Rainer Orth, Center for Biotechnology, Bielefeld University



[Index of Archives]     [Linux C Programming]     [Linux Kernel]     [eCos]     [Fedora Development]     [Fedora Announce]     [Autoconf]     [The DWARVES Debugging Tools]     [Yosemite Campsites]     [Yosemite News]     [Linux GCC]

  Powered by Linux