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

Eric Christopher echristo at apple.com
Wed Feb 6 11:04:35 PST 2008


On Feb 6, 2008, at 10:50 AM, Duncan Sands wrote:

>>> 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++
>>
>> I am seeing the same errors with just building c,c++. (linux x86,  
>> also debian)
>
> This bit of Bill's patch did it:
>
> -#ifdef HAVE_GAS_HIDDEN
> +
> +#if !defined(ENABLE_LLVM) && defined(HAVE_GAS_HIDDEN)
>  fprintf (asm_out_file, "\t.%s\t", type);
>  assemble_name (asm_out_file, name);
>  fprintf (asm_out_file, "\n");
> #else
>  warning (OPT_Wattributes, "visibility attribute not supported "
>           "in this configuration; ignored");
> #endif
> _______________________________________________

Aaah yes. That'd do it.

-eric



More information about the llvm-dev mailing list