[fpc-pascal] FP IDE: Error: Illegal parameter: -Cp386
Pierre Free Pascal
pierre at freepascal.org
Wed Jan 4 14:24:40 CET 2012
Did you try to "manually" (meaning with some other text editor, or sed
script)
remove the offending line -Cp386 from fp.cfg?
The problem might come from a fp.cfg that was created by an earlier
version
of Free Pascal for which -Cp386 was allowed.
To complicate things further, once you tried to compile
with those wrong options, the compiler exits with fp.cfg file open,
which leads to an opening failure on a second compilation try...
I still need to figure out how to correctly fix these
possible open files...
Pierre Muller
Free Pascal core team member
> -----Message d'origine-----
> De : fpc-pascal-bounces at lists.freepascal.org [mailto:fpc-pascal-
> bounces at lists.freepascal.org] De la part de Bart
> Envoyé : mardi 3 janvier 2012 19:10
> À : FPC-Pascal users discussions
> Objet : [fpc-pascal] FP IDE: Error: Illegal parameter: -Cp386
>
> I recently updated to fpc 2.6.0
> Now I cannot compile anything in the FP IDE (Version 1.0.12 2011/12/25).
>
> Program test;
>
> {$mode objfpc}
> {$h+}
>
> begin
> end.
>
> I try to build/make:
> Error: Illegal parameter: -Cp386
>
> This is the auto-generated fp.cfg file:
>
> # Automatically created file, don't edit.
> #IFDEF NORMAL
> -TWin32
> -Mfpc
> -Sg
> -Ci
> -O1
> -Cp80386
> -OpPENTIUM3
> -Ratt
> -FuC:\devel\fpc\units\i386-Win32
> -FuC:\devel\fpc\units\i386-Win32\*
> -FuC:\devel\fpc\units\i386-Win32\rtl
> -XS
> -g-
> -p-
> -b-
>
> -Cp386 <<<<----------------------
> #ENDIF
> [snip]
>
> Should probably be -Cp80386?
>
> Bart
> _______________________________________________
> fpc-pascal maillist - fpc-pascal at lists.freepascal.org
> http://lists.freepascal.org/mailman/listinfo/fpc-pascal
More information about the fpc-pascal
mailing list