[Bug lto/39276] [lto] - Testsuite gcc.log shows many getconf: Invalid argument (_NPROCESSORS_ONLN)
--- Comment #12 from rob1weld at aol dot com 2009-09-25 23:58 --- (In reply to comment #11) Fixed. Thanks, Rob -- http://gcc.gnu.org/bugzilla/show_bug.cgi?id=39276
[Bug lto/39276] [lto] - Testsuite gcc.log shows many getconf: Invalid argument (_NPROCESSORS_ONLN)
--- Comment #10 from rguenth at gcc dot gnu dot org 2009-09-22 11:28 --- Subject: Bug 39276 Author: rguenth Date: Tue Sep 22 11:28:14 2009 New Revision: 151973 URL: http://gcc.gnu.org/viewcvs?root=gccview=revrev=151973 Log: 2009-09-22 Richard Guenther rguent...@suse.de PR lto/39276 * doc/invoke.texi (-fltrans-driver): Remove. lto/ * lto.c (lto_execute_ltrans): Perform ltrans phase manually. * Make-lang.in: Remove ltrans-driver stuff. * config-lang.in: Likewise. * lang.opt (fltrans-driver): Remove. * lto-lang.c (lto_init_options): Remove code initializing ltrans_driver. * ltrans-driver: Remove. Modified: branches/lto/gcc/ChangeLog.lto branches/lto/gcc/doc/invoke.texi branches/lto/gcc/lto/ChangeLog branches/lto/gcc/lto/Make-lang.in branches/lto/gcc/lto/config-lang.in branches/lto/gcc/lto/lang.opt branches/lto/gcc/lto/lto-lang.c branches/lto/gcc/lto/lto.c -- http://gcc.gnu.org/bugzilla/show_bug.cgi?id=39276
[Bug lto/39276] [lto] - Testsuite gcc.log shows many getconf: Invalid argument (_NPROCESSORS_ONLN)
--- Comment #11 from rguenth at gcc dot gnu dot org 2009-09-22 11:29 --- Fixed. -- rguenth at gcc dot gnu dot org changed: What|Removed |Added Status|ASSIGNED|RESOLVED Resolution||FIXED http://gcc.gnu.org/bugzilla/show_bug.cgi?id=39276
[Bug lto/39276] [lto] - Testsuite gcc.log shows many getconf: Invalid argument (_NPROCESSORS_ONLN)
--- Comment #9 from rguenth at gcc dot gnu dot org 2009-09-17 09:07 --- Mine. -- rguenth at gcc dot gnu dot org changed: What|Removed |Added AssignedTo|bje at gcc dot gnu dot org |rguenth at gcc dot gnu dot ||org http://gcc.gnu.org/bugzilla/show_bug.cgi?id=39276
[Bug lto/39276] [lto] - Testsuite gcc.log shows many getconf: Invalid argument (_NPROCESSORS_ONLN)
--- Comment #8 from rguenth at gcc dot gnu dot org 2009-09-16 13:38 --- For the ease of debugging lto_execute_ltrans should get a mode that just serially executes things without a script. I'm trying to get that running. -- http://gcc.gnu.org/bugzilla/show_bug.cgi?id=39276
[Bug lto/39276] [lto] - Testsuite gcc.log shows many getconf: Invalid argument (_NPROCESSORS_ONLN)
--- Comment #7 from ro at gcc dot gnu dot org 2009-07-09 20:50 --- Your patch isn't applicable to anything but Indiana (the distribution called OpenSolaris): * Solaris /bin/sh doesn't support $(), one needs to use `` instead (which can easily be done). * Likewise, Solaris /bin/sh doesn't support $[], one needs to use expr here. The following trivial patch does this, but still needs a general solution for the getconf issue: --- /vol/gcc/src/gcc-lto/gcc/lto/ltrans-driver Wed Jan 28 18:18:14 2009 +++ gcc/ltrans-driver Thu Jul 9 22:30:24 2009 @@ -94,10 +94,10 @@ getconf=/usr/bin/getconf par=1 if [ $verbose -ne 1 -a -x $awk -a -x $uptime -a -x $getconf ] ; then - loadavg=$($uptime | $awk '{ l = $(NF - 2); print int (strtonum (l)); }') - nprocs=$($getconf _NPROCESSORS_ONLN) + loadavg=`$uptime | $awk '{ l = $(NF - 2); print int (strtonum (l)); }'` + nprocs=`$getconf _NPROCESSORS_ONLN` if [ $loadavg -lt $nprocs ] ; then -par=$[($nprocs - $loadavg) * 2] +par=expr \( $nprocs - $loadavg \) \* 2 fi fi ${MAKE-make} -s -f $makefile -j $par all JDS (Suns port of GNOME) e.g. has this in its .spec files: %ifos linux if [ -x /usr/bin/getconf ]; then CPUS=`getconf _NPROCESSORS_ONLN` fi %else CPUS=`/usr/sbin/psrinfo | grep on-line | wc -l | tr -d ''` %endif if test x$CPUS = x -o $CPUS = 0; then CPUS=1 fi (from http://markmail.org/message/bbjajsxhpfon2rn2?q=getconf+solaris+_NPROCESSORS_ONLNpage=1refer=xt45zeazcrhna7hf) Your ksh93 based solution cannot be used because /bin/ksh93 was only introduced in some later builds of Solaris Express/OpenSolaris. -- http://gcc.gnu.org/bugzilla/show_bug.cgi?id=39276
[Bug lto/39276] [lto] - Testsuite gcc.log shows many getconf: Invalid argument (_NPROCESSORS_ONLN)
--- Comment #6 from bje at gcc dot gnu dot org 2009-07-09 00:10 --- Confirmed. -- bje at gcc dot gnu dot org changed: What|Removed |Added AssignedTo|unassigned at gcc dot gnu |bje at gcc dot gnu dot org |dot org | Status|UNCONFIRMED |ASSIGNED Ever Confirmed|0 |1 Last reconfirmed|-00-00 00:00:00 |2009-07-09 00:10:48 date|| http://gcc.gnu.org/bugzilla/show_bug.cgi?id=39276