[Mesa-dev] [PATCH] Fix symbol 'x86_64_entry_start' is already defined when building with LLVM/clang

Yunlian Jiang yunlian at chromium.org
Fri May 15 16:57:36 PDT 2015

It seems there is a bug filed against llvm one year ago.

And the workaround provided in that bug entry is the same as the patch
Tomasz proposed.

On Fri, May 15, 2015 at 2:57 PM, Emil Velikov <emil.l.velikov at gmail.com> wrote:
> On 15/05/15 20:25, Brian Paul wrote:
>> Has the patch also been tested with gcc?
>> If these are now extern declarations, where's the actual definition of
>> the symbols?
>> The reason patches like this sit around for a while is because few
>> people understand the ramifications or potential side effects and are
>> hesitant to give an R-b.
> There are a couple of extra bits:
>  1) Reportedly it doesn't work with static glapi [1]
>  2) Why does llvm/clang apply the C11 text [2] when compiling mesa ?
> Currently we explicitly set/use -std=c99 :-\
> If someone can clear those up that'll be appreciated.
> Thanks
> Emil
> [1] http://lists.freedesktop.org/archives/mesa-dev/2015-March/079326.html
> [2] https://llvm.org/bugs/show_bug.cgi?id=19778#c3

More information about the mesa-dev mailing list