GNU Pascal Homepage - gpc - gpc-announce - gpc-de - gpc-doc
Diese Seite auf deutsch

Mail #212

Back to main page of archive

Previous mail   Next mail   Unformatted/full headers
Overview  10 days   Subject   Date   Thread   Author  

From: Jan-Jaap van der Heijden
Subject: gpc-1.2-2.7.2
Date: 10 Oct 1996, 13:57:49

On Thu, 10 Oct 1996 12:15:33 +0200, 
schuh@informatik.uni-siegen.de  <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

Previous mail   Next mail   Unformatted/full headers
Overview  10 days   Subject   Date   Thread   Author  


Back to main page of archive


Note: This page contains information that does not originate from the owner of this web site, but from the authors of the mails archived. The owner of this web site is not responsible for the content of such information. Any use of that infomation requires the consent of the respective author.

Where WWW addresses (URLs) in the mails archived are marked as hyperlinks, this is only for the comfort of the reader. The content of the web pages linked to like this does not necessarily reflect the opinion of the owner of this web site or of the authors of the mails archived. The owner of this web site is not responsible for the content of such web pages. Those pages are explicitly not to be considered as part of the content of this page, but merely as references.


This page was created by Crystal 0.999 (Linux 2.4.27/i686).