Bug 234671 - clang faults while compiling new GlusterFS source code
Summary: clang faults while compiling new GlusterFS source code
Status: Open
Alias: None
Product: Base System
Classification: Unclassified
Component: bin (show other bugs)
Version: 12.0-RELEASE
Hardware: amd64 Any
: --- Affects Only Me
Assignee: Dimitry Andric
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2019-01-06 21:02 UTC by andrew
Modified: 2019-01-13 22:34 UTC (History)
2 users (show)

See Also:


Attachments
Compiler diagnostic data: preprocessed source (223.46 KB, application/x-xz)
2019-01-06 21:04 UTC, andrew
no flags Details
Compiler diagnostic data: run script (4.21 KB, application/x-shellscript)
2019-01-06 21:04 UTC, andrew
no flags Details

Note You need to log in before you can comment on or make changes to this bug.
Description andrew 2019-01-06 21:02:35 UTC
Compiler fails with 'fatal error: error in backend: A @@ version cannot be undefined'.
Comment 1 andrew 2019-01-06 21:04:02 UTC
Created attachment 200846 [details]
Compiler diagnostic data: preprocessed source
Comment 2 andrew 2019-01-06 21:04:32 UTC
Created attachment 200847 [details]
Compiler diagnostic data: run script
Comment 3 Dimitry Andric freebsd_committer 2019-01-13 22:34:45 UTC
I can reproduce this, and it looks almost the same as <https://bugs.llvm.org/show_bug.cgi?id=39270>.

Mostly minimized:

/* clang -cc1 -triple x86_64-- -emit-obj glfs-min.c */

#define STR(str) #str

#define GFAPI_SYMVER_PRIVATE_DEFAULT(fn, ver) \
        asm(".symver priv_"STR(fn)", "STR(fn)"@@GFAPI_PRIVATE_"STR(ver))

GFAPI_SYMVER_PRIVATE_DEFAULT(foo, 1.0);

Minimized even more:

/* clang -cc1 -triple x86_64-- -emit-obj glfs-min.c */
asm(".symver a,b@@c");

The upstream bug report is sitting there since 2018-10-13 without any activity, I'll see if I can poke somebody.