Hi Tom, On Thu, Sep 06, 2018 at 02:19:31PM -0700, Tom Hood wrote: > Here's the output of gcc -v > > Using built-in specs. > Target: sparc-sun-solaris2.8 > Configured with: /path/to/gcc-4.2.0/configure --prefix=<prefixpath> > *--enable-threads=solaris* > Thread model: solaris > gcc version: 4.2.0
So I repaired my Ultra5 and booted it to try this. I had "--enable-threads=posix" and it didn't support "__thread" either. It seems it needs to be built using "--enable-tls" in addition. I wanted to upgrade my gcc using sunfreeware but sunfreeware doesn't exist anymore and is replaced by a paid site :-( I found alternative packages here : http://jupiterrise.com/tgcware/tgcware.solaris.html The package sources are here : https://github.com/tgc/tgcwarev2-for-solaris And you can find pre-built packages here : https://github.com/rdolbeau/tgcwarev2-solaris8-binaries I don't know if they're built with the suitable options or not. Alternatively there's a complete how-to explaining how to rebuild gcc for solaris here : https://lucamerello.wordpress.com/2014/05/31/solaris-10-how-to-build-and-install-gcc-4/ Maybe you can use it with your gcc to attempt this (do not forget to add the appropriate options). Hoping this helps, Willy

