[csw-maintainers] Revisiting the GCC4 Undefined symbol __sync_fetch_and_add_4 nonsense

Dagobert Michelsen dam at opencsw.org
Wed Oct 13 14:33:27 CEST 2010


Am 13.10.2010 um 14:17 schrieb Maciej (Matchek) Blizinski:
> Wow, this e-mail remained unanswered for a long time.
> No dia 10 de Setembro de 2010 17:56, Geoff Davis  
> <gadavis at opencsw.org> escreveu:
>>  Hi all,
>> I'm battling with a program called NetCDF that can't be compiled  
>> under Sun
>> Studio due to problems with the redistribution of the Fortran to C
>> libraries.
> What's the current status of the Sun Studio build?  I remember Dago
> putting together a Fortran library package.  (And discovering that
> some binaries weren't build for the architecture they were supposed
> to.)
>> I'm attempting to compile under GCC4, but I'm getting a link
>> error in the C++ bindings where it starts looking for a symbol called
>> __sync_fetch_and_add_4. I'm on a Sparc system, so this of course  
>> fails.
>> Roger mentioned that he tweaked the compiler options for GCC4 from - 
>> mcpu=v8
>> to -m32. I tried this but checkpackage whined that all of my  
>> binaries and
>> libraries were compiled for v8+ instead of v8 and wanted them in
>> arch-specific sub directories.
> Is a hardware instruction present in sparcv8+, and not in sparcv8?
> Does anyone know?

BTW, I am having this same exact error on libtag_gcc now :-(

Best regards

   -- Dago

More information about the maintainers mailing list