Follow @Openwall on Twitter for new release announcements and other news
[<prev] [next>] [day] [month] [year] [list]
Message-ID: <CAK4o1WxT1P=AXjNukK7T+Y9O_14iJqUCkUqrL7xQxuggxa21_w@mail.gmail.com>
Date: Tue, 31 Dec 2013 09:41:30 +0000
From: Justin Cormack <justin@...cialbusservice.com>
To: musl@...ts.openwall.com
Subject: mips gcc wrapper issue

I have an odd issue with the gcc wrapper on my mipsel box
building git head with nothing set except CFLAGS='-march=mips3 -mplt
-Wa,-mfix-loongson2f-nop' when I run the wrapper it has added a flag
-EL which gcc doesnt understand, so it cant compile anything. Looking
at the wrapper I cant see anything odd, really cant work out whats
wrong...

/usr/local/musl/bin/musl-gcc -v
Using built-in specs.
Reading specs from /usr/local/musl/lib/musl-gcc.specs
rename spec cpp_options to old_cpp_options
COLLECT_GCC=gcc
COLLECT_LTO_WRAPPER=/usr/lib/gcc/mipsel-linux-gnu/4.6/lto-wrapper
gcc: error: unrecognized option '-EL'
Target: mipsel-linux-gnu
Configured with: ../src/configure -v --with-pkgversion='Debian
4.6.3-14' --with-bugurl=file:///usr/share/doc/gcc-4.6/README.Bugs
--enable-languages=c,c++,fortran,objc,obj-c++ --prefix=/usr
--program-suffix=-4.6 --enable-shared --enable-linker-build-id
--with-system-zlib --libexecdir=/usr/lib --without-included-gettext
--enable-threads=posix --with-gxx-include-dir=/usr/include/c++/4.6
--libdir=/usr/lib --enable-nls --with-sysroot=/ --enable-clocale=gnu
--enable-libstdcxx-debug --enable-libstdcxx-time=yes
--enable-gnu-unique-object --enable-plugin --with-mips-plt
--with-arch-32=mips2 --with-tune-32=mips32 --enable-targets=all
--with-arch-64=mips3 --with-tune-64=mips64 --enable-checking=release
--build=mipsel-linux-gnu --host=mipsel-linux-gnu
--target=mipsel-linux-gnu
Thread model: posix
gcc version 4.6.3 (Debian 4.6.3-14)

config.mak is:

# This version of config.mak was generated by:
# ./configure
# Any changes made here will be lost if configure is re-run
ARCH = mips
SUBARCH = el
ASMSUBARCH = el
prefix = /usr/local/musl
exec_prefix = $(prefix)
bindir = $(exec_prefix)/bin
libdir = $(prefix)/lib
includedir = $(prefix)/include
syslibdir = /lib
CC = gcc
CFLAGS= -Os -pipe -fomit-frame-pointer -fno-unwind-tables
-fno-asynchronous-unwind-tables -Wa,--noexecstack
-Werror=implicit-function-declaration -Werror=implicit-int
-Werror=pointer-sign -Werror=pointer-arith -fno-stack-protector
-march=mips3 -mplt -Wa,-mfix-loongson2f-nop
CFLAGS_C99FSE = -std=c99 -nostdinc -ffreestanding
-fexcess-precision=standard -frounding-math
CFLAGS_MEMOPS = -fno-tree-loop-distribute-patterns
CPPFLAGS =
LDFLAGS =
CROSS_COMPILE =
LIBCC = -lgcc -lgcc_eh
OPTIMIZE_GLOBS = internal/*.c malloc/*.c string/*.c

uname -a
Linux localhost 3.11.6-gnu #8 PREEMPT Mon Oct 28 23:28:22 GMT 2013
mips64 GNU/Linux

cat /usr/local/musl/lib/musl-gcc.specs
%rename cpp_options old_cpp_options

*cpp_options:
-nostdinc -isystem /usr/local/musl/include -isystem include%s %(old_cpp_options)

*cc1:
%(cc1_cpu) -nostdinc -isystem /usr/local/musl/include -isystem include%s

*link_libgcc:
-L/usr/local/musl/lib -L .%s

*libgcc:
libgcc.a%s %:if-exists(libgcc_eh.a%s)

*startfile:
%{!shared: /usr/local/musl/lib/%{pie:S}crt1.o}
/usr/local/musl/lib/crti.o %{shared|pie:crtbeginS.o%s;:crtbegin.o%s}

*endfile:
%{shared|pie:crtendS.o%s;:crtend.o%s} /usr/local/musl/lib/crtn.o

*link:
-dynamic-linker /lib/ld-musl-mipsel.so.1 -nostdlib %{shared:-shared}
%{static:-static} %{rdynamic:-export-dynamic}

*esp_link:


*esp_options:


*esp_cpp_options:




(its a Debian o32 chroot on a multiarch gentoo box).

Powered by blists - more mailing lists

Confused about mailing lists and their use? Read about mailing lists on Wikipedia and check out these guidelines on proper formatting of your messages.