Discussion:
[uClinux-dev] Error building python in latest uClinux-dist (20120620)
Luis Alves
2012-08-09 23:32:29 UTC
Permalink
Hi,

I'm getting this error when trying to build python in the latest uClinux-dist:

[...]
ucfront-gcc m68k-uclinux-gcc -m68000 -Wl,-elf2flt
-Wl,-L/root/m68k/20120620/uClinux-dist/user/./../staging/lib
-Wl,-rpath-link
-Wl,/root/m68k/20120620/uClinux-dist/user/./../staging/lib -Xlinker
-export-dynamic -o python \
Modules/python.o \
libpython2.6.a -lutil -lm -lc
libpython2.6.a(posixmodule.o): In function `posix_tmpnam':
posixmodule.c:(.text+0x4a66): warning: the use of `tmpnam' is
dangerous, better use `mkstemp'
python.elf2flt: In function `posix_fork':
posixmodule.c:(.text+0xb860a): undefined reference to `fork'
collect2: ld returned 1 exit status
make[2]: *** [python] Error 1
make[2]: Leaving directory
`/root/m68k/20120620/uClinux-dist/user/python/build/Python-2.6.5/build'
make[1]: *** [build/Python-2.6.5-built] Error 2
make[1]: Leaving directory `/root/m68k/20120620/uClinux-dist/user/python'
[...]


Target is 68000 (nommu - no fork).

Any suggestion?


Thanks,
Luis
Greg Ungerer
2012-08-13 06:40:14 UTC
Permalink
Hi Luis,
Post by Luis Alves
[...]
ucfront-gcc m68k-uclinux-gcc -m68000 -Wl,-elf2flt
-Wl,-L/root/m68k/20120620/uClinux-dist/user/./../staging/lib
-Wl,-rpath-link
-Wl,/root/m68k/20120620/uClinux-dist/user/./../staging/lib -Xlinker
-export-dynamic -o python \
Modules/python.o \
libpython2.6.a -lutil -lm -lc
posixmodule.c:(.text+0x4a66): warning: the use of `tmpnam' is
dangerous, better use `mkstemp'
posixmodule.c:(.text+0xb860a): undefined reference to `fork'
collect2: ld returned 1 exit status
make[2]: *** [python] Error 1
make[2]: Leaving directory
`/root/m68k/20120620/uClinux-dist/user/python/build/Python-2.6.5/build'
make[1]: *** [build/Python-2.6.5-built] Error 2
make[1]: Leaving directory `/root/m68k/20120620/uClinux-dist/user/python'
[...]
Target is 68000 (nommu - no fork).
Any suggestion?
I don't know that the python sources in the uClinux-dist have ever
been run on a non-MMU system. Sure doesn't look like it from that
error message.

Regards
Greg



------------------------------------------------------------------------
Greg Ungerer -- Principal Engineer EMAIL: gerg at snapgear.com
SnapGear Group, McAfee PHONE: +61 7 3435 2888
8 Gardner Close FAX: +61 7 3217 5323
Milton, QLD, 4064, Australia WEB: http://www.SnapGear.com
Ezequiel Garcia
2012-08-13 20:40:31 UTC
Permalink
Hi Luis!
Post by Luis Alves
Hi,
[...]
ucfront-gcc m68k-uclinux-gcc -m68000 -Wl,-elf2flt
-Wl,-L/root/m68k/20120620/uClinux-dist/user/./../staging/lib
-Wl,-rpath-link
-Wl,/root/m68k/20120620/uClinux-dist/user/./../staging/lib -Xlinker
-export-dynamic -o python \
Modules/python.o \
libpython2.6.a -lutil -lm -lc
posixmodule.c:(.text+0x4a66): warning: the use of `tmpnam' is
dangerous, better use `mkstemp'
posixmodule.c:(.text+0xb860a): undefined reference to `fork'
collect2: ld returned 1 exit status
make[2]: *** [python] Error 1
make[2]: Leaving directory
`/root/m68k/20120620/uClinux-dist/user/python/build/Python-2.6.5/build'
make[1]: *** [build/Python-2.6.5-built] Error 2
make[1]: Leaving directory `/root/m68k/20120620/uClinux-dist/user/python'
[...]
Target is 68000 (nommu - no fork).
Any suggestion?
As you probably know nommu hasn't got fork system call.

Out of curiosity, why do you need python? Perhaps you could try a
lighter language... like Lua?

Hope this helps,
Ezequiel.

Loading...