[uClinux-dev] compiling uClinux stop in "make user_only"

David McCullough davidm at snapgear.com
Mon Oct 3 23:23:47 EDT 2005


Jivin niuxiangping716 at 163.com lays it down ...
> David McCullough
> 
>    Thank you for replying to me ,when i compiled uClinux in the steps of make dep ,make clean ,make lib_only ,make user_only .the all stop in step of making user_only .
> 
>    I compiled according to you replying ,    make dep  ,make .it is display  as
> 
>  arm-elf-ld -p -X -T arch/armnommu/vmlinux.lds arch/armnommu/kernel/head-armv.o arch/armnommu/kernel/init_task.o init/main.o init/version.o init/do_mounts.o \
>         --start-group \
>         arch/armnommu/kernel/kernel.o arch/armnommu/mm/mm.o arch/armnommu/mach-snds100/snds100.o kernel/kernel.o mmnommu/mmnommu.o fs/fs.o ipc/ipc.o \
>          drivers/char/char.o drivers/serial/serial.o drivers/block/block.o drivers/misc/misc.o drivers/net/net.o drivers/mtd/mtdlink.o drivers/media/media.o \
>         net/network.o \
>         arch/armnommu/nwfpe/math-emu.o arch/armnommu/lib/lib.a /root/uClinux-dist2004/linux-2.4.x/lib/lib.a /usr/local/lib/gcc-lib/arm-elf/2.95.3/libgcc.a \
>         --end-group \
>         -o linux
> drivers/block/block.o: In function `blk_dev_init':
> /root/uClinux-dist2004/linux-2.4.x/drivers/block/ll_rw_blk.c:1513: undefined reference to `romfs_data'

This is because you target build expects to build a filesystem image
into the kernel,  so you need to build the libds/apps before the kernel,
however,  for some things you need the kernel build (or at least
configured) before hand.

My preference is for targets to not build the image into the kernel,
but add it in one of the many other possible ways,  but unless you want
to change that you are stuck with what you have.

Now you have the tree in this state try:

	make lib_only
	make user_only
	make romfs
	make modules modules_install
	make image (ignore any errors)
	make linux
	make image

but I con't be sure that will help.  Whoever created the target you are
building for is the best person to ask,

Cheers,
Davidm

> >Jivin niuxiangping716 at 163.com lays it down ...
> >>   Hi all,
> >> 
> >> I am using uClinux-dist-20041215 on cpu=s3c44b0,
> >>
> >> I modify the menuconfig firstly ,when i compile in step on makeing user_only,it display as following
> >> 
> >> arm-elf-gcc  -O2 -g -fomit-frame-pointer   -Dlinux -D__linux__ -Dunix -D__uClinux__ -DEMBED -nostdinc -I/root/uClinux-dist2004/include -I/root/uClinux-dist2004/include/include -fno-builtin -nostartfiles -I/root/uClinux-dist2004/user/busybox/include -I/root/uClinux-dist2004/user/busybox/include -I -D_BSD_SOURCE -D__USE_BSD -Wall -Wstrict-prototypes -Wshadow -Os -fstrict-aliasing -fomit-frame-pointer -D_GNU_SOURCE -DNDEBUG     -c -o /root/uClinux-dist2004/user/busybox/init/init.o /root/uClinux-dist2004/user/busybox/init/init.c
> >> /root/uClinux-dist2004/user/busybox/init/init.c:46: sys/reboot.h: No such file or directory
> >> /root/uClinux-dist2004/user/busybox/init/init.c:59: warning: `fork' redefined
> >> /root/uClinux-dist2004/include/unistd.h:108: warning: this is the location of the previous definition
> >> make[3]: *** [/root/uClinux-dist2004/user/busybox/init/init.o] Error 1
> >> make[3]: Leaving directory `/root/uClinux-dist2004/user/busybox'
> >> make[2]: *** [all] Error 2
> >> make[2]: Leaving directory `/root/uClinux-dist2004/user/busybox'
> >> make[1]: *** [all] Error 2
> >> make[1]: Leaving directory `/root/uClinux-dist2004/user'
> >> make: *** [user_only] Error 2
> >> [root at localhost uClinux-dist]#
> >> 
> >>
> >> what can i do in the following ?
> >
> >Do not run "make user_only".
> >
> >You should run
> >
> >       make dep
> >       make
> >
> >and see what happens. When you run "make user_only" none of the
> >libraries or kernel have been setup or compiled,  and all this needs to
> >be done before you can build user apps,
> >
> >Cheers,
> >Davidm
> >
> >-- 
> >David McCullough, davidm at cyberguard.com.au, Custom Embedded Solutions + Security
> >Ph:+61 734352815 Fx:+61 738913630 http://www.uCdot.org http://www.cyberguard.com
> >_______________________________________________
> >uClinux-dev mailing list
> >uClinux-dev at uclinux.org
> >http://mailman.uclinux.org/mailman/listinfo/uclinux-dev
> >This message was resent by uclinux-dev at uclinux.org
> >
> 
> -----------------------------------------
> 
>   ?? ????
>              niuxiangping
>              niuxiangping716 at 163.com

> _______________________________________________
> uClinux-dev mailing list
> uClinux-dev at uclinux.org
> http://mailman.uclinux.org/mailman/listinfo/uclinux-dev
> This message was resent by uclinux-dev at uclinux.org

-- 
David McCullough, davidm at cyberguard.com.au, Custom Embedded Solutions + Security
Ph:+61 734352815 Fx:+61 738913630 http://www.uCdot.org http://www.cyberguard.com



More information about the uClinux-dev mailing list