crosstool-NG build for powerpc on Fedora Core 11 = hundreds of grep processes
Mark Schaefer
mark.s.schaefer@gmail.com
Sat Oct 24 01:25:00 GMT 2009
Hi all,
The subject mainly covers it...
Here's my process:
./configure --local
make
./ct-ng build
at this point, top shows no significant activity, but script is acting slowly.
If I interrupt (^C), I get the following output:
[INFO ] Performing some trivial sanity checks
[00:00] / ^Cmake: *** [build] Interrupt
Now, ct-ng has spawned off so many grep jobs that I get the following:
[mschaefe@grumpy crosstool-ng.1.5.0]$ ps
-bash: fork: retry: Resource temporarily unavailable
-bash: fork: retry: Resource temporarily unavailable
-bash: fork: retry: Resource temporarily unavailable
-bash: fork: retry: Resource temporarily unavailable
-bash: fork: Resource temporarily unavailable
[mschaefe@grumpy crosstool-ng.1.5.0]$ ps
-bash: fork: retry: Resource temporarily unavailable
-bash: fork: retry: Resource temporarily unavailable
-bash: fork: retry: Resource temporarily unavailable
-bash: fork: retry: Resource temporarily unavailable
-bash: fork: Resource temporarily unavailable
When I finally get a ps, I get a page full of entries like this:
ps ax
27913 pts/0 S 0:00 /bin/bash /home/mschaefe/crosstool-ng.1.
5.0/scripts/crosstool-NG.sh
27915 pts/0 S 0:00 /bin/bash
/share/home/mschaefe/crosstool-ng.1.5.0/targets/bin/sed -r -e
s/%N$/000000000/;
27921 pts/0 S 0:00 /bin/bash
/share/home/mschaefe/crosstool-ng.1.5.0/targets/bin/grep -qw
/usr/lib/ccache
....
30033 pts/0 S 0:00 /bin/bash
/share/home/mschaefe/crosstool-ng.1.5.0/targets/bin/grep -qw
/usr/lib/ccache
30039 pts/0 S 0:00 /bin/bash
/share/home/mschaefe/crosstool-ng.1.5.0/targets/bin/grep -qw
/usr/lib/ccache
30045 pts/0 S 0:00 /bin/bash
/share/home/mschaefe/crosstool-ng.1.5.0/targets/bin/grep -qw
/usr/lib/ccache
30051 pts/0 S 0:00 /bin/bash
/share/home/mschaefe/crosstool-ng.1.5.0/targets/bin/grep -qw
/usr/lib/ccache
30057 pts/0 S 0:00 /bin/bash
/share/home/mschaefe/crosstool-ng.1.5.0/targets/bin/grep -qw
/usr/lib/ccache
30063 pts/0 S 0:00 /bin/bash
/share/home/mschaefe/crosstool-ng.1.5.0/targets/bin/grep -qw
/usr/lib/ccache
30069 pts/0 S 0:00 /bin/bash
/share/home/mschaefe/crosstool-ng.1.5.0/targets/bin/grep -qw
/usr/lib/ccache
Since there's a known issue on ccache, here is some more detail: It
seems as though ccache is now a directory rather than an executable.
Is that a problem? Notice that the processes are 6 PIDs apart, which
suggests that there are some steps being executed non-recursively in
the middle.
[mschaefe@grumpy crosstool-ng.1.5.0]$ ls -l /usr/bin/ccache
-rwxr-xr-x 1 root root 41456 2009-02-24 02:42 /usr/bin/ccache
[mschaefe@grumpy crosstool-ng.1.5.0]$ ls -l /usr/lib/ccache
total 28
lrwxrwxrwx. 1 root root 16 2009-09-07 09:20 c++ -> ../../bin/ccache
lrwxrwxrwx. 1 root root 16 2009-09-07 09:20 cc -> ../../bin/ccache
lrwxrwxrwx. 1 root root 16 2009-09-07 09:20 g++ -> ../../bin/ccache
lrwxrwxrwx. 1 root root 16 2009-09-07 09:20 gcc -> ../../bin/ccache
lrwxrwxrwx. 1 root root 16 2009-09-07 09:20 i586-redhat-linux-c++ ->
../../bin/ccache
lrwxrwxrwx. 1 root root 16 2009-09-07 09:20 i586-redhat-linux-g++ ->
../../bin/ccache
lrwxrwxrwx. 1 root root 16 2009-09-07 09:20 i586-redhat-linux-gcc ->
../../bin/ccache
[mschaefe@grumpy crosstool-ng.1.5.0]$ ls -l /usr/lib |grep ccache
drwxr-xr-x. 2 root root 4096 2009-09-07 15:54 ccache
[mschaefe@grumpy crosstool-ng.1.5.0]$gcc -v
...
...
gcc version 4.4.1 20090725 (Red Hat 4.4.1-2) (GCC)
Please help :)
Thanks!
Mark
P.S. Re-sent because sourceware.org did not accept html-formatted mail.
--
For unsubscribe information see http://sourceware.org/lists.html#faq
More information about the crossgcc
mailing list