public inbox for crossgcc@sourceware.org
 help / color / mirror / Atom feed
* ct-ng build hangs forever
@ 2014-03-27  1:35 Claude
  2014-03-27  6:54 ` Thomas Petazzoni
  0 siblings, 1 reply; 4+ messages in thread
From: Claude @ 2014-03-27  1:35 UTC (permalink / raw)
  To: crossgcc

Hello,

I am trying to build the an x86 cross compile on a x86 Ubuntu 12.04 (up to
date wrt patches) host but ct-ng hands forever, with 1 core at 100%. I 
even let it run over night on 1 occasion but no success.

It hangs during compiling gmp. I turned on the debug option in ct-ng. 
Here is the output:

[DEBUG]    Looking for patches in '/home/user/sbox/trunk.image/i686/
bin/ct/lib/ct-ng.1.19.0/patches/gmp/4.3.0'...
[ALL  ]    Overiding config.guess and config.sub
[ALL  ]    `/home/user/sbox/trunk.image/i686/bin/ct/lib/ct-ng.1.19.0/
scripts/config.guess' -> `./config.guess'
[ALL  ]    `/home/user/sbox/trunk.image/i686/bin/ct/lib/ct-ng.1.19.0/
scripts/config.sub' -> `./config.sub'
[DEBUG]    ==> Executing: 'touch' 
'/home/user/sbox/trunk.image/i686/bin/cross-tool/crosstool-ng-1.19.0/
.build/src/.gmp-4.3.0.patched' 
[DEBUG]    ==> Executing: 'rm' '-f' 
'/home/user/sbox/trunk.image/i686/bin/cross-tool/crosstool-ng-1.19.0/
.build/src/.gmp-4.3.0.patching' 
[DEBUG]    Already extracted 'mpfr-3.1.2'
[DEBUG]    Already patched 'mpfr-3.1.2'
[DEBUG]    Already extracted 'isl-0.11.1'
[DEBUG]    Already patched 'isl-0.11.1'
[DEBUG]    Already extracted 'cloog-0.18.0'
[DEBUG]    Already patched 'cloog-0.18.0'
[DEBUG]    ==> Executing: 'mkdir' '-p' 
'/home/user/sbox/trunk.image/i686/bin/cross-tool/crosstool-ng-1.19.0/
.build/src/cloog-0.18.0/m4' 
[DEBUG]    Already extracted 'mpc-1.0.1'
[DEBUG]    Already patched 'mpc-1.0.1'
[DEBUG]    Already extracted 'binutils-2.22'
[DEBUG]    Already patched 'binutils-2.22'
[DEBUG]    Already extracted 'gcc-4.8.1'
[DEBUG]    Already patched 'gcc-4.8.1'
[INFO ]  Extracting and patching toolchain components: done in 0.50s
 (at 00:11)
[INFO ]  =================================================================
[INFO ]  Installing GMP for host
[DEBUG]    Entering '/home/user/sbox/trunk.image/i686/bin/cross-tool/
crosstool-ng-1.19.0/.build/x86_64-unknown-elf/build/
build-gmp-host-x86_64-build_unknown-linux-gnu'
[EXTRA]    Configuring GMP
[DEBUG]    ==> Executing: 'CFLAGS=-O2 -g -pipe  -fexceptions' 'LDFLAGS= '
 '/home/user/sbox/trunk.image/i686/bin/cross-tool/crosstool-ng-1.19.0/
.build/src/gmp-4.3.0/configure'
 '--build=x86_64-build_unknown-linux-gnu'
 '--host=x86_64-build_unknown-linux-gnu'
 '--prefix=/home/user/sbox/trunk.image/i686/bin/cross-tool/
crosstool-ng-1.19.0/.build/x86_64-unknown-elf/buildtools'
 '--enable-fft' '--enable -mpbsd' '--enable-cxx' '--disable-shared'
 '--enable-static' 
[CFG  ]    checking build system type... x86_64-build_unknown-linux-gnu
[CFG  ]    checking host system type... x86_64-build_unknown-linux-gnu
[CFG  ]    checking for a BSD-compatible install...
 /home/user/sbox/trunk.image/i686/bin/cross-tool/crosstool-ng-
1.19.0/.build/tools/bin/install -c
[CFG  ]    checking whether build environment is sane... yes
[CFG  ]    checking for gawk... gawk

<hit ctrl-c> here

[ERROR]  
[ERROR]  >>
[ERROR]  >>  Build failed in step 'Installing GMP for host'
[ERROR]  >>        called in step '(top-level)'
[ERROR]  >>
[ERROR]  >>  Error happened in: CT_DoExecLog[scripts/functions@257]
[ERROR]  >>        called from:
 do_gmp_backend[scripts/build/companion_libs/100-gmp.sh@84]
[ERROR]  >>        called from:
 do_gmp_for_host[scripts/build/companion_libs/100-gmp.sh@59]
