Hi,
When I run make to build pascal 2.0, I get the following error. Would you help me on this ?
Thanks in advance.
cc -DGPC -DIN_GCC -g -o gpc gcc.o gpc-version.o ../gcc-2.7.2.1/obstack.o `if [ -f "../gcc-2.7.2.1/alloca.o" ]; then echo "../gcc-2.7.2.1/alloca.o" ; else true ; fi` `if [ -f "../gcc-2.7.2.1/mall.c cc: Error: gpc-decl.c, line 2962: In this statement, "((enum tree_code)(((tail)->list.value))->common.code)" is not an lvalue, but occurs in a context that requires one. TREE_CODE (TREE_VALUE (tail)) = code; ----------------^ *** Exit 1 Stop.
-----------------------------------------------------------------------
Another thing I see when run ./configure is not the same with a example from install note.
Compiler for GPC: cc
My showing cc not gcc. Is this a problem ?
-------------------------------------------------------------------------- Configuration summary: Building a native alpha-dec-osf4.0 compiler
GPC sources in: . GCC sources in: ../gcc-2.7.2.1 GCC object code in: ../gcc-2.7.2.1 GCC version: 2.7.2.1
Compiler for GPC: cc
Compiler for libgpc.a: ../gcc-2.7.2.1/xgcc -B../gcc-2.7.2.1/ Compiler flags: -g
Installation path: /usr/local/bin,
/usr/local/lib/gcc-lib/alpha-dec-osf4.0/2.7.2.1 --------------------------------------------------------------------------
Now, type "make" to build the compiler and runtime system.
minh.h.cao@boeing.com wrote:
When I run make to build pascal 2.0, I get the following error. Would you help me on this ? [...]
Replace this line
TREE_CODE (TREE_VALUE (tail)) = code;
by the following:
(((tail)->list.value))->common.code = code;
Or, better yet, upgrade to gpc-19980830, where this bug is fixed - among many others:
ftp://agnes.dida.physik.uni-essen.de/gnu-pascal/beta/
Another thing I see when run ./configure is not the same with a example from install note.
Compiler for GPC: cc
My showing cc not gcc. Is this a problem ?
Sort of. With GCC instead of CC, the above error would probably not occur. But anyway ...
Hope this helps,
Peter