[fpc-devel] Minor problem building fpc2.3.1on OS/2

Tomas Hajny XHajT03 at mbox.vol.cz
Mon Dec 10 00:14:25 CET 2007


On 8 Dec 07, at 17:02, Dave Parsons wrote:
> On Fri, 7 Dec 2007 19:55:12 +0100 (CET), Tomas Hajny wrote:
> 
> > Dave Parsons wrote:
> > > On Fri, 07 Dec 2007 12:12:53 +0100, Vincent Snijders wrote:
> > >> Dave Parsons schreef:
> > 
> > 
> > Hi,
> > 
> > >> > I've just tried building fpc-2.3.1 from svn using fpc-2.0.4 and
> > >> > received the following errors.
> > >
> > >> Can you start with fpc-2.2.0?
> > >
> > > No, according to the FPC download page 2.0.4 is the latest.
> > > I've been trying to build from svn for a while now but it
> > > didn't build until about 2 months ago & that was 2.3.1.
> > 
> > Correct. Nevertheless, there are binary snapshots available for both 2.2.1
> > and 2.3.1; building with either of them should probably work (2.2.1 is
> > preferred).
> 
> Well, I found and tried the files from here:-
>  ftp://ftp.freepascal.org/pub/fpc/snapshot/v22/i386-os2
> 
> and now have another problem:-
> < a couple of hundred similar lines cut >
> ..\..\rtl\units\os2\system.s:1075: Error: no such 386 instruction: `movups'
> ..\..\rtl\units\os2\system.s:1975: Error: no such 386 instruction: `ldmxcsr'
> ..\..\rtl\units\os2\system.s:2022: Error: no such 386 instruction: `movaps'
> ..\..\rtl\units\os2\system.s:4418: Error: no such 386 instruction: `ldmxcsr'
> ..\..\rtl\units\os2\system.s:4429: Error: no such 386 instruction: `stmxcsr'
> system.pas(1208) Error: Error while assembling exitcode 1
> 
> So far I've tried regenerating the makefiles and changing fpc.cfg but
> no change. I noticed a difference in the -O options but it seems to
> ignore any changes I make in fpc.cfg, or they are overridden later.
> For 2.0.4 I have -OG2p3 but with 2.2.1 I have only -O2.
> 
> Any ideas?

Yes, this looks like a too old version of as.exe. 
What does "as --version" report for you? My 
installation says "GNU assembler 2.14 20030612 
(Innotek Build 2004-02-23 14:15)". I believe that 
this version was already distributed with FPC 
2.0.4 - you can download it from 
ftp://ftp.freepascal.org/pub/fpc/dist/i386-os2-
2.0.4/separate/asldos2.zip. Obviously, you should 
make sure your PATH doesn't contain references to 
other versions of as.exe, or you should set 
explicit path to the right version using -FD in 
your fpc.cfg.

Tomas



More information about the fpc-devel mailing list