This is the mail archive of the glibc-bugs@sourceware.org mailing list for the glibc project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

[Bug build/19403] cross-compiling fails to install


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.

Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]