Re: problem with building gcc-cross-4.8.3 for i686-pc-gnu

2015-02-07 Thread Ludovic Courtès
Marek Benc skribis: > On 02/05/2015 09:26 PM, Ludovic Courtès wrote: >> Marek Benc skribis: >> >>> On 02/05/2015 01:44 PM, Ludovic Courtès wrote: >>> Another thing I don’t understand is that we use "--disable-libgomp" in ‘cross-gcc-arguments’, which means that the first cross-gcc

Re: problem with building gcc-cross-4.8.3 for i686-pc-gnu

2015-02-05 Thread Marek Benc
On 02/05/2015 09:26 PM, Ludovic Courtès wrote: Marek Benc skribis: On 02/05/2015 01:44 PM, Ludovic Courtès wrote: Another thing I don’t understand is that we use "--disable-libgomp" in ‘cross-gcc-arguments’, which means that the first cross-gcc (sans libc) does not build libgomp. What ar

Re: problem with building gcc-cross-4.8.3 for i686-pc-gnu

2015-02-05 Thread Ludovic Courtès
Marek Benc skribis: > On 01/31/2015 11:13 PM, Marek Benc wrote: > >> >> The current issue is that, when building cross-gcc, when it reaches >> libgomp, configure fails when trying to create a dummy binary. For some >> reason, the compiled cross-compiler needs --rpath to specify where >> shared li

Re: problem with building gcc-cross-4.8.3 for i686-pc-gnu

2015-02-05 Thread Ludovic Courtès
Marek Benc skribis: > The attached patch does the following: > 1.) Adds the name of the dynamic linker to gnu/packages/bootstrap.scm > 2.) Adds code to gnu/package/gcc to substitute the default dynamic > linker in gcc/config/arch/gnu.h for the one to be used. > 3.) Changes how the build sys

Re: problem with building gcc-cross-4.8.3 for i686-pc-gnu

2015-02-01 Thread Marek Benc
On 01/31/2015 11:13 PM, Marek Benc wrote: The current issue is that, when building cross-gcc, when it reaches libgomp, configure fails when trying to create a dummy binary. For some reason, the compiled cross-compiler needs --rpath to specify where shared libraries are, as without it, it can'

Re: problem with building gcc-cross-4.8.3 for i686-pc-gnu

2015-01-31 Thread Marek Benc
Disregard the previous mail, I figured most of it out. The attached patch does the following: 1.) Adds the name of the dynamic linker to gnu/packages/bootstrap.scm 2.) Adds code to gnu/package/gcc to substitute the default dynamic linker in gcc/config/arch/gnu.h for the one to be used. 3.

Re: problem with building gcc-cross-4.8.3 for i686-pc-gnu

2015-01-31 Thread Marek Benc
Could you try out the patch in this email? Now, the problem is that GCC is configured with the native ld.so as the target system's dynamic linker. I'm not sure what code is responsible for that, but on the wip-hurd branch, this exact same problem happens for other platforms as well. In part

Re: problem with building gcc-cross-4.8.3 for i686-pc-gnu

2015-01-03 Thread Ludovic Courtès
Manolis Ragkousis skribis: > When trying to build coreutils for i686-pc-gnu, building > cross-gcc-4.8.3 with glibc-hurd fails with: > > In unknown file: >?: 0 [string-append > "/gnu/store/1hl59s1pikplwfgclw4mlk38pkx3pc72-glibc-hurd-cross-i686-pc-gnu-2.18" > ...] > > ERROR: In procedure string