The problem was that the pl1 Makefile fragment doesn't support building gcc
the way the gcc developers recommend.  That is, have a directory in which
you untar the gcc source code, which will be named gcc-3.3.4 or gcc-3.4.0,
and in that same directory, another directory, say gcc.build from which you
do this:
../gcc-3.3.4/configure options .....
make


I just got Ulrich's email supporting this statement as the preferred method.
:)  Regardless, it does _not_ work for the PL/1 code.  :(  Even doing it the
"wrong way" to get it to compile, I now get this error:
gcc -c    -DIN_GCC   -W -Wall -Wwrite-strings -Wstrict-prototypes
-Wmissing-prototypes  -fno-common
  -DHAVE_CONFIG_H    -I. -Ipl1 -I. -I./pl1 -I./../include
-I./../libbanshee/libcompat -I./../libbans
hee -I./../libbanshee/points-to  pl1/lex.yy.c -o pl1/lex.yy.o
pl1/lex.yy.c:2170: warning: no previous prototype for `yylex'
pl1/pl1-scanner.l: In function `yylex':
pl1/pl1-scanner.l:118: error: `yylloc' undeclared (first use in this
function)
pl1/pl1-scanner.l:118: error: (Each undeclared identifier is reported only
once
pl1/pl1-scanner.l:118: error: for each function it appears in.)
pl1/pl1-scanner.l: At top level:
pl1/lex.yy.c:4067: warning: `yyunput' defined but not used
make[1]: *** [pl1/lex.yy.o] Error 1
make[1]: Leaving directory `/root/gcc/gcc'
make: *** [all-gcc] Error 2


Mark Post


-----Original Message-----
From: Linux on 390 Port [mailto:[EMAIL PROTECTED] On Behalf Of
Ferguson, Neale
Sent: Tuesday, July 13, 2004 4:51 PM
To: [EMAIL PROTECTED]
Subject: Re: Progress on PL/1 for Linux


I did:
./configure --enable-threads=posix --prefix=/opt/gcc
--with-local-prefix=/opt/gcc/local --infodir=/opt/gcc/share/info
--mandir=/opt/gcc/share/man --disable-checking --libdir=/opt/gcc/lib
--enable-libgcj --with-gxx-include-dir=/opt/gcc/include/g++
--with-system-zlib --enable-shared --enable-__cxa_atexit
--with-gcc-version-trigger=/home/usanefe/gcc/gcc/version.c
--enable-languages=c,c++,pl1

make

and got a clean build. The resulting command pl11 simply does
syntax/semantic checking - no code generation.

-----Original Message-----
./configure
make

----------------------------------------------------------------------
For LINUX-390 subscribe / signoff / archive access instructions, send email
to [EMAIL PROTECTED] with the message: INFO LINUX-390 or visit
http://www.marist.edu/htbin/wlvindex?LINUX-390

----------------------------------------------------------------------
For LINUX-390 subscribe / signoff / archive access instructions,
send email to [EMAIL PROTECTED] with the message: INFO LINUX-390 or visit
http://www.marist.edu/htbin/wlvindex?LINUX-390

Reply via email to