An additional bit of information: I hunted down and captured the exact
command being run which is producing the errors. Maybe something is missing
from it?

flock /home/zannalov/code/node-v0.8.2/out/Release/linker.lock
/usr/local/arm-2007q1/bin/arm-none-linux-gnueabi-g++ -pthread -rdynamic  -o
/home/zannalov/code/node-v0.8.2/out/Release/node -Wl,--start-group
/home/zannalov/code/node-v0.8.2/out/Release/obj.target/node/src/fs_event_wrap.o
/home/zannalov/code/node-v0.8.2/out/Release/obj.target/node/src/cares_wrap.o
/home/zannalov/code/node-v0.8.2/out/Release/obj.target/node/src/handle_wrap.o
/home/zannalov/code/node-v0.8.2/out/Release/obj.target/node/src/node.o
/home/zannalov/code/node-v0.8.2/out/Release/obj.target/node/src/node_buffer.o
/home/zannalov/code/node-v0.8.2/out/Release/obj.target/node/src/node_constants.o
/home/zannalov/code/node-v0.8.2/out/Release/obj.target/node/src/node_extensions.o
/home/zannalov/code/node-v0.8.2/out/Release/obj.target/node/src/node_file.o
/home/zannalov/code/node-v0.8.2/out/Release/obj.target/node/src/node_http_parser.o
/home/zannalov/code/node-v0.8.2/out/Release/obj.target/node/src/node_javascript.o
/home/zannalov/code/node-v0.8.2/out/Release/obj.target/node/src/node_main.o
/home/zannalov/code/node-v0.8.2/out/Release/obj.target/node/src/node_os.o
/home/zannalov/code/node-v0.8.2/out/Release/obj.target/node/src/node_script.o
/home/zannalov/code/node-v0.8.2/out/Release/obj.target/node/src/node_stat_watcher.o
/home/zannalov/code/node-v0.8.2/out/Release/obj.target/node/src/node_string.o
/home/zannalov/code/node-v0.8.2/out/Release/obj.target/node/src/node_zlib.o
/home/zannalov/code/node-v0.8.2/out/Release/obj.target/node/src/pipe_wrap.o
/home/zannalov/code/node-v0.8.2/out/Release/obj.target/node/src/stream_wrap.o
/home/zannalov/code/node-v0.8.2/out/Release/obj.target/node/src/slab_allocator.o
/home/zannalov/code/node-v0.8.2/out/Release/obj.target/node/src/tcp_wrap.o
/home/zannalov/code/node-v0.8.2/out/Release/obj.target/node/src/timer_wrap.o
/home/zannalov/code/node-v0.8.2/out/Release/obj.target/node/src/tty_wrap.o
/home/zannalov/code/node-v0.8.2/out/Release/obj.target/node/src/process_wrap.o
/home/zannalov/code/node-v0.8.2/out/Release/obj.target/node/src/v8_typed_array.o
/home/zannalov/code/node-v0.8.2/out/Release/obj.target/node/src/udp_wrap.o
/home/zannalov/code/node-v0.8.2/out/Release/obj.target/node/src/node_crypto.o
/home/zannalov/code/node-v0.8.2/out/Release/obj.target/node/src/node_signal_watcher.o
/home/zannalov/code/node-v0.8.2/out/Release/obj.target/node/src/node_io_watcher.o
/home/zannalov/code/node-v0.8.2/out/Release/obj.target/deps/http_parser/libhttp_parser.a
/home/zannalov/code/node-v0.8.2/out/Release/obj.target/deps/uv/libuv.a
/home/zannalov/code/node-v0.8.2/out/Release/obj.target/deps/openssl/libopenssl.a
/home/zannalov/code/node-v0.8.2/out/Release/obj.target/deps/zlib/libchrome_zlib.a
/home/zannalov/code/node-v0.8.2/out/Release/obj.target/deps/v8/tools/gyp/libv8_base.a
/home/zannalov/code/node-v0.8.2/out/Release/obj.target/deps/v8/tools/gyp/libv8_nosnapshot.a
-Wl,--end-group -lrt -ldl

