2008/3/13, Brendan Simon <[EMAIL PROTECTED]>: > Hector Oron wrote: > > 2008/3/13, Brendan Simon <[EMAIL PROTECTED]>: > Ok I will have a look at it. > Are there any other packages that do a similar thing?
Yes, sparc, s390. Arches that have 32 and 64 bits. > Are there any hints, tips or suggestions off the top of your head on how > to approach this? For gcc-4.1 and gcc-4.2, it is a matter of a file that is looking in the wrong place. mv debian/tmp/usr/powerpc-linux-gnu/lib64/lib*c++*.a debian/tmp/usr/lib/gcc/powerpc-linux-gnu/4.2.3/64/. mv: cannot stat `debian/tmp/usr/powerpc-linux-gnu/lib64/lib*c++*.a': No such file or directory When the build happens, we should know where is debian/tmp/usr/powerpc-linux-gnu/lib64/lib*c++*.a For gcc-4.3, ld does not find -lc, that could be a pain to fix /usr/powerpc-linux-gnu/bin/ld: skipping incompatible /usr/powerpc-linux-gnu/lib/libc.so when searching for -lc /usr/powerpc-linux-gnu/bin/ld: skipping incompatible /usr/powerpc-linux-gnu/lib/libc.a when searching for -lc /usr/powerpc-linux-gnu/bin/ld: skipping incompatible /usr/powerpc-linux-gnu/bin/../../lib/libc.so when searching for -lc /usr/powerpc-linux-gnu/bin/ld: skipping incompatible /usr/powerpc-linux-gnu/bin/../../lib/libc.a when searching for -lc /usr/powerpc-linux-gnu/bin/ld: cannot find -lc collect2: ld returned 1 exit status > Would this mean creating completely separate packages (I've never > created a debian package before). No, there is a script I use, buildcross (at SVN). But i recommend you (just for one toolchain) to do it manually. Read README.cross inside gcc-4.X sources, under docs. Or find instrucctions at emdebian.org webpages. If you have a problem, report it here. It is not that I do not want to fix the toolchain, I'd love to fix it, but toolchain builds are very time consuming and I do this on my spare time. And i have also a big TODO list. We are mainly supporting ARM arch. Regards, welcome and luck ! :-) -- Héctor Orón

