[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[microblaze-uclinux] Build errors with uclinux-dist: missing _syscall3



Now that I've gotten the kernel booting (new device-tree generator made
it work -- thanks!), it's time for me to get userspace up.  I'm
attempting to build uclinux-dist for the same XUPV5-LX110T board, but I
am running into build errors.

If I just try to "make", the obsolete mb-gcc fails with "your compiler
miscompiles the __weak directive".

If I edit ./vendors/config/microblaze/config.arch to instead use the
newer mb-linux-gcc, the build fails in a different place, which I assume
is caused by a missing definition of _syscall3 on Microblaze :

mb-linux-gcc  -Wall -Wstrict-prototypes -Wno-trigraphs
-fno-strict-aliasing  -Os -funit-at-a-time  -O2 -g -fomit-frame-pointer
-pipe -fno-common -fno-builtin -Wall -msoft-float -mxl-pattern-compare
-mxl-soft-mul -mxl-barrel-shift -mno-xl-soft-div -DEMBED
-fno-stack-protector -fno-builtin -nostdinc -D_LIBC -I../../../include
-I. -isystem
/usr/local/bin/../lib/gcc/microblaze-unknown-linux-gnu/4.1.2/include
-DNDEBUG -DL_semget sem.c -c -o semget.o
sem.c:66: error: expected declaration specifiers or '...' before 'semget'
sem.c:66: error: expected declaration specifiers or '...' before 'key'
sem.c:66: error: expected declaration specifiers or '...' before 'nsems'
sem.c:66: error: expected declaration specifiers or '...' before 'semflg'
sem.c:66: warning: data definition has no type or storage class
sem.c:66: warning: type defaults to 'int' in declaration of '_syscall3'
make[6]: *** [semget.o] Error 1
make[6]: Leaving directory
`/home/dana/FPGA-Linux/uClinux-dist/uClibc/libc/misc/sysvipc'
make[5]: *** [_dir_sysvipc] Error 2
make[5]: Leaving directory
`/home/dana/FPGA-Linux/uClinux-dist/uClibc/libc/misc'
make[4]: *** [_dir_misc] Error 2
make[4]: Leaving directory `/home/dana/FPGA-Linux/uClinux-dist/uClibc/libc'
make[3]: *** [_dir_libc] Error 2
make[3]: Leaving directory `/home/dana/FPGA-Linux/uClinux-dist/uClibc'
make[2]: *** [uClibc] Error 2
make[2]: Leaving directory `/home/dana/FPGA-Linux/uClinux-dist/lib'
make[1]: *** [all] Error 2
make[1]: Leaving directory `/home/dana/FPGA-Linux/uClinux-dist/lib'
make: *** [subdirs] Error 1

(Side note: If I set uClinux-dist to use glibc instead of uClibc, it
errors out on lack of a Makefile in the glibc directory.)
g
Also, I tried about 8 times to reply to my previous thread about booting
the kernel, but each time, Thunderbird told me that the newsgroup was
"unidirectional", and the post didn't show up.  Even if I explicitly
wrote to the reply-to address (
microblaze-uclinux-rVRm/Wmeqae7NGdpmJTKYQ@xxxxxxxxxxxxxxxx ), my posts
still did not appear. I finally had to post to microblaze-uclinux@xxxxxxxxxxxxxx (which is not in any of the headers of any of the messages), to get the message to appear.

Thanks again for the help.

___________________________
microblaze-uclinux mailing list
microblaze-uclinux@xxxxxxxxxxxxxx
Project Home Page : http://www.itee.uq.edu.au/~jwilliams/mblaze-uclinux
Mailing List Archive : http://www.itee.uq.edu.au/~listarch/microblaze-uclinux/