Hi,
I am trying to port a 3D graphics package from VMS/Alpha with DEC Pascal to Solaris 7 (a.k.a. Solaris 2.7). I have installed version 19990119 of gpc with version 2.8.1 of gcc.
I have successfully compiled the first three levels of the graphics package. When compiling level4.pas, I get a 'fatal error 6' message, a .gpi file but no .o file.
I systematically trimmed code (whole functions and procedures) off the end of the source file until is compiled. Most of the implementation section was gone at that point. I tried commenting out the same code with '(*' and '*)' with the same result: it compiled. I then tried to remove only the code on the border, i.e. the compilation failed, I removed another procedure, and it compiled; that last procedure is the one I removed from the full source. This was based on the assumption that some code triggered the failure. The compilation failed with the 'offending' code removed. I abandonned that avenue of research.
Then I tried gcc debug options. I specifed '-da' and got about a dozen debug files (.sched2 & .dbr were empty). Specifying '-dJ' did not produce the expected .sched2 file.
What is the next step?
Try using the latest gcc as a base?
Use Modules instead of Units? I would need documentation of those.
Convert to Modula2? Is this even possible? How different are the languages? Is there a free compiler out there?
Switch to C (use p2c, the Pascal to C translator) and abandon Pascal entirely?
Help.
Thanks.
P.S. I joined the list a few minutes ago. To ensure that I get your reply, please 'cc' to me directly. Thanks.
"Marinier, M. Claude, G." wrote:
Hi,
I am trying to port a 3D graphics package from VMS/Alpha with DEC Pascal to Solaris 7 (a.k.a. Solaris 2.7). I have installed version 19990119 of gpc with version 2.8.1 of gcc.
Try newer GPC package. You can downlaod binaries for Solaris 7 from: ftp://math.uwb.edu.pl/pub/solaris7 or ftp://mizar.uwb.edu.pl/pub/misc/solaris7 Sparc and x86 packages are available.
Hope this helps
Maruisz,
The package wants to install in /usr/local. Will this clobber (i.e. overwrite) my existing gcc 2.95.2 installation?
Thanks.
On Fri, 30 Jun 2000, Mariusz Zynel wrote:
"Marinier, M. Claude, G." wrote:
I am trying to port a 3D graphics package from VMS/Alpha with DEC Pascal to Solaris 7 (a.k.a. Solaris 2.7). I have installed version 19990119 of gpc with version 2.8.1 of gcc.
Try newer GPC package. You can downlaod binaries for Solaris 7 from: ftp://math.uwb.edu.pl/pub/solaris7 or ftp://mizar.uwb.edu.pl/pub/misc/solaris7 Sparc and x86 packages are available.
30-Jun-00 13:16 you wrote:
Maruisz,
The package wants to install in /usr/local. Will this clobber (i.e. overwrite) my existing gcc 2.95.2 installation?
If gcc is installed in /usr/local then it CAN do it. Probability is SMALL, though: files common for gcc and gpc should be equal anyway.
Thanks.
On Fri, 30 Jun 2000, Mariusz Zynel wrote:
"Marinier, M. Claude, G." wrote:
I am trying to port a 3D graphics package from VMS/Alpha with DEC Pascal to Solaris 7 (a.k.a. Solaris 2.7). I have installed version 19990119 of gpc with version 2.8.1 of gcc.
Try newer GPC package. You can downlaod binaries for Solaris 7 from: ftp://math.uwb.edu.pl/pub/solaris7 or ftp://mizar.uwb.edu.pl/pub/misc/solaris7 Sparc and x86 packages are available.
Claude, Victor and Others
Khimenko Victor wrote:
30-Jun-00 13:16 you wrote:
Maruisz,
The package wants to install in /usr/local. Will this clobber (i.e. overwrite) my existing gcc 2.95.2 installation?
If gcc is installed in /usr/local then it CAN do it. Probability is SMALL, though: files common for gcc and gpc should be equal anyway.
Victor is right. Since my package is based on gcc 2.95.2, I think common files i.e. libgcc.a, collect2 and specs should be equal up to functionality. Files my differ due to compiler used. Please, correct me if I'm wrong.
Anyways, Claude, Solaris pkgadd utility reports all files that are to be overwritten during package installation. It lets you decide if to overwrite or not. So make a backup of that files for safety. I'm using both gcc 2.95.2 and gpc 19991030 simultaneously on Sparc and Intel flawlesly.
Sorry List for being a bit OT, regards
Mariusz,
I found a way to install the gpc-2.1-19991030-Solaris7-sparc as you suggested. I tried to build the graphics package again (after removing *.o and *.gpi) and it fails with
343: Internal compiler error in `emit_library_call_value', at calls.c:3198
On Fri, 30 Jun 2000, Mariusz Zynel wrote:
"Marinier, M. Claude, G." wrote:
I am trying to port a 3D graphics package from VMS/Alpha with DEC Pascal to Solaris 7 (a.k.a. Solaris 2.7). I have installed version 19990119 of gpc with version 2.8.1 of gcc.
Try newer GPC package. You can downlaod binaries for Solaris 7 from: ftp://math.uwb.edu.pl/pub/solaris7 or ftp://mizar.uwb.edu.pl/pub/misc/solaris7 Sparc and x86 packages are available.
Hi,
I added some type casts and the unit compiles.
On Fri, 30 Jun 2000, Claude Marinier wrote:
343: Internal compiler error in `emit_library_call_value', at calls.c:3198
Hi,
I am using GNU Pascal 2.1 (19991030) on Solaris 2.7 from a package.
I am porting a graphics package from DEC Pascal on VMS to GNU Pascal on Solaris. The package is used with many Fortran programs. The conversion is almost complete. All five levels of the package compile and all the Pascal test programs I have build so far run OK. I cannot get the Fortran test programs to link. The linker cannot find the graphics package entry points. For example
'undefined reference to init_'
I have found a lot of information about calling from Pascal but nothing so far that help me to call from Fortran to Pascal.
Can someone point me to the appropriate documentation?
Thanks.