Sign in Join

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

Mailing lists / lazarus / 2009-11

"Error reading coff file" under Windows

4 messages · 2 people ·

Reply by email Subscribe to this list Your subscription

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

Graeme Geldenhuys

Hi,

I found the cross-compiling to difficult to setup under Linux, so instead I decided to setup a VirtualBox with Windows XP. I have installed FPC 2.3.1 (2.4.0rc1 actually), setup my fpc.cfg file. I then checked out the latest Lazarus trunk.

I then did a 'make all' inside the lazarus directory and all compiled fine until the end when I got the following error. Any ideas what is causing that error?

--------------------------------
...
Compiling idecmdline.pas
Compiling resource C:\Lazarus\ide\lazarus.rc
Compiling resource ..\units\i386-win32\lazarus.or
Linking ..\lazarus.exe
lazarus.pp(130,1) Error: Error reading coff file, can't read object data lazarus.pp(130,1) Fatal: There were 1 errors compiling module, stopping Fatal: Compilation aborted
make[2]: *** [lazarus.exe] Error 1
make[2]: Leaving directory `C:/Lazarus/ide'
make[1]: *** [ide] Error 2
make[1]: Leaving directory `C:/Lazarus/ide'
make: *** [ide] Error 2
--------------------------------

I have binutils installed, but it might be a old copy and I'm not sure if that is what is causing the problem. The exact same versions of FPC and Lazarus compile fine under Linux, so I'm pretty sure it's not a code bug in the repository revision.

When can I download the latest pre-compiled binutils for Windows? Is that actually what this error means?

Regards,
- Graeme -

fpGUI Toolkit - a cross-platform GUI toolkit using Free Pascal http://opensoft.homeip.net/fpgui/

Reply by email

Dimitrios Chr. Ioannidis
to Graeme Geldenhuys: I found the cross-compiling to difficult to setup under Linux, so instead I decided to…

Graeme Hi,

When can I download the latest pre-compiled binutils for Windows? Is that actually what this error means?

<RootPath>\binutils\arm-wince (from
http://svn.freepascal.org/svn/fpcbuild/trunk/install/crossbinwce) <RootPath>\binutils\i386-win32 (from
http://svn.freepascal.org/svn/fpcbuild/trunk/install/binw32) <RootPath>\binutils\x86_64-win64 (from
http://svn.freepascal.org/svn/fpcbuild/trunk/install/binw64) <RootPath>\fpc
<RootPath>\fpc\source (from
http://svn.freepascal.org/svn/fpc/tags/release_2_4_0_rc1 )

This is what i use in windows ...

regards,

Dimitrios Chr. Ioannidis

Reply by email

Graeme Geldenhuys
to Dimitrios Chr. Ioannidis
Dimitrios Chr. Ioannidis wrote
<RootPath>\binutils\i386-win32 (from http://svn.freepascal.org/svn/fpcbuild/trunk/install/binw32) This is what i use in windows ...

Thanks for the links. In the mean time I waisted more bandwidth and downloaded the 0.9.28.2 release from SourceForge, and then simply replaced the compiler with the 2.4.0rc1. Everything seems to work okay now, but I haven't tried to recompile the Lazarus IDE though.

Regards,
- Graeme -

fpGUI Toolkit - a cross-platform GUI toolkit using Free Pascal http://opensoft.homeip.net/fpgui/

Reply by email