* An ordinary day of an Alpha OSF/1 user...
@ 1993-05-17 21:57 Didier Wagenknecht
1993-05-17 20:34 ` Mark Charette
` (2 more replies)
0 siblings, 3 replies; 6+ messages in thread
From: Didier Wagenknecht @ 1993-05-17 21:57 UTC (permalink / raw)
Has someone already tried to compile on Alpha plateform some C code ?
Example:
.
.
.
cc -j -I. -O4 -Olimit 2000 -D_BSD tc.str.c
cc -j -I. -O4 -Olimit 2000 -D_BSD tc.vers.c
cc -j -I. -O4 -Olimit 2000 -D_BSD tc.who.c
rm -f tcsh core
cc -o tcsh -I. -O4 -Olimit 2000 sh.u sh.dir.u sh.dol.u sh.err.u sh.exec.u
sh.char.u sh.exp.u sh.func.u sh.glob.u sh.hist.u sh.init.u sh.lex.u sh.misc.u
sh.parse.u sh.print.u sh.proc.u sh.sem.u sh.set.u sh.time.u glob.u mi.termios.u
ma.setp.u vms.termcap.u tw.help.u tw.init.u tw.parse.u tw.spell.u tw.comp.u
ed.chared.u ed.refresh.u ed.screen.u ed.init.u ed.inputl.u ed.defns.u ed.xmap.u
ed.term.u tc.alloc.u tc.bind.u tc.const.u tc.disc.u tc.func.u tc.os.u tc.printf.u
tc.prompt.u tc.sched.u tc.sig.u tc.str.u tc.vers.u tc.who.u -ltermcap
Fatal error in: /usr/lib/cmplrs/cc/uld Segmentation fault - core dumped
*** Exit 11
Well. I'll compile another day. Let's try to compile some X11 progs:
X11> make Makefile -f Makefile.ini
cd ./config; make -f Makefile.ini BOOTSTRAPCFLAGS=""
making imake with BOOTSTRAPCFLAGS=
cc -o ccimake -O2 -I../include ccimake.c
cc -c -O2 -I../include `./ccimake` imake.c
cc -o imake imake.o
rm -f Makefile.bak; mv Makefile Makefile.bak
mv: Makefile: No such file or directory
*** Exit 1 (ignored)
./config/imake -I./config -DTOPDIR=. -DCURDIR=.
cpp: ERROR MESSAGE 4ERROR MESSAGE 80
cpp: ERROR MESSAGE 4ERROR MESSAGE 80
----
Ok, let's look at the Man Pages:
ERRORS
The error messages produced by cpp are intended to be self-explanatory.
The line number and filename where the error occurred are printed along
with the diagnostic.
Well, now I know that ERROR MESSAGE 4 occured with ERROR MESSAGE 80 in somewhere.
Let's try it with another cpp:
X11> setenv IMAKECPP /usr/bin/cpp89
X11> ./imake -DNEWTOP=../
The program "pncc" can not be found or executed.
Oh. I'm sorry. Well, I'll use gcc's cpp:
X11> setenv IMAKECPP /usr/local/bin/cppstdin
X11> ./imake -DNEWTOP=../
./imake: Exec format error: Cannot exec /usr/local/bin/cppstdin. Stop.
Ok, ok, cppstdin is a script. Excuse me, imake. Well, can someone explain me
1) Why can't I compile AND link with O4 without core dump ?
2) What is ERROR MESSAGE 4 & 80 ?
3) Why the program "pncc" can not be found or executed ?
--
D. Wagenknecht
Responsable securisation informatique,
ADM-SIC, EPFL
e-mail:wagen@sic.epfl.ch
^ permalink raw reply [flat|nested] 6+ messages in thread* Re: An ordinary day of an Alpha OSF/1 user...
1993-05-17 21:57 An ordinary day of an Alpha OSF/1 user Didier Wagenknecht
@ 1993-05-17 20:34 ` Mark Charette
1993-05-18 22:10 ` Didier Wagenknecht
1993-05-18 8:43 ` James Bonfield
1993-05-18 12:28 ` Marc Evans
2 siblings, 1 reply; 6+ messages in thread
From: Mark Charette @ 1993-05-17 20:34 UTC (permalink / raw)
Didier Wagenknecht (wagen@slalpha1.epfl.ch) wrote:
: Has someone already tried to compile on Alpha plateform some C code ?
Lots & lots
: cc -o tcsh -I. -O4 -Olimit 2000 sh.u sh.dir.u sh.dol.u
.. ^^
: Fatal error in: /usr/lib/cmplrs/cc/uld Segmentation fault - core dumped
Try -O0 or -O1. A bug report for this problem has been submitted
As for your other errors: I can't replicate them. I can't find the error string
in cpp (or any semblance of anything that looks like that).
--
Mark Charette |Save plants and animals. Eat a vegetarian
Fisher Engineering Systems |today.
charette@ultoe.det.dec.com |
(313) 280-0703 |
^ permalink raw reply [flat|nested] 6+ messages in thread
* Re: An ordinary day of an Alpha OSF/1 user...
1993-05-17 20:34 ` Mark Charette
@ 1993-05-18 22:10 ` Didier Wagenknecht
0 siblings, 0 replies; 6+ messages in thread
From: Didier Wagenknecht @ 1993-05-18 22:10 UTC (permalink / raw)
In article <1t8ssvINNj9n@lemans.det.dec.com> charette@ultoe.det.dec.com (Mark Charette) writes:
Didier Wagenknecht (wagen@slalpha1.epfl.ch) wrote:
> : Has someone already tried to compile on Alpha plateform some C code ?
> Lots & lots
>
> : cc -o tcsh -I. -O4 -Olimit 2000 sh.u sh.dir.u sh.dol.u
> .. ^^
> : Fatal error in: /usr/lib/cmplrs/cc/uld Segmentation fault - core dumped
>
> Try -O0 or -O1. A bug report for this problem has been submitted
>
> As for your other errors: I can't replicate them. I can't find the error string
> in cpp (or any semblance of anything that looks like that).
Well, someone pointed out I should use O3, as O4 is not supported. Ok, but its
the same result. The same person said that I should compile with -non_shared:
c89 -j -O3 -Olimit 2000 -non_shared -DDEC -DR5_XLIB -DSMT -DFUNCPROTO=3 -DUSEM4 -DXPM workmgr.c
rm -f ctwm
c89 -O3 -non_shared -o ctwm gram.u lex.u deftwmrc.u add_window.u gc.u list.u ctwm.u parse.u menus.u events.u resize.u util.u version.u iconmgr.u cursor.u icons.u workmgr.u -lXpm -lXmu -lXt -lXext -lX11 -ldnet_stub
uld:
Object file format error in: util.u: bad dense number in ucode
*** Exit 1
Stop.
408> file util.u
util.u: data
Same results. The code, which should be code, is not a code. May be a problem in /etc/magic ?
For cpp, can someone in DECcountry explain me what ERROR MESSAGE 80 is ?
--
D. Wagenknecht
Responsable securisation informatique,
ADM-SIC, EPFL
e-mail:wagen@sic.epfl.ch
^ permalink raw reply [flat|nested] 6+ messages in thread
* Re: An ordinary day of an Alpha OSF/1 user...
1993-05-17 21:57 An ordinary day of an Alpha OSF/1 user Didier Wagenknecht
1993-05-17 20:34 ` Mark Charette
@ 1993-05-18 8:43 ` James Bonfield
1993-05-19 16:32 ` Burkhard Neidecker-Lutz
1993-05-18 12:28 ` Marc Evans
2 siblings, 1 reply; 6+ messages in thread
From: James Bonfield @ 1993-05-18 8:43 UTC (permalink / raw)
In <WAGEN.93May17175734@slalpha1.epfl.ch> wagen@slalpha1.epfl.ch (Didier Wagenknecht) writes:
> Ok, ok, cppstdin is a script. Excuse me, imake. Well, can someone explain me
> 1) Why can't I compile AND link with O4 without core dump ?
Documented bug in the release notes as I recall. Use -non_shared with high
levels of optimisation on cc. c89 on the other hand works correctly. (It may
be worth you looking at the release notes as they also point out optimising
bugs - where wrong code is occasionally generated.)
> 2) What is ERROR MESSAGE 4 & 80 ?
Hmmm - odd! Looking in /usr/ccs/lib/cmplrs/cc there is a file err.english.cc
(consisting of bytes offset index and error messages it seems). I'm not sure
if this is actually the correct file to try and guess what messages 4 and 80
mean- anyone at DEC know? Also - do messages start at 0 or 1? A wild guess
from this info would be that error 80 is:
%s:%s: Bad punctuator in the parameter list for #define %s
> 3) Why the program "pncc" can not be found or executed ?
Cannot answer this one. What I can say is that cpp89 uses an environment
variable PNCC_DIRECTORY to look for pncc, however I cannot find a pncc
anywhere. Perhaps you can get away with simply using 'c89 -E' and letting the
compiler do it's cpp business itself in whatever fashion it desires. OR, if
you're still wishing to use a cpp directly, how about using
/usr/ccs/lib/cmplrs/cc/oldc/cpp? It exists and works on my system.
James
^ permalink raw reply [flat|nested] 6+ messages in thread
* Re: An ordinary day of an Alpha OSF/1 user...
1993-05-18 8:43 ` James Bonfield
@ 1993-05-19 16:32 ` Burkhard Neidecker-Lutz
0 siblings, 0 replies; 6+ messages in thread
From: Burkhard Neidecker-Lutz @ 1993-05-19 16:32 UTC (permalink / raw)
>> 2) What is ERROR MESSAGE 4 & 80 ?
>Hmmm - odd! Looking in /usr/ccs/lib/cmplrs/cc there is a file err.english.cc
>(consisting of bytes offset index and error messages it seems).
There is a bug. Do the following:
cd /usr/bin
ln -s ../ccs/lib/cmplrs/cc/err.english.cc
and the error messages will change from gibberish to english. This
is also somewhere in the release notes.
Burkhard Neidecker-Lutz
Distributed Multimedia Group, CEC Karlsruhe
Software Motion Pictures & BERKOM II Project
Digital Equipment Corporation
neidecker@nestvx.enet.dec.com
^ permalink raw reply [flat|nested] 6+ messages in thread
* Re: An ordinary day of an Alpha OSF/1 user...
1993-05-17 21:57 An ordinary day of an Alpha OSF/1 user Didier Wagenknecht
1993-05-17 20:34 ` Mark Charette
1993-05-18 8:43 ` James Bonfield
@ 1993-05-18 12:28 ` Marc Evans
2 siblings, 0 replies; 6+ messages in thread
From: Marc Evans @ 1993-05-18 12:28 UTC (permalink / raw)
In article <WAGEN.93May17175734@slalpha1.epfl.ch>, wagen@slalpha1.epfl.ch (Didier Wagenknecht) writes:
|>
|> Has someone already tried to compile on Alpha plateform some C code ?
|> Example:
|> cc -j -I. -O4 -Olimit 2000 -D_BSD tc.str.c
You must use -non_shared when using -O3 or -O4.
|>
|> Well. I'll compile another day. Let's try to compile some X11 progs:
|>
|> X11> make Makefile -f Makefile.ini
|> cd ./config; make -f Makefile.ini BOOTSTRAPCFLAGS=""
|> making imake with BOOTSTRAPCFLAGS=
|> cc -o ccimake -O2 -I../include ccimake.c
|> cc -c -O2 -I../include `./ccimake` imake.c
|> cc -o imake imake.o
|> rm -f Makefile.bak; mv Makefile Makefile.bak
|> mv: Makefile: No such file or directory
|> *** Exit 1 (ignored)
|> ./config/imake -I./config -DTOPDIR=. -DCURDIR=.
|> cpp: ERROR MESSAGE 4ERROR MESSAGE 80
|> cpp: ERROR MESSAGE 4ERROR MESSAGE 80
If I didn't know any better, I would have to guess that you are trying to build
the MIT X tree, as that is the only place I have encountered a "Makefile.ini"
in the manner shown. Why you aren't using the imake environment supplied with
the system is beyond me, but none the less should be doable.
The problem you have encountered is not invoking cpp in the *proper* manner. If
you look closely at how it is done by imake on the system supplied version you
will discover that it it is probably a bit different then you expect (you will
have to reverse engineer the imake executable to discover this).
In any case, to resolve your problem, as root add the following sym links:
ln -s cc/err.english.cc /usr/ccs/lib/cmplrs/err.english.cc
ln -s cc/err.english.cc3.0 /usr/ccs/lib/cmplrs/err.english.cc3.0
Alternatively, there is an environment variable that tells cpp where to go get
error messages. The real problem in this whole thing is that cpp is not expected
to be invoked by anything other then the compiler suite, which has the proper
frontend to insure that the error messages will be found. The vanilla MIT X
sources do not know about this...
--
===========================================================================
Marc Evans - Marc@Synergytics.COM | Synergytics (603)635-8876
WB1GRH - WB1GRH@WA1YTW.NH.USA | 21 Hinds Ln, Pelham, NH 03076
---------------------------------------------------------------------------
Unix and X11 Software Consultant
===========================================================================
^ permalink raw reply [flat|nested] 6+ messages in thread
end of thread, other threads:[~1993-05-19 16:32 UTC | newest]
Thread overview: 6+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
1993-05-17 21:57 An ordinary day of an Alpha OSF/1 user Didier Wagenknecht
1993-05-17 20:34 ` Mark Charette
1993-05-18 22:10 ` Didier Wagenknecht
1993-05-18 8:43 ` James Bonfield
1993-05-19 16:32 ` Burkhard Neidecker-Lutz
1993-05-18 12:28 ` Marc Evans
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox