Port-arm archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
Re: thumb compilation
On Wed, May 07, 2008 at 03:08:00PM +0300, Mikko Rapeli wrote:
> Now only the swp thing for thumb is left. I tried compiling userspace
> with -mthumb-interwork and libc with CPUFLAGS=-mthumb\ -mthumb-interwork
> except atomic_init_testset.* without -mthumb. Linking succeeds but
> init dies with SIGILL ("Process (pid 1) got sig 4").
I'm working around this by per source override of CPUFLAGS (
http://wiki.netbsd.se/Per_file_build_options ):
atomic_init_testset.c is compiled with -mthumb-interwork only.
But now I'm hitting this alot:
/home/mira/src/netbsd/matt-armv6/src/obj/tooldir.Linux-2.6.18-6-686-unknown/bin/arm--netbsdelf-c++
-O2 -Werror -mthumb -mthumb-interwork -fno-implicit-templates
-fdiagnostics-show-location=once -nostdinc++ -cxx-isystem
/home/mira/src/netbsd/matt-armv6/src/obj/destdir.evbarm/usr/include/g++
-I/home/mira/src/netbsd/matt-armv6/src/gnu/dist/gcc4/gcc
-I/home/mira/src/netbsd/matt-armv6/src/gnu/dist/gcc4/include
-I/home/mira/src/netbsd/matt-armv6/src/gnu/dist/gcc4/libstdc++-v3/libsupc++
-I/home/mira/src/netbsd/matt-armv6/src/gnu/lib/libstdc++-v3_4/../libstdc++-v3_4/arch/arm
-I. -DHAVE_STDLIB_H -DHAVE_STRING_H
-I/home/mira/src/netbsd/matt-armv6/src/gnu/dist/gcc4/libstdc++-v3/include
-nostdinc -isystem
/home/mira/src/netbsd/matt-armv6/src/obj/destdir.evbarm/usr/include -c
-fPIC -DPIC
/home/mira/src/netbsd/matt-armv6/src/gnu/dist/gcc4/libstdc++-v3/src/ext-inst.cc
-o ext-inst.so
/home/mira/src/netbsd/matt-armv6/src/gnu/dist/gcc4/libstdc++-v3/include/ext/stdio_filebuf.h:
In constructor '__gnu_cxx::stdio_filebuf<_CharT,
_Traits>::stdio_filebuf(std::__c_file*, std::_Ios_Openmode, size_t)
[with _CharT = wchar_t, _Traits = std::char_traits<wchar_t>]':
/home/mira/src/netbsd/matt-armv6/src/gnu/dist/gcc4/libstdc++-v3/include/ext/stdio_filebuf.h:156:
internal compiler error: in thumb_find_work_register, at
config/arm/arm.c:3348
Is there a fix for this, or should I just compile all of them without -mthumb?
-Mikko
Home |
Main Index |
Thread Index |
Old Index