This is the mail archive of the
libc-alpha@sourceware.org
mailing list for the glibc project.
Build error for tst-printf-bz18872 on arm/aarch64
- From: Adhemerval Zanella <adhemerval dot zanella at linaro dot org>
- To: GNU C Library <libc-alpha at sourceware dot org>
- Date: Fri, 18 Sep 2015 14:50:19 -0300
- Subject: Build error for tst-printf-bz18872 on arm/aarch64
- Authentication-results: sourceware.org; auth=none
I am getting this on an aarch64 machine with GCC 4.8.2 and on armhf with GCC 4.8.4:
gcc /home/adhemerval.zanella/glibc/glibc-git-build-aarch64/stdio-common/tst-printf-bz18872.c -c -std=gnu99 -fgnu89-inline -fno-stack-protector -O2 -Wall -Werror -Wundef -Wwrite-strings -fmerge-all-constants -frounding-math -g -Wstrict-prototypes -U_FORTIFY_SOURCE -I../include -I/home/adhemerval.zanella/glibc/glibc-git-build-aarch64/stdio-common -I/home/adhemerval.zanella/glibc/glibc-git-build-aarch64 -I../sysdeps/unix/sysv/linux/aarch64 -I../sysdeps/aarch64/nptl -I../sysdeps/unix/sysv/linux/generic -I../sysdeps/unix/sysv/linux/wordsize-64 -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 -I../sysdeps/posix -I../sysdeps/aarch64/fpu -I../sysdeps/aarch64 -I../sysdeps/wordsize-64 -I../sysdeps/ieee754/ldbl-128 -I../sysdeps/ieee754/dbl-64/wordsize-64 -I../sysdeps/ieee754/dbl-64 -I../sysdeps/ieee754/flt-32 -I../sysdeps/aarch64/s
oft-fp -I../sysdeps/ieee754 -I../sysdeps/generic -I.. -I../libio -I. -D_LIBC_REENTRANT -include /home/adhemerval.zanella/glibc/glibc-git-build-aarch64/libc-modules.h -DMODULE_NAME=nonlib -include ../include/libc-symbols.h -D_IO_MTSAFE_IO -o /home/adhemerval.zanella/glibc/glibc-git-build-aarch64/stdio-common/tst-printf-bz18872.o -MD -MP -MF /home/adhemerval.zanella/glibc/glibc-git-build-aarch64/stdio-common/tst-printf-bz18872.o.dt -MT /home/adhemerval.zanella/glibc/glibc-git-build-aarch64/stdio-common/tst-printf-bz18872.o
/home/adhemerval.zanella/glibc/glibc-git-build-aarch64/stdio-common/tst-printf-bz18872.c:2018:9: error: #pragma GCC target is not supported for this machine [-Werror=pragmas]
#pragma GCC pop_options
^
cc1: all warnings being treated as errors
make[2]: *** [/home/adhemerval.zanella/glibc/glibc-git-build-aarch64/stdio-common/tst-printf-bz18872.o] Error 1
make[2]: Leaving directory `/home/adhemerval.zanella/glibc/glibc-git/stdio-common'
make[1]: *** [stdio-common/tests] Error 2
make[1]: Leaving directory `/home/adhemerval.zanella/glibc/glibc-git'
make: *** [check] Error 2
I think we will need to make this pragmas optional based on compiler support.