* [Bug c/39276] [lto] - Testsuite gcc.log shows many "getconf: Invalid argument (_NPROCESSORS_ONLN)"
2009-02-23 16:13 [Bug c/39276] New: [lto] - Testsuite gcc.log shows many "getconf: Invalid argument (_NPROCESSORS_ONLN)" rob1weld at aol dot com
@ 2009-02-23 16:48 ` rob1weld at aol dot com
2009-02-23 17:05 ` rob1weld at aol dot com
` (10 subsequent siblings)
11 siblings, 0 replies; 13+ messages in thread
From: rob1weld at aol dot com @ 2009-02-23 16:48 UTC (permalink / raw)
To: gcc-bugs
------- Comment #1 from rob1weld at aol dot com 2009-02-23 16:48 -------
Created an attachment (id=17349)
--> (http://gcc.gnu.org/bugzilla/attachment.cgi?id=17349&action=view)
Proposed Patch to fix ltrans-driver on Platform OpenSolaris
This patch should fix this Bug (and another, use gawk instead of awk)
in the ../lto_trunk/gcc/lto/ltrans-driver file on OpenSolaris 2009.06 .
Rob
--
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=39276
^ permalink raw reply [flat|nested] 13+ messages in thread
* [Bug c/39276] [lto] - Testsuite gcc.log shows many "getconf: Invalid argument (_NPROCESSORS_ONLN)"
2009-02-23 16:13 [Bug c/39276] New: [lto] - Testsuite gcc.log shows many "getconf: Invalid argument (_NPROCESSORS_ONLN)" rob1weld at aol dot com
2009-02-23 16:48 ` [Bug c/39276] " rob1weld at aol dot com
@ 2009-02-23 17:05 ` rob1weld at aol dot com
2009-02-23 17:29 ` [Bug driver/39276] " pinskia at gcc dot gnu dot org
` (9 subsequent siblings)
11 siblings, 0 replies; 13+ messages in thread
From: rob1weld at aol dot com @ 2009-02-23 17:05 UTC (permalink / raw)
To: gcc-bugs
------- Comment #2 from rob1weld at aol dot com 2009-02-23 17:04 -------
Created an attachment (id=17353)
--> (http://gcc.gnu.org/bugzilla/attachment.cgi?id=17353&action=view)
Proposed Patch to fix ltrans-driver on Platform OpenSolaris
Revised Patch.
--
rob1weld at aol dot com changed:
What |Removed |Added
----------------------------------------------------------------------------
Attachment #17349|0 |1
is obsolete| |
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=39276
^ permalink raw reply [flat|nested] 13+ messages in thread
* [Bug driver/39276] [lto] - Testsuite gcc.log shows many "getconf: Invalid argument (_NPROCESSORS_ONLN)"
2009-02-23 16:13 [Bug c/39276] New: [lto] - Testsuite gcc.log shows many "getconf: Invalid argument (_NPROCESSORS_ONLN)" rob1weld at aol dot com
2009-02-23 16:48 ` [Bug c/39276] " rob1weld at aol dot com
2009-02-23 17:05 ` rob1weld at aol dot com
@ 2009-02-23 17:29 ` pinskia at gcc dot gnu dot org
2009-02-23 17:33 ` dnovillo at google dot com
` (8 subsequent siblings)
11 siblings, 0 replies; 13+ messages in thread
From: pinskia at gcc dot gnu dot org @ 2009-02-23 17:29 UTC (permalink / raw)
To: gcc-bugs
------- Comment #3 from pinskia at gcc dot gnu dot org 2009-02-23 17:29 -------
I don't think ltrans-driver should be a shell script anyways because on windows
you will most likely not have /bin/sh installed.
--
pinskia at gcc dot gnu dot org changed:
What |Removed |Added
----------------------------------------------------------------------------
CC| |dnovillo at gcc dot gnu dot
| |org
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=39276
^ permalink raw reply [flat|nested] 13+ messages in thread
* [Bug driver/39276] [lto] - Testsuite gcc.log shows many "getconf: Invalid argument (_NPROCESSORS_ONLN)"
2009-02-23 16:13 [Bug c/39276] New: [lto] - Testsuite gcc.log shows many "getconf: Invalid argument (_NPROCESSORS_ONLN)" rob1weld at aol dot com
` (2 preceding siblings ...)
2009-02-23 17:29 ` [Bug driver/39276] " pinskia at gcc dot gnu dot org
@ 2009-02-23 17:33 ` dnovillo at google dot com
2009-02-24 16:54 ` [Bug c/39276] " rob1weld at aol dot com
` (7 subsequent siblings)
11 siblings, 0 replies; 13+ messages in thread
From: dnovillo at google dot com @ 2009-02-23 17:33 UTC (permalink / raw)
To: gcc-bugs
------- Comment #4 from dnovillo at google dot com 2009-02-23 17:33 -------
Subject: Re: [lto] - Testsuite gcc.log shows many "getconf:
Invalid argument (_NPROCESSORS_ONLN)"
On Mon, Feb 23, 2009 at 12:29, pinskia at gcc dot gnu dot org
<gcc-bugzilla@gcc.gnu.org> wrote:
>
>
> ------- Comment #3 from pinskia at gcc dot gnu dot org 2009-02-23 17:29 -------
> I don't think ltrans-driver should be a shell script anyways because on windows
> you will most likely not have /bin/sh installed.
Yes, ltrans-driver is a quick hack. It probably only works reliably
on some variants of Linux. It's a small script, so it should be easy
to fix.
Diego.
--
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=39276
^ permalink raw reply [flat|nested] 13+ messages in thread
* [Bug c/39276] [lto] - Testsuite gcc.log shows many "getconf: Invalid argument (_NPROCESSORS_ONLN)"
2009-02-23 16:13 [Bug c/39276] New: [lto] - Testsuite gcc.log shows many "getconf: Invalid argument (_NPROCESSORS_ONLN)" rob1weld at aol dot com
` (3 preceding siblings ...)
2009-02-23 17:33 ` dnovillo at google dot com
@ 2009-02-24 16:54 ` rob1weld at aol dot com
2009-07-09 0:11 ` [Bug lto/39276] " bje at gcc dot gnu dot org
` (6 subsequent siblings)
11 siblings, 0 replies; 13+ messages in thread
From: rob1weld at aol dot com @ 2009-02-24 16:54 UTC (permalink / raw)
To: gcc-bugs
------- Comment #5 from rob1weld at aol dot com 2009-02-24 16:53 -------
On OpenSolaris 2009.06 (snv_106) I get improved results with the Patch.
Before my Patch (awful, posted for comparison purposes only):
Results for 4.4.0 20090218 (experimental) [lto revision 144375] (lto merged
with rev 144262) testsuite on i386-pc-solaris2.11
http://gcc.gnu.org/ml/gcc-testresults/2009-02/msg02284.html
=== gcc Summary ===
# of expected passes 59196
# of unexpected failures 3865
# of unexpected successes 4
# of expected failures 186
# of unresolved testcases 2405
# of unsupported tests 564
-----
After my Patch:
Results for 4.4.0 20090218 (experimental) [lto revision 144375] (lto merged
with rev 144262) testsuite on i386-pc-solaris2.11 (Patched)
http://gcc.gnu.org/ml/gcc-testresults/2009-02/msg02375.html
=== gcc Summary ===
# of expected passes 64141
# of unexpected failures 1201
# of unexpected successes 4
# of expected failures 186
# of unresolved testcases 115
# of unsupported tests 564
Rob
--
rob1weld at aol dot com changed:
What |Removed |Added
----------------------------------------------------------------------------
Component|driver |c
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=39276
^ permalink raw reply [flat|nested] 13+ messages in thread
* [Bug lto/39276] [lto] - Testsuite gcc.log shows many "getconf: Invalid argument (_NPROCESSORS_ONLN)"
2009-02-23 16:13 [Bug c/39276] New: [lto] - Testsuite gcc.log shows many "getconf: Invalid argument (_NPROCESSORS_ONLN)" rob1weld at aol dot com
` (4 preceding siblings ...)
2009-02-24 16:54 ` [Bug c/39276] " rob1weld at aol dot com
@ 2009-07-09 0:11 ` bje at gcc dot gnu dot org
2009-07-09 20:50 ` ro at gcc dot gnu dot org
` (5 subsequent siblings)
11 siblings, 0 replies; 13+ messages in thread
From: bje at gcc dot gnu dot org @ 2009-07-09 0:11 UTC (permalink / raw)
To: gcc-bugs
------- 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|0000-00-00 00:00:00 |2009-07-09 00:10:48
date| |
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=39276
^ permalink raw reply [flat|nested] 13+ messages in thread
* [Bug lto/39276] [lto] - Testsuite gcc.log shows many "getconf: Invalid argument (_NPROCESSORS_ONLN)"
2009-02-23 16:13 [Bug c/39276] New: [lto] - Testsuite gcc.log shows many "getconf: Invalid argument (_NPROCESSORS_ONLN)" rob1weld at aol dot com
` (5 preceding siblings ...)
2009-07-09 0:11 ` [Bug lto/39276] " bje at gcc dot gnu dot org
@ 2009-07-09 20:50 ` ro at gcc dot gnu dot org
2009-09-16 13:39 ` rguenth at gcc dot gnu dot org
` (4 subsequent siblings)
11 siblings, 0 replies; 13+ messages in thread
From: ro at gcc dot gnu dot org @ 2009-07-09 20:50 UTC (permalink / raw)
To: gcc-bugs
------- 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_ONLN&page=1&refer=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
^ permalink raw reply [flat|nested] 13+ messages in thread
* [Bug lto/39276] [lto] - Testsuite gcc.log shows many "getconf: Invalid argument (_NPROCESSORS_ONLN)"
2009-02-23 16:13 [Bug c/39276] New: [lto] - Testsuite gcc.log shows many "getconf: Invalid argument (_NPROCESSORS_ONLN)" rob1weld at aol dot com
` (6 preceding siblings ...)
2009-07-09 20:50 ` ro at gcc dot gnu dot org
@ 2009-09-16 13:39 ` rguenth at gcc dot gnu dot org
2009-09-17 9:08 ` rguenth at gcc dot gnu dot org
` (3 subsequent siblings)
11 siblings, 0 replies; 13+ messages in thread
From: rguenth at gcc dot gnu dot org @ 2009-09-16 13:39 UTC (permalink / raw)
To: gcc-bugs
------- 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
^ permalink raw reply [flat|nested] 13+ messages in thread
* [Bug lto/39276] [lto] - Testsuite gcc.log shows many "getconf: Invalid argument (_NPROCESSORS_ONLN)"
2009-02-23 16:13 [Bug c/39276] New: [lto] - Testsuite gcc.log shows many "getconf: Invalid argument (_NPROCESSORS_ONLN)" rob1weld at aol dot com
` (7 preceding siblings ...)
2009-09-16 13:39 ` rguenth at gcc dot gnu dot org
@ 2009-09-17 9:08 ` rguenth at gcc dot gnu dot org
2009-09-22 11:28 ` rguenth at gcc dot gnu dot org
` (2 subsequent siblings)
11 siblings, 0 replies; 13+ messages in thread
From: rguenth at gcc dot gnu dot org @ 2009-09-17 9:08 UTC (permalink / raw)
To: gcc-bugs
------- 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
^ permalink raw reply [flat|nested] 13+ messages in thread
* [Bug lto/39276] [lto] - Testsuite gcc.log shows many "getconf: Invalid argument (_NPROCESSORS_ONLN)"
2009-02-23 16:13 [Bug c/39276] New: [lto] - Testsuite gcc.log shows many "getconf: Invalid argument (_NPROCESSORS_ONLN)" rob1weld at aol dot com
` (8 preceding siblings ...)
2009-09-17 9:08 ` rguenth at gcc dot gnu dot org
@ 2009-09-22 11:28 ` rguenth at gcc dot gnu dot org
2009-09-22 11:30 ` rguenth at gcc dot gnu dot org
2009-09-25 23:58 ` rob1weld at aol dot com
11 siblings, 0 replies; 13+ messages in thread
From: rguenth at gcc dot gnu dot org @ 2009-09-22 11:28 UTC (permalink / raw)
To: gcc-bugs
------- 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=gcc&view=rev&rev=151973
Log:
2009-09-22 Richard Guenther <rguenther@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
^ permalink raw reply [flat|nested] 13+ messages in thread
* [Bug lto/39276] [lto] - Testsuite gcc.log shows many "getconf: Invalid argument (_NPROCESSORS_ONLN)"
2009-02-23 16:13 [Bug c/39276] New: [lto] - Testsuite gcc.log shows many "getconf: Invalid argument (_NPROCESSORS_ONLN)" rob1weld at aol dot com
` (9 preceding siblings ...)
2009-09-22 11:28 ` rguenth at gcc dot gnu dot org
@ 2009-09-22 11:30 ` rguenth at gcc dot gnu dot org
2009-09-25 23:58 ` rob1weld at aol dot com
11 siblings, 0 replies; 13+ messages in thread
From: rguenth at gcc dot gnu dot org @ 2009-09-22 11:30 UTC (permalink / raw)
To: gcc-bugs
------- 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
^ permalink raw reply [flat|nested] 13+ messages in thread
* [Bug lto/39276] [lto] - Testsuite gcc.log shows many "getconf: Invalid argument (_NPROCESSORS_ONLN)"
2009-02-23 16:13 [Bug c/39276] New: [lto] - Testsuite gcc.log shows many "getconf: Invalid argument (_NPROCESSORS_ONLN)" rob1weld at aol dot com
` (10 preceding siblings ...)
2009-09-22 11:30 ` rguenth at gcc dot gnu dot org
@ 2009-09-25 23:58 ` rob1weld at aol dot com
11 siblings, 0 replies; 13+ messages in thread
From: rob1weld at aol dot com @ 2009-09-25 23:58 UTC (permalink / raw)
To: gcc-bugs
------- 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
^ permalink raw reply [flat|nested] 13+ messages in thread