Ainsi parlait Prof Abimbola Olowofoyeku :
On 28 Jan 02, at 18:55, Guillaume Rousse wrote:
Hi all. I'm trying to compile latest gpc 20011222 snapshot for Mandrake, which ships either gcc-2.96 and gcc-3.03. Latest message on this topic (early december) says gpc is not supported on these versions. Is this still true ?
In terms of the gcc sources that you use to build GPC, yes - you should use gcc-core-2.95.x sources for that. In terms of the compiler used to build GPC, you can use 2.96 or 3.03. I would advise you to use 2.96, since it is probably more tweaked and stable under Mandrake.
I should have precised i'm building a mdk package, not just installing it on my box. Anyway, i took the 'official' gpc rpm found on gnu-pascal ftp site, and adapted it to current gpc-20011222 and gcc-2.95-3. However, some things have changed: - there is now only one gpc binary, where they were epc, bpc, gpc and pc before - i had to add the following files and directories to make units work: %{_prefix}/lib/gcc-lib/%{gcc_target_platform}/%{gcc_version}/cpp0 %{_prefix}/lib/gcc-lib/%{gcc_target_platform}/%{gcc_version}/cc1 %{_prefix}/lib/gcc-lib/%{gcc_target_platform}/%{gcc_version}/include %{_prefix}/lib/gcc-lib/%{gcc_target_platform}/%{gcc_version}/units - gcc-cpp seems to be called gccpp now Off course, if you're interested in the spec file, i can send it back :-)
Everything now seems to be fine, however, CRT extension doesn't work -( [guillaume@silbermann 301]$ cat test1.pas PROGRAM Test;
BEGIN WRITELN('Hello World'); END. [guillaume@silbermann 301]$ cat test2.pas PROGRAM Test; USES CRT;
BEGIN WRITELN('Hello World'); END. [guillaume@silbermann 301]$ gpc --automake test1.pas -o test1 [guillaume@silbermann 301]$ ./test1 Hello World [guillaume@silbermann 301]$ gpc --automake test2.pas -o test2 [guillaume@silbermann 301]$ ./test2 (nothing)
So, what going wrong there ? My ncurse version is: [guillaume@silbermann 301]$ rpm -qa | grep curse ncurses-5.2-17mdk libncurses5-5.2-17mdk libncurses5-devel-5.2-17mdk