New issue
Advanced search Search tips
Note: Color blocks (like or ) mean that a user may not be available. Tooltip shows the reason.

Issue 707811 link

Starred by 1 user

Issue metadata

Status: WontFix
Owner:
Last visit > 30 days ago
Closed: Apr 2017
Cc:
EstimatedDays: ----
NextAction: ----
OS: ----
Pri: 3
Type: Bug



Sign in to add a comment

x86_64-cros-linux-gnu-gcc failed to link simple program.

Project Member Reported by yunlian@chromium.org, Apr 3 2017

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

 
Cc: vapier@chromium.org
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 ?
Owner: rahulchaudhry@chromium.org
Rahul, could you please take a look at it?
Thanks
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.
Status: WontFix (was: Untriaged)
Sorry, I used the upstream binutils for libcxx, closing..

Sign in to add a comment