unresolved references in libgpc.a
Hello! After applying the new patch to the gcc-2.8.1 source code the gpc-19980830 compiler is now built by gcc-2.8.1 without any errors. When compiling the Pascal-programs in the "test" directory, however, most of the programs cannot be correctly compiled by gpc, because there are apparently some unresolved references in libgpc.a (see below an excerpt from the screen!). Is there a parameter file missing? Bernd =============================== typical error messages: /usr/lib/gcc-lib/i586-pc-linux-gnulibc1/2.8.1/libgpc.a(write.o): In function `_p_write': /usr/local/src/gcc-2.8.1/p/rts/wrtinc.c:123: undefined reference to `_p_strlen' /usr/local/src/gcc-2.8.1/p/rts/wrtinc.c:124: undefined reference to `_p_strlen' /usr/local/src/gcc-2.8.1/p/rts/wrtinc.c:138: undefined reference to `_p_strlen' /usr/lib/gcc-lib/i586-pc-linux-gnulibc1/2.8.1/libgpc.a(file.o): In function `_p_nameit': /usr/local/src/gcc-2.8.1/p/rts/file.c:204: undefined reference to `_p_strlen' /usr/local/src/gcc-2.8.1/p/rts/file.c:218: undefined reference to `_p_strlen' /usr/lib/gcc-lib/i586-pc-linux-gnulibc1/2.8.1/libgpc.a(rtsstr.o): In function `Upcasestring': /usr/local/src/gcc-2.8.1/p/rts/rtsstr.pas:109: undefined reference to `_p_gpc_upcase' /usr/lib/gcc-lib/i586-pc-linux-gnulibc1/2.8.1/libgpc.a(rtsstr.o): In function `Locasestring': /usr/local/src/gcc-2.8.1/p/rts/rtsstr.pas:115: undefined reference to `_p_gpc_locase' /usr/lib/gcc-lib/i586-pc-linux-gnulibc1/2.8.1/libgpc.a(rtsstr.o): In function `Strdup': /usr/local/src/gcc-2.8.1/p/rts/rtsstr.pas:206: undefined reference to `_p_strlen' /usr/lib/gcc-lib/i586-pc-linux-gnulibc1/2.8.1/libgpc.a(string.o): In function `_p_writestr': /usr/local/src/gcc-2.8.1/p/rts/wrtinc.c:123: undefined reference to `_p_strlen' /usr/local/src/gcc-2.8.1/p/rts/wrtinc.c:124: undefined reference to `_p_strlen' /usr/local/src/gcc-2.8.1/p/rts/wrtinc.c:138: undefined reference to `_p_strlen' /usr/lib/gcc-lib/i586-pc-linux-gnulibc1/2.8.1/libgpc.a(string.o): In function `_p_readstr': /usr/local/src/gcc-2.8.1/p/rts/string.c:521: undefined reference to `_p_strlen' =========================================
Bernd Kurzan E1 a écrit: typical error messages:
/usr/lib/gcc-lib/i586-pc-linux-gnulibc1/2.8.1/libgpc.a(write.o): In function `_p_write': /usr/local/src/gcc-2.8.1/p/rts/wrtinc.c:123: undefined reference to `_p_strlen'
It is a new bug which popped out in this last release. Here was the answer by Franck: I think this is the problem Maurice Lombardi described recently. It's caused by the `inline's in rts/rtsstr.pas while compiling GPC without optimizations. Try commenting out these `inlines' and compiling GPC again -- or, better yet, compile GPC with optimizations, i.e. give `CFLAGS="-O2"' to the make command, this will result in a faster compiler, anyway. An this was the result mailed by "Russ Whitaker" <russwhit@mind.net> ref gpc-19980830 in gcc-2.8.1 did a make clean make CFLAGS="-O2" LANGUAGES=pascal make CFLAGS="-O2" pascal.install now works ok Do the same ! -- Maurice Lombardi Laboratoire de Spectrometrie Physique, Universite Joseph Fourier de Grenoble, BP87 38402 Saint Martin d'Heres Cedex FRANCE Tel: 33 (0)4 76 51 47 51 Fax: 33 (0)4 76 51 45 44 mailto:Maurice.Lombardi@ujf-grenoble.fr
participants (2)
-
Bernd Kurzan E1 -
Maurice Lombardi