This is the mail archive of the
glibc-bugs@sourceware.org
mailing list for the glibc project.
[Bug build/24577] New: 'make install-headers' fails for riscv64-unknown-linux-gnu: sysdeps/riscv/bits/wordsize.h:28:3: error: #error "rv32i-based targets are not supported"
- From: "slyfox at inbox dot ru" <sourceware-bugzilla at sourceware dot org>
- To: glibc-bugs at sourceware dot org
- Date: Sat, 18 May 2019 19:22:32 +0000
- Subject: [Bug build/24577] New: 'make install-headers' fails for riscv64-unknown-linux-gnu: sysdeps/riscv/bits/wordsize.h:28:3: error: #error "rv32i-based targets are not supported"
- Auto-submitted: auto-generated
https://sourceware.org/bugzilla/show_bug.cgi?id=24577
Bug ID: 24577
Summary: 'make install-headers' fails for
riscv64-unknown-linux-gnu:
sysdeps/riscv/bits/wordsize.h:28:3: error: #error
"rv32i-based targets are not supported"
Product: glibc
Version: 2.28
Status: UNCONFIRMED
Severity: normal
Priority: P2
Component: build
Assignee: unassigned at sourceware dot org
Reporter: slyfox at inbox dot ru
CC: carlos at redhat dot com
Target Milestone: ---
Gentoo bootstraps gcc cross-compilers in the following way:
1. build cross-binutils:
2. Install system headers (kernel headers and libc headers):
3. build minimal GCC without libc support (not able to link final
4. build complete libc (gcc will need crt.o files)
5. build full GCC (able to link final binaries for C and C++)
This bug is about build failure on [2.] step. Note: we don't have a
cross-compiler there.
More build failure details are at: https://bugs.gentoo.org/686248
The summary of it is failure to preprocess target files with host compiler:
x86_64-pc-linux-gnu-gcc -E -dM -MD -MP -MF
/tmp/portage/cross-riscv64-unknown-linux-gnu/glibc-2.28-r6/work/build-default-riscv64-unknown-linux-gnu-headers/bits/stdio_lim.dT
-MT
'/tmp/portage/cross-riscv64-unknown-linux-gnu/glibc-2.28-r6/work/build-default-riscv64-unknown-linux-gnu-headers/bits/stdio_lim.h
/tmp/portage/cross-riscv64-unknown-linux-gnu/glibc-2.28-r6/work/build-default-riscv64-unknown-linux-gnu-headers/bits/stdio_lim.d'
\
-I../include
-I/tmp/portage/cross-riscv64-unknown-linux-gnu/glibc-2.28-r6/work/build-default-riscv64-unknown-linux-gnu-headers/stdio-common
-I/tmp/portage/cross-riscv64-unknown-linux-gnu/glibc-2.28-r6/work/build-default-riscv64-unknown-linux-gnu-headers
-I../sysdeps/unix/sysv/linux/riscv/rv64 -I../sysdeps/unix/sysv/linux/riscv
-I../sysdeps/riscv/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/riscv/rv64/rvd
-I../sysdeps/riscv/rv64/rvf -I../sysdeps/riscv/rvf -I../sysdeps/riscv/rvd
-I../sysdeps/riscv/rv64 -I../sysdeps/riscv -I../sysdeps/init_array
-I../sysdeps/ieee754/ldbl-128 -I../sysdeps/ieee754/dbl-64
-I../sysdeps/ieee754/flt-32 -I../sysdeps/wordsize-64 -I../sysdeps/ieee754
-I../sysdeps/generic -I.. -I../libio -I. -nostdinc -isystem
/usr/lib/gcc/x86_64-pc-linux-gnu/9.1.0/include -isystem
/usr/lib/gcc/x86_64-pc-linux-gnu/9.1.0/include-fixed -isystem
/usr/riscv64-unknown-linux-gnu/usr/include -xc - -o
/tmp/portage/cross-riscv64-unknown-linux-gnu/glibc-2.28-r6/work/build-default-riscv64-unknown-linux-gnu-headers/bits/stdio_lim.hT
In file included from ../posix/bits/posix1_lim.h:27,
from <stdin>:1:
../sysdeps/riscv/bits/wordsize.h:22:3: error: #error unsupported ABI
22 | # error unsupported ABI
| ^~~~~
../sysdeps/riscv/bits/wordsize.h:28:3: error: #error "rv32i-based targets are
not supported"
28 | # error "rv32i-based targets are not supported"
| ^~~~~
--
You are receiving this mail because:
You are on the CC list for the bug.