public inbox for binutils@sourceware.org
 help / color / mirror / Atom feed
* Buidling binutils in gcc source directory
@ 2015-05-22  1:25 Michael Darling
  2015-05-22  3:10 ` Alan Modra
  0 siblings, 1 reply; 3+ messages in thread
From: Michael Darling @ 2015-05-22  1:25 UTC (permalink / raw)
  To: binutils

I saw that you can build binutils in the gcc source directory.  So, I ran:

git clone git://gcc.gnu.org/git/gcc.git git.git
cd git.git
./contrib/download_prerequisites
clone git://sourceware.org/git/binutils-gdb.git binutils
mkdir ../gcc.build
cd ../gcc.build
../gcc.git/configure --disable-multilib && make -j11

Runs for a few minutes, then errors with:

/bin/sh: line 7:
/home/mdarling/sourceInstallation/gcc.build.gcc.with.binutils/.binutils/ar:
No such file or directory

ln -s /home/mdarling/sourceInstallation/gcc.build.gcc.with.binutils/binutils/binutils/ar
binutils/ar

Then have to

ln -s /home/mdarling/sourceInstallation/gcc.build.gcc.with.binutils/binutils/binutils/ranlib
binutils/ranlib

Then, it errors with:
/home/mdarling/sourceInstallation/gcc.build.gcc.with.binutils/./gcc/nm:
line 106: exec: -p: invalid option

gcc/nm is a 3168 byte shell script, unlike /usr/bin/nm, a 42432 byte executable.

gcc/nm (shell script) has no -p option, not even a --help option.  nm
(/usr/bin executable) has a -p option, visible through --help

So my questions are are:

1. Why is it expecting the binutils binaries to be in
top-source-dir/binutils/ when they are all in
top-source-dir/binutils/binutils/  ?  I'm not supposed to check out
binutils git into the base gcc directory, am I?  There's a bunch of
files that will conflict.

2. I got the git directory from http://www.gnu.org/software/binutils/
--- and it's binutils-gdb.git.  Gdb isn't involved, yet.  Am I
checking out the wrong thing?

3. How do I get past the nm issue?

^ permalink raw reply	[flat|nested] 3+ messages in thread

end of thread, other threads:[~2015-05-22 11:24 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2015-05-22  1:25 Buidling binutils in gcc source directory Michael Darling
2015-05-22  3:10 ` Alan Modra
2015-05-22 11:24   ` Matt Rice

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).