[LLVMdev] strange visibility error when compiling llvm-gcc-4.2

Chris Lattner sabre at nondot.org
Wed Feb 6 09:20:24 PST 2008


On Feb 6, 2008, at 5:18 AM, Duncan Sands wrote:

> Hi,
>
>> if /bin/sh ./libtool --mode=compile /s/llvm/obj.gcc42/./gcc/xgcc -B/ 
>> s/llvm/obj.gcc42/./gcc/ -B/usr/local/i686-pc-linux-gnu/bin/ -B/usr/ 
>> local/i686-pc-linux-gnu/lib/ -isystem /usr/local/i686-pc-linux-gnu/ 
>> include -isystem /usr/local/i686-pc-linux-gnu/sys-include - 
>> DHAVE_CONFIG_H -I. -I/s/llvm/svn.gcc42/libgomp -I.  -I/s/llvm/ 
>> svn.gcc42/libgomp/config/linux/x86 -I/s/llvm/svn.gcc42/libgomp/ 
>> config/linux -I/s/llvm/svn.gcc42/libgomp/config/posix -I/s/llvm/ 
>> svn.gcc42/libgomp  -Wall -Werror -ftls-model=initial-exec - 
>> march=i486 -mtune=i686 -Wc,-pthread -O2 -g -O2  -MT lock.lo -MD -MP  
>> -MF ".deps/lock.Tpo" -c -o lock.lo /s/llvm/svn.gcc42/libgomp/config/ 
>> linux/lock.c; \
>>        then mv -f ".deps/lock.Tpo" ".deps/lock.Plo"; else rm -f  
>> ".deps/lock.Tpo"; exit 1; fi
>> yes
>> cc1: warnings being treated as errors
>> /s/llvm/svn.gcc42/libgomp/team.c:341: warning: visibility attribute  
>> not supported in this configuration; ignored
>> /s/llvm/svn.gcc42/libgomp/team.c:341: warning: visibility attribute  
>> not supported in this configuration; ignored
>> checking for tanl... make[5]: *** [team.lo] Error 1
>> ----------------------------------
>>
>> Because of the -Werror, this warning is taken as an error
>> and compilation aborts. I wonder why it warns in the first
>> place, is something broken with xgcc?
>
> I suspect this is due to the recent change by Bill (revision 46747).

Bill's change only affected darwin IIRC.  I don't know that anyone has  
built GOMP on linux yet, and OpenMP hasn't been widely tested at all.   
I'd suggest using --enable-languages=c,c++

-Chris



More information about the llvm-dev mailing list