-
Notifications
You must be signed in to change notification settings - Fork 30.3k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Debug build fails to compile on SmartOS #1967
Comments
@jbergstroem I apologize for not being able to help on this. It's on my radar, I just want to be done with higher priority issues (releasing v0.10.39 and v0.12.5 with OpenSSL upgrades) first. |
Just revisited this, looks like we're still experiencing this. Issues while objdump:ing? |
@No9 here's another issue if you're keen :) |
@jbergstroem @No9 Is the error mentioned in the description of this issue the same error you're still having now when building nodejs/master with |
@misterdjules apologies meant to update this but couldn't replicate
Is all good |
From our 64-bit buildbot (gcc 4.9.1, joyent_20150417T032220Z): $ git reset --hard f32a606e373ad57f684b0e511d6d6e4cbd48a812
$ ./configure --debug
<snip>
$ make -j5
<snip>
g++ '-DNODE_ARCH="ia32"' '-DNODE_WANT_INTERNALS=1' '-DV8_DEPRECATION_WARNINGS=1' '-DHAVE_OPENSSL=1' '-DHAVE_DTRACE=1' '-D__POSIX__' '-DNODE_PLATFORM="sunos"' '-DHTTP_PARSER_STRICT=0' '-D_LARGEFILE_SOURCE' '-D_FILE_OFFSET_BITS=64' '-DDEBUG' '-D_DEBUG' -I../src -I../tools/msvs/genfiles -I../deps/uv/src/ares -I/root/io.js/out/Debug/obj/gen -I../deps/v8 -I../deps/cares/include -I../deps/v8/include -I../deps/openssl/openssl/include -I../deps/zlib -I../deps/http_parser -I../deps/uv/include -Wall -Wextra -Wno-unused-parameter -m32 -pthreads -g -O0 -fno-rtti -fno-exceptions -std=gnu++0x -MMD -MF /root/io.js/out/Debug/.deps//root/io.js/out/Debug/obj.target/node/src/node_javascript.o.d.raw -c -o /root/io.js/out/Debug/obj.target/node/src/node_javascript.o ../src/node_javascript.cc
LD_LIBRARY_PATH=/root/io.js/out/Debug/lib.host:/root/io.js/out/Debug/lib.target:$LD_LIBRARY_PATH; export LD_LIBRARY_PATH; cd ../.; mkdir -p /root/io.js/out/Debug/obj.target/node/src; dtrace -32 "-I/root/io.js/out/Debug/obj/gen" -Isrc -C -G -s src/v8ustack.d -o "/root/io.js/out/Debug/obj.target/node/src/node_dtrace_ustack.o"
dtrace: failed to compile script src/v8ustack.d: line 258: failed to resolve V8DBG_OFF_FP_CONTEXT: Unknown variable name
node_dtrace_ustack.target.mk:26: recipe for target '/root/io.js/out/Debug/obj.target/node/src/node_dtrace_ustack.o' failed
make[1]: *** [/root/io.js/out/Debug/obj.target/node/src/node_dtrace_ustack.o] Error 1 ..so is this a subtle thing between gcc 4.9.1 and 4.9.2? @misterdjules I think you have access to the machine if you want to play around. Happy to arrange the same for you, @No9. Edit: |
@jbergstroem What do the following commands give you:
? |
@misterdjules: that's what I checked last time as well -- the constant isn't in there; $ nm ./out/Debug/libv8_base.a | grep -i V8DBG_OFF_FP_CONTEXT
000000b8 D v8dbg_off_fp_context
$ grep V8DBG_OFF_FP_CONTEXT out/Debug/obj/gen/v8constants.h
$ # empty |
@jbergstroem What is the output of:
? |
/*
* File automatically generated by genv8constants. Do not edit.
*
* The following offsets are dynamically from libv8_base.a. See src/v8ustack.d
* for details on how these values are used.
*/
#ifndef V8_CONSTANTS_H
#define V8_CONSTANTS_H |
@jbergstroem Interesting. What's the output of |
@jbergstroem this direction has started me thinking about this old issue #461 |
@No9 The symptoms are a bit similar, but it seems that everything is in place for the compiler/linker to generate the Moreover, it seems I'm able to build a debug build form the same commit on my SmartOS machine. @jbergstroem if the output from |
Output can be found here. Also interesting: $ objdump -z -D out/Debug/libv8_base.a > ~/objdump_output.log
Segmentation Fault (core dumped) |
@jbergstroem I use the same version of objdump, and Python 2.7.9, which seems reasonably close to the version of Python you're using. What is the output of Also, the output from your objdump run doesn't contain any debugging symbol, but at the same time it seems to have been truncated very quickly, probably when it segfaulted and dumped core (the file is only 56MBs, and at the end of the process it is normally around 3GBs IIRC). |
most likely as the result of the segfault i get this:
|
@jbergstroem by |
@jbergstroem Any update on this? If that helps, could you give me access to that machine so that I can investigate too? |
@misterdjules sorry for the delay, travelling. I can give you access once I'm back at work in a few days. I'll also read the man page of |
@jbergstroem No worries, my initial instructions were confusing :) Let me know how and when I can help. |
@misterdjules can you email me your pubkey? |
@jbergstroem Sent :) |
@jbergstroem So it turns out that building On a SmartOS machine that uses a 2014Q4 pkgsrc, the problem isn't present too. So I would think that upgrading to a 2014Q4 pkgsrc is probably the best thing we can do here. |
Ok. I'll look at bumping our packages/stack then. |
Just updated one of the machines (32-bit) to 2014Q4. Binutils still seems to be at |
@jbergstroem OK, yes |
@misterdjules I'm doing a full clean build now; copied the sources over so there might have been something going on. Edit: nope, same issue. |
Closing, no activity in half a year. Reopen if necessary. |
/CC @nodejs/platform-solaris
The text was updated successfully, but these errors were encountered: