Hi! I have two problems, that might be related: 1. When I run the test suite after installation of the gpc-20010924 with the gcc-core-2.95.2 according to the instructions (I have Red Hat Linux 6.2, kernel 2.2.16-3 ) I get failure for 5 cases (out of 1763 )
I get error messsages something like this: PC="gpc" PFLAGS="--autobuild -g -O3 -Wall -Werror " SRCDIR="." "./test_run" "*.pas" | "./test_sum" TEST crttest.pas: /usr/local/lib/gcc-lib/i686-pc-linux-gnu/2.95.2/units/crtc.c:122: warning: #warning The CRT unit needs ncurses version 5.0 or newer because older
As I understand this, the problem seems to be the version of ncurses. But according to the KDE package manager I have ncurses 5.0-11 already installed.
Do I need another version?
2. I have tried to install rhide in the the binary version rhide-1.4.7.8.linux.bin.tar.bz2 When I try to use this it seems to work, but when I compile a larger project I get error messages of the type: filtest.pas Error: Internal compiler error in 'scope_die_for' at dwarf2out.c:7794
then I compile the program using gpc at the command prompt it works. What can be the problem? Can it be related to the problem 1 above? Should I instead try to compile rhide from the sources?
Thanks! Per
_________________________________________________________________ Hämta MSN Explorer kostnadsfritt på http://explorer.msn.se
Per Persson wrote:
Hi! I have two problems, that might be related:
- When I run the test suite after installation of the gpc-20010924 with
the gcc-core-2.95.2 according to the instructions (I have Red Hat Linux 6.2, kernel 2.2.16-3 ) I get failure for 5 cases (out of 1763 )
I get error messsages something like this: PC="gpc" PFLAGS="--autobuild -g -O3 -Wall -Werror " SRCDIR="." "./test_run" "*.pas" | "./test_sum" TEST crttest.pas: /usr/local/lib/gcc-lib/i686-pc-linux-gnu/2.95.2/units/crtc.c:122: warning: #warning The CRT unit needs ncurses version 5.0 or newer because older
As I understand this, the problem seems to be the version of ncurses. But according to the KDE package manager I have ncurses 5.0-11 already installed.
Do I need another version?
The check in crtc.c reads:
#include <ncurses.h> #if NCURSES_VERSION_MAJOR < 5 #warning The CRT unit needs ncurses version 5.0 or newer because older #warning versions contain a bug that severely affects CRT programs. #endif
So just check your ncurses.h file to see if/how NCURSES_VERSION_MAJOR is set. A small possibility would be that there are several versions installed, and an old one is used. Or the installed one is broken -- it's a conincidence, but just today there was a mail on the ncurses list from the maintainer: "[...] Redhat 7.2 does not ship ncurses 5.2 (as usual, Redhat ships a development version of ncurses without noting this). [...] This is what Redhat shipped (plus a few changes that I wouldn't want to own): [...]"
So I wouldn't be surprised if similar problems exist in 6.2. In this case, get an official ncurses version from ftp.gnu.org or mirrors, and don't forget to complain to RH. ;-)
- I have tried to install rhide in the the binary version
rhide-1.4.7.8.linux.bin.tar.bz2 When I try to use this it seems to work, but when I compile a larger project I get error messages of the type: filtest.pas Error: Internal compiler error in 'scope_die_for' at dwarf2out.c:7794
then I compile the program using gpc at the command prompt it works. What can be the problem?
The difference might be due to different compiler options. `-g' seems a likely candidate. If you compile with `-g' on the command line, does it crash as well. If so, you might want to use `--debug-source' to find where in your program it crashes, but in general, debug info generation in GPC is not very stable yet, so I can't promise whether it can be fixed soon.
Frank