【发布时间】:2014-07-08 09:53:19
【问题描述】:
我正在尝试按照Getting started 步骤构建 Google 的 ligjingle,我已经到达“构建”部分。
当我发出任何一个时
ninja -C out/Debug
或
ninja -C out/Release
我收到以下错误: I posted the output in pastebin too, if you prefer
ninja -C out/Debug
ninja: Entering directory `out/Debug'
[3/2606] LINK genmacro
FAILED: cc -Wl,-z,now -Wl,-z,relro -Wl,--fatal-warnings -pthread -Wl,-z,noexecstack -fPIC -B/home/nschoe/workspace/webrtc/jingle/trunk/third_party/binutils/Linux_x64/Release/bin -Wl,--disable-new-dtags -m64 -Wl,--icf=none -fuse-ld=gold -Wl,--gdb-index -o genmacro -Wl,--start-group obj/third_party/yasm/source/patched-yasm/tools/genmacro/genmacro.genmacro.o -Wl,--end-group
/home/nschoe/workspace/webrtc/jingle/trunk/third_party/binutils/Linux_x64/Release/bin/ld.gold: -plugin: unknown option
/home/nschoe/workspace/webrtc/jingle/trunk/third_party/binutils/Linux_x64/Release/bin/ld.gold: use the --help option for usage information
collect2: error: ld returned 1 exit status
[3/2606] CC obj/net/third_party/nss/ssl/libssl.sslauth.o
ninja: build stopped: subcommand failed.
我试过了
ld.gold --help | grep "plugin"
得到了:
--plugin PLUGIN Load a plugin library
--plugin-opt OPTION Pass an option to the plugin
所以我想我得到的错误是因为在代码中的某个地方,ld.gold 是用-plugin xxx 而不是--plugin xxx 调用的
我一直在“玩”grep -Hr 和“插件”的不同组合,试图找出问题所在,但到目前为止我还没有发现任何问题。我想它隐藏在 Makefile 的某个地方。
【问题讨论】:
-
如果你想注释多行,缩进4个空格。如果您想注释一行,请在它们的两边各放一个反引号。
-
好的,会的。对不起。
-
不用道歉,我只是无法想象你在这里所做的代码格式化是容易/愉快的哈哈
标签: linker ld gold-linker