[Bug target/88715] Cross Compile on Debian Linux to create a uClibc tool chain GCC fails to compile

2019-01-06 Thread tomsies at mighty dot co.za
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=88715

DirkInSA  changed:

   What|Removed |Added

 Status|WAITING |RESOLVED
 Resolution|--- |FIXED

--- Comment #6 from DirkInSA  ---
Thanks, was just on the stack overflow thread that you kindly posted.

Will close this bug!

[Bug target/88715] Cross Compile on Debian Linux to create a uClibc tool chain GCC fails to compile

2019-01-06 Thread pinskia at gcc dot gnu.org
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=88715

--- Comment #5 from Andrew Pinski  ---
https://raghunathlolur.wordpress.com/2014/06/30/combined-tree-build-of-gcc-binutils-and-libraries/

https://stackoverflow.com/questions/1726042/recipe-for-compiling-binutils-gcc-together

etc.

[Bug target/88715] Cross Compile on Debian Linux to create a uClibc tool chain GCC fails to compile

2019-01-06 Thread tomsies at mighty dot co.za
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=88715

--- Comment #4 from DirkInSA  ---
Symlink was a simply the whole binutils source directory into gcc source
directory.

I was not aware that each of bfd, binutils, config, cpu & etc needed to be
linked (I assume) into the base gcc directory - will have a go at that and see
what happens.

Is the issue here that the variable as is empty, and so exec is trying to exec
--32 ... instead of as --32 ...?

[Bug target/88715] Cross Compile on Debian Linux to create a uClibc tool chain GCC fails to compile

2019-01-06 Thread pinskia at gcc dot gnu.org
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=88715

--- Comment #3 from Andrew Pinski  ---
Can you attach the full log?  And also attach config.log in the top level
directory?

> Actually binutils-2.29 ... are symlinked into the gcc source tree.

How did you do the symlink here?  Is it a symlink just to the binutils source
directory or symlinks to the files in the binutils source directories?

A combined tree requires a "merged" tree.

[Bug target/88715] Cross Compile on Debian Linux to create a uClibc tool chain GCC fails to compile

2019-01-06 Thread tomsies at mighty dot co.za
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=88715

--- Comment #2 from tomsies at mighty dot co.za ---
Actually binutils-2.29 (along with gmp-6.1.0, mpc-1.0.3 and mpfr-3.1.4) are
symlinked into the gcc source tree. So they should be built as part of the
compile.

My assumption is that the as script generated during the compile process is
there to pick up the relevant assembler at different stages of the compile, and
so this is a bug, because whatever assembler it is trying to exec will fail
with "as: 106: exec: --32: not found" because the exec string is not quoted?

[Bug target/88715] Cross Compile on Debian Linux to create a uClibc tool chain GCC fails to compile

2019-01-06 Thread pinskia at gcc dot gnu.org
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=88715

Andrew Pinski  changed:

   What|Removed |Added

 Status|UNCONFIRMED |WAITING
   Last reconfirmed||2019-01-06
 Ever confirmed|0   |1

--- Comment #1 from Andrew Pinski  ---
Did you build binutils for i686-uClibc-linux?  If not this is not a bug.