Sign in Join

Live chat for Free Pascal, Lazarus, Delphi and every Pascal programmer.

Mailing lists / fpc-devel / 2011-05

Can't compile at revision: 17417

13 messages · 3 people · –

Reply by email Subscribe to this list Your subscription

Read-only archive. Use j and k to move between messages.

Marcos Douglas

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 Thanks, Marcos Douglas

Reply by email

Marcos Douglas
to Marcos Douglas
Marcos Douglas wrote 35 lines
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

Reply by email

Marcos Douglas
to Marcos Douglas
Marcos Douglas wrote 42 lines
On Sun, May 8, 2011 at 3:58 PM, Marcos Douglas 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

Reply by email

Joost van der Sluis
to Marcos Douglas
Marcos Douglas wrote 6 lines
On Sun, May 8, 2011 at 5:19 PM, Marcos Douglas 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.

Reply by email

Marcos Douglas
to Joost van der Sluis
Joost van der Sluis wrote 14 lines
On Mon, 2011-05-09 at 07:47 -0300, Marcos Douglas wrote: > On Sun, May 8, 2011 at 5:19 PM, Marcos Douglas 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

Reply by email

Joost van der Sluis
to Marcos Douglas
Marcos Douglas wrote 18 lines
On Mon, May 9, 2011 at 10:04 AM, Joost van der Sluis wrote: > > On Mon, 2011-05-09 at 07:47 -0300, Marcos Douglas wrote: > > On Sun, May 8, 2011 at 5:19 PM, Marcos Douglas 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.

Reply by email

Marcos Douglas
to Joost van der Sluis
Joost van der Sluis wrote 22 lines
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 wrote: > > > > On Mon, 2011-05-09 at 07:47 -0300, Marcos Douglas wrote: > > > On Sun, May 8, 2011 at 5:19 PM, Marcos Douglas 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

Reply by email

Marcos Douglas
to Marcos Douglas
Marcos Douglas wrote 29 lines
On Mon, May 9, 2011 at 10:29 AM, Joost van der Sluis 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 wrote: > > > > > > On Mon, 2011-05-09 at 07:47 -0300, Marcos Douglas wrote: > > > > On Sun, May 8, 2011 at 5:19 PM, Marcos Douglas 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

Reply by email

Joerg Schuelke
to Marcos Douglas

Am Mon, 9 May 2011 17:23:30 -0300
schrieb Marcos Douglas :

Show quoted text 6 lines
> 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.

Reply by email

Marcos Douglas
to Joerg Schuelke
Joerg Schuelke wrote 16 lines
Am Mon, 9 May 2011 17:23:30 -0300 schrieb Marcos Douglas : > > 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'?

Reply by email

Joerg Schuelke
to Marcos Douglas

Am Tue, 10 May 2011 11:11:22 -0300
schrieb Marcos Douglas :

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

Reply by email

Marcos Douglas
to Joerg Schuelke
Joerg Schuelke wrote 25 lines
Am Tue, 10 May 2011 11:11:22 -0300 schrieb Marcos Douglas : > 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

Reply by email