From: Manuel L. <ma...@ro...> - 2007-07-07 09:34:22
|
Manuel Lauss wrote: > Mike Frysinger wrote: >> On Saturday 07 July 2007, Manuel Lauss wrote: >>> Paul Mundt wrote: >>>> On Mon, Mar 19, 2007 at 09:27:57AM +0100, Manuel Lauss wrote: >>>>> Also, these exports need to be removed from sh_ksyms.c, they give >>>>> "undefined reference" errors: >>>>> __sdivsi3_i4i __udiv_qrnnd_16 __udivsi3_i4i >>>> Ok, so removing these seems to be have created fallout all over the >>>> place. Apparently it's just your GCC4 that seems to have problems with >>>> these symbols, whereas the other ones really seem to want them. It looks >>> Oh, sorry, that wasn't my intention at all. >>> >>>> like we're going to have to narrow it down to the exact release in which >>>> they vanished (I would guess 4.1.2, since 4.1.1 still wants them). >>>> >>>> akpm also suggests he has a 3.4.5 toolchain that needs these, which is >>>> also very unusual. Do you have a tarball of your compiler somewhere so >>>> it's easier to debug? >>> Prompted by your mail I reverted commit >>> 9c5b406b9a857a67caf778f096bfc7f4e6b0401a and GCC builds the kernel >>> just fine now; the only difference is that I've upgraded from 4.1.1 to >>> 4.1.2 in the meantime. > > That was bogus; I was compiling the wrong local tree again. > >>> Compiler is made with Gentoo's "crossdev" tool, which AFAICT is vanilla >>> 4.1.2 with a few bugfix patches applied (+ PR29599 fix for me) >>> (see http://gentoo.inode.at/distfiles/gcc-4.1.2-patches-1.0.1.tar.bz2) >>> >>> I can rebuild gcc-4.1.1 which failed for me if you like. >> ruh roh ... someone said Gentoo ;) >> >> default gcc-4.x in Gentoo enables multilib for SuperH targets akin to gcc-3.x >> (since vanilla gcc-4.x does not include nofpu support by default) >> >> to doubly verify, you can emerge gcc with USE=vanilla ... that'll disable the >> Gentoo patchset ... > > Did that, it still complains: > arch/sh/kernel/built-in.o:(__ksymtab+0xa8): undefined reference to `__sdivsi3_i4i' > arch/sh/kernel/built-in.o:(__ksymtab+0xb0): undefined reference to `__udiv_qrnnd_16' > arch/sh/kernel/built-in.o:(__ksymtab+0xb8): undefined reference to `__udivsi3_i4i' > > ...and the "-m4-nofpu" option is unsupported again ;-) > > I'm going to try with vanilla binutils next... and that didn't change anything either. So the question is what gcc version and patches is everyone else using where the above mentioned symbols ARE exported? Thanks, Manuel Lauss |