Sign in Join

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

Mailing lists / fpc-devel / 2016-06

Undefined symbol: SYSTEM_::=::\_DELETE compiler error

4 messages · 3 people ·

Reply by email Subscribe to this list Your subscription

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

Ondrej Pokorny

Hello!

One of my projects doesn't compile with current FPC trunk. I get this error:

MyProj.lpr(23,1) Error: Undefined symbol:
SYSTEM_::=::\_DELETE$RAWBYTESTRING$LONGINT$LONGINT

It used to compile fine. Also other projects compile. Does anybody have an idea what I am doing wrong or what should I change?

(Btw. a simple project:

var
   a: RawByteString;
begin
   Delete(a, 1, 2);
end;

compiles also fine.)

Ondrej

Reply by email

Jonas Maebe
to Ondrej Pokorny
Ondrej Pokorny wrote 8 lines
One of my projects doesn't compile with current FPC trunk. I get this error: MyProj.lpr(23,1) Error: Undefined symbol: SYSTEM_::=::\_DELETE$RAWBYTESTRING$LONGINT$LONGINT It used to compile fine. Also other projects compile. Does anybody have an idea what I am doing wrong or what should I change?

If you are using trunk on i386 or x86_64: it may be a side-effect of the current bug(s) in the peephole optimizer.

Jonas

Reply by email

Sven Barth
to Ondrej Pokorny: Hello! One of my projects doesn't compile with current FPC trunk. I get this error:…
"Ondrej Pokorny" wrote
Hello! One of my projects doesn't compile with current FPC trunk. I get this

error:

MyProj.lpr(23,1) Error: Undefined symbol:
SYSTEM_::=::\_DELETE$RAWBYTESTRING$LONGINT$LONGINT
It used to compile fine. Also other projects compile. Does anybody have

an idea what I am doing wrong or what should I change?

Show quoted text 10 lines
(Btw. a simple project: var a: RawByteString; begin Delete(a, 1, 2); end; compiles also fine.)

Are you sure all units you use were rebuild? I recently converted Insert and Delete to be intrinsics so the missing symbol could be due to units that were not rebuild...
Note to self: increase the PPU version in such cases as well to force a recompilation.

Regards,
Sven

Reply by email