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] New: cross-compiling fails to install


https://sourceware.org/bugzilla/show_bug.cgi?id=19403

            Bug ID: 19403
           Summary: cross-compiling fails to install
           Product: glibc
           Version: 2.22
            Status: NEW
          Severity: normal
          Priority: P2
         Component: build
          Assignee: unassigned at sourceware dot org
          Reporter: bernd.edlinger at hotmail dot de
                CC: carlos at redhat dot com
  Target Milestone: ---

Hi

when testing my fix for gcc bug#69012 I tried to build
a cross glibc for mips-linux-gnu out of nothing, but it
failed to install on my system root, is that expected?

If the install succeeds I want to build a cross-g++,
fortran and ada compiler, because they need working glibc.

I did the following steps

cd ../binutils-build-mips
../binutils-2.25.1/configure --prefix=/home/ed/gnu/mips-linux-gnu
--target=mips-linux-gnu
make && make install

cd ../gcc-build-mips
../gcc-trunk/configure --prefix=/home/ed/gnu/mips-linux-gnu
--target=mips-linux-gnu --enable-languages=c --disable-shared --disable-threads
--disable-libssp --disable-libgomp --disable-libquadmath --disable-libatomic
make && make install

PATH=/home/ed/gnu/mips-linux-gnu/bin:$PATH

cd ../linux
make ARCH=mips CROSS_COMPILE=mips-linux-gnu- distclean
make ARCH=mips CROSS_COMPILE=mips-linux-gnu- defconfig
make ARCH=mips CROSS_COMPILE=mips-linux-gnu-
INSTALL_HDR_PATH=/home/ed/gnu/mips-linux-gnu/mips-linux-gnu headers_install

cd ../glibc-build-mips
../glibc-2.22/configure --prefix=/home/
../binutils-2.25.1/configure --prefix=/home/ed/gnu/mips-linux-gnu
--target=mips-linux-gnu
make && make install

cd ../gcc-build-mips
../gcc-trunk/configure --prefix=/home/ed/gnu/mips-linux-gnu
--target=mips-linux-gnu --enable-languages=c --disable-shared --disable-threads
--disable-libssp --disable-libgomp --disable-libquadmath --disable-libatomic
make && make install

PATH=/home/ed/gnu/mips-linux-gnu/bin:$PATH

cd ../linux
make ARCH=mips CROSS_COMPILE=mips-linux-gnu- distclean
make ARCH=mips CROSS_COMPILE=mips-linux-gnu- defconfig
make ARCH=mips CROSS_COMPILE=mips-linux-gnu-
INSTALL_HDR_PATH=/home/ed/gnu/mips-linux-gnu/mips-linux-gnu headers_install

cd ../glibc-build-mips
../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

make # succeeds if the patch from gcc bug#69012 is installed

make install 
...
if test -r
/home/ed/gnu/mips-linux-gnu/mips-linux-gnu/include/gnu/stubs-o32_hard.h && cmp
-s /home/ed/gnu/glibc-build-mips/stubs.h
/home/ed/gnu/mips-linux-gnu/mips-linux-gnu/include/gnu/stubs-o32_hard.h; \
        then echo 'stubs.h unchanged'; \
        else /usr/bin/install -c -m 644 /home/ed/gnu/glibc-build-mips/stubs.h
/home/ed/gnu/mips-linux-gnu/mips-linux-gnu/include/gnu/stubs-o32_hard.h; fi
stubs.h unchanged
rm -f /home/ed/gnu/glibc-build-mips/stubs.h
/home/ed/gnu/glibc-build-mips/elf/sln
/home/ed/gnu/glibc-build-mips/elf/symlink.list
/home/ed/gnu/glibc-build-mips/elf/sln: 1:
/home/ed/gnu/glibc-build-mips/elf/sln: Syntax error: "(" unexpected
make[1]: *** [install-symbolic-link] Error 2
make[1]: Leaving directory `/home/ed/gnu/glibc-2.22'
make: *** [install] Fehler 2

Note: /home/ed/gnu/glibc-build-mips/elf/sln was built by the cross compiler,
and is therefore not executable on the host system.

-- 
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]