This is the mail archive of the libc-alpha@sourceware.org mailing list for the glibc project.
| Index Nav: | [Date Index] [Subject Index] [Author Index] [Thread Index] | |
|---|---|---|
| Message Nav: | [Date Prev] [Date Next] | [Thread Prev] [Thread Next] |
| Other format: | [Raw text] | |
Hello,
During compilation of libabigail for 32-bit platforms (tried i686 and armv7l)
the following issue happens:
g++ -DHAVE_CONFIG_H -I. -I.. -I/elfutils/usr/include -fvisibility=hidden -I/libabigail-1.0/include -I/libabigail-1.0/tools -fPIC -O2 -g2 -pipe -Wall -Wp,-D_FORTIFY_SOURCE=2 -fexceptions -fstack-protector -Wformat-security -fmessage-length=0 -Wl,--as-needed -feliminate-unused-debug-types --param=ssp-buffer-size=4 -fdiagnostics-color=never -m32 -march=i686 -mtune=i686 -msse4.2 -mfpmath=sse -fasynchronous-unwind-tables -fno-omit-frame-pointer -g -c -o abipkgdiff.o abipkgdiff.cc
In file included from /usr/include/features.h:368:0,
from /usr/lib/gcc/i586-tizen-linux-gnu/6.3.1/include/c++/i586-tizen-linux-gnu/bits/os_defines.h:39,
from /usr/lib/gcc/i586-tizen-linux-gnu/6.3.1/include/c++/i586-tizen-linux-gnu/bits/c++config.h:507,
from /usr/lib/gcc/i586-tizen-linux-gnu/6.3.1/include/c++/iostream:38,
from abipkgdiff.cc:63:
/usr/include/fts.h:196:62: error: expected initializer before 'throw'
int __REDIRECT (fts_set, (FTS *, FTSENT *, int), fts64_set) __THROW;
Investigation shows that for this configuration preprocessor generates line
int fts_set (FTS *, FTSENT *, int) __asm__ ("" "fts64_set") throw ();
which causes the error. But the line
int fts_set (FTS *, FTSENT *, int) throw () __asm__ ("" "fts64_set");
compiles successfully though and assembly from `gcc -S' shows that label is set
to fts64_set. Using __REDIRECT_NTH instead of __REDIRECT worked for me,
generating the right declaration.
I opened a ticket https://sourceware.org/bugzilla/show_bug.cgi?id=21289 but got
no reaction for a week.
Best Regards,
Vyacheslav Barinov
Attachment:
patch
Description: Binary data
| Index Nav: | [Date Index] [Subject Index] [Author Index] [Thread Index] | |
|---|---|---|
| Message Nav: | [Date Prev] [Date Next] | [Thread Prev] [Thread Next] |