Sign in Join

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

Mailing lists / fpc-pascal / 2013-05

fpc does not invoke correct compiler

3 messages · 2 people ·

Reply by email Subscribe to this list Your subscription

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

denisgolovan

Hi all

I experience inconsistency using fpc wrapper.
See below.

When I invoke fpc using command line "fpc -Px86_64 ..." it correctly executes cross-compiler (ppcrossx64) under Linux 32 bit. But if I try to push -Px86_64 into a separate file (opts.cfg) and run with "fpc @opts.cfg" it just executes native ppc386.

It looks like a bug to me.

Regards, Denis Golovan

Reply by email

Marco van de Voort
to denisgolovan

In our previous episode, denisgolovan said:

Show quoted text 7 lines
I experience inconsistency using fpc wrapper. See below. When I invoke fpc using command line "fpc -Px86_64 ..." it correctly executes cross-compiler (ppcrossx64) under Linux 32 bit. But if I try to push -Px86_64 into a separate file (opts.cfg) and run with "fpc @opts.cfg" it just executes native ppc386. It looks like a bug to me.

It is not. fpc has an handful of own parameters, including -P and -V, and passes the rest to fpc.

So the mistake is that you put fpc parameters in a config file meant for ppc<arch>

Reply by email