Hello, i'm a beginner at MinGW and Pascal and i've downloaded and searched through the archived mailbox fo a long time but i found no solution. And generally i find no useful information for setting up mingw and gpc. I wanted to use the latest gpc snapshop and so downloaded the corresponding mingw files. I used the candidate ones that the MinGW 5.0.2 installation program because these are the only ones wich have gcc 3.4.4 wich is the latest gpc snapshot is based. So the files i installed in C:\MinGW are these:
These were downloaded by MinGW 5.0.2 installation program mingw-runtime-3.8.tar.gz w32api-3.5.tar.gz binutils-2.16.91-20050827-1.tar.gz gcc-core-3.4.4-20050522-1.tar.gz gcc-g++-3.4.4-20050522-1.tar.gz gcc-g77-3.4.4-20050522-1.tar.gz gcc-ada-3.4.4-20050522-1.tar.gz gcc-java-3.4.4-20050522-1.tar.gz gcc-objc-3.4.4-20050522-1.tar.gz mingw32-make-3.80.0-3.tar.gz
Theses i downloaded from MinGW.org download page in the current section: gdb-5.2.1-1.exe mingw-utils-0.3.tar.gz
These from gnu-pascal.de: gpc-20051116.i386-pc-mingw32.tar.gz pdcurs24.beta-i386-pc-mingw32.zip gmp-2.0.2-i386-pc-mingw32.zip rx-1.5-i386-pc-mingw32.zip
I found no other MinGW setupinformation than putting C:\MinGW\bin to the path. I already know that with the --automake --autobuild options because without these i got the "module/unit interface `GPC' could not be imported" error. But with one of these options i get the error listed in the subject line. Here is the output for "gpc -v --autobuild statfsdemo.pas -o statfsdemo.exe" wich is a demo program from the doc\gpc\demos directory:
C:\MinGW\doc\gpc\demos>gpc -v --autobuild statfsdemo.pas -o statfsdemo.exe Reading specs from C:/MINGW/BIN/../lib/gcc/mingw32/3.4.4/specs Configured with: ../configure --with-gcc --with-gnu-ld --with-gnu-as --host=mingw32 --target=mingw32 --prefix=/mingw --enable-threads --disable-nls --enable-languages=pascal --disable-win32-registry --disable-shared --enable-sjlj-exceptions --without-x --enable-interpreter --enable-hash-synchronization Thread model: win32 gpc version 20051116, based on gcc-3.4.4 (mingw special) C:/MINGW/BIN/../libexec/gcc/mingw32/3.4.4/gpc1.exe -quiet -v -iprefix C:\MINGW\BIN../lib/gcc/mingw32/3.4.4/ statfsdemo.pas -quiet -dumpbase statfsdemo.pas -auxbase statfsdemo -famtmpfile=C:\WINDOWS\TEMP/ccbxkigb.gpa -fautobuild -version -o C:\WINDOWS\TEMP/ccWldggb.s GNU Pascal version 20051116, based on gcc-3.4.4 (mingw special) (mingw32) compiled by GNU C version 3.4.4 (mingw special). GGC heuristics: --param ggc-min-expand=47 --param ggc-min-heapsize=32543 GNU Pascal Compiler PreProcessor version 20051116, based on gcc-3.4.4 (mingw special)
statfsdemo.pas:30: error: module/unit `gpc' could not be compiled
I've searched and experienced for ours. I remember, when i tried to learn c years ago (i tried to learn pascal with turbo pascal 6.0 12 years ago), that for emx (yes, the os/2 box is still lying around here) i had to setup many environment variables for the include and library pathes so that i was able to run it. I now compiled gpc.pas by hand and copied all files (.o, .gpi etc.) in the demos directory and it worked doing the commandline above. Can some hacker point me to the solution? I don't think that i have an broken installation. Befor this constellation i used different mingw's with nearly all gpc incarnations from gnu-pascal and mingw but this with this one i came at least to an exe file.
Alles Gute and Thanks, Andy
_________________________________________________________________ Sie suchen E-Mails, Dokumente oder Fotos? Die neue MSN Suche Toolbar mit Windows-Desktopsuche liefert in sekundenschnelle Ergebnisse. Jetzt neu! http://desktop.msn.de/ Jetzt gratis downloaden!
On 14 Oct 2006 at 19:49, Andreas Wirooks wrote:
Hello, i'm a beginner at MinGW and Pascal and i've downloaded and searched through the archived mailbox fo a long time but i found no solution.
[...]
The long and short of it is that earlier versions of gpc for Mingw were not too comfortable with gcc-3.4.x (read they were mostly broken). The most recent snapshots (e.g., 20060215) are more stable, but I haven't released Mingw binaries for some time.
My advice is to stick with Mingw binaries based on the gcc-3.2.3 backend. That is rock solid under Mingw.
I am currently using a patched 20060215 based on gcc-3.4.5, and it works perfectly fine for me, but I am not sure whether a binary release is appropriate at this point.
Best regards, The Chief -------- Prof. Abimbola A. Olowofoyeku (The African Chief) web: http://www.greatchief.plus.com/
Andreas Wirooks a écrit:
Hello, i'm a beginner at MinGW and Pascal and i've downloaded and searched through the archived mailbox fo a long time but i found no solution. And generally i find no useful information for setting up mingw and gpc. I wanted to use the latest gpc snapshop and so downloaded the corresponding mingw files. I used the candidate ones that the MinGW 5.0.2 installation program because these are the only ones wich have gcc 3.4.4 wich is the latest gpc snapshot is based. So the files i installed in C:\MinGW are these:
These were downloaded by MinGW 5.0.2 installation program mingw-runtime-3.8.tar.gz w32api-3.5.tar.gz binutils-2.16.91-20050827-1.tar.gz gcc-core-3.4.4-20050522-1.tar.gz gcc-g++-3.4.4-20050522-1.tar.gz gcc-g77-3.4.4-20050522-1.tar.gz gcc-ada-3.4.4-20050522-1.tar.gz gcc-java-3.4.4-20050522-1.tar.gz gcc-objc-3.4.4-20050522-1.tar.gz mingw32-make-3.80.0-3.tar.gz
Theses i downloaded from MinGW.org download page in the current section: gdb-5.2.1-1.exe mingw-utils-0.3.tar.gz
These from gnu-pascal.de: gpc-20051116.i386-pc-mingw32.tar.gz pdcurs24.beta-i386-pc-mingw32.zip gmp-2.0.2-i386-pc-mingw32.zip rx-1.5-i386-pc-mingw32.zip
Just a thought. What version of Window are you running: With W9x (95, 98, Me), contrary to XP and other modern ones, there are weird problems because they do not understand forward slashes / instead of backward slashes \ in pathes.
Maurice
Andreas Wirooks wrote:
I found no other MinGW setupinformation than putting C:\MinGW\bin to the path. I already know that with the --automake --autobuild options because without these i got the "module/unit interface `GPC' could not be imported" error. But with one of these options i get the error listed in the subject line. Here is the output for "gpc -v --autobuild statfsdemo.pas -o statfsdemo.exe" wich is a demo program from the doc\gpc\demos directory:
C:\MinGW\doc\gpc\demos>gpc -v --autobuild statfsdemo.pas -o statfsdemo.exe Reading specs from C:/MINGW/BIN/../lib/gcc/mingw32/3.4.4/specs Configured with: ../configure --with-gcc --with-gnu-ld --with-gnu-as --host=mingw32 --target=mingw32 --prefix=/mingw --enable-threads --disable-nls --enable-languages=pascal --disable-win32-registry --disable-shared --enable-sjlj-exceptions --without-x --enable-interpreter --enable-hash-synchronization Thread model: win32 gpc version 20051116, based on gcc-3.4.4 (mingw special) C:/MINGW/BIN/../libexec/gcc/mingw32/3.4.4/gpc1.exe -quiet -v -iprefix C:\MINGW\BIN../lib/gcc/mingw32/3.4.4/ statfsdemo.pas -quiet -dumpbase statfsdemo.pas -auxbase statfsdemo -famtmpfile=C:\WINDOWS\TEMP/ccbxkigb.gpa -fautobuild -version -o C:\WINDOWS\TEMP/ccWldggb.s GNU Pascal version 20051116, based on gcc-3.4.4 (mingw special) (mingw32) compiled by GNU C version 3.4.4 (mingw special). GGC heuristics: --param ggc-min-expand=47 --param ggc-min-heapsize=32543 GNU Pascal Compiler PreProcessor version 20051116, based on gcc-3.4.4 (mingw special)
statfsdemo.pas:30: error: module/unit `gpc' could not be compiled
I've searched and experienced for ours. I remember, when i tried to learn c years ago (i tried to learn pascal with turbo pascal 6.0 12 years ago), that for emx (yes, the os/2 box is still lying around here) i had to setup many environment variables for the include and library pathes so that i was able to run it. I now compiled gpc.pas by hand and copied all files (.o, .gpi etc.) in the demos directory and it worked doing the commandline above. Can some hacker point me to the solution? I don't think that i have an broken installation. Befor this constellation i used different mingw's with nearly all gpc incarnations from gnu-pascal and mingw but this with this one i came at least to an exe file.
There is a problem with your installation: gpc is supposed to know where to find gpc.pas. Could you try:
gpc -print-file-name=units
This should print you the full path name of the directory where gpc.pas lives. The path may look little strange (due to interactions between Windows, Mingw/Msys and gpc), but if you get something like:
gpc -print-file-name=units units
this is definitely wrong.
BTW: You can give '-funit-path=C:/MINGW/lib/gcc/mingw32/3.4.4/units' option to gpc to tell it where to find 'gpc.pas', but this is just a workaround.
On 20 Oct 2006 at 15:14, Waldek Hebisch wrote:
Andreas Wirooks wrote:
I found no other MinGW setupinformation than putting C:\MinGW\bin to the path. I already know that with the --automake --autobuild options because without these i got the "module/unit interface `GPC' could not be imported" error. But with one of these options i get the error listed in the subject line. Here is the output for "gpc -v --autobuild statfsdemo.pas -o statfsdemo.exe" wich is a demo program from the doc\gpc\demos directory:
C:\MinGW\doc\gpc\demos>gpc -v --autobuild statfsdemo.pas -o statfsdemo.exe Reading specs from C:/MINGW/BIN/../lib/gcc/mingw32/3.4.4/specs Configured with: ../configure --with-gcc --with-gnu-ld --with-gnu-as --host=mingw32 --target=mingw32 --prefix=/mingw --enable-threads --disable-nls --enable-languages=pascal --disable-win32-registry --disable-shared --enable-sjlj-exceptions --without-x --enable-interpreter --enable-hash-synchronization Thread model: win32 gpc version 20051116, based on gcc-3.4.4 (mingw special) C:/MINGW/BIN/../libexec/gcc/mingw32/3.4.4/gpc1.exe -quiet -v -iprefix C:\MINGW\BIN../lib/gcc/mingw32/3.4.4/ statfsdemo.pas -quiet -dumpbase statfsdemo.pas -auxbase statfsdemo -famtmpfile=C:\WINDOWS\TEMP/ccbxkigb.gpa -fautobuild -version -o C:\WINDOWS\TEMP/ccWldggb.s GNU Pascal version 20051116, based on gcc-3.4.4 (mingw special) (mingw32) compiled by GNU C version 3.4.4 (mingw special). GGC heuristics: --param ggc-min-expand=47 --param ggc-min-heapsize=32543 GNU Pascal Compiler PreProcessor version 20051116, based on gcc-3.4.4 (mingw special)
statfsdemo.pas:30: error: module/unit `gpc' could not be compiled
I've searched and experienced for ours. I remember, when i tried to learn c years ago (i tried to learn pascal with turbo pascal 6.0 12 years ago), that for emx (yes, the os/2 box is still lying around here) i had to setup many environment variables for the include and library pathes so that i was able to run it. I now compiled gpc.pas by hand and copied all files (.o, .gpi etc.) in the demos directory and it worked doing the commandline above. Can some hacker point me to the solution? I don't think that i have an broken installation. Befor this constellation i used different mingw's with nearly all gpc incarnations from gnu-pascal and mingw but this with this one i came at least to an exe file.
There is a problem with your installation: gpc is supposed to know where to find gpc.pas.
Absolutely.
Could you try:
gpc -print-file-name=units
"gpc -v": Reading specs from f:/mingw/bin/../lib/gcc/mingw32/3.4.5/specs Configured with: ../configure --enable-checking --enable-languages=pascal --with-gcc --with-gnu-ld --with-gnu-as --host=mingw32 --target=mingw32 --prefix=/mingw --enable-threads --disable-nls --disable-win32-registry --disable-shared --enable-sjlj-exceptions --enable-libgcj --disable-java-awt --without-x --enable-java-gc=boehm --disable-libgcj-debug --enable-interpreter --enable-hash-synchronization Thread model: win32 gpc version 20060215, based on gcc-3.4.5 (mingw special)
"gpc -print-file-name=units": f:/mingw/bin/../lib/gcc/mingw32/3.4.5/units
Both exactly the same from the "cmd" prompt and from the Msys bash prompt.
Using the prefix "/mingw" has never been a problem, and it is what GCC uses as well.
Best regards, The Chief -------- Prof. Abimbola A. Olowofoyeku (The African Chief) web: http://www.greatchief.plus.com/