Morgan243 / python-on-a-chip

Automatically exported from code.google.com/p/python-on-a-chip
Other
0 stars 0 forks source link

posix64 build fails #235

Open GoogleCodeExporter opened 8 years ago

GoogleCodeExporter commented 8 years ago
Build fails when building the v10 branch on a posix64 Linux system.  Reported 
by piranna on the maillist on 2012/04/21::

1º
src/platform/posix64/build/vm/strobj.c: In function 'string_format':
src/platform/posix64/build/vm/strobj.c:339:13: error: variable
'smallfmtcstr' set but not used [-Werror=unused-but-set-variable]

but the fact is that inspecting the file, the var is being used after
that point! :-/ Any idea?

2º
After removing the -Wall flag at SConscript, i get the next one:

gcc -o src/platform/posix64/build/main -Wl,-map
src/platform/posix64/build/main.map src/platform/posix64/build/main.o
src/platform/posix64/build/plat.o
src/platform/posix64/build/vm/libpmvm.a
src/platform/posix64/build/pm_generated_objs.o
/usr/bin/ld: unrecognised emulation mode: ap

It seems the flag is wrong, according to documentation should be -Map
('M' instead of 'm')

3º
Finally, after fixing the previous one i get the next errors on the
linker... and this i can't be able to fix them :-/

gcc -o src/platform/posix64/build/main -Wl,-Map
src/platform/posix64/build/main.map src/platform/posix64/build/main.o
src/platform/posix64/build/plat.o
src/platform/posix64/build/vm/libpmvm.a
src/platform/posix64/build/pm_generated_objs.o
src/platform/posix64/build/vm/libpmvm.a(float.o): In function `float_op':
/home/piranna/Proyectos/p14p/python-on-a-chip/src/platform/posix64/build/vm/floa
t.c:145:
undefined reference to `fmodf'
/home/piranna/Proyectos/p14p/python-on-a-chip/src/platform/posix64/build/vm/floa
t.c:146:
undefined reference to `powf'
src/platform/posix64/build/pm_generated_objs.o: In function `no131':
/home/piranna/Proyectos/p14p/python-on-a-chip/src/lib/ipm.py:66:
undefined reference to `marshal_load'
src/platform/posix64/build/pm_generated_objs.o: In function `no217':
/home/piranna/Proyectos/p14p/python-on-a-chip/src/lib/pmMarshal.py:46:
undefined reference to `marshal_load'
src/platform/posix64/build/pm_generated_objs.o: In function `no218':
/home/piranna/Proyectos/p14p/python-on-a-chip/src/lib/pmMarshal.py:68:
undefined reference to `marshal_dump'

Original issue reported on code.google.com by dwhall...@gmail.com on 21 Apr 2012 at 11:38

GoogleCodeExporter commented 8 years ago
To number one:
'smallfmtcstr' is set but never used if the symbol HAVE_SNPRINTF_FORMAT is set. 
The attached patch adds more guards to strobj.c.

Original comment by andreas....@gmail.com on 27 May 2013 at 11:54

Attachments: