https://gcc.gnu.org/bugzilla/show_bug.cgi?id=124682
Bug ID: 124682
Summary: gcc.dg/torture/builtin-math-6.c fails with mpc 1.4.0
Product: gcc
Version: 16.0
Status: UNCONFIRMED
Severity: normal
Priority: P3
Component: other
Assignee: unassigned at gcc dot gnu.org
Reporter: xry111 at gcc dot gnu.org
Target Milestone: ---
Executing on host: /sources/gcc-15.2.0/build/gcc/xgcc
-B/sources/gcc-15.2.0/build/gcc/
/sources/gcc-15.2.0/gcc/testsuite/gcc.dg/torture/builtin-math-6.c
-fdiagnostics-plain-output -O0 -lm -o builtin-math-6.exe (timeout =
300)
spawn -ignore SIGHUP /sources/gcc-15.2.0/build/gcc/xgcc
-B/sources/gcc-15.2.0/build/gcc/
/sources/gcc-15.2.0/gcc/testsuite/gcc.dg/torture/builtin-math-6.c
-fdiagnostics-plain-output -O0 -lm -o builtin-math-6.exe
/usr/bin/ld: /tmp/ccX4u1aW.o: in function `main':
builtin-math-6.c:(.text+0xf): undefined reference to `link_error'
/usr/bin/ld: builtin-math-6.c:(.text+0x1e): undefined reference to `link_error'
/usr/bin/ld: builtin-math-6.c:(.text+0x2d): undefined reference to `link_error'
/usr/bin/ld: builtin-math-6.c:(.text+0x3c): undefined reference to `link_error'
/usr/bin/ld: builtin-math-6.c:(.text+0x4b): undefined reference to `link_error'
/usr/bin/ld: /tmp/ccX4u1aW.o:builtin-math-6.c:(.text+0x5a): more undefined
references to `link_error' follow
collect2: error: ld returned 1 exit status
Setting LD_PRELOAD=/usr/lib/libmpc.so.3.3.1 makes the issue gone.