x86_64-cros-linux-gnu-gcc failed to link simple program. |
|||
Issue description
a.c:
int main() {
return 0;
}
x86_64-cros-linux-gnu-gcc a.c
/usr/x86_64-pc-linux-gnu/x86_64-cros-linux-gnu/binutils-bin/2.25.51/ld.gold.real: --warn-poison-system-directories: unknown option
/usr/x86_64-pc-linux-gnu/x86_64-cros-linux-gnu/binutils-bin/2.25.51/ld.gold.real: use the --help option for usage information
collect2: error: ld returned 1 exit status
,
Apr 3 2017
sounds like your build of binutils is broken: $ x86_64-cros-linux-gnu-ld --warn-poison-system-directories /usr/x86_64-pc-linux-gnu/x86_64-cros-linux-gnu/binutils-bin/2.25.51/ld.gold.real: fatal error: no input files maybe you did a rebase and dropped the poison patch ?
,
Apr 3 2017
Rahul, could you please take a look at it? Thanks
,
Apr 3 2017
for reference, here's the original patch: https://chromium.googlesource.com/chromiumos/third_party/binutils/+/a83726f28779f99f17697e15b2ff8b69767f6fc7
,
Apr 3 2017
How did you build the binutils in the chroot? What does "/usr/x86_64-pc-linux-gnu/x86_64-cros-linux-gnu/binutils-bin/2.25.51/ld.gold.real --version" print? There hasn't been any change to binutils 2.25 source tree, or the sys-devel/binutils ebuild recently. Note that --warn-poison-system-directories is a flag implemented by a local patch, so it won't be recognized if you installed binutils directly from upstream sources.
,
Apr 3 2017
Sorry, I used the upstream binutils for libcxx, closing.. |
|||
►
Sign in to add a comment |
|||
Comment 1 by yunlian@chromium.org
, Apr 3 2017