Hi,

I just want to compile uClinux for an Arm7TDMI and get errors during the configuration-process.
I used the following files:
- uClinux-dist-20090618.tar.bz2 (http://ftp.snapgear.org/pub/snapgear/tools/arm-linux/)
- linux-2.6.26.tar.gz (http://www.kernel.org/pub/linux/kernel/v2.6/)
- linux-2.6.26-uc0.patch.gz (http://www.uclinux.org/pub/uClinux/uClinux-2.6.x/)
- arm-linux-tools-20080623.tar.gz (http://www.uclinux.org/pub/uClinux/dist/)
Systemconfiguration:
- Ubuntu 9.10 in VMware Player 3.0.0
- files are in an ext2-filesystem

First I extracted the arm-linux-tools-20080623.tar.gz to the /usr/ directory and tried to reach the compiler from from a different directory, which was successful. Next extracted the uClinux-dist-20090618.tar.bz2 which lies in a directory called uClinux-dist/. I tried to compile the uClinux-distribution with the kernel which was already in this archive. So I started "make menuconfig". I get some errors:
quotra...@ubuntu:/mnt/drive/uClinux-dist$ make menuconfig
quotra...@ubuntu:/mnt/drive/uClinux-dist$ make menuconfig
config/mkconfig > Kconfig
CC=cc CXX=c++ make -C /mnt/drive/uClinux-dist/config/kconfig conf
make[1]: Entering directory `/mnt/drive/uClinux-dist/config/kconfig'
cc -DCURSES_LOC="<curses.h>" -c -o conf.o conf.c
cc -DCURSES_LOC="<curses.h>" -c -o zconf.tab.o zconf.tab.c
cc conf.o zconf.tab.o -o conf
make[1]: Leaving directory `/mnt/drive/uClinux-dist/config/kconfig'
CC=cc CXX=c++ make -C /mnt/drive/uClinux-dist/config/kconfig mconf
make[1]: Entering directory `/mnt/drive/uClinux-dist/config/kconfig'
cc -DCURSES_LOC="<curses.h>" -c -o mconf.o mconf.c
In file included from mconf.c:27:
lxdialog/dialog.h:32:20: error: curses.h: No such file or directory
In file included from mconf.c:27:
lxdialog/dialog.h:97: error: expected specifier-qualifier-list before ‘chtype’
lxdialog/dialog.h:187: error: expected ‘)’ before ‘*’ token
lxdialog/dialog.h:193: error: expected ‘)’ before ‘*’ token
lxdialog/dialog.h:195: error: expected ‘)’ before ‘*’ token
lxdialog/dialog.h:196: error: expected ‘)’ before ‘*’ token
lxdialog/dialog.h:197: error: expected ‘)’ before ‘*’ token
lxdialog/dialog.h:198: error: expected ‘)’ before ‘*’ token
lxdialog/dialog.h:200: error: expected ‘)’ before ‘*’ token
mconf.c: In function ‘conf’:
mconf.c:610: error: ‘KEY_MAX’ undeclared (first use in this function)
mconf.c:610: error: (Each undeclared identifier is reported only once
mconf.c:610: error: for each function it appears in.)
mconf.c: In function ‘conf_choice’:
mconf.c:761: error: ‘KEY_MAX’ undeclared (first use in this function)
make[1]: *** [mconf.o] Error 1
make[1]: Leaving directory `/mnt/drive/uClinux-dist/config
I tried to do it with the "make xconfig" menu to do the same job. The menu opens after some output in console. I choose Atmel, AT91, Kernel 2.6.x, uClibc and save the settings and quit. After this make generates various outputs and ends with some error-messages:

gcc -DCURSES_LOC="<curses.h>" -DLOCALE -c lxdialog/checklist.c -o lxdialog/checklist.o
In file included from lxdialog/checklist.c:24:
lxdialog/dialog.h:32:20: error: curses.h: No such file or directory
In file included from lxdialog/checklist.c:24:
lxdialog/dialog.h:97: error: expected specifier-qualifier-list before 'chtype'
lxdialog/dialog.h:187: error: expected ')' before '*' token
lxdialog/dialog.h:193: error: expected ')' before '*' token
lxdialog/dialog.h:195: error: expected ')' before '*' token
lxdialog/dialog.h:196: error: expected ')' before '*' token
lxdialog/dialog.h:197: error: expected ')' before '*' token
lxdialog/dialog.h:198: error: expected ')' before '*' token
lxdialog/dialog.h:200: error: expected ')' before '*' token
lxdialog/checklist.c:31: error: expected ')' before '*' token
lxdialog/checklist.c:59: error: expected ')' before '*' token
lxdialog/checklist.c:95: error: expected ')' before '*' token
lxdialog/checklist.c: In function 'dialog_checklist':
lxdialog/checklist.c:116: error: 'WINDOW' undeclared (first use in this function) lxdialog/checklist.c:116: error: (Each undeclared identifier is reported only once
lxdialog/checklist.c:116: error: for each function it appears in.)
lxdialog/checklist.c:116: error: 'dialog' undeclared (first use in this function) lxdialog/checklist.c:116: error: 'list' undeclared (first use in this function) lxdialog/checklist.c:129: error: 'stdscr' undeclared (first use in this function) lxdialog/checklist.c:130: error: 'KEY_MAX' undeclared (first use in this function) lxdialog/checklist.c:137: error: 'COLS' undeclared (first use in this function) lxdialog/checklist.c:138: error: 'LINES' undeclared (first use in this function) lxdialog/checklist.c:143: error: 'TRUE' undeclared (first use in this function) lxdialog/checklist.c:146: error: 'struct dialog_color' has no member named 'atr' lxdialog/checklist.c:146: error: 'struct dialog_color' has no member named 'atr' lxdialog/checklist.c:147: error: 'struct dialog_color' has no member named 'atr' lxdialog/checklist.c:151: error: 'struct dialog_color' has no member named 'atr' lxdialog/checklist.c:156: error: 'struct dialog_color' has no member named 'atr' lxdialog/checklist.c:171: error: 'struct dialog_color' has no member named 'atr' lxdialog/checklist.c:171: error: 'struct dialog_color' has no member named 'atr' lxdialog/checklist.c:210: error: 'KEY_UP' undeclared (first use in this function) lxdialog/checklist.c:210: error: 'KEY_DOWN' undeclared (first use in this function) lxdialog/checklist.c:220: error: 'FALSE' undeclared (first use in this function) lxdialog/checklist.c:297: error: 'KEY_LEFT' undeclared (first use in this function) lxdialog/checklist.c:298: error: 'KEY_RIGHT' undeclared (first use in this function) lxdialog/checklist.c:312: error: 'KEY_RESIZE' undeclared (first use in this function)
make[3]: *** [lxdialog/checklist.o] Error 1
make[2]: *** [extra/config/conf] Error 2
make[2]: Leaving directory `/mnt/drive/uClinux-dist/uClibc'
make[1]: *** [oldconfig_uClibc] Error 2
make[1]: Leaving directory `/mnt/drive/uClinux-dist'
So I decided to use a new kernel and try it again. I choose the 2.6.26 kernel, because this is the latest where I was founding a patch. I extracted the kernel into the uClinux-dist/ directory and start the patch-process. After the successful patching I deleted the old linux-2.6.x/ folder and renamed the new linux-2.6.26/ to linux-2.6.x/. Now I started make again with the same results. Between the various tries I used "make mrproper" to clean up everything. I also deleted the whole directory and begin again with extracting the uClinux-dist.

I hope that someone is knowing about my mistakes and can help me.

Thanks

Frank

_______________________________________________
uClinux-dev mailing list
uClinux-dev@uclinux.org
http://mailman.uclinux.org/mailman/listinfo/uclinux-dev
This message was resent by uclinux-dev@uclinux.org
To unsubscribe see:
http://mailman.uclinux.org/mailman/options/uclinux-dev

Reply via email to