linux-sh.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* building sh-2.6 git kernel with gcc 4.1.1 Sourgery G++ Lite 4.4-45
@ 2010-03-19  7:56 Fabio Giovagnini
  2010-03-19  8:08 ` Paul Mundt
  0 siblings, 1 reply; 2+ messages in thread
From: Fabio Giovagnini @ 2010-03-19  7:56 UTC (permalink / raw)
  To: linux-sh

  sh-linux-gnu-gcc -Wp,-MD,arch/sh/kernel/.hw_breakpoint.o.d  -nostdinc -
isystem /home/fgiovagnini/CodeSourcery/Sourcery_G++_Lite/bin/../lib/gcc/sh-
linux-gnu/4.4.1/include -I/home/fgiovagnini/sh7203/sh7203-uclinux-
arn/sh-2.6/arch/sh/include -Iinclude  -include include/generated/autoconf.h -
D__KERNEL__ -mb -ffreestanding -Iarch/sh/include/cpu-sh2a -
Iarch/sh/include/cpu-sh2 -Iarch/sh/include/cpu-common -Iarch/sh/include/mach-
rsk -Iarch/sh/include/mach-common -Wall -Wundef -Wstrict-prototypes -Wno-
trigraphs -fno-strict-aliasing -fno-common -Werror-implicit-function-
declaration -Wno-format-security -fno-delete-null-pointer-checks -Os -pipe -mb 
-ffreestanding -Iarch/sh/include/cpu-sh2a -Iarch/sh/include/cpu-sh2 -
Iarch/sh/include/cpu-common -Iarch/sh/include/mach-rsk -Iarch/sh/include/mach-
common -Wframe-larger-than\x1024 -fno-stack-protector -fno-omit-frame-pointer -
fno-optimize-sibling-calls -g -Wdeclaration-after-statement -Wno-pointer-sign 
-fno-strict-overflow -fno-dwarf2-cfi-asm -fconserve-stack -Werror   -
D"KBUILD_STR(s)=#s" -D"KBUILD_BASENAME=KBUILD_STR(hw_breakpoint)"  -
D"KBUILD_MODNAME=KBUILD_STR(hw_breakpoint)"  -c -o 
arch/sh/kernel/hw_breakpoint.o arch/sh/kernel/hw_breakpoint.c
   sh-linux-gnu-ld  -EB   -r -o arch/sh/kernel/built-in.o 
arch/sh/kernel/debugtraps.o arch/sh/kernel/dma-nommu.o 
arch/sh/kernel/dumpstack.o arch/sh/kernel/idle.o arch/sh/kernel/io.o 
arch/sh/kernel/io_generic.o arch/sh/kernel/irq.o arch/sh/kernel/irq_32.o 
arch/sh/kernel/machvec.o arch/sh/kernel/nmi_debug.o arch/sh/kernel/process.o 
arch/sh/kernel/process_32.o arch/sh/kernel/ptrace_32.o arch/sh/kernel/reboot.o 
arch/sh/kernel/return_address.o arch/sh/kernel/setup.o 
arch/sh/kernel/signal_32.o arch/sh/kernel/sys_sh.o arch/sh/kernel/sys_sh32.o 
arch/sh/kernel/syscalls_32.o arch/sh/kernel/time.o arch/sh/kernel/topology.o 
arch/sh/kernel/traps.o arch/sh/kernel/traps_32.o arch/sh/kernel/unwinder.o 
arch/sh/kernel/cpu/built-in.o arch/sh/kernel/cpufreq.o 
arch/sh/kernel/sh_ksyms_32.o arch/sh/kernel/module.o 
arch/sh/kernel/disassemble.o arch/sh/kernel/perf_event.o 
arch/sh/kernel/perf_callchain.o arch/sh/kernel/hw_breakpoint.o 
sh-linux-gnu-ld: internal error: merge of architecture 'sh2a' with 
architecture 'sh4a-nofpu' produced unknown architecture

sh-linux-gnu-ld: arch/sh/kernel/module.o: uses instructions which are 
incompatible with instructions used in previous modules
sh-linux-gnu-ld: failed to merge target specific data of file 
arch/sh/kernel/module.o
make[2]: *** [arch/sh/kernel/built-in.o] Errore 1
make[1]: *** [arch/sh/kernel] Errore 2
make[1]: uscita dalla directory «/home/fgiovagnini/sh7203/sh7203-uclinux-
arn/sh-2.6»




I'm using

fgiovagnini@aurio01:~/sh7203/sh7203-uclinux-arn/build$ ./target/bin/sh-linux-
gnu-gcc -v
Using built-in specs.
Target: sh-linux-gnu
Configured with: /scratch/ams/4.4-sh-linux-gnu-lite/src/gcc-4.4/configure --
build=i686-pc-linux-gnu --host=i686-pc-linux-gnu --target=sh-linux-gnu --
enable-threads --disable-libmudflap --disable-libssp --disable-libstdcxx-pch --
with-cpu=sh4a --with-multilib-list=sh4al,!mb/m4al --with-endian=little,big --
enable-extra-sgxxlite-multilibs --enable-incomplete-targets --with-gnu-as --
with-gnu-ld --with-specs='%{O2:%{!fno-remove-local-statics: -fremove-local-
statics}} %{O*:%{O|O0|O1|O2|Os:;:%{!fno-remove-local-statics: -fremove-local-
statics}}}' --enable-languages=c,c++ --enable-shared --disable-lto --enable-
symvers=gnu --enable-__cxa_atexit --with-pkgversion='Sourcery G++ Lite 4.4-45' 
--with-bugurl=https://support.codesourcery.com/GNUToolchain/ --disable-nls --
prefix=/opt/codesourcery --with-sysroot=/opt/codesourcery/sh-linux-gnu/libc --
with-build-sysroot=/scratch/ams/4.4-sh-linux-gnu-lite/install/sh-linux-
gnu/libc --with-gmp=/scratch/ams/4.4-sh-linux-gnu-lite/obj/host-libs-4.4-45-
sh-linux-gnu-i686-pc-linux-gnu/usr --with-mpfr=/scratch/ams/4.4-sh-linux-gnu-
lite/obj/host-libs-4.4-45-sh-linux-gnu-i686-pc-linux-gnu/usr --with-
ppl=/scratch/ams/4.4-sh-linux-gnu-lite/obj/host-libs-4.4-45-sh-linux-gnu-i686-
pc-linux-gnu/usr --with-host-libstdcxx='-static-libgcc -Wl,-Bstatic,-lstdc++,-
Bdynamic -lm' --with-cloog=/scratch/ams/4.4-sh-linux-gnu-lite/obj/host-
libs-4.4-45-sh-linux-gnu-i686-pc-linux-gnu/usr --disable-libgomp --enable-
poison-system-directories --with-build-time-tools=/scratch/ams/4.4-sh-linux-
gnu-lite/install/sh-linux-gnu/bin --with-build-time-tools=/scratch/ams/4.4-sh-
linux-gnu-lite/install/sh-linux-gnu/bin
Thread model: posix
gcc version 4.4.1 (Sourcery G++ Lite 4.4-45) 

What cound be my problem?

Thanks

-- 
Fabio Giovagnini

Aurion s.r.l.
P.I e C.F.
00885711200
Tel. +39.051.594.78.24
Cell. +39.335.83.50.919

^ permalink raw reply	[flat|nested] 2+ messages in thread

* Re: building sh-2.6 git kernel with gcc 4.1.1 Sourgery G++ Lite 4.4-45
  2010-03-19  7:56 building sh-2.6 git kernel with gcc 4.1.1 Sourgery G++ Lite 4.4-45 Fabio Giovagnini
@ 2010-03-19  8:08 ` Paul Mundt
  0 siblings, 0 replies; 2+ messages in thread
From: Paul Mundt @ 2010-03-19  8:08 UTC (permalink / raw)
  To: linux-sh

On Fri, Mar 19, 2010 at 08:56:30AM +0100, Fabio Giovagnini wrote:
> sh-linux-gnu-ld: arch/sh/kernel/module.o: uses instructions which are 
> incompatible with instructions used in previous modules
> sh-linux-gnu-ld: failed to merge target specific data of file 
> arch/sh/kernel/module.o
> make[2]: *** [arch/sh/kernel/built-in.o] Errore 1
> make[1]: *** [arch/sh/kernel] Errore 2
> make[1]: uscita dalla directory ?/home/fgiovagnini/sh7203/sh7203-uclinux-
> arn/sh-2.6?
> 
[snip]

> What cound be my problem?
> 
The problem is precisely what the error says, you are mixing and matching
sh2a and sh4a objects which just isn't going to work. The compiler you
are using only targets sh4a, which will not handle sh2a (evident by the
fact all of the sh2a tuning flags aren't part of your CFLAGS but do show
up in the LDFLAGS).

If you are using sh2a you will need a compiler that will deal with sh2a,
which you will most likely have to build yourself. The FDPIC compiler
from codesourcery isn't quite ready for general consumption yet, and the
few vendors that have binary sh2/sh2a toolchains are so laughably out of
date it's not even worth bothering with.

^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2010-03-19  8:08 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2010-03-19  7:56 building sh-2.6 git kernel with gcc 4.1.1 Sourgery G++ Lite 4.4-45 Fabio Giovagnini
2010-03-19  8:08 ` Paul Mundt

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).