Linking errors_(re)
Fri, 16 May 1997 01:02:34 +0200 (MET DST)
According to Vadim Aleksandrovich Denisyuk:
>
> This is a list of the unreferenced symbols I obtain linking the GPC
> V2.0-alpha970510 against GCC 2.7.2.2.f.2
> [...]
> emit_string_move gpc-util.o
This is probably a "vpath" problem. The GPC FAQ says:
8< ---- begin (* FAQ *) ------------------------------------------------
Help! linking `gpc1' fails: `_emit_string_move' undefined (and more)
If linking `gpc1' bombs out with an error message that looks like
this:
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'
you probably suffer from a VPATH make problem. A few GPC source files
have counterparts with identical name in the GCC source directory.
When you have built GCC in the GCC source directory and you are not
using a recent version of GNU make this problem may occur. There are
three solutions:
1. Get a recent version of GNU make. Version 3.74 or better is known
to work.
2. Build GCC in a seperate directory instead of using the GCC source
directory.
3. Manually delete these files from the GCC object directory:
`stor-layout.o' `dbxout.o' `expr.o' `fold-const.o' `optabs.o'
`convert.o' `function.o' `setop.o' `toplev.o' then resume `make'.
8< ---- end (* FAQ *) --------------------------------------------------
> P.S. Peter tvoy ruskiy is very GOOD
Spasibo, :-) no ya znayu chto mnye nado uprazhnyat'cya ...
Hope this helps,
Peter
Dipl.-Phys. Peter Gerwinski, Essen, Germany, free physicist and programmer
peter.gerwinski@uni-essen.de - http://home.pages.de/~peter.gerwinski/ [970201]
maintainer GNU Pascal [970510] - http://home.pages.de/~gnu-pascal/ [970125]
Peter Gerwinski (peter@agnes.dida.physik.uni-essen.de)
HTML conversion by Lluís de Yzaguirre i Maura
Institut de Lingüística Aplicada -
Universitat "Pompeu Fabra"
e-mail: de_yza@upf.es