From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: by sourceware.org (Postfix, from userid 48) id 5B7183858C42; Sat, 30 Dec 2023 16:01:50 +0000 (GMT) DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org 5B7183858C42 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gcc.gnu.org; s=default; t=1703952110; bh=3WAdb0cBx9FO4fGZJ6VFJ6jjhYH9vtzY0E48+MQ7TM4=; h=From:To:Subject:Date:From; b=GSx2xpHzWd9gPjGvZ/j6A08uvX+KjuWyb05MEC0Sh75cJiPGRXNhZEODODjVpFXuc BYa53M65PmkR0rtXeVlFH9RQXEXOXHH7DG+Dd+8ACyaAKZrCY3WNdVICGySnfvmbf4 5zEOnePBXf3YtaHYhnIDTI7DC3EUxnPjarBeJLVo= From: "eyalroz1 at gmx dot com" To: gcc-bugs@gcc.gnu.org Subject: =?UTF-8?B?W0J1ZyBib290c3RyYXAvMTEzMTgxXSBOZXc6IFdoZW4gY29tcGls?= =?UTF-8?B?aW5nIHNhbml0aXplcl9wcmludGYuY2MsIGdldHRpbmcgZXJyb3I6IG11bHRp?= =?UTF-8?B?cGxlIGRlZmluaXRpb24gb2Yg4oCYZW51bSBmc2NvbmZpZ19jb21tYW5k4oCZ?= Date: Sat, 30 Dec 2023 16:01:49 +0000 X-Bugzilla-Reason: CC X-Bugzilla-Type: new X-Bugzilla-Watch-Reason: None X-Bugzilla-Product: gcc X-Bugzilla-Component: bootstrap X-Bugzilla-Version: 8.5.0 X-Bugzilla-Keywords: X-Bugzilla-Severity: normal X-Bugzilla-Who: eyalroz1 at gmx dot com X-Bugzilla-Status: UNCONFIRMED X-Bugzilla-Resolution: X-Bugzilla-Priority: P3 X-Bugzilla-Assigned-To: unassigned at gcc dot gnu.org X-Bugzilla-Target-Milestone: --- X-Bugzilla-Flags: X-Bugzilla-Changed-Fields: bug_id short_desc product version bug_status bug_severity priority component assigned_to reporter target_milestone Message-ID: Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable X-Bugzilla-URL: http://gcc.gnu.org/bugzilla/ Auto-Submitted: auto-generated MIME-Version: 1.0 List-Id: https://gcc.gnu.org/bugzilla/show_bug.cgi?id=3D113181 Bug ID: 113181 Summary: When compiling sanitizer_printf.cc, getting error: multiple definition of =E2=80=98enum fsconfig_command= =E2=80=99 Product: gcc Version: 8.5.0 Status: UNCONFIRMED Severity: normal Priority: P3 Component: bootstrap Assignee: unassigned at gcc dot gnu.org Reporter: eyalroz1 at gmx dot com Target Milestone: --- I'm building GCC 8.5.0 on a Devuan GNU/Linux Excalibur machine (~=3D Debian Trixie). I've encountered, and worked around, the libstdc++ mixup bug (bug 87858), so now I have my distribution's static 32-bit libstdc++ installed. Anyway, wit= h a build configured like so: ./configure --disable-bootstrap --enable-languages=3Dc,c++ I get, at some point, the following warning + (unrelated?) error: libtool: compile: /usr/local/src/gcc-8.5.0/host-x86_64-pc-linux-gnu/gcc/xg= cc -shared-libgcc -B/usr/local/src/gcc-8.5.0/host-x86_64-pc-linux-gnu/gcc -nostdinc++ -L/usr/local/src/gcc-8.5.0/x86_64-pc-linux-gnu/libstdc++-v3/src -L/usr/local/src/gcc-8.5.0/x86_64-pc-linux-gnu/libstdc++-v3/src/.libs -L/usr/local/src/gcc-8.5.0/x86_64-pc-linux-gnu/libstdc++-v3/libsupc++/.libs -B/usr/local/x86_64-pc-linux-gnu/bin/ -B/usr/local/x86_64-pc-linux-gnu/lib/ -isystem /usr/local/x86_64-pc-linux-gnu/include -isystem /usr/local/x86_64-pc-linux-gnu/sys-include -D_GNU_SOURCE -D_DEBUG -D__STDC_CONSTANT_MACROS -D__STDC_FORMAT_MACROS -D__STDC_LIMIT_MACROS -DHAVE_RPC_XDR_H=3D0 -DHAVE_TIRPC_RPC_XDR_H=3D0 -I. -I../../.././libsanitizer/sanitizer_common -I.. -I ../../.././libsanitizer/include -isystem ../../.././libsanitizer/include/sy= stem -Wall -W -Wno-unused-parameter -Wwrite-strings -pedantic -Wno-long-long -fP= IC -fno-builtin -fno-exceptions -fno-rtti -fomit-frame-pointer -funwind-tables -fvisibility=3Dhidden -Wno-variadic-macros -I../../libstdc++-v3/include -I../../libstdc++-v3/include/x86_64-pc-linux-gnu -I../../.././libsanitizer/../libstdc++-v3/libsupc++ -std=3Dgnu++11 -DSANITIZER_LIBBACKTRACE -DSANITIZER_CP_DEMANGLE -I ../../.././libsanitizer/../libbacktrace -I ../libbacktrace -I ../../.././libsanitizer/../include -include ../../.././libsanitizer/libbacktrace/backtrace-rename.h -g -O2 -D_GNU_SOURCE -MT sanitizer_printf.lo -MD -MP -MF .deps/sanitizer_printf.Tpo -c ../../.././libsanitizer/sanitizer_common/sanitizer_printf.cc -fPIC -DPIC -o .libs/sanitizer_printf.o In file included from ../../.././libsanitizer/sanitizer_common/sanitizer_platform_limits_posix.cc= :160: /usr/include/linux/cyclades.h:6:2: warning: #warning "Support for features provided by this header has been removed" [-Wcpp] #warning "Support for features provided by this header has been removed" ^~~~~~~ /usr/include/linux/cyclades.h:7:2: warning: #warning "Please consider updat= ing your code" [-Wcpp] #warning "Please consider updating your code" ^~~~~~~ make[6]: Entering directory '/usr/local/src/gcc-8.5.0/x86_64-pc-linux-gnu/32/libitm' make all-recursive In file included from /usr/include/linux/fs.h:19, from ../../.././libsanitizer/sanitizer_common/sanitizer_platform_limits_posix.cc= :68: /usr/include/linux/mount.h:96:6: error: multiple definition of =E2=80=98enum fsconfig_command=E2=80=99 enum fsconfig_command { ^~~~~~~~~~~~~~~~ In file included from ../../.././libsanitizer/sanitizer_common/sanitizer_platform_limits_posix.cc= :55: /usr/local/src/gcc-8.5.0/host-x86_64-pc-linux-gnu/gcc/include-fixed/sys/mou= nt.h:249:6: note: previous definition here enum fsconfig_command ^~~~~~~~~~~~~~~~ In file included from /usr/include/linux/fs.h:19, from ../../.././libsanitizer/sanitizer_common/sanitizer_platform_limits_posix.cc= :68: /usr/include/linux/mount.h:130:8: error: redefinition of =E2=80=98struct mo= unt_attr=E2=80=99 struct mount_attr { ^~~~~~~~~~ make[7]: Entering directory '/usr/local/src/gcc-8.5.0/x86_64-pc-linux-gnu/32/libitm' In file included from ../../.././libsanitizer/sanitizer_common/sanitizer_platform_limits_posix.cc= :55: /usr/local/src/gcc-8.5.0/host-x86_64-pc-linux-gnu/gcc/include-fixed/sys/mou= nt.h:219:8: note: previous definition of =E2=80=98struct mount_attr=E2=80=99 struct mount_attr ^~~~~~~~~~ Making all in testsuite make[8]: Entering directory '/usr/local/src/gcc-8.5.0/x86_64-pc-linux-gnu/32/libitm/testsuite' make[8]: Nothing to be done for 'all'. make[8]: Leaving directory '/usr/local/src/gcc-8.5.0/x86_64-pc-linux-gnu/32/libitm/testsuite' make[8]: Entering directory '/usr/local/src/gcc-8.5.0/x86_64-pc-linux-gnu/32/libitm' make[4]: *** [Makefile:539: sanitizer_platform_limits_posix.lo] Error 1=