gpc-1.2-2.7.2_(re)
Thu, 10 Oct 96 13:57:49 CST
On Thu, 10 Oct 1996 12:15:33 +0200,
schuh@informatik.uni-siegen.de wrote:
>Hello,
>
>I have a Problem with the gpc-1.2-2.7.2 under Sun's SunOS 4.1.4.
>
>The first Problem was to compile gpc:
>-------------------------------------
>...
>../gcc-2.7.2/obstack.o `if [ -f "../gcc-2.7.2/alloca.o" ]; then echo
>"../gcc-2.7.2/alloca.o" ; else true ; fi` `if [ -f "../gcc-2.7.2/malloc.o" ]; then echo
>"../gcc-2.7.2/malloc.o" ; else true ; fi`
>collect2: ld returned 2 exit status
>ld: Undefined symbol
> _emit_string_move
> _emit_string_pad
> _maybe_find_function_data
> _dbxout_set_type_status
> _version_flag
>*** Error code 1
>make: Fatal error: Command failed for target `gpc1'
>
>
>
>Now I delete
> stor-layout.o dbxout.o expr.o fold-const.o optabs.o convert.o function.o toplev.o
>from the gcc-source and I can build the Pascal-Compiler.
>
These are the symptoms of a VPATH problem of your `make' utility.
You have two options:
1) ugrade to a recent version of GNU make
2) use different directories for GCC sources and object code when you build
GCC
>
>
>My second Problem ist to test the Compiler from the 'gpc/test'-directory:
>--------------------------------------------------------------------------
>[schuh@pi20]test make
>for x in head.pas nohead.pas cstparam.pas switches.pas bitmanip.pas incdec.pas minimax.pas mem.pas abso.pas asmnames.pas openarr.pas varrec.pas ; do \
> rm -f a.out 2>/dev/null ; \
> ../gpc -B../ -L../rts -g -O3 --automake="-g -O3 -B../" $x 2>/dev/null ; \
> echo -n "$x: " ; \
> if [ -f "a.out" ] ; then ./a.out ; else echo "failed" ; fi ; \
>done ; \
>rm myunit.o myunit.gpi a.out 2>/dev/null ;
>*** Error code 1
>make: Fatal error: Command failed for target `bptest'
>
>
>What make I wrong?
>I hope that anybody can help me to fix this problem!
Some more output would be nice, so we know which test(s) failed.
Please add "-v" to the compiler flags in the Makefile, then rerun the tests.
---
"Nothing shocks me, I'm a scientist", Indiana Jones
J.J. van der Heijden (j.j.vanderheijden@student.utwente.nl)
HTML conversion by Lluís de Yzaguirre i Maura
Institut de Lingüística Aplicada -
Universitat "Pompeu Fabra"
e-mail: de_yza@upf.es