Han Hartgers ha scritto: > Dear Aaron, > > I am not really an expert on this but I think that the problem is not > directly Scratchbox2; for some reason is the make process asking for the > usages of the host C-compiler and in that case is always the host libc > is used. (Even when it is too old.) > > > On Thu, Jan 21, 2010 at 2:44 AM, Aaron Brice <aaron.br...@gmail.com > <mailto:aaron.br...@gmail.com>> wrote: > > > make[1]: Entering directory `/scratch/kernel/linux-2.6' > ... > CC init/initramfs.o > CC init/calibrate.o > LD init/built-in.o > HOSTCC usr/gen_init_cpio > > Here is the make process asking for the HOSTCC in that case would > scratchbox2 step back and give access to the normal /usr/bin/gcc of the > host and you end up with the wrong version. > > I see a couple of possible solutions: > 1. Understand why the HOSTCC compiler is needed and fix the make file. > (To be honest I do not understand why the host compiler is needed, I > believe that this is just an error in the Make file or Config file. In > case of a "make menuconfig" is the host compiler needed to make the menu > to show on the host....)
If you need the host compiler (for menuconfig, for instance) try: make HOSTCC=/usr/bin/gcc LD_PRELOAD= menuconfig inside scratchbox2. That's the way I run menuconfig. Sometimes host-gcc in simple mode does not find external libraries because /usr/lib is remapped. I signaled this issue long time ago, but nobody fixed it. To build the kernel, just run make ARCH=<put your arch (e.g., arm) here> inside scratchbox. Hope this helps. Claudio Regards, Claudio _______________________________________________ Scratchbox-users mailing list Scratchbox-users@lists.scratchbox.org http://lists.scratchbox.org/cgi-bin/mailman/listinfo/scratchbox-users