Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 413869 - sys-libs/glibc-2.15 / MIPS: build failure plus fix
Summary: sys-libs/glibc-2.15 / MIPS: build failure plus fix
Status: RESOLVED NEEDINFO
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: [OLD] Core system (show other bugs)
Hardware: MIPS Linux
: Normal minor
Assignee: Gentoo Toolchain Maintainers
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2012-04-28 12:58 UTC by Manuel Lauss
Modified: 2012-08-12 04:37 UTC (History)
1 user (show)

See Also:
Package list:
Runtime testing required: ---


Attachments
compressed full build log (glibc215-mips-build.log.bz2,213.54 KB, application/x-bzip2)
2012-05-02 05:10 UTC, Manuel Lauss
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Manuel Lauss 2012-04-28 12:58:50 UTC
glibc-2.15[-r1] fails to build on MIPS and to cross-build for MIPS in the install phase.
The good folks at timesys have a patch which fixes the build both in cross and native environments.

http://repository.timesys.com/buildsources/g/glibc/glibc-2.15/glibc-2.15-mips-syscall-list-abi.patch

Please include it in the glibc-2.15 patch archive.

Reproducible: Always
Comment 1 SpanKY gentoo-dev 2012-05-02 04:38:06 UTC
no actual details as to what is failing.  this change isn't in upstream glibc, so i'm not inclined to pick it up until we have real details.
Comment 2 Manuel Lauss 2012-05-02 05:04:49 UTC
Right, sorry about that:

Install phase, near the end.  (Bugzilla won't let me upload the compressed
build log).

make[2]: Entering directory `/tmp-ram/portage/cross-mipsel-softfloat-linux-gnu/glibc-2.15-r1/work/glibc-2.15/misc'
{ \
 echo '/* Generated at libc build time from kernel syscall list.  */';\
 echo ''; \
 echo '#ifndef _SYSCALL_H'; \
 echo '# error "Never use <bits/syscall.h> directly; include <sys/syscall.h> instead."'; \
 echo '#endif'; \
 echo ''; \
  echo '#include <sgidefs.h>'; \
 echo ''; \
  mipsel-softfloat-linux-gnu-gcc  -mabi=32 -E -MD -MP -MF /tmp-ram/portage/cross-mipsel-softfloat-linux-gnu/glibc-2.15-r1/work/build-default-mipsel-softfloat-linux-gnu-nptl/misc/s
} > /tmp-ram/portage/cross-mipsel-softfloat-linux-gnu/glibc-2.15-r1/work/build-default-mipsel-softfloat-linux-gnu-nptl/misc/syscall-list.h.new
cc1: error: '-march=mips32' is not compatible with the selected ABI
cc1: error: '-march=mips32' is not compatible with the selected ABI
mv -f /tmp-ram/portage/cross-mipsel-softfloat-linux-gnu/glibc-2.15-r1/work/build-default-mipsel-softfloat-linux-gnu-nptl/misc/syscall-list.h.new /tmp-ram/portage/cross-mipsel-soft
sed -e 's@ /tmp-ram/portage/cross-mipsel-softfloat-linux-gnu/glibc-2\.15-r1/work/build-default-mipsel-softfloat-linux-gnu-nptl/@ $(common-objpfx)@g' -e 's@^/tmp-ram/portage/cross-
 /tmp-ram/portage/cross-mipsel-softfloat-linux-gnu/glibc-2.15-r1/work/build-default-mipsel-softfloat-linux-gnu-nptl/misc/syscall-list.d-to32 /tmp-ram/portage/cross-mipsel-softfloa
sed: can't read /tmp-ram/portage/cross-mipsel-softfloat-linux-gnu/glibc-2.15-r1/work/build-default-mipsel-softfloat-linux-gnu-nptl/misc/syscall-list.d-tn32: No such file or directory
sed: can't read /tmp-ram/portage/cross-mipsel-softfloat-linux-gnu/glibc-2.15-r1/work/build-default-mipsel-softfloat-linux-gnu-nptl/misc/syscall-list.d-tn64: No such file or directory


With the patch it also installs and runs natively:
db1200 ~ # /lib/libc.so.6
GNU C Library stable release version 2.15, by Roland McGrath et al.
Copyright (C) 2012 Free Software Foundation, Inc.
This is free software; see the source for copying conditions.
There is NO warranty; not even for MERCHANTABILITY or FITNESS FOR A
PARTICULAR PURPOSE.
Compiled by GNU CC version 4.6.3.
Compiled on a Linux 3.3.0 system on 2012-04-28.
Available extensions:
        C stubs add-on version 2.1.2
        crypt add-on version 2.1 by Michael Glad and others
        Gentoo patchset 10
        GNU Libidn by Simon Josefsson
        Native POSIX Threads Library by Ulrich Drepper et al
        Support for some architectures added on, not maintained in glibc core.
        BIND-8.2.3-T5B
libc ABIs: MIPS_PLT UNIQUE
For bug reporting instructions, please see:
<http://www.gnu.org/software/libc/bugs.html>.
Comment 3 Manuel Lauss 2012-05-02 05:10:48 UTC
Created attachment 310617 [details]
compressed full build log

here's the full build log.
Comment 4 SpanKY gentoo-dev 2012-08-12 03:40:48 UTC
why doesn't your gcc support -march=mips32 ?  my gcc supports it just fine.
Comment 5 Manuel Lauss 2012-08-12 04:37:57 UTC
it does support mips32.  But the whole thing is moot now; I've upgraded to 2.16 when it hit portage.