* f77 and cc optimization problem on osf v3.2
[not found] <3srrb4$qhe@usenet.ucs.indiana.edu>
@ 1995-07-03 4:00 ` Christos Siopis
1995-07-03 4:00 ` Dan Pop
0 siblings, 1 reply; 6+ messages in thread
From: Christos Siopis @ 1995-07-03 4:00 UTC (permalink / raw)
To: lionel, siopis
Hi,
Recently there was a thread on a bug of OSF's cc compiler, regarding the
-O3 optimization option. I have a problem with the *Fortran* compiler that
I suspect can be traced back to cc's bug. Here is my problem:
----------------
% f77 -v nbmod.f
/usr/lib/cmplrs/fort/decfort -o /tmp/forAAAaanbea.o nbmod.f
/usr/bin/cc -v /usr/lib/cmplrs/fort/for_main.o /tmp/forAAAaanbea.o -O4 -lUfor
-lfor -lFutil -lm -lots
/usr/lib/cmplrs/cc/ld -g0 -O4 -call_shared /usr/lib/cmplrs/cc/crt0.o
/usr/lib/cmplrs/fort/for_main.o /tmp/forAAAaanbea.o -lUfor -lfor -lFutil
-lm -lots -lc
Assertion failed: 0, file ../../../../../../src/usr/ccs/lib/libmld/
cmrlc_produce.c, line 864
0.2u 0.0s 0:00 30% 0+7k 18+8io 1pf+0w
Fatal error in: /usr/lib/cmplrs/cc/ld IOT/Abort trap
fort: Severe: Failed while trying to link.
----------------
I have no idea what the assertion failure means and I could not locate
any ../../../blabla/cmrlc_produce.c file (could it probably be missing?)
What does cmrlc_produce.c do?
The default optimization parameter for DEC OSF f77 is -O4, which is actually
passed down to the cc compiler. When I compiled the program with -O0 and -O1
there was no problem. When I compiled with -O2 though, it would *not*
work. So it seems my problem starts with -O2, not -O3.
One solution suggested was to use the -migrate option,
but that did not work either:
----------------
% f77 -migrate -v nbmod.f
/usr/lib/cmplrs/fort/decfort -o /tmp/forAAAaalzra.o nbmod.f
/usr/bin/cc -migrate -v /usr/lib/cmplrs/fort/for_main.o /tmp/forAAAaalzra.o -O4
-lUfor -lfor -lFutil -lm -lots
/usr/lib/cmplrs/cc/ld -g0 -O4 -std0 -call_shared /usr/lib/cmplrs/cc/crt0.o
/usr/lib/cmplrs/fort/for_main.o /tmp/forAAAaalzra.o -lUfor -lfor -lFutil -lm
-lots -lots -lc
Assertion failed: 0, file ../../../../../../src/usr/ccs/lib/libmld/
cmrlc_produce.c, line 864
0.2u 0.0s 0:00 42% 0+7k 5+9io 0pf+0w
Fatal error in: /usr/lib/cmplrs/cc/ld IOT/Abort trap
fort: Severe: Failed while trying to link.
----------------
This is interesting, because according to the documentation, -migrate
forces the compiler to use the DEC C (instead of the DEC OSF/1 C)
compilation environment, which uses "other" optimizations.
One difference between my case and the cc bug reported by Bill Wang is that
I cannot even link, whereas he *could* link, but he would get different
results from the optimized and the non-optimized executables.
I have compiled the source code successfully on Ultrix, AIX, VMS and SunOS.
I will have to use my Alpha for runs that could take several weeks at
a time, and optimization could be crucial (I have had execution time
decreased by more than a factor of 2 between -O1 and -O4 on one occasion).
So using -O1 would not really be a satisfactory solution (unless there
was a way to know that -O4 would not significantly improve performance).
Any help would be appreciated. Please cc: your post to me personally.
--
*********************************************************************
* Christos Siopis | Internet: siopis@astro.ufl.edu *
* Graduate Student | BITNET : siopis@ufcc *
* P.O. Box 112055 | *
* Department of Astronomy | Voice : (904) 374-6833 *
* University of Florida | (904) 392-0123 *
* Gainesville, FL 32611-2055 | *
* U.S.A. | FAX : (904) 392-5089 *
*********************************************************************
^ permalink raw reply [flat|nested] 6+ messages in thread* Re: f77 and cc optimization problem on osf v3.2
1995-07-03 4:00 ` f77 and cc optimization problem on osf v3.2 Christos Siopis
@ 1995-07-03 4:00 ` Dan Pop
0 siblings, 0 replies; 6+ messages in thread
From: Dan Pop @ 1995-07-03 4:00 UTC (permalink / raw)
In <3t85a0$1na@no-names.nerdc.ufl.edu> siopis@astro.ufl.edu (Christos Siopis) writes:
>Hi,
>
>Recently there was a thread on a bug of OSF's cc compiler, regarding the
>-O3 optimization option. I have a problem with the *Fortran* compiler that
>I suspect can be traced back to cc's bug. Here is my problem:
>
>----------------
>% f77 -v nbmod.f
>/usr/lib/cmplrs/fort/decfort -o /tmp/forAAAaanbea.o nbmod.f
>/usr/bin/cc -v /usr/lib/cmplrs/fort/for_main.o /tmp/forAAAaanbea.o -O4 -lUfor
>-lfor -lFutil -lm -lots
>/usr/lib/cmplrs/cc/ld -g0 -O4 -call_shared /usr/lib/cmplrs/cc/crt0.o
>/usr/lib/cmplrs/fort/for_main.o /tmp/forAAAaanbea.o -lUfor -lfor -lFutil
>-lm -lots -lc
>Assertion failed: 0, file ../../../../../../src/usr/ccs/lib/libmld/
>cmrlc_produce.c, line 864
>0.2u 0.0s 0:00 30% 0+7k 18+8io 1pf+0w
>Fatal error in: /usr/lib/cmplrs/cc/ld IOT/Abort trap
>fort: Severe: Failed while trying to link.
>----------------
>
>I have no idea what the assertion failure means and I could not locate
>any ../../../blabla/cmrlc_produce.c file (could it probably be missing?)
>What does cmrlc_produce.c do?
>
This is a very good example for the bigots who insist that asserts are
the right way to produce error messages for the end user.
Contact DEC support for the patch you need.
Dan
--
Dan Pop
CERN, CN Division
Email: Dan.Pop@mail.cern.ch
Mail: CERN - PPE, Bat. 31 R-004, CH-1211 Geneve 23, Switzerland
^ permalink raw reply [flat|nested] 6+ messages in thread
* f77 and cc optimization problem on osf v3.2
@ 1995-07-03 4:00 Christos Siopis
1995-07-04 4:00 ` Steve Lionel
0 siblings, 1 reply; 6+ messages in thread
From: Christos Siopis @ 1995-07-03 4:00 UTC (permalink / raw)
To: lionel, siopis
Hi,
Recently there was a thread on a bug of OSF's cc compiler, regarding the
-O3 optimization option. I have a problem with the *Fortran* compiler that
I suspect can be traced back to cc's bug. Here is my problem:
----------------
% f77 -v nbmod.f
/usr/lib/cmplrs/fort/decfort -o /tmp/forAAAaanbea.o nbmod.f
/usr/bin/cc -v /usr/lib/cmplrs/fort/for_main.o /tmp/forAAAaanbea.o -O4 -lUfor
-lfor -lFutil -lm -lots
/usr/lib/cmplrs/cc/ld -g0 -O4 -call_shared /usr/lib/cmplrs/cc/crt0.o
/usr/lib/cmplrs/fort/for_main.o /tmp/forAAAaanbea.o -lUfor -lfor -lFutil
-lm -lots -lc
Assertion failed: 0, file ../../../../../../src/usr/ccs/lib/libmld/
cmrlc_produce.c, line 864
0.2u 0.0s 0:00 30% 0+7k 18+8io 1pf+0w
Fatal error in: /usr/lib/cmplrs/cc/ld IOT/Abort trap
fort: Severe: Failed while trying to link.
----------------
I have no idea what the assertion failure means and I could not locate
any ../../../blabla/cmrlc_produce.c file (could it probably be missing?)
What does cmrlc_produce.c do?
The default optimization parameter for DEC OSF f77 is -O4, which is actually
passed down to the cc compiler. When I compiled the program with -O0 and -O1
there was no problem. When I compiled with -O2 though, it would *not*
work. So it seems my problem starts with -O2, not -O3.
One solution suggested was to use the -migrate option,
but that did not work either:
----------------
% f77 -migrate -v nbmod.f
/usr/lib/cmplrs/fort/decfort -o /tmp/forAAAaalzra.o nbmod.f
/usr/bin/cc -migrate -v /usr/lib/cmplrs/fort/for_main.o /tmp/forAAAaalzra.o -O4
-lUfor -lfor -lFutil -lm -lots
/usr/lib/cmplrs/cc/ld -g0 -O4 -std0 -call_shared /usr/lib/cmplrs/cc/crt0.o
/usr/lib/cmplrs/fort/for_main.o /tmp/forAAAaalzra.o -lUfor -lfor -lFutil -lm
-lots -lots -lc
Assertion failed: 0, file ../../../../../../src/usr/ccs/lib/libmld/
cmrlc_produce.c, line 864
0.2u 0.0s 0:00 42% 0+7k 5+9io 0pf+0w
Fatal error in: /usr/lib/cmplrs/cc/ld IOT/Abort trap
fort: Severe: Failed while trying to link.
----------------
This is interesting, because according to the documentation, -migrate
forces the compiler to use the DEC C (instead of the DEC OSF/1 C)
compilation environment, which uses "other" optimizations.
One difference between my case and the cc bug reported by Bill Wang is that
I cannot even link, whereas he *could* link, but he would get different
results from the optimized and the non-optimized executables.
I have compiled the source code successfully on Ultrix, AIX, VMS and SunOS.
I will have to use my Alpha for runs that could take several weeks at
a time, and optimization could be crucial (I have had execution time
decreased by more than a factor of 2 between -O1 and -O4 on one occasion).
So using -O1 would not really be a satisfactory solution (unless there
was a way to know that -O4 would not significantly improve performance).
Any help would be appreciated. Please cc: your post to me personally.
--
*********************************************************************
* Christos Siopis | Internet: siopis@astro.ufl.edu *
* Graduate Student | BITNET : siopis@ufcc *
* P.O. Box 112055 | *
* Department of Astronomy | Voice : (904) 374-6833 *
* University of Florida | (904) 392-0123 *
* Gainesville, FL 32611-2055 | *
* U.S.A. | FAX : (904) 392-5089 *
*********************************************************************
^ permalink raw reply [flat|nested] 6+ messages in thread
* Re: f77 and cc optimization problem on osf v3.2
1995-07-03 4:00 Christos Siopis
@ 1995-07-04 4:00 ` Steve Lionel
1995-07-04 4:00 ` Arne Elofsson
0 siblings, 1 reply; 6+ messages in thread
From: Steve Lionel @ 1995-07-04 4:00 UTC (permalink / raw)
In article <3t96ik$mir@no-names.nerdc.ufl.edu>, Christos Siopis <siopis> writes:
>Recently there was a thread on a bug of OSF's cc compiler, regarding the
>-O3 optimization option. I have a problem with the *Fortran* compiler that
>I suspect can be traced back to cc's bug. Here is my problem:
>Assertion failed: 0, file ../../../../../../src/usr/ccs/lib/libmld/
>cmrlc_produce.c, line 864
>0.2u 0.0s 0:00 30% 0+7k 18+8io 1pf+0w
>Fatal error in: /usr/lib/cmplrs/cc/ld IOT/Abort trap
>fort: Severe: Failed while trying to link.
This is caused by a bug in ld, not cc or f77, relating to "compact relocation
records". A fix for this is available from Digital, the ID number is OSF320-094.
You can also work around this by using -O1 or the undocumented switch -ncr which
tells ld not to emit compact relocation records. The disadvantage of -ncr is
that it also prevents you from using pixie or atom to do performance analysis.
Steve Lionel Mail: lionel@quark.enet.dec.com
DEC Fortran Development WWW: http://www.digital.com/info/slionel.html
Digital Equipment Corporation CompuServe: 75263,3001
110 Spit Brook Road, ZKO2-3/N30
Nashua, NH 03062-2698 "Free advice is worth every cent"
For information on DEC Fortran 90, see http://www.digital.com/info/hpc/f90/
^ permalink raw reply [flat|nested] 6+ messages in thread
* Re: f77 and cc optimization problem on osf v3.2
1995-07-04 4:00 ` Steve Lionel
@ 1995-07-04 4:00 ` Arne Elofsson
1995-07-05 4:00 ` Steve Lionel
0 siblings, 1 reply; 6+ messages in thread
From: Arne Elofsson @ 1995-07-04 4:00 UTC (permalink / raw)
I just discovered another bug while compiling xemacs-19.12
I had some strange unexplainable problems while compiling with
cc -g , but it works perfect with cc -g -O0
shuld not be like that ! This was with osf 3.0
I used to have some strange problems woth a f77 program
(probably under osf3.0t1) where I had to move a subroutine
from one file to another to get the program to run.
anyone else experienced things like that with dec's
compiler ? Are things getter more stable (if so I'd guess
i'll try to talk my SA into upgrading)
arne
--------------------------------------------------------
From: Arne Elofsson
Email: arne@hodgkin.mbi.ucla.edu
WWW: http://www.doe-mbi.ucla.edu/arne/main.html
^ permalink raw reply [flat|nested] 6+ messages in thread* Re: f77 and cc optimization problem on osf v3.2
1995-07-04 4:00 ` Arne Elofsson
@ 1995-07-05 4:00 ` Steve Lionel
0 siblings, 0 replies; 6+ messages in thread
From: Steve Lionel @ 1995-07-05 4:00 UTC (permalink / raw)
In article <6g4u11zqzj.fsf@hodgkin.mbi.ucla.edu>, arne@hodgkin.mbi.ucla.edu
(Arne Elofsson) (Arne Elofsson) writes:
|>I used to have some strange problems woth a f77 program
|>(probably under osf3.0t1) where I had to move a subroutine
|>from one file to another to get the program to run.
|>
|>anyone else experienced things like that with dec's
|>compiler ? Are things getter more stable (if so I'd guess
|>i'll try to talk my SA into upgrading)
Unfortunately you haven't provided enough details for me to recognize any
particular problem. I also don't know how old the compiler is you're using.
I would recommend upgrading to the current version of DEC Fortran (3.7) and
DEC OSF/1 AXP (3.2, now called Digital UNIX).
--
Steve Lionel Mail: lionel@quark.enet.dec.com
DEC Fortran Development WWW: http://www.digital.com/info/slionel.html
Digital Equipment Corporation CompuServe: 75263,3001
110 Spit Brook Road, ZKO2-3/N30
Nashua, NH 03062-2698 "Free advice is worth every cent"
For information on DEC Fortran 90, see http://www.digital.com/info/hpc/f90/
^ permalink raw reply [flat|nested] 6+ messages in thread
end of thread, other threads:[~1995-07-05 4:00 UTC | newest]
Thread overview: 6+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
[not found] <3srrb4$qhe@usenet.ucs.indiana.edu>
1995-07-03 4:00 ` f77 and cc optimization problem on osf v3.2 Christos Siopis
1995-07-03 4:00 ` Dan Pop
1995-07-03 4:00 Christos Siopis
1995-07-04 4:00 ` Steve Lionel
1995-07-04 4:00 ` Arne Elofsson
1995-07-05 4:00 ` Steve Lionel
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox