Skip to content
This repository has been archived by the owner on Apr 22, 2023. It is now read-only.

Linking bug with ld from Xcode #2233

Closed
tedkleinfelder opened this issue Nov 30, 2011 · 2 comments
Closed

Linking bug with ld from Xcode #2233

tedkleinfelder opened this issue Nov 30, 2011 · 2 comments

Comments

@tedkleinfelder
Copy link

[35/35] cxx_link: out/Release/src/node_main_5.o out/Release/src/node_5.o out/Release/src/node_buffer_5.o out/Release/src/node_javascript_5.o out/Release/src/node_extensions_5.o out/Release/src/node_http_parser_5.o out/Release/src/node_constants_5.o out/Release/src/node_file_5.o out/Release/src/node_script_5.o out/Release/src/node_os_5.o out/Release/src/node_dtrace_5.o out/Release/src/node_string_5.o out/Release/src/node_zlib_5.o out/Release/src/timer_wrap_5.o out/Release/src/handle_wrap_5.o out/Release/src/stream_wrap_5.o out/Release/src/tcp_wrap_5.o out/Release/src/udp_wrap_5.o out/Release/src/pipe_wrap_5.o out/Release/src/cares_wrap_5.o out/Release/src/tty_wrap_5.o out/Release/src/fs_event_wrap_5.o out/Release/src/process_wrap_5.o out/Release/src/v8_typed_array_5.o out/Release/src/node_signal_watcher_5.o out/Release/src/node_stat_watcher_5.o out/Release/src/node_io_watcher_5.o out/Release/src/platform_darwin_5.o out/Release/src/node_crypto_5.o out/Release/deps/http_parser/http_parser_3.o -> out/Release/node
/usr/bin/g++ Release/src/node_main_5.o Release/src/node_5.o Release/src/node_buffer_5.o Release/src/node_javascript_5.o Release/src/node_extensions_5.o Release/src/node_http_parser_5.o Release/src/node_constants_5.o Release/src/node_file_5.o Release/src/node_script_5.o Release/src/node_os_5.o Release/src/node_dtrace_5.o Release/src/node_string_5.o Release/src/node_zlib_5.o Release/src/timer_wrap_5.o Release/src/handle_wrap_5.o Release/src/stream_wrap_5.o Release/src/tcp_wrap_5.o Release/src/udp_wrap_5.o Release/src/pipe_wrap_5.o Release/src/cares_wrap_5.o Release/src/tty_wrap_5.o Release/src/fs_event_wrap_5.o Release/src/process_wrap_5.o Release/src/v8_typed_array_5.o Release/src/node_signal_watcher_5.o Release/src/node_stat_watcher_5.o Release/src/node_io_watcher_5.o Release/src/platform_darwin_5.o Release/src/node_crypto_5.o Release/deps/http_parser/http_parser_3.o -o /Users/emeinfelder/src/node-v0.6.3/out/Release/node -L/opt/local/lib -L/usr/local/lib -Wl,-rpath /opt/local/lib -rpath /usr/local/lib -lz -pthread -framework Carbon -arch x86_64 -rdynamic /Users/emeinfelder/src/node-v0.6.3/out/Release/libv8.a /Users/emeinfelder/src/node-v0.6.3/out/Release/deps/uv/uv.a -lssl -lcrypto
ld: in /usr/local/lib, can't map file, errno=22 for architecture x86_64
collect2: ld returned 1 exit status
Waf: Leaving directory `/Users/emeinfelder/src/node-v0.6.3/out'
Build failed: -> task failed (err #1):
{task: cxx_link node_main_5.o,node_5.o,node_buffer_5.o,node_javascript_5.o,node_extensions_5.o,node_http_parser_5.o,node_constants_5.o,node_file_5.o,node_script_5.o,node_os_5.o,node_dtrace_5.o,node_string_5.o,node_zlib_5.o,timer_wrap_5.o,handle_wrap_5.o,stream_wrap_5.o,tcp_wrap_5.o,udp_wrap_5.o,pipe_wrap_5.o,cares_wrap_5.o,tty_wrap_5.o,fs_event_wrap_5.o,process_wrap_5.o,v8_typed_array_5.o,node_signal_watcher_5.o,node_stat_watcher_5.o,node_io_watcher_5.o,platform_darwin_5.o,node_crypto_5.o,http_parser_3.o -> node}
make: *** [program] Error 1

The version of ld reported by "ld -v"

@(#)PROGRAM:ld PROJECT:ld64-123.2
llvm version 2.9svn, from Apple Clang 2.0 (build 137)

Compiling by hand and removing the argument "-rpath /usr/local/lib" worked for me. Older versions of ld from Xcode do not show this issue.

@tedkleinfelder
Copy link
Author

This problem still exists in 0.6.9.

@tedkleinfelder
Copy link
Author

My fault - LD was picking up an errant DYLD_LIBRARY_PATH. Apologies.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

No branches or pull requests

1 participant