[ERROR]  >>        called from: 
do_companion_libs_for_host[scripts/build/companion_libs.sh@36]
[ERROR]  >>        called from: main[scripts/crosstool-NG.sh@632]
[ERROR]  >>
[ERROR]  >>  For more info on this error, look at the file: 'build.log'
[ERROR]  >>  There is a list of known issues, some with workarounds, in:
[ERROR]  >>      
'/home/user/sbox/trunk.image/i686/bin/ct/share/doc/crosstool-ng/ct-ng.1.19.0/B
 - Known issues.txt'
[ERROR]  
[ERROR]  (elapsed: 123:45.28)



I tried different version of gmp. I also compiled it successfully standalone. 

I am not sure where to look now. Any pointer?



--
For unsubscribe information see http://sourceware.org/lists.html#faq

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

* Re: ct-ng build hangs forever
  2014-03-27  1:35 ct-ng build hangs forever Claude
@ 2014-03-27  6:54 ` Thomas Petazzoni
  2014-03-27 12:21   ` Claude
  0 siblings, 1 reply; 4+ messages in thread
From: Thomas Petazzoni @ 2014-03-27  6:54 UTC (permalink / raw)
  To: Claude; +Cc: crossgcc

Dear Claude,

On Thu, 27 Mar 2014 01:30:44 +0000 (UTC), Claude wrote:

> I tried different version of gmp. I also compiled it successfully standalone. 
> 
> I am not sure where to look now. Any pointer?

When the thing is eating 100% cpu and stuck, can you do a "ps auxf",
and give the output of the process tree that starts from the ct-ng
process? This way, we would see which thing is actually stuck. That
might help in giving a clue.

Best regards,

Thomas
-- 
Thomas Petazzoni, CTO, Free Electrons
Embedded Linux, Kernel and Android engineering
http://free-electrons.com

--
For unsubscribe information see http://sourceware.org/lists.html#faq

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

* Re: ct-ng build hangs forever
  2014-03-27  6:54 ` Thomas Petazzoni
@ 2014-03-27 12:21   ` Claude
  2014-03-29 17:39     ` Claude
  0 siblings, 1 reply; 4+ messages in thread
From: Claude @ 2014-03-27 12:21 UTC (permalink / raw)
  To: crossgcc

Thomas Petazzoni <thomas.petazzoni <at> free-electrons.com> writes:

> 
> 
> When the thing is eating 100% cpu and stuck, can you do a "ps auxf",
> and give the output of the process tree that starts from the ct-ng
> process? This way, we would see which thing is actually stuck. That
> might help in giving a clue.
> 

Here it is


     11933 10632             make -f ct-ng build
     11947 11933             /bin/bash /home
  /ct-ng.1.19.0/scripts/crosstool-NG.sh
     16920 11947               /bin/bash /home
  /ct-ng.1.19.0/scripts/crosstool-NG.sh
     16933 16920                 /bin/bash /home
 /ct-ng.1.19.0/scripts/crosstool-NG.sh
     16937 16933                   /bin/bash /home
 /crosstool-ng-1.19.0/.build/src/gmp-4.3.2/configure
 --no-reexec --build=x86
     17266 16937                     /bin/bash /home
 /crosstool-ng-1.19.0/.build/src/gmp-4.3.2/configure
 --no-reexec --build=x
     17267 17266                       /bin/bash /home
 /crosstool-ng-1.19.0/.build/tools/bin/make
 -j 4 -j 4 -j 4 -j 4 -j 4 -j
     16938 16933                   /bin/bash
 /home/ct-ng.1.19.0/scripts/crosstool-NG.sh
     16939 16938                     /bin/bash
 /home/b /ct-ng.1.19.0/scripts/crosstool-NG.sh
     16942 16939                       cat -
     16940 16938                     /bin/bash
 /home/ /ct-ng.1.19.0/scripts/crosstool-NG.sh



I removed some of the column because of the 80 character limit on this
post system. I also cut the command line pathname.  The process ID that
was running 100% is 17267. Bizarre that there is no child.

Using htop I looked at the command line of that PID, the -j 4 reports
ad nauseam for very very very long. In a previous run, I did
configure ct to use only 1 core but the -j 4 was still there.

I call ct-ng using make since the first line, containing #!make,
does not work, unless I modify it to include the full path of make






--
For unsubscribe information see http://sourceware.org/lists.html#faq

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

* Re: ct-ng build hangs forever
  2014-03-27 12:21   ` Claude
@ 2014-03-29 17:39     ` Claude
  0 siblings, 0 replies; 4+ messages in thread
From: Claude @ 2014-03-29 17:39 UTC (permalink / raw)
  To: crossgcc

Claude <claude <at> cbcr.me> writes:



Updated information. I am able to successfully build the cross-compiler
(did not test it yet) using version 1.13.4 of ct-ng. Starting with
1.14.0 I get the same behaviour where gmp hangs. In both cases (1.13.4
and 1.14.0) I am using the default configuration, except that I target
an x86 host with 64 bits. 




--
For unsubscribe information see http://sourceware.org/lists.html#faq

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

end of thread, other threads:[~2014-03-29 17:39 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2014-03-27  1:35 ct-ng build hangs forever Claude
2014-03-27  6:54 ` Thomas Petazzoni
2014-03-27 12:21   ` Claude
2014-03-29 17:39     ` Claude

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).