And here are the beginning and end of the errors spat out by the linker:

/home/zannalov/code/node-v0.8.2/out/Release/obj.target/deps/v8/tools/gyp/libv8_base.a(builtins.o):
In function
`v8::internal::Generate_FrameDropper_LiveEdit(v8::internal::MacroAssembler*)':
builtins.cc:(.text._ZN2v88internal30Generate_FrameDropper_LiveEditEPNS0_14MacroAssemblerE+0x0):
undefined reference to
`v8::internal::Debug::GenerateFrameDropperLiveEdit(v8::internal::MacroAssembler*)'
/home/zannalov/code/node-v0.8.2/out/Release/obj.target/deps/v8/tools/gyp/libv8_base.a(builtins.o):
In function
`v8::internal::Generate_PlainReturn_LiveEdit(v8::internal::MacroAssembler*)':
builtins.cc:(.text._ZN2v88internal29Generate_PlainReturn_LiveEditEPNS0_14MacroAssemblerE+0x0):
undefined reference to
`v8::internal::Debug::GeneratePlainReturnLiveEdit(v8::internal::MacroAssembler*)'
...
/home/zannalov/code/node-v0.8.2/out/Release/obj.target/deps/v8/tools/gyp/libv8_base.a(ic.o):
In function `v8::internal::IC::Clear(unsigned char*)':
ic.cc:(.text._ZN2v88internal2IC5ClearEPh+0x1bc): undefined reference to
`v8::internal::PatchInlinedSmiCode(unsigned char*,
v8::internal::InlinedSmiCheck)'
ic.cc:(.text._ZN2v88internal2IC5ClearEPh+0x41c): undefined reference to
`v8::internal::kBlxRegMask'
ic.cc:(.text._ZN2v88internal2IC5ClearEPh+0x420): undefined reference to
`v8::internal::kBlxRegPattern'
collect2: ld returned 1 exit status



On Tue, Jul 10, 2012 at 11:24 PM, Jason Schmidt <zanna...@gmail.com> wrote:

> I have a 32-bit Ubuntu virtual machine following the instructions from
>
> http://www.droboports.com/setting-up-a-vm
>
> Everything seems to build successfully up until the end of v8
>
>   CXX(target)
> /home/zannalov/code/node-v0.8.2/out/Release/obj.target/v8_base/deps/v8/src/accessors.o
> ...
>   CXX(target)
> /home/zannalov/code/node-v0.8.2/out/Release/obj.target/v8_base/deps/v8/src/platform-posix.o
>
> but when it gets to the snapshot I get the following:
>
>   LINK(target) /home/zannalov/code/node-v0.8.2/out/Release/mksnapshot
> /home/zannalov/code/node-v0.8.2/out/Release/obj.target/deps/v8/tools/gyp/libv8_base.a(builtins.o):
> In function
> `v8::internal::Generate_FrameDropper_LiveEdit(v8::internal::MacroAssembler*)':
> builtins.cc:(.text._ZN2v88internal30Generate_FrameDropper_LiveEditEPNS0_14MacroAssemblerE+0x0):
> undefined reference to
> `v8::internal::Debug::GenerateFrameDropperLiveEdit(v8::internal::MacroAssembler*)'
> /home/zannalov/code/node-v0.8.2/out/Release/obj.target/deps/v8/tools/gyp/libv8_base.a(builtins.o):
> In function
> `v8::internal::Generate_PlainReturn_LiveEdit(v8::internal::MacroAssembler*)':
> builtins.cc:(.text._ZN2v88internal29Generate_PlainReturn_LiveEditEPNS0_14MacroAssemblerE+0x0):
> undefined reference to
> `v8::internal::Debug::GeneratePlainReturnLiveEdit(v8::internal::MacroAssembler*)'
>
> etc. (seems to be every v8 reference is failing)
>
> If I add --without-snapshot to the configure line, it makes it all the way
> to linking node, but still fails the exact same way (no surprise there)
>
>   LINK(target) /home/zannalov/code/node-v0.8.2/out/Release/node
> /home/zannalov/code/node-v0.8.2/out/Release/obj.target/deps/v8/tools/gyp/libv8_base.a(builtins.o):
> In function
> `v8::internal::Generate_FrameDropper_LiveEdit(v8::internal::MacroAssembler*)':
> builtins.cc:(.text._ZN2v88internal30Generate_FrameDropper_LiveEditEPNS0_14MacroAssemblerE+0x0):
> undefined reference to
> `v8::internal::Debug::GenerateFrameDropperLiveEdit(v8::internal::MacroAssembler*)'
> /home/zannalov/code/node-v0.8.2/out/Release/obj.target/deps/v8/tools/gyp/libv8_base.a(builtins.o):
> In function
> `v8::internal::Generate_PlainReturn_LiveEdit(v8::internal::MacroAssembler*)':
> builtins.cc:(.text._ZN2v88internal29Generate_PlainReturn_LiveEditEPNS0_14MacroAssemblerE+0x0):
> undefined reference to
> `v8::internal::Debug::GeneratePlainReturnLiveEdit(v8::internal::MacroAssembler*)'
>
> I've searched and tried a number of things for cross compiling for the ARM
> processor, but nothing seems to get me past this linking problem.
>
> There are a few times the build tries to use the host compiler despite
> being told to use the client compiler, so I've spoofed the toolset for
> those (created a temporary directory and symlinked all the cross-compile
> commands to their simple name, e.g.
> /usr/local/arm-2007q1/bin/arm-none-linux-gnueabi-gcc becomes gcc) and added
> that temporary directory to my path.
>
> In addition to the cross-compile variables that are set from the above
> instructions, I've also set the following (per several instructions I've
> found via Google):
>
> export CSTOOLS=/usr/local/arm-2007q1/
> export CSTOOLS_INC=$CSTOOLS/arm-none-linux-gnueabi/libc/usr/include/
> export CSTOOLS_LIB=$CSTOOLS/arm-none-linux-gnueabi/libc/usr/lib/
> export TARGET_ARCH="-march=armv5t"
> export CCFLAGS="$CCFLAGS -march=armv5t"
> export CXXFLAGS="$CCFLAGS -march=armv5t"
> export CFLAGS="$CFLAGS -O3"
>
> I call make like so:
>
> ./configure --dest-cpu=arm-none-linux-gnueabi --prefix=$DEST
> #--without-snapshot
> make clean
> make
>
> Here is the CPU info from the target machine:
>
> # cat /proc/cpuinfo
> Processor       : ARM926EJ-S rev 0 (v5l)
> BogoMIPS        : 999.42
> Features        : swp half thumb fastmult vfp edsp
> CPU implementer : 0x41
> CPU architecture: 5TE
> CPU variant     : 0x1
> CPU part        : 0x926
> CPU revision    : 0
> Cache type      : write-back
> Cache clean     : cp15 c7 ops
> Cache lockdown  : format C
> Cache format    : Harvard
> I size          : 32768
> I assoc         : 4
> I line length   : 32
> I sets          : 256
> D size          : 32768
> D assoc         : 4
> D line length   : 32
> D sets          : 256
>
> Hardware        : Feroceon-MV78XX0
> Revision        : 0000
> Serial          : 0000000000000000
>
> Any help is greatly appreciated. Thanks!
>
> --
> Job Board: http://jobs.nodejs.org/
> Posting guidelines:
> https://github.com/joyent/node/wiki/Mailing-List-Posting-Guidelines
> You received this message because you are subscribed to the Google
> Groups "nodejs" group.
> To post to this group, send email to nodejs@googlegroups.com
> To unsubscribe from this group, send email to
> nodejs+unsubscr...@googlegroups.com
> For more options, visit this group at
> http://groups.google.com/group/nodejs?hl=en?hl=en
>

-- 
Job Board: http://jobs.nodejs.org/
Posting guidelines: 
https://github.com/joyent/node/wiki/Mailing-List-Posting-Guidelines
You received this message because you are subscribed to the Google
Groups "nodejs" group.
To post to this group, send email to nodejs@googlegroups.com
To unsubscribe from this group, send email to
nodejs+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/nodejs?hl=en?hl=en

Reply via email to