Re: [fpc-devel] Re: Can't compile at revision: 17417
On Mon, May 9, 2011 at 5:38 PM, Joerg Schuelke joerg.schue...@gmx.de wrote: Am Mon, 9 May 2011 17:23:30 -0300 schrieb Marcos Douglas m...@delfire.net: I use /fixes_2_4 but I could not to compile (error in first mail). So, I took a look in sources from /trunk. I compared this files (odbcsql) and saw this difference between them (the patch). Did you understand? I think there are two possibilities: 1) During shutdown (shut off) something in your file system went wrong. You should 'svn up' again. Maybe svn can correct the error, or gives you a hint. 2) It is windows related. For me all works fine. But i´m using linux. In WinXP, with TortoiseSVN I did: - Deleted directory packages\odbc - Clean UP - Updated I use /fixes_2_4... To compile I use a BAT (always worked): - @echo on set myroot=W:\dev\freepascal set myFPC=%myroot%\compiler\2.4.3 set mybinutils=%myroot%\binutils set PATH=%mybinutils%\i386-win32;%myFPC%\bin\i386-win32;%PATH% cd %myFPC% rd /s /q %myfpc%\examples make clean all install INSTALL_PREFIX=%myFPC% PP=%mybinutils%\ppc386.exe - Now works! Thanks Joerg. Marcos Douglas PS: BTW, what the difference (at least on Win) to use option install in 'make'? ___ fpc-devel maillist - fpc-devel@lists.freepascal.org http://lists.freepascal.org/mailman/listinfo/fpc-devel
Re: [fpc-devel] Re: Can't compile at revision: 17417
Am Tue, 10 May 2011 11:11:22 -0300 schrieb Marcos Douglas m...@delfire.net: PS: BTW, what the difference (at least on Win) to use option install in 'make'? Thats not windows related, make works the same way on all platforms. The arguments for make are: - options for make himself - targets (which parts of code to build) - variable definitions (which may modify the making of the targets) There are some commonly used targets with self explaining names - clean (tries to delete all during the build process generated files) - all (builds all targets -if you have more than one-) - install (installs the former build targets) If you want to know more about how make works, look for documentation. There is a lot of. There is somewhere a doc about the fpc build process, google for fpc build faq. I think that is not development related, if you have more questions it may be better to visit a forum or the general fpc-pascal mailing list. Regards Jörg ___ fpc-devel maillist - fpc-devel@lists.freepascal.org http://lists.freepascal.org/mailman/listinfo/fpc-devel
Re: [fpc-devel] Re: Can't compile at revision: 17417
On Tue, May 10, 2011 at 11:55 AM, Joerg Schuelke joerg.schue...@gmx.de wrote: Am Tue, 10 May 2011 11:11:22 -0300 schrieb Marcos Douglas m...@delfire.net: PS: BTW, what the difference (at least on Win) to use option install in 'make'? Thats not windows related, make works the same way on all platforms. The arguments for make are: - options for make himself - targets (which parts of code to build) - variable definitions (which may modify the making of the targets) There are some commonly used targets with self explaining names - clean (tries to delete all during the build process generated files) - all (builds all targets -if you have more than one-) - install (installs the former build targets) If you want to know more about how make works, look for documentation. There is a lot of. There is somewhere a doc about the fpc build process, google for fpc build faq. I think that is not development related, if you have more questions it may be better to visit a forum or the general fpc-pascal mailing list. OK, thank you. Marcos Douglas ___ fpc-devel maillist - fpc-devel@lists.freepascal.org http://lists.freepascal.org/mailman/listinfo/fpc-devel
[fpc-devel] Re: Can't compile at revision: 17417
On Sun, May 8, 2011 at 5:19 PM, Marcos Douglas m...@delfire.net wrote: I resolved. Path in attachment (copy from /trunk). Hello, somebody can confirm this, please? Thanks. Marcos Douglas ___ fpc-devel maillist - fpc-devel@lists.freepascal.org http://lists.freepascal.org/mailman/listinfo/fpc-devel
Re: [fpc-devel] Re: Can't compile at revision: 17417
On Mon, 2011-05-09 at 07:47 -0300, Marcos Douglas wrote: On Sun, May 8, 2011 at 5:19 PM, Marcos Douglas m...@delfire.net wrote: I resolved. Path in attachment (copy from /trunk). Hello, somebody can confirm this, please? A quick look on your patch is that you want to include the 32-bit odbc driver in a 64 bit environment? Probably you are cross-compiling while you don't have the proper .dll's (32 and 64 bit) in your search-path. Joost. ___ fpc-devel maillist - fpc-devel@lists.freepascal.org http://lists.freepascal.org/mailman/listinfo/fpc-devel
Re: [fpc-devel] Re: Can't compile at revision: 17417
On Mon, May 9, 2011 at 10:04 AM, Joost van der Sluis jo...@cnoc.nl wrote: On Mon, 2011-05-09 at 07:47 -0300, Marcos Douglas wrote: On Sun, May 8, 2011 at 5:19 PM, Marcos Douglas m...@delfire.net wrote: I resolved. Path in attachment (copy from /trunk). Hello, somebody can confirm this, please? A quick look on your patch is that you want to include the 32-bit odbc driver in a 64 bit environment? Probably you are cross-compiling while you don't have the proper .dll's (32 and 64 bit) in your search-path. No. This path was copied from odbcsql.pas in /trunk. I use Win32 only. Marcos Douglas ___ fpc-devel maillist - fpc-devel@lists.freepascal.org http://lists.freepascal.org/mailman/listinfo/fpc-devel
Re: [fpc-devel] Re: Can't compile at revision: 17417
On Mon, 2011-05-09 at 10:14 -0300, Marcos Douglas wrote: On Mon, May 9, 2011 at 10:04 AM, Joost van der Sluis jo...@cnoc.nl wrote: On Mon, 2011-05-09 at 07:47 -0300, Marcos Douglas wrote: On Sun, May 8, 2011 at 5:19 PM, Marcos Douglas m...@delfire.net wrote: I resolved. Path in attachment (copy from /trunk). Hello, somebody can confirm this, please? A quick look on your patch is that you want to include the 32-bit odbc driver in a 64 bit environment? Probably you are cross-compiling while you don't have the proper .dll's (32 and 64 bit) in your search-path. No. This path was copied from odbcsql.pas in /trunk. I use Win32 only. If you don't use trunk, what are you trying to compile? Joost. ___ fpc-devel maillist - fpc-devel@lists.freepascal.org http://lists.freepascal.org/mailman/listinfo/fpc-devel
Re: [fpc-devel] Re: Can't compile at revision: 17417
On Mon, May 9, 2011 at 10:29 AM, Joost van der Sluis jo...@cnoc.nl wrote: On Mon, 2011-05-09 at 10:14 -0300, Marcos Douglas wrote: On Mon, May 9, 2011 at 10:04 AM, Joost van der Sluis jo...@cnoc.nl wrote: On Mon, 2011-05-09 at 07:47 -0300, Marcos Douglas wrote: On Sun, May 8, 2011 at 5:19 PM, Marcos Douglas m...@delfire.net wrote: I resolved. Path in attachment (copy from /trunk). Hello, somebody can confirm this, please? A quick look on your patch is that you want to include the 32-bit odbc driver in a 64 bit environment? Probably you are cross-compiling while you don't have the proper .dll's (32 and 64 bit) in your search-path. No. This path was copied from odbcsql.pas in /trunk. I use Win32 only. If you don't use trunk, what are you trying to compile? Sorry my English... I use /fixes_2_4 but I could not to compile (error in first mail). So, I took a look in sources from /trunk. I compared this files (odbcsql) and saw this difference between them (the patch). Marcos Douglas ___ fpc-devel maillist - fpc-devel@lists.freepascal.org http://lists.freepascal.org/mailman/listinfo/fpc-devel
Re: [fpc-devel] Re: Can't compile at revision: 17417
On Mon, May 9, 2011 at 10:36 AM, Marcos Douglas m...@delfire.net wrote: On Mon, May 9, 2011 at 10:29 AM, Joost van der Sluis jo...@cnoc.nl wrote: On Mon, 2011-05-09 at 10:14 -0300, Marcos Douglas wrote: On Mon, May 9, 2011 at 10:04 AM, Joost van der Sluis jo...@cnoc.nl wrote: On Mon, 2011-05-09 at 07:47 -0300, Marcos Douglas wrote: On Sun, May 8, 2011 at 5:19 PM, Marcos Douglas m...@delfire.net wrote: I resolved. Path in attachment (copy from /trunk). Hello, somebody can confirm this, please? A quick look on your patch is that you want to include the 32-bit odbc driver in a 64 bit environment? Probably you are cross-compiling while you don't have the proper .dll's (32 and 64 bit) in your search-path. No. This path was copied from odbcsql.pas in /trunk. I use Win32 only. If you don't use trunk, what are you trying to compile? Sorry my English... I use /fixes_2_4 but I could not to compile (error in first mail). So, I took a look in sources from /trunk. I compared this files (odbcsql) and saw this difference between them (the patch). Hi Joost, Did you understand? Marcos Douglas ___ fpc-devel maillist - fpc-devel@lists.freepascal.org http://lists.freepascal.org/mailman/listinfo/fpc-devel
Re: [fpc-devel] Re: Can't compile at revision: 17417
Am Mon, 9 May 2011 17:23:30 -0300 schrieb Marcos Douglas m...@delfire.net: I use /fixes_2_4 but I could not to compile (error in first mail). So, I took a look in sources from /trunk. I compared this files (odbcsql) and saw this difference between them (the patch). Did you understand? I think there are two possibilities: 1) During shutdown (shut off) something in your file system went wrong. You should 'svn up' again. Maybe svn can correct the error, or gives you a hint. 2) It is windows related. For me all works fine. But i´m using linux. ___ fpc-devel maillist - fpc-devel@lists.freepascal.org http://lists.freepascal.org/mailman/listinfo/fpc-devel
[fpc-devel] Re: Can't compile at revision: 17417
On Sun, May 8, 2011 at 3:58 PM, Marcos Douglas m...@delfire.net wrote: Hi, I was compiling the FPC and the computer was turned off by accidentally... so, I turn on again and tried to compile. I could not. ERROR: make[4]: Leaving directory `W:/md/dev/freepascal/compiler/2.4.3/packages/oracle' make[3]: Leaving directory `W:/md/dev/freepascal/compiler/2.4.3/packages/oracle' make -C odbc smart make[3]: Entering directory `W:/md/dev/freepascal/compiler/2.4.3/packages/odbc' make all LINKSMART=1 CREATESMART=1 make[4]: Entering directory `W:/md/dev/freepascal/compiler/2.4.3/packages/odbc' W:/md/dev/freepascal/binutils/i386-win32/gmkdir.exe -p units/i386-win32 W:/md/dev/freepascal/compiler/2.4.3/compiler/ppc386.exe -XX -CX -Ur -Xs -O2 -n - FuW:/md/dev/freepascal/compiler/2.4.3/rtl/units/i386-win32 -Fisrc -FE. -FUunits/ i386-win32 -di386 -dRELEASE src/odbcsql.pas odbcsql.pas(8) Error: Invalid DLL C:\WINDOWS\system\odbc.dll: invalid magic code odbcsql.inc(1715,1) Fatal: There were 1 errors compiling module, stopping Fatal: Compilation aborted make[4]: *** [odbcsql.ppu] Error 1 make[4]: Leaving directory `W:/md/dev/freepascal/compiler/2.4.3/packages/odbc' make[3]: *** [fpc_smart] Error 2 make[3]: Leaving directory `W:/md/dev/freepascal/compiler/2.4.3/packages/odbc' make[2]: *** [odbc_smart] Error 2 make[2]: Leaving directory `W:/md/dev/freepascal/compiler/2.4.3/packages' make[1]: *** [packages_smart] Error 2 make[1]: Leaving directory `W:/md/dev/freepascal/compiler/2.4.3' make: *** [build-stamp.i386-win32] Error 2 W:\md\dev\freepascal\compiler\2.4.3 -- FPC revision: 17417 Lazarus 0.9.30.1 r29237 FPC 2.4.3 i386-win32-win32/win64 The trunk version I compiled OK. The odbcsql.pas in /trunk is equal to odbcsql.pas in /branches/fixes_2_4 So, what the problem? I use WinXP SP3. Marcos Dougals ___ fpc-devel maillist - fpc-devel@lists.freepascal.org http://lists.freepascal.org/mailman/listinfo/fpc-devel
[fpc-devel] Re: Can't compile at revision: 17417
On Sun, May 8, 2011 at 4:59 PM, Marcos Douglas m...@delfire.net wrote: On Sun, May 8, 2011 at 3:58 PM, Marcos Douglas m...@delfire.net wrote: Hi, I was compiling the FPC and the computer was turned off by accidentally... so, I turn on again and tried to compile. I could not. ERROR: make[4]: Leaving directory `W:/md/dev/freepascal/compiler/2.4.3/packages/oracle' make[3]: Leaving directory `W:/md/dev/freepascal/compiler/2.4.3/packages/oracle' make -C odbc smart make[3]: Entering directory `W:/md/dev/freepascal/compiler/2.4.3/packages/odbc' make all LINKSMART=1 CREATESMART=1 make[4]: Entering directory `W:/md/dev/freepascal/compiler/2.4.3/packages/odbc' W:/md/dev/freepascal/binutils/i386-win32/gmkdir.exe -p units/i386-win32 W:/md/dev/freepascal/compiler/2.4.3/compiler/ppc386.exe -XX -CX -Ur -Xs -O2 -n - FuW:/md/dev/freepascal/compiler/2.4.3/rtl/units/i386-win32 -Fisrc -FE. -FUunits/ i386-win32 -di386 -dRELEASE src/odbcsql.pas odbcsql.pas(8) Error: Invalid DLL C:\WINDOWS\system\odbc.dll: invalid magic code odbcsql.inc(1715,1) Fatal: There were 1 errors compiling module, stopping Fatal: Compilation aborted make[4]: *** [odbcsql.ppu] Error 1 make[4]: Leaving directory `W:/md/dev/freepascal/compiler/2.4.3/packages/odbc' make[3]: *** [fpc_smart] Error 2 make[3]: Leaving directory `W:/md/dev/freepascal/compiler/2.4.3/packages/odbc' make[2]: *** [odbc_smart] Error 2 make[2]: Leaving directory `W:/md/dev/freepascal/compiler/2.4.3/packages' make[1]: *** [packages_smart] Error 2 make[1]: Leaving directory `W:/md/dev/freepascal/compiler/2.4.3' make: *** [build-stamp.i386-win32] Error 2 W:\md\dev\freepascal\compiler\2.4.3 -- FPC revision: 17417 Lazarus 0.9.30.1 r29237 FPC 2.4.3 i386-win32-win32/win64 The trunk version I compiled OK. The odbcsql.pas in /trunk is equal to odbcsql.pas in /branches/fixes_2_4 So, what the problem? I use WinXP SP3. I resolved. Path in attachment (copy from /trunk). Marcos Douglas odbcsql.patch Description: Binary data ___ fpc-devel maillist - fpc-devel@lists.freepascal.org http://lists.freepascal.org/mailman/listinfo/fpc-devel