Altera_Forum
Honored Contributor
14 years agouClinux Busybox build error
Greetings,
I have been working to setup a Nios2 uClinux-dist build environment for the past couple of days. I started with the uClinux-dist-20101026.tar.bz2 download from the wiki pages. I then checked out and updated sources. I have been following the information for implementing the Devicetree configuration. I set the linux-2.6 branch to unstable-nios2mmu per the wiki. I selected all default options in the uClinux-dist configuration.
nios2-linux/linux-2.6$ git branch
nios2mmu
test-nios2
* unstable-nios2mmu
nios2-linux/uClinux-dist$ git branch
test-nios2
* trunk
The kernel is compiling properly and accepting my DTS. During compilation of busybox, I'm getting the following output and a make error:
...
CC libbb/xrealloc_vector.o
CC libbb/xregcomp.o
AR libbb/lib.a
LINK busybox_unstripped
Trying libraries: crypt m
Library crypt is not needed, excluding it
Library m is not needed, excluding it
Final link with: <none>
make: Leaving directory `nios2-linux/uClinux-dist/user/busybox/build-busybox-1.18.4'
make: Leaving directory `nios2-linux/uClinux-dist/user/busybox'
make: Leaving directory `nios2-linux/uClinux-dist/user'
make: *** Error 2
make: Leaving directory `nios2-linux/uClinux-dist/user'
make: *** Error 1
I've tried both available uClinux-dist branches (test-nios2 and trunk) with the same results. I have been searching for similar problems, but I haven't had much luck finding a resolution. I'm not very familiar with the uClinux build environment so I haven't been able to find any detailed logs to try and get more information about the problem. Am I missing some devel files for the mentioned libraries? Could there be something wrong in my environment variables? Any suggestions would be greatly appreciated.