This is the mail archive of the
glibc-bugs@sourceware.org
mailing list for the glibc project.
[Bug build/19403] cross-compiling fails to install
- From: "bernd.edlinger at hotmail dot de" <sourceware-bugzilla at sourceware dot org>
- To: glibc-bugs at sourceware dot org
- Date: Fri, 25 Dec 2015 13:05:30 +0000
- Subject: [Bug build/19403] cross-compiling fails to install
- Auto-submitted: auto-generated
- References: <bug-19403-131 at http dot sourceware dot org/bugzilla/>
https://sourceware.org/bugzilla/show_bug.cgi?id=19403
--- Comment #1 from Bernd Edlinger <bernd.edlinger at hotmail dot de> ---
hmm, the problem starts probably because of this
../glibc-2.22/configure --prefix=/home/ed/gnu/mips-linux-gnu/mips-linux-gnu
--build=mips-linux-gnu --disable-werror CC=mips-linux-gnu-gcc BUILD_CC=gcc
grep cross *
config.log:cross_compiling='no'
config.make:cross-compiling = no
config.status:# must be portable across $(()) and expr.
config.status:S["cross_compiling"]="no"
../glibc-2.22/configure --prefix=/home/ed/gnu/mips-linux-gnu/mips-linux-gnu
--host=x86_64-linux-gnu --build=mips-linux-gnu --disable-werror
CC=mips-linux-gnu-gcc BUILD_CC=gcc
...
checking for forced unwind support... yes
checking for C cleanup handling... yes
running configure fragment for sysdeps/gnu
running configure fragment for sysdeps/x86_64
checking for cpuid.h... no
configure: error: gcc must provide the <cpuid.h> header
../glibc-2.22/configure --prefix=/home/ed/gnu/mips-linux-gnu/mips-linux-gnu
--host=x86_64-linux-gnu --build=mips-linux-gnu --disable-werror
succeds, and
grep cross *
config.log:cross_compiling='yes'
config.make:cross-compiling = yes
config.status:# must be portable across $(()) and expr.
config.status:S["cross_compiling"]="yes"
but the build now uses x86_64-linux-gnu-gcc all the time.
so there is no way how to configure that correctly,
but if BUILD_CC != CC we know, it is a cross build.
--
You are receiving this mail because:
You are on the CC list for the bug.