[Bug build/26299] New: glibc-2.31 build fails cross-compiling on armv7l for aarch64
john.frankish at outlook dot com
sourceware-bugzilla@sourceware.org
Sat Jul 25 10:34:13 GMT 2020
https://sourceware.org/bugzilla/show_bug.cgi?id=26299
Bug ID: 26299
Summary: glibc-2.31 build fails cross-compiling on armv7l for
aarch64
Product: glibc
Version: 2.31
Status: UNCONFIRMED
Severity: normal
Priority: P2
Component: build
Assignee: unassigned at sourceware dot org
Reporter: john.frankish at outlook dot com
CC: carlos at redhat dot com
Target Milestone: ---
Building a cross-compiler on an RPi4 running 32-bit
armv7l-unknown-linux-gnueabihf trying to build for 64-bit aarch64.
Using binutils-2.34, gcc-10.1.0 linux-5.4.51 headers and glibc2.31
binutils and gcc build for aarch64, but the glibc build fails with:
../configure --prefix=/usr --host=aarch64-tc-linux-gnu
--build=$(../scripts/config.guess) --enable-kernel=4.9.22
--with-headers=/mnt/tc/usr/include libc_cv_slibdir=/lib
...
checking build system type... armv7l-unknown-linux-gnueabihf
checking host system type... aarch64-tc-linux-gnu
checking for aarch64-tc-linux-gnu-gcc... aarch64-tc-linux-gnu-gcc
...
make
...
python3 -B ../scripts/gen-as-const.py --cc="aarch64-tc-linux-gnu-gcc -std=gnu11
-fgnu89-inline -g -O2 -Wall -Wwrite-strings -Wundef -Werror
-fmerge-all-constants -frounding-math -fno-stack-protector -Wstrict-prototypes
-Wold-style-definition -fmath-errno -ftls-model=initial-exec
-I../include -I/mnt/tc/sources/glibc-2.31/build/stdlib
-I/mnt/tc/sources/glibc-2.31/build -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/multiarch -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/ieee754
-I../sysdeps/generic -I.. -I../libio -I. -nostdinc -isystem
/mnt/tc/tools/lib/gcc/aarch64-tc-linux-gnu/10.1.0/include -isystem
/mnt/tc/tools/lib/gcc/aarch64-tc-linux-gnu/10.1.0/include-fixed -isystem
/mnt/tc/usr/include -D_LIBC_REENTRANT -include
/mnt/tc/sources/glibc-2.31/build/libc-modules.h -DMODULE_NAME=libc -include
../include/libc-symbols.h -DTOP_NAMESPACE=glibc -DGEN_AS_CONST_HEADERS \
-MD -MP -MF /mnt/tc/sources/glibc-2.31/build/ucontext_i.h.dT
\
-MT '/mnt/tc/sources/glibc-2.31/build/ucontext_i.h.d
/mnt/tc/sources/glibc-2.31/build/ucontext_i.h'" \
../sysdeps/unix/sysv/linux/aarch64/ucontext_i.sym >
/mnt/tc/sources/glibc-2.31/build/ucontext_i.hT
<stdin>: In function 'dummy':
<stdin>:16:89: error: invalid application of 'sizeof' to incomplete type
'struct fpsimd_context'
In file included from <stdin>:3:
<stdin>:34:33: error: invalid use of undefined type 'struct fpsimd_context'
<stdin>:35:67: note: in expansion of macro 'fpsimd_context'
<stdin>:34:33: error: invalid use of undefined type 'struct fpsimd_context'
<stdin>:36:65: note: in expansion of macro 'fpsimd_context'
<stdin>:34:33: error: invalid use of undefined type 'struct fpsimd_context'
<stdin>:37:67: note: in expansion of macro 'fpsimd_context'
<stdin>:34:33: error: invalid use of undefined type 'struct fpsimd_context'
<stdin>:38:67: note: in expansion of macro 'fpsimd_context'
<stdin>:39:30: error: invalid use of undefined type 'struct _aarch64_ctx'
<stdin>:40:68: note: in expansion of macro 'aarch64_ctx'
<stdin>:39:30: error: invalid use of undefined type 'struct _aarch64_ctx'
<stdin>:41:67: note: in expansion of macro 'aarch64_ctx'
<stdin>:42:74: error: 'FPSIMD_MAGIC' undeclared (first use in this function)
<stdin>:42:74: note: each undeclared identifier is reported only once for each
function it appears in
--
You are receiving this mail because:
You are on the CC list for the bug.
More information about the Glibc-bugs
mailing list