Public bug reported:
Currently, in the archive, testsuite failures are being ignored.
However, once that is fixed, on ppc64el, the build fails with the
following error:
powerpc64le-linux-gnu-gcc -D_DISTRO_EVADE_TIME_BITS -U_FILE_OFFSET_BITS
-U_TIME_BITS /<<PKGBUILDDIR>>/build-tree/ppc64el-libc/math/test-tgmath3-atan2.c
-c -std=gnu11 -fgnu89-inline -pipe -O2 -g
-fdebug-prefix-map=/<<PKGBUILDDIR>>=. -O3 -fno-tree-vectorize
-Wno-error=stringop-overflow -mcpu=power9 -Wall -Wwrite-strings -Wundef
-Wimplicit-fallthrough -Werror -fmerge-all-constants -frounding-math
-fstack-protector-strong -fno-common -U_FORTIFY_SOURCE -D_FORTIFY_SOURCE=3
-Wstrict-prototypes -Wold-style-definition -fmath-errno -Wno-psabi
-mno-gnu-attribute -fPIE -fno-builtin -isystem
/<<PKGBUILDDIR>>/debian/include <<LOTS_OF_-I_FLAGS>> -nostdinc -isystem
/usr/lib/gcc/powerpc64le-linux-gnu/14/include -isystem
/<<PKGBUILDDIR>>/debian/include -D_LIBC_REENTRANT -include
/<<PKGBUILDDIR>>/build-tree/ppc64el-libc/libc-modules.h -DMODULE_NAME=testsuite
-include ../include/libc-symbols.h -DPIC -DTOP_NAMESPACE=glibc
-I../soft-fp -o
/<<PKGBUILDDIR>>/build-tree/ppc64el-libc/math/test-tgmath3-atan2.o -MD -MP -MF
/<<PKGBUILDDIR>>/build-tree/ppc64el-libc/math/test-tgmath3-atan2.o.dt -MT
/<<PKGBUILDDIR>>/build-tree/ppc64el-libc/math/test-tgmath3-atan2.o
/<<PKGBUILDDIR>>/build-tree/ppc64el-libc/math/test-tgmath3-atan2.c: In function
‘test_atan2_132’:
/<<PKGBUILDDIR>>/build-tree/ppc64el-libc/math/test-tgmath3-atan2.c:1247:66:
error: conflicting types for ‘var_long_double_Float64x’; have ‘_Float64x’
1247 | extern typeof (atan2 (vol_var_long_double, vol_var__Float64x))
var_long_double_Float64x __attribute__ ((unused));
|
^~~~~~~~~~~~~~~~~~~~~~~~
/<<PKGBUILDDIR>>/build-tree/ppc64el-libc/math/test-tgmath3-atan2.c:179:22:
note: previous declaration of ‘var_long_double_Float64x’ with type
‘long_double_Float64x’ {aka ‘long double’}
179 | long_double_Float64x var_long_double_Float64x __attribute__ ((unused));
| ^~~~~~~~~~~~~~~~~~~~~~~~
make[3]: *** [../o-iterator.mk:9:
/<<PKGBUILDDIR>>/build-tree/ppc64el-libc/math/test-tgmath3-atan2.o] Error 1
This test file is generated. I have confirmed that the generated file is
identical regardless of the default ABI used by GCC.
For comparison, a manual build of the same source tree with "mkcd build;
../configure --prefix; make; make check" yields the following gcc
invocation:
gcc /home/ubuntu/glibc-2.41/build/math/test-tgmath3-atan2.c -c
-std=gnu11 -fgnu89-inline -g -O2 -mabi=ibmlongdouble -Wall -Wwrite-
strings -Wundef -Wimplicit-fallthrough -Werror -fmerge-all-constants
-frounding-math -fno-stack-protector -fno-common -U_FORTIFY_SOURCE
-Wstrict-prototypes -Wold-style-definition -fmath-errno -Wno-psabi
-mno-gnu-attribute -fPIE -fno-builtin <LOTS_OF_-I_FLAGS>
-D_LIBC_REENTRANT -include /home/ubuntu/glibc-2.41/build/libc-modules.h
-DMODULE_NAME=testsuite -include ../include/libc-symbols.h -DPIC
-DTOP_NAMESPACE=glibc -I../soft-fp -o
/home/ubuntu/glibc-2.41/build/math/test-tgmath3-atan2.o -MD -MP -MF
/home/ubuntu/glibc-2.41/build/math/test-tgmath3-atan2.o.dt -MT
/home/ubuntu/glibc-2.41/build/math/test-tgmath3-atan2.o
One will note that the default build script adds -mabi=ibmlongdouble
It turns out that the way we pass CFLAGS will cause the build system to
sometimes ignore file-specific flags rather than combining them.
** Affects: glibc (Ubuntu)
Importance: Undecided
Status: New
** Description changed:
Currently, in the archive, testsuite failures are being ignored.
However, once that is fixed, on ppc64el, the build fails with the
following error:
- powerpc64le-linux-gnu-gcc -D_DISTRO_EVADE_TIME_BITS -U_FILE_OFFSET_BITS
-U_TIME_BITS /<<PKGBUILDDIR>>/build-tree/ppc64el-libc/math/test-tgmath3-atan2.c
-c -std=gnu11 -fgnu89-inline -pipe -O2 -g
-fdebug-prefix-map=/<<PKGBUILDDIR>>=. -O3 -fno-tree-vectorize
-Wno-error=stringop-overflow -mcpu=power9 -Wall -Wwrite-strings -Wundef
-Wimplicit-fallthrough -Werror -fmerge-all-constants -frounding-math
-fstack-protector-strong -fno-common -U_FORTIFY_SOURCE -D_FORTIFY_SOURCE=3
-Wstrict-prototypes -Wold-style-definition -fmath-errno -Wno-psabi
-mno-gnu-attribute -fPIE -fno-builtin -isystem
/<<PKGBUILDDIR>>/debian/include -I../include
-I/<<PKGBUILDDIR>>/build-tree/ppc64el-libc/math
-I/<<PKGBUILDDIR>>/build-tree/ppc64el-libc
-I../sysdeps/unix/sysv/linux/powerpc/powerpc64/le/fpu
-I../sysdeps/unix/sysv/linux/powerpc/powerpc64/fpu
-I../sysdeps/unix/sysv/linux/powerpc/powerpc64/le
-I../sysdeps/unix/sysv/linux/powerpc/powerpc64
-I../sysdeps/unix/sysv/linux/wordsize-64 -I../sysdeps/unix/sysv/linux/powerpc
-I../sysdeps/powerpc/nptl -I../sysdeps/unix/sysv/linux/include
-I../sysdeps/unix/sysv/linux -I../sysdeps/nptl -I../sysdeps/pthread
-I../sysdeps/gnu -I../sysdeps/unix/inet -I../sysdeps/unix/sysv
-I../sysdeps/unix/powerpc -I../sysdeps/unix -I../sysdeps/posix
-I../sysdeps/powerpc/powerpc64/le/power9/fpu/multiarch
-I../sysdeps/powerpc/powerpc64/le/power8/fpu/multiarch
-I../sysdeps/powerpc/powerpc64/le/power7/fpu/multiarch
-I../sysdeps/powerpc/powerpc64/le/fpu/multiarch
-I../sysdeps/powerpc/powerpc64/le/power9/fpu
-I../sysdeps/powerpc/powerpc64/le/power8/fpu
-I../sysdeps/powerpc/powerpc64/le/power7/fpu
-I../sysdeps/powerpc/powerpc64/le/fpu -I../sysdeps/powerpc/powerpc64/fpu
-I../sysdeps/powerpc/powerpc64/le/power9/multiarch
-I../sysdeps/powerpc/powerpc64/le/power8/multiarch
-I../sysdeps/powerpc/powerpc64/le/power7/multiarch
-I../sysdeps/powerpc/powerpc64/le/multiarch
-I../sysdeps/powerpc/powerpc64/multiarch
-I../sysdeps/powerpc/powerpc64/le/power9
-I../sysdeps/powerpc/powerpc64/le/power8 -I../sysdeps/powerpc/powerpc64/power8
-I../sysdeps/powerpc/powerpc64/le/power7
-I../sysdeps/powerpc/powerpc64/power7 -I../sysdeps/powerpc/powerpc64/power6
-I../sysdeps/powerpc/powerpc64/power4 -I../sysdeps/powerpc/power4
-I../sysdeps/powerpc/powerpc64/le -I../sysdeps/powerpc/powerpc64
-I../sysdeps/wordsize-64 -I../sysdeps/powerpc/fpu -I../sysdeps/powerpc
-I../sysdeps/ieee754/ldbl-128ibm-compat
-I../sysdeps/ieee754/ldbl-128ibm/include -I../sysdeps/ieee754/ldbl-128ibm
-I../sysdeps/ieee754/ldbl-opt -I../sysdeps/ieee754/dbl-64
-I../sysdeps/ieee754/flt-32 -I../sysdeps/ieee754/float128
-I../sysdeps/ieee754 -I../sysdeps/generic -I.. -I../libio -I. -nostdinc
-isystem /usr/lib/gcc/powerpc64le-linux-gnu/14/include -isystem
/<<PKGBUILDDIR>>/debian/include -D_LIBC_REENTRANT -include
/<<PKGBUILDDIR>>/build-tree/ppc64el-libc/libc-modules.h -DMODULE_NAME=testsuite
-include ../include/libc-symbols.h -DPIC -DTOP_NAMESPACE=glibc
-I../soft-fp -o
/<<PKGBUILDDIR>>/build-tree/ppc64el-libc/math/test-tgmath3-atan2.o -MD -MP -MF
/<<PKGBUILDDIR>>/build-tree/ppc64el-libc/math/test-tgmath3-atan2.o.dt -MT
/<<PKGBUILDDIR>>/build-tree/ppc64el-libc/math/test-tgmath3-atan2.o
+ powerpc64le-linux-gnu-gcc -D_DISTRO_EVADE_TIME_BITS -U_FILE_OFFSET_BITS
-U_TIME_BITS /<<PKGBUILDDIR>>/build-tree/ppc64el-libc/math/test-tgmath3-atan2.c
-c -std=gnu11 -fgnu89-inline -pipe -O2 -g
-fdebug-prefix-map=/<<PKGBUILDDIR>>=. -O3 -fno-tree-vectorize
-Wno-error=stringop-overflow -mcpu=power9 -Wall -Wwrite-strings -Wundef
-Wimplicit-fallthrough -Werror -fmerge-all-constants -frounding-math
-fstack-protector-strong -fno-common -U_FORTIFY_SOURCE -D_FORTIFY_SOURCE=3
-Wstrict-prototypes -Wold-style-definition -fmath-errno -Wno-psabi
-mno-gnu-attribute -fPIE -fno-builtin -isystem
/<<PKGBUILDDIR>>/debian/include <<LOTS_OF_-I_FLAGS>> -nostdinc -isystem
/usr/lib/gcc/powerpc64le-linux-gnu/14/include -isystem
/<<PKGBUILDDIR>>/debian/include -D_LIBC_REENTRANT -include
/<<PKGBUILDDIR>>/build-tree/ppc64el-libc/libc-modules.h -DMODULE_NAME=testsuite
-include ../include/libc-symbols.h -DPIC -DTOP_NAMESPACE=glibc
-I../soft-fp -o
/<<PKGBUILDDIR>>/build-tree/ppc64el-libc/math/test-tgmath3-atan2.o -MD -MP -MF
/<<PKGBUILDDIR>>/build-tree/ppc64el-libc/math/test-tgmath3-atan2.o.dt -MT
/<<PKGBUILDDIR>>/build-tree/ppc64el-libc/math/test-tgmath3-atan2.o
/<<PKGBUILDDIR>>/build-tree/ppc64el-libc/math/test-tgmath3-atan2.c: In
function ‘test_atan2_132’:
/<<PKGBUILDDIR>>/build-tree/ppc64el-libc/math/test-tgmath3-atan2.c:1247:66:
error: conflicting types for ‘var_long_double_Float64x’; have ‘_Float64x’
- 1247 | extern typeof (atan2 (vol_var_long_double, vol_var__Float64x))
var_long_double_Float64x __attribute__ ((unused));
- |
^~~~~~~~~~~~~~~~~~~~~~~~
+ 1247 | extern typeof (atan2 (vol_var_long_double, vol_var__Float64x))
var_long_double_Float64x __attribute__ ((unused));
+ |
^~~~~~~~~~~~~~~~~~~~~~~~
/<<PKGBUILDDIR>>/build-tree/ppc64el-libc/math/test-tgmath3-atan2.c:179:22:
note: previous declaration of ‘var_long_double_Float64x’ with type
‘long_double_Float64x’ {aka ‘long double’}
- 179 | long_double_Float64x var_long_double_Float64x __attribute__
((unused));
- | ^~~~~~~~~~~~~~~~~~~~~~~~
+ 179 | long_double_Float64x var_long_double_Float64x __attribute__
((unused));
+ | ^~~~~~~~~~~~~~~~~~~~~~~~
make[3]: *** [../o-iterator.mk:9:
/<<PKGBUILDDIR>>/build-tree/ppc64el-libc/math/test-tgmath3-atan2.o] Error 1
This test file is generated. I have confirmed that the generated file is
identical regardless of the default ABI used by GCC.
For comparison, a manual build of the same source tree with "mkcd build;
../configure --prefix; make; make check" yields the following gcc
invocation:
gcc /home/ubuntu/glibc-2.41/build/math/test-tgmath3-atan2.c -c
-std=gnu11 -fgnu89-inline -g -O2 -mabi=ibmlongdouble -Wall -Wwrite-
strings -Wundef -Wimplicit-fallthrough -Werror -fmerge-all-constants
-frounding-math -fno-stack-protector -fno-common -U_FORTIFY_SOURCE
-Wstrict-prototypes -Wold-style-definition -fmath-errno -Wno-psabi
- -mno-gnu-attribute -fPIE -fno-builtin -I../include
- -I/home/ubuntu/glibc-2.41/build/math -I/home/ubuntu/glibc-2.41/build
- -I../sysdeps/unix/sysv/linux/powerpc/powerpc64/le/fpu
- -I../sysdeps/unix/sysv/linux/powerpc/powerpc64/fpu
- -I../sysdeps/unix/sysv/linux/powerpc/powerpc64/le
- -I../sysdeps/unix/sysv/linux/powerpc/powerpc64
- -I../sysdeps/unix/sysv/linux/wordsize-64
- -I../sysdeps/unix/sysv/linux/powerpc -I../sysdeps/powerpc/nptl
- -I../sysdeps/unix/sysv/linux/include -I../sysdeps/unix/sysv/linux
- -I../sysdeps/nptl -I../sysdeps/pthread -I../sysdeps/gnu
- -I../sysdeps/unix/inet -I../sysdeps/unix/sysv
- -I../sysdeps/unix/powerpc -I../sysdeps/unix -I../sysdeps/posix
- -I../sysdeps/powerpc/powerpc64/le/power9/fpu/multiarch
- -I../sysdeps/powerpc/powerpc64/le/power8/fpu/multiarch
- -I../sysdeps/powerpc/powerpc64/le/power7/fpu/multiarch
- -I../sysdeps/powerpc/powerpc64/le/fpu/multiarch
- -I../sysdeps/powerpc/powerpc64/le/power9/fpu
- -I../sysdeps/powerpc/powerpc64/le/power8/fpu
- -I../sysdeps/powerpc/powerpc64/le/power7/fpu
- -I../sysdeps/powerpc/powerpc64/le/fpu
- -I../sysdeps/powerpc/powerpc64/fpu
- -I../sysdeps/powerpc/powerpc64/le/power9/multiarch
- -I../sysdeps/powerpc/powerpc64/le/power8/multiarch
- -I../sysdeps/powerpc/powerpc64/le/power7/multiarch
- -I../sysdeps/powerpc/powerpc64/le/multiarch
- -I../sysdeps/powerpc/powerpc64/multiarch
- -I../sysdeps/powerpc/powerpc64/le/power9
- -I../sysdeps/powerpc/powerpc64/le/power8
- -I../sysdeps/powerpc/powerpc64/power8
- -I../sysdeps/powerpc/powerpc64/le/power7
- -I../sysdeps/powerpc/powerpc64/power7
- -I../sysdeps/powerpc/powerpc64/power6
- -I../sysdeps/powerpc/powerpc64/power4 -I../sysdeps/powerpc/power4
- -I../sysdeps/powerpc/powerpc64/le -I../sysdeps/powerpc/powerpc64
- -I../sysdeps/wordsize-64 -I../sysdeps/powerpc/fpu -I../sysdeps/powerpc
- -I../sysdeps/ieee754/ldbl-128ibm-compat
- -I../sysdeps/ieee754/ldbl-128ibm/include
- -I../sysdeps/ieee754/ldbl-128ibm -I../sysdeps/ieee754/ldbl-opt
- -I../sysdeps/ieee754/dbl-64 -I../sysdeps/ieee754/flt-32
- -I../sysdeps/ieee754/float128 -I../sysdeps/ieee754
- -I../sysdeps/generic -I.. -I../libio -I. -D_LIBC_REENTRANT -include
- /home/ubuntu/glibc-2.41/build/libc-modules.h -DMODULE_NAME=testsuite
- -include ../include/libc-symbols.h -DPIC -DTOP_NAMESPACE=glibc
- -I../soft-fp -o /home/ubuntu/glibc-2.41/build/math/test-tgmath3-atan2.o
- -MD -MP -MF /home/ubuntu/glibc-2.41/build/math/test-tgmath3-atan2.o.dt
- -MT /home/ubuntu/glibc-2.41/build/math/test-tgmath3-atan2.o
+ -mno-gnu-attribute -fPIE -fno-builtin <LOTS_OF_-I_FLAGS>
+ -D_LIBC_REENTRANT -include /home/ubuntu/glibc-2.41/build/libc-modules.h
+ -DMODULE_NAME=testsuite -include ../include/libc-symbols.h -DPIC
+ -DTOP_NAMESPACE=glibc -I../soft-fp -o
+ /home/ubuntu/glibc-2.41/build/math/test-tgmath3-atan2.o -MD -MP -MF
+ /home/ubuntu/glibc-2.41/build/math/test-tgmath3-atan2.o.dt -MT
+ /home/ubuntu/glibc-2.41/build/math/test-tgmath3-atan2.o
One will note that the default build script adds -mabi=ibmlongdouble
It turns out that the way we pass CFLAGS will cause the build system to
sometimes ignore file-specific flags rather than combining them.
--
You received this bug notification because you are a member of Ubuntu
Bugs, which is subscribed to Ubuntu.
https://bugs.launchpad.net/bugs/2115734
Title:
glibc: tests FTBFS on ppc64el with new float128 ABI
To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/glibc/+bug/2115734/+subscriptions
--
ubuntu-bugs mailing list
[email protected]
https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs