[Buildroot] Problems compiling Kernel

John Voltz john.voltz at gmail.com
Fri Mar 14 11:32:20 UTC 2008


There is a new set of menuconfig options to change the -O and -g switches to
gcc. Look under build options. There is a menu item named "build packages
with debugging symbols" and another named "gcc optimization level"

 I'm working on a fix to prevent changes here from affecting the kernel
build.

John Voltz


On Fri, Mar 14, 2008 at 3:45 AM, Christof Klaiber <
christof.klaiber at merath-maschinen.de> wrote:

> I'm trying to compile buildroot from svn for an i486 processor.
>
> The compile aborts when compiling the kernel using a simple "make" in
> the buildroot directory with an error of:
>
> arch/x86/lib/lib.a(usercopy_32.o): In function `__copy_to_user_ll':
> usercopy_32.c:(.text+0x27b): undefined reference to `__copy_user_intel'
> arch/x86/lib/lib.a(usercopy_32.o): In function `__copy_from_user_ll':
> usercopy_32.c:(.text+0x307): undefined reference to
> `__copy_user_zeroing_intel'
> arch/x86/lib/lib.a(usercopy_32.o): In function
> `__copy_from_user_ll_nozero':
> usercopy_32.c:(.text+0x393): undefined reference to `__copy_user_intel'
>
> If I'm running the make command by hand in the kernel directory
> (buildroot/project_build_i486/uclibc/linux-2.6.24) everything runs
> smoothly, if I'm disabling the optimisation flag in the CFLAGS_KERNEL of
> the make command:
>
>
> /usr/bin/make -j2 HOSTCC="/usr/bin/gcc" HOSTCFLAGS="" ARCH=i386
> CFLAGS_KERNEL="-O0
> -I/home/cklaiber/buildroot/build_i486/staging_dir/usr/include
> -I/home/cklaiber/buildroot/build_i486/staging_dir/include
> --sysroot=/home/cklaiber/buildroot/build_i486/staging_dir/
> -isysroot /home/cklaiber/buildroot/build_i486/staging_dir -mtune=i486
> -march=i486"
> INSTALL_MOD_PATH=/home/cklaiber/buildroot/project_build_i486/uclibc/root
> CROSS_COMPILE=/home/cklaiber/buildroot/build_i486/staging_dir/usr/bin/i486-linux-uclibc-
> LDFLAGS="-L/home/cklaiber/buildroot/build_i486/staging_dir/lib
> -L/home/cklaiber/buildroot/build_i486/staging_dir/usr/lib
> --sysroot=/home/cklaiber/buildroot/build_i486/staging_dir/"
> LZMA="/home/cklaiber/buildroot/toolchain_build_i486/bin/lzma"  \
>
> -C /home/cklaiber/buildroot/project_build_i486/uclibc/linux-2.6.24
> bzImage
>
> Where can I disable optimisation in the buildroot config-files?
>
> Regards,
>  Christof Klaiber
>
> --
> Christof Klaiber - Merath GmbH
> Peter-Henlein-Straße 21 - 78056 Villingen-Schwenningen - Germany
> Telefon: +49 7720 956187 - Telefax: +49 7720 956188
>
> Sitz: Villingen-Schwenningen
> Registergericht: Freiburg HRB Nr. 601516
> Geschäftsführer: Bernd Merath, Frank Merath
>
> _______________________________________________
> buildroot mailing list
> buildroot at uclibc.org
> http://busybox.net/mailman/listinfo/buildroot
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.busybox.net/pipermail/buildroot/attachments/20080314/89d7fecb/attachment-0002.htm 


More information about the buildroot mailing list