ericmckean / naclports

Automatically exported from code.google.com/p/naclports
0 stars 0 forks source link

DOSBOX 0.74 x86-64 build fails with pepper 34 on Ubuntu 12.04 #123

Open GoogleCodeExporter opened 9 years ago

GoogleCodeExporter commented 9 years ago
What steps will reproduce the problem?
1. Build DOSBOX for x86-64

What is the expected output? What do you see instead?
Compilation fails with:
/home/julius/apps/nacl_sdk/pepper_34/toolchain/linux_x86_newlib/bin/x86_64-nacl-
g++  -O2   -L/home/julius/apps/nacl_sdk/pepper_34/lib/newlib_x86_64/Release 
-L/home/julius/apps/nacl_sdk/pepper_34/toolchain/linux_x86_newlib/x86_64-nacl/us
r/lib 
-Wl,-rpath-link=/home/julius/apps/nacl_sdk/pepper_34/toolchain/linux_x86_newlib/
x86_64-nacl/usr/lib -o dosbox.nexe dosbox.o  cpu/libcpu.a debug/libdebug.a 
dos/libdos.a fpu/libfpu.a  hardware/libhardware.a gui/libgui.a ints/libints.a 
misc/libmisc.a shell/libshell.a hardware/serialport/libserial.a 
libs/gui_tk/libgui_tk.a -lnacl_io 
-L/home/julius/apps/nacl_sdk/pepper_34/toolchain/linux_x86_newlib/x86_64-nacl/us
r/lib -Wl,--start-group -lSDLmain -lRegal -lppapi_gles2 -lSDL -lppapi -lSDLmain 
-ltar -lpthread -lRegal -lppapi_gles2 -lnacl_io -lstdc++ -lm -lpthread 
-lSDLmain -ltar -Wl,--end-group -lpng -lz
/home/julius/apps/nacl_sdk/pepper_34/toolchain/linux_x86_newlib/x86_64-nacl/usr/
lib/libRegal.a(RegalUtil.o): In function `Regal::fileClose(_IO_FILE**)':
RegalUtil.cpp:(.text+0x35): undefined reference to `stdout'
RegalUtil.cpp:(.text+0x42): undefined reference to `stderr'
/home/julius/apps/nacl_sdk/pepper_34/toolchain/linux_x86_newlib/x86_64-nacl/usr/
lib/libRegal.a(RegalUtil.o): In function `Regal::fileOpen(char const*, char 
const*)':
RegalUtil.cpp:(.text+0x139): undefined reference to `stderr'
RegalUtil.cpp:(.text+0x162): undefined reference to `stdout'
/home/julius/apps/nacl_sdk/pepper_34/toolchain/linux_x86_newlib/x86_64-nacl/usr/
lib/libRegal.a(jsonsl.o): In function `jsonsl_jpr_new':
jsonsl.c:(.text+0x283c): undefined reference to `__ctype_b_loc'
collect2: ld returned 1 exit status

What version of the product are you using? On what operating system?
Pepper 34 on Ubuntu 12.04

Original issue reported on code.google.com by julius.s...@gmail.com on 10 May 2014 at 10:07

GoogleCodeExporter commented 9 years ago
This could be unrelated, but I am also encountering undefined references to 
stdout and stderr when trying to link V8's NaCl build.

Original comment by Wilsoni...@gmail.com on 17 Jun 2014 at 9:24

GoogleCodeExporter commented 9 years ago
When libRegal is built against newlib (as in this case) it should not contain 
any references to stdout or stdout, since newlib uses #define to rename these.

I think what has possible happened is that the glibc build of libRegal or at 
least come of the object in libRegal has somehow been installed.

Can you try 'rm -rf out/build/regal' and then 'make regal FORCE=1'?

Original comment by sbc@google.com on 17 Jun 2014 at 9:29