* building gcc with Tru64 cc: fails
@ 1999-11-08 5:00 franks
1999-11-09 5:00 ` Jesper Frank Nemholt
` (3 more replies)
0 siblings, 4 replies; 7+ messages in thread
From: franks @ 1999-11-08 5:00 UTC (permalink / raw)
Hi,
I read the recent thread about how the default Tru64 cc will
build gcc... I decided to try it.
Well, I am having trouble...
0. I tar-copied all of the freeware CD tree over under directory
/usr/local/freeware/
1. tried Larry Gensch's recommended-in-a-recent-posting command:
"CC-cc CFLAGS="-fast -O4" ./configure
in the gcc-2.95 directory tree followed by:
/usr/local/freeware/bin/make
and that runs awhile until erroring out. Herewith, is
a piece of that failure:
...
cp xlimits.h include/limits.h
chmod a+r include/limits.h
rm -f include/float.h
if [ xfloat-i64.h != xMakefile.in ]; then \
cp ./config/float-i64.h include/float.h && \
chmod a+r include/float.h; \
else :; fi
rm -f include/README
cp ./README-fixinc include/README
chmod a+r include/README
touch stmp-int-hdrs
rm -f SYSCALLS.c tmp-SYSCALLS.s
cat ./sys-types.h ./sys-protos.h > SYSCALLS.c
/usr/users/tmadden/gcc-2.95/gcc/xgcc -B/usr/users/tmadden/gcc-2.95/gcc/
-B/usr/local/alphaev56-dec-osf4.0d/bin/
-I/usr/local/alphaev56-dec-osf4.0d/include -DIN_GCC -DHAIFA -fast
-O4 -I./include -I. -I. -I./config -I./../include \
-aux-info SYSCALLS.c.X -S -o tmp-SYSCALLS.s SYSCALLS.c
cc1: Invalid option `-fast'
make[1]: *** [SYSCALLS.c.X] Error 1
make: *** [all-gcc] Error 2
2. OK, so gcc/xgcc don't like "-fast", lets retry that...
make clean
CC=cc CFLAGS="-O4" ./configure
/usr/local/freeware/bin/make
...and that runs awhile longer erroring out with this:
...
cc -DIN_GCC -O4 -o ../cc1plus `cat ../stamp-objlist` ../c-common.o
../c-pragma.o call.o decl.o errfn.o expr.o pt.o sig.o typeck2.o class.o
decl2.o error.o lex.o parse.o ptree.o rtti.o spew.o typeck.o cvt.o
except.o friend.o init.o method.o search.o semantics.o tree.o xref.o
repo.o `if [ xobstack.o != x ]; then echo ../obstack.o; else true; fi`
`case "cc" in "cc") if [ x != x ]; then echo ../; else true; fi ;; esac`
`if [ x != x ]; then echo ../; else true; fi` -lmld
touch lang-f77
cd f; /usr/local/freeware/bin/make "AR_FLAGS_FOR_TARGET=rc"
"AR_FOR_TARGET=ar" "BISON=bison" "BISONFLAGS=" "CFLAGS=-O4" "CLIB=-lmld"
"GCC_FOR_TARGET=/usr/users/tmadden/gcc-2.95/gcc/xgcc
-B/usr/users/tmadden/gcc-2.95/gcc/
-B/usr/local/alphaev56-dec-osf4.0d/bin/
-I/usr/local/alphaev56-dec-osf4.0d/include" "LDFLAGS=" "LEX=flex"
"LEXFLAGS=" "LN=ln" "LN_S=ln -s"
"MAKEINFO=/usr/users/tmadden/gcc-2.95/texinfo/makeinfo/makeinfo "
"MAKEINFOFLAGS=" "RANLIB_FOR_TARGET=ranlib" "RANLIB_TEST_FOR_TARGET=[ -f
ranlib ] || ( [ "alphaev56-dec-osf4.0d" = "alphaev56-dec-osf4.0d" ] && [
-f /usr/bin/ranlib -o -f /bin/ranlib ] )" "SHELL=/bin/sh"
"STAGE_PREFIX=" "exeext=" "build_exeext=" "objext=.o"
"exec_prefix=/usr/local" "prefix=/usr/local" "local_prefix=/usr/local"
"gxx_include_dir=/usr/local/lib/gcc-lib/alphaev56-dec-osf4.0d/2.95/../../../..`echo
/usr/local | sed -e 's|^/usr/local||' -e
's|/[^/]*|/..|g'`/include/g++-3"
"tooldir=/usr/local/alphaev56-dec-osf4.0d"
"gcc_tooldir=/usr/local/lib/gcc-lib/alphaev56-dec-osf4.0d/2.95/../../../../alphaev56-dec-osf4.0d"
"bindir=/usr/local/bin"
"libsubdir=/usr/local/lib/gcc-lib/alphaev56-dec-osf4.0d/2.95"
"datadir=/usr/local/share" "distdir=../tmp/\$(subdir)"
"localedir=/usr/local/share/locale" "CC=cc" \
HOST_CC="`case 'cc' in stage*) echo 'cc' | sed -e
's|stage|../stage|g';; *) echo 'cc';; esac`" \
HOST_CFLAGS=" -DIN_GCC -DHAIFA -O4 -DHAVE_CONFIG_H"
HOST_CPPFLAGS=" " \
../f771
cc -c -DIN_GCC -O4 -W -Wall -I. -I.. -I. -I./.. -I./../config
-I./../../include bad.c
cc: Error: Syntax error on -W switch: form is -Wpassname,switch
make[2]: *** [bad.o] Error 2
make[1]: *** [f771] Error 2
make: *** [all-gcc] Error 2
Mon Nov 8 16:16:16 MST 1999
Stumped! What hack do I try next?
Or maybe someone can save me time by pointing to that URL
where a precompiled gcc for Tru64 lives?
ed
^ permalink raw reply [flat|nested] 7+ messages in thread
* Re: building gcc with Tru64 cc: fails
1999-11-08 5:00 building gcc with Tru64 cc: fails franks
@ 1999-11-09 5:00 ` Jesper Frank Nemholt
1999-11-12 5:00 ` lar3ry gensch
` (2 subsequent siblings)
3 siblings, 0 replies; 7+ messages in thread
From: Jesper Frank Nemholt @ 1999-11-09 5:00 UTC (permalink / raw)
"franks@plk.af.mil" wrote:
>
> cc -c -DIN_GCC -O4 -W -Wall -I. -I.. -I. -I./.. -I./../config
Replace -Wall with -std1
l8r/Jspr
^ permalink raw reply [flat|nested] 7+ messages in thread
* Re: building gcc with Tru64 cc: fails
1999-11-08 5:00 building gcc with Tru64 cc: fails franks
1999-11-09 5:00 ` Jesper Frank Nemholt
@ 1999-11-12 5:00 ` lar3ry gensch
1999-11-12 5:00 ` Tim Mooney
1999-11-18 5:00 ` Erik Braun
3 siblings, 0 replies; 7+ messages in thread
From: lar3ry gensch @ 1999-11-12 5:00 UTC (permalink / raw)
To: franks@plk.af.mil
[Posted and mailed]
In article <38275E47.5796F329@plk.af.mil>,
"franks@plk.af.mil" <franks@plk.af.mil> writes:
> Hi,
>
> I read the recent thread about how the default Tru64 cc will
> build gcc... I decided to try it.
>
> Well, I am having trouble...
> 1. tried Larry Gensch's recommended-in-a-recent-posting command:
>
> "CC-cc CFLAGS="-fast -O4" ./configure
[SNIP]
> -aux-info SYSCALLS.c.X -S -o tmp-SYSCALLS.s SYSCALLS.c
> cc1: Invalid option `-fast'
> make[1]: *** [SYSCALLS.c.X] Error 1
> make: *** [all-gcc] Error 2
This error message is from gcc, which doesn't understand Compaq C's
"-fast" option. cc1 is one of gcc's internal programs.
> 2. OK, so gcc/xgcc don't like "-fast", lets retry that...
>
> make clean
> CC=cc CFLAGS="-O4" ./configure
> /usr/local/freeware/bin/make
>
[SNIP]
> ...
> cc -c -DIN_GCC -O4 -W -Wall -I. -I.. -I. -I./.. -I./../config
> -I./../../include bad.c
> cc: Error: Syntax error on -W switch: form is -Wpassname,switch
> make[2]: *** [bad.o] Error 2
> make[1]: *** [f771] Error 2
> make: *** [all-gcc] Error 2
> Mon Nov 8 16:16:16 MST 1999
In this case, Compaq C is complaining about a GCC option. This is
strange.
> Stumped! What hack do I try next?
>
> Or maybe someone can save me time by pointing to that URL
> where a precompiled gcc for Tru64 lives?
I'll download gcc-2.95 this morning and try to build it here at work
(I am running Tru64 Unix 5.0), and I'll pass on any information that I
glean from the attempt.
--
Larry Gensch Larry.Gensch@compaq.com
Compaq Computer Corporation As usual, the standard
110 Spit Brook Road ZKO3-2/W17 disclaimers apply, etc.
Nashua, NH 03062 Yada yada yada
^ permalink raw reply [flat|nested] 7+ messages in thread
* Re: building gcc with Tru64 cc: fails
1999-11-08 5:00 building gcc with Tru64 cc: fails franks
1999-11-09 5:00 ` Jesper Frank Nemholt
1999-11-12 5:00 ` lar3ry gensch
@ 1999-11-12 5:00 ` Tim Mooney
1999-11-18 5:00 ` Erik Braun
3 siblings, 0 replies; 7+ messages in thread
From: Tim Mooney @ 1999-11-12 5:00 UTC (permalink / raw)
In article <38275E47.5796F329@plk.af.mil>,
franks@plk.af.mil <franks@plk.af.mil> wrote:
> Hi,
>
> I read the recent thread about how the default Tru64 cc will
> build gcc... I decided to try it.
>
> Well, I am having trouble...
>
> 0. I tar-copied all of the freeware CD tree over under directory
> /usr/local/freeware/
>
> 1. tried Larry Gensch's recommended-in-a-recent-posting command:
>
> "CC-cc CFLAGS="-fast -O4" ./configure
Is that a typo? Do you mean `CC=cc' instead?
> Stumped! What hack do I try next?
Do a `make distclean', or at least remove any Makefiles and config.cache
files, and then try again.
If you're going to build more than just the stage1 compiler, you may be
wasting your time doing any optimizing. You want the stage2 (and stage3)
compiler to be optimized, but it doesn't really matter if the stage1 compiler
is optimized.
Tim
--
Tim Mooney mooney@dogbert.cc.ndsu.NoDak.edu
Information Technology Services (701) 231-1076 (Voice)
Room 242-J1, IACC Building (701) 231-8541 (Fax)
North Dakota State University, Fargo, ND 58105-5164
^ permalink raw reply [flat|nested] 7+ messages in thread
* Re: building gcc with Tru64 cc: fails
1999-11-08 5:00 building gcc with Tru64 cc: fails franks
` (2 preceding siblings ...)
1999-11-12 5:00 ` Tim Mooney
@ 1999-11-18 5:00 ` Erik Braun
1999-11-18 5:00 ` Jeff Sullivan
3 siblings, 1 reply; 7+ messages in thread
From: Erik Braun @ 1999-11-18 5:00 UTC (permalink / raw)
On Mon, 08 Nov 1999 16:35:35 -0700, franks@plk.af.mil <franks@plk.af.mil> wrote:
>I read the recent thread about how the default Tru64 cc will
>build gcc... I decided to try it.
>
>Well, I am having trouble...
I've done this:
./configure
make bootstrap
make test
make install
and I had no problems. Hmm.
erik
--
erik@minet.uni-jena.de http://www.minet.uni-jena.de/~erik/
^ permalink raw reply [flat|nested] 7+ messages in thread
* Re: building gcc with Tru64 cc: fails
1999-11-18 5:00 ` Erik Braun
@ 1999-11-18 5:00 ` Jeff Sullivan
1999-11-19 5:00 ` Erik Braun
0 siblings, 1 reply; 7+ messages in thread
From: Jeff Sullivan @ 1999-11-18 5:00 UTC (permalink / raw)
Erik Braun wrote:
> ./configure
> make bootstrap
> make test
> make install
> and I had no problems. Hmm.
It also worked for me, although "configure; make" didn't.
Where did you find this info? I didn't see it in the READMEs.
But then, I read the directions only if all else fails. :-)
-Jeff
--
Jeff Sullivan | Compaq Computer Corp. | mailto:jps@zk3.dec.com
Compaq C/C++ | Nashua, NH 03062-2698 | Jeff.Sullivan@compaq.com
^ permalink raw reply [flat|nested] 7+ messages in thread
* Re: building gcc with Tru64 cc: fails
1999-11-18 5:00 ` Jeff Sullivan
@ 1999-11-19 5:00 ` Erik Braun
0 siblings, 0 replies; 7+ messages in thread
From: Erik Braun @ 1999-11-19 5:00 UTC (permalink / raw)
On Thu, 18 Nov 1999 16:51:06 -0500, Jeff Sullivan <jps@zk3.dec.com> wrote:
>> ./configure
>> make bootstrap
>> make test
>> make install
That's not recommended. Please use:
mkdir objdir
cd objdir
srcdir/configure [target] [options]
before doing the 'make'-commands.
>Where did you find this info? I didn't see it in the READMEs.
README? What's a README? ;-)
I've read this on the page http://egcs.cygnus.com/install/build.html
erik
--
erik@minet.uni-jena.de http://www.minet.uni-jena.de/~erik/
^ permalink raw reply [flat|nested] 7+ messages in thread
end of thread, other threads:[~1999-11-19 5:00 UTC | newest]
Thread overview: 7+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
1999-11-08 5:00 building gcc with Tru64 cc: fails franks
1999-11-09 5:00 ` Jesper Frank Nemholt
1999-11-12 5:00 ` lar3ry gensch
1999-11-12 5:00 ` Tim Mooney
1999-11-18 5:00 ` Erik Braun
1999-11-18 5:00 ` Jeff Sullivan
1999-11-19 5:00 ` Erik Braun
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox