Sign in Join

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

Mailing lists / fpc-pascal / 2004-01

Error Compiling Examples with 1.9.2 (Stupid Newbie Question)

5 messages · 3 people ·

Reply by email Subscribe to this list Your subscription

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

Matt Henley

I was trying to compile the sqlite example with the new 1.9.2 version of FPC and got the following error. Don't know exactly what it means. I am running Gentoo Linux on a AMD Athlon and installed FPC 1.9.2 using the beta release. Lazarus compiles fine.

Any ideas?

Thanks
Matt

~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~

 sqlite $ make
/usr/local/bin/ppc386 -Fu../../../rtl/linux -di386 sqlite.pp
Free Pascal Compiler version 1.9.2 [2004/01/08] for i386
Copyright (c) 1993-2002 by Florian Klaempfl
Target OS: Linux for i386
Compiling sqlite.pp
Compiling /usr/local/src/fpc-1.9.2/rtl/linux/system.pp
compproc.inc(336,11) Warning: Comment level 2 found
set.inc(26,9) Error: Unrecognized opcode stw
set.inc(26,17) Error: Assembler syntax error
set.inc(27,9) Error: Unrecognized opcode li
set.inc(27,17) Error: Assembler syntax error
set.inc(28,9) Error: Unrecognized opcode stw
set.inc(28,17) Error: Assembler syntax error
set.inc(29,9) Error: Unrecognized opcode stw
set.inc(29,17) Error: Assembler syntax error
set.inc(30,9) Error: Unrecognized opcode stw
set.inc(30,17) Error: Assembler syntax error
set.inc(31,9) Error: Unrecognized opcode stw
set.inc(31,17) Error: Assembler syntax error
set.inc(32,9) Error: Unrecognized opcode stw
set.inc(32,17) Error: Assembler syntax error
set.inc(33,9) Error: Unrecognized opcode stw
set.inc(33,17) Error: Assembler syntax error
set.inc(34,9) Error: Unrecognized opcode stw
set.inc(34,17) Error: Assembler syntax error
set.inc(47,9) Error: Unrecognized opcode li
set.inc(47,17) Error: Assembler syntax error
set.inc(48,9) Error: Unrecognized opcode stw
set.inc(48,17) Error: Assembler syntax error
set.inc(49,9) Error: Unrecognized opcode stw
set.inc(49,17) Error: Assembler syntax error
set.inc(50,9) Error: Unrecognized opcode stw
set.inc(50,17) Error: Assembler syntax error
set.inc(51,9) Error: Unrecognized opcode stw
set.inc(51,17) Error: Assembler syntax error
set.inc(52,9) Error: Unrecognized opcode stw
set.inc(52,17) Error: Assembler syntax error
set.inc(53,9) Error: Unrecognized opcode stw
set.inc(53,17) Error: Assembler syntax error
set.inc(54,9) Error: Unrecognized opcode stw
set.inc(54,17) Error: Assembler syntax error
set.inc(55,9) Error: Unrecognized opcode stw
set.inc(55,17) Error: Assembler syntax error
set.inc(59,9) Error: Unrecognized opcode li
set.inc(59,17) Error: Assembler syntax error
set.inc(60,9) Error: Unrecognized opcode rlwnm
set.inc(60,17) Error: Assembler syntax error
set.inc(65,9) Error: Unrecognized opcode rlwinm
set.inc(65,17) Error: Assembler syntax error
set.inc(68,9) Error: Unrecognized opcode stwx
set.inc(68,17) Error: Assembler syntax error
set.inc(81,8) Error: Unrecognized opcode lfd
set.inc(81,17) Error: Assembler syntax error
set.inc(82,8) Error: Unrecognized opcode lfd
set.inc(82,17) Error: Assembler syntax error
set.inc(83,8) Error: Unrecognized opcode lfd
set.inc(83,17) Error: Assembler syntax error
set.inc(83,17) Fatal: There were 50 errors compiling module, stopping
make: *** [sqlite.ppu] Error 1
 sqlite $

Reply by email

Marco van de Voort
to Matt Henley
I was trying to compile the sqlite example with the new 1.9.2 version of FPC and got the following error. Don't know exactly what it means. I am running Gentoo Linux on a AMD Athlon and installed FPC 1.9.2 using the beta release. Lazarus compiles fine.

Do not compile files in build directories, and don't include build directories in your search path.

The missing opcodes are powerpc opcodes. Do you have a custom defines set ?

Reply by email

Matt Henley
to Marco van de Voort
Marco van de Voort wrote
> I was trying to compile the sqlite example with the new 1.9.2 version of > FPC and got the following error. Don't know exactly what it means. I > am running Gentoo Linux on a AMD Athlon and installed FPC 1.9.2 using > the beta release. Lazarus compiles fine.
Do not compile files in build directories, and don't include build directories in your search path.

Sorry, could you explain this one? I did make where the source and makefile was; in the /usr/local/src/packages/base/sqlite . Is there a way to invoke it elsewhere?

I added -Fi/usr/local/src/fpc-1.9.2/rtl/* to the searchpath in fpc.cfg so it wouldnt complain about finding sysunixh.inc

The missing opcodes are powerpc opcodes. Do you have a custom defines set ?

I did not intentionally set any defines. Like I said Lazarus is compiling fine. Where would I find these?

Reply by email

Marco van de Voort
to Matt Henley
Show quoted text 16 lines
On Thu, 2004-01-22 at 05:17, Marco van de Voort wrote: > > I was trying to compile the sqlite example with the new 1.9.2 version of > > FPC and got the following error. Don't know exactly what it means. I > > am running Gentoo Linux on a AMD Athlon and installed FPC 1.9.2 using > > the beta release. Lazarus compiles fine. > Do not compile files in build directories, and don't include build > directories in your search path. Sorry, could you explain this one? I did make where the source and makefile was; in the /usr/local/src/packages/base/sqlite . Is there a way to invoke it elsewhere? I added -Fi/usr/local/src/fpc-1.9.2/rtl/* to the searchpath in fpc.cfg so it wouldnt complain about finding sysunixh.inc

It should remake the maybe is to temporarily rename /usr/local/src/fpc-1.9.2/rtl/ to .../rtl2

The FPC makefiles actively search for the RTL root directory when compiling in the tree, and some change in defines or dates might cause them to recompile.

You can guard against this by compiling your snapshot with RELEASE=1, which adds a parameter to the buildprocess that signals "never rebuild this" (parameter -Ur)

Reply by email