* Compaq C & gcc
@ 2001-06-04 21:13 LoneStar
2001-06-05 8:43 ` Tobias Ernst
0 siblings, 1 reply; 5+ messages in thread
From: LoneStar @ 2001-06-04 21:13 UTC (permalink / raw)
Hi,
are there any incompatibilities or hits that I need to be aware of in order
to use both Compaq C and cygnus gcc on a 5.1 system?
Do I need to change anything to use gcc in a way that could alter regular
Compaq C functionality?
Ciao,
Luigi
^ permalink raw reply [flat|nested] 5+ messages in thread
* Compaq C & gcc
2001-06-04 21:13 Compaq C & gcc LoneStar
@ 2001-06-05 8:43 ` Tobias Ernst
2001-06-06 15:49 ` Tim Mooney
0 siblings, 1 reply; 5+ messages in thread
From: Tobias Ernst @ 2001-06-05 8:43 UTC (permalink / raw)
Hallo LoneStar!
L> are there any incompatibilities or hits that I need to be
L> aware of in order to use both Compaq C and cygnus gcc on a 5.1
L> system?
L> Do I need to change anything to use gcc in a way that could
L> alter regular Compaq C functionality?
Except for the problem that 5.0 is currently the last Tru64 variant
where gcc functions properly (...), both are perfectly interoperable.
You can just install gcc and then use "cc" and "cxx" to run Compaq C,
and "gcc" and "g++" to run gcc. Install gcc in a separate prefix, like
/usr/local/gcc-2.9.3, and then just make symlinks
/usr/local/bin/gcc -> /usr/local/gcc-2.9.3/bin/gcc
and likewhise for g++, and you'll be done and sure that gcc did not
have a chance to overwrite anything of Compaq C.
As for the 5.1 problem, you'd best search the Tru64 Managers list (go
to www.tru64.org, then use the search field on the top) for this topic.
It seems that gcc 3 can be made to run on 5.1 when you use a lot of
patches ...
The problem lies buried in the fact that 5.1 has a different assembler
than 5.0(a), and gcc cannot use the GNU assembler on Tru64, but has to
use DEC's assembler.
We stick with 5.0 until this problem is solved, therefore :-).
Viele Gr��e,
Tobias
^ permalink raw reply [flat|nested] 5+ messages in thread
* Re: Compaq C & gcc
2001-06-05 8:43 ` Tobias Ernst
@ 2001-06-06 15:49 ` Tim Mooney
2001-06-06 18:37 ` Rainer Orth
2001-06-06 22:28 ` Mumit Khan
0 siblings, 2 replies; 5+ messages in thread
From: Tim Mooney @ 2001-06-06 15:49 UTC (permalink / raw)
In article <991734380@f1.n7600.z242.fido.de>,
Tobias Ernst <tobi@bland.fido.de> wrote:
>
> The problem lies buried in the fact that 5.1 has a different assembler
> than 5.0(a), and gcc cannot use the GNU assembler on Tru64, but has to
> use DEC's assembler.
When I was reading the release notes for 5.1, when I got to the note
about the new assembler, my first thought was "Hmmm, I bet this will break
gcc." Imagine my surprise when I was right. ;-)
Luckily, the new assembler provides a command line flag (mentioned in
the release notes, I can't find it mentioned in the man page) that will
invoke the older assembler.
This means that gcc can be built and used to just invoke the older assembler,
until the new one works with gcc (may even work now, if patch kit #3 is
installed -- I'm not sure). There are at least two ways you might get
this to work:
1) create a wrapper script named `as', make it executable, and just have
it exec the system `as' with the additional option to get the older assembler.
Make sure this is in gcc's build directory while building, and in the platform
tools directory after installation.
2) once gcc is installed, you might be able to get rid of the wrapper script
altogether. gcc uses (?) a file called `specs' that gets installed deep
under the lib/gcc-lib directory that has entries for how to invoke various
tools. There *might* be an entry for `as'. If you add the necessary flag
to get the old as, that *might* be all gcc needs, from that point on.
I haven't tried either of these on 5.1, but #1 should be fairly easy
to accomplish.
Tim
--
Tim Mooney mooney@dogbert.cc.ndsu.NoDak.edu
Information Technology Services (701) 231-1076 (Voice)
Room 242-J6, IACC Building (701) 231-8541 (Fax)
North Dakota State University, Fargo, ND 58105-5164
^ permalink raw reply [flat|nested] 5+ messages in thread
* Re: Compaq C & gcc
2001-06-06 15:49 ` Tim Mooney
@ 2001-06-06 18:37 ` Rainer Orth
2001-06-06 22:28 ` Mumit Khan
1 sibling, 0 replies; 5+ messages in thread
From: Rainer Orth @ 2001-06-06 18:37 UTC (permalink / raw)
mooney@dogbert.cc.ndsu.NoDak.edu (Tim Mooney) writes:
> This means that gcc can be built and used to just invoke the older assembler,
> until the new one works with gcc (may even work now, if patch kit #3 is
> installed -- I'm not sure). There are at least two ways you might get
no, it doesn't: PK 3 contains adu 3.04.32 that still doesn't work correctly
with gcc's mips-tfile. I've got a preliminary copy of 3.04.33 which does,
but is has some other issues I need to work out with Compaq before it's
ready to completely replace as -oldas. Right now I'm concentrating on
making gcc work correctly with as -oldas, since this is what is publicly
available at the moment.
> this to work:
>
> 1) create a wrapper script named `as', make it executable, and just have
> it exec the system `as' with the additional option to get the older assembler.
> Make sure this is in gcc's build directory while building, and in the platform
> tools directory after installation.
Even simpler: either bootstrap with Compaq C, i.e. configure using
CC=cc configure
make bootstrap
or, in case you have an old binary of gcc 2.95.3 built on V4.0x lying
around, use
CC='gcc -Wa,-oldas' configure
make bootstrap
instead.
> 2) once gcc is installed, you might be able to get rid of the wrapper script
> altogether. gcc uses (?) a file called `specs' that gets installed deep
> under the lib/gcc-lib directory that has entries for how to invoke various
> tools. There *might* be an entry for `as'. If you add the necessary flag
> to get the old as, that *might* be all gcc needs, from that point on.
It is (with some bugs in long double support still lurking), but I have
patches pending for the upcoming GCC 3.0 to fully support Tru64 V5.1 in
that release:
http://gcc.gnu.org/ml/gcc-patches/2001-05/msg01951.html
http://gcc.gnu.org/ml/gcc-patches/2001-06/msg00281.html
Regards.
Rainer
--
-----------------------------------------------------------------------------
Rainer Orth, Faculty of Technology, Bielefeld University
Email: ro@TechFak.Uni-Bielefeld.DE
^ permalink raw reply [flat|nested] 5+ messages in thread
* Re: Compaq C & gcc
2001-06-06 15:49 ` Tim Mooney
2001-06-06 18:37 ` Rainer Orth
@ 2001-06-06 22:28 ` Mumit Khan
1 sibling, 0 replies; 5+ messages in thread
From: Mumit Khan @ 2001-06-06 22:28 UTC (permalink / raw)
In article <9flje2$g6i$1@news.ndsu.nodak.edu>,
Tim Mooney <mooney@dogbert.cc.ndsu.NoDak.edu> wrote:
>
>Luckily, the new assembler provides a command line flag (mentioned in
>the release notes, I can't find it mentioned in the man page) that will
>invoke the older assembler.
Wish I had known that before I rolled one of our new devel boxes back to
5.0 to avoid this whole mess. Of course, it's fair to say that I didn't
bother to really dig through the docs, so it's my fault. A trivial entry
in the specs/*asm would've taken care of that. Oh well.
Thanks much for pointing out the existence of this flag for us
``docuphobes''.
Mumit
^ permalink raw reply [flat|nested] 5+ messages in thread
end of thread, other threads:[~2001-06-06 22:28 UTC | newest]
Thread overview: 5+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2001-06-04 21:13 Compaq C & gcc LoneStar
2001-06-05 8:43 ` Tobias Ernst
2001-06-06 15:49 ` Tim Mooney
2001-06-06 18:37 ` Rainer Orth
2001-06-06 22:28 ` Mumit Khan
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox