Error Illegal Parameter Free Pascal
Illegal parameter: -Cp386 Messages sorted by: [ date ] [ thread ] [ subject ] [ author ] 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 Previous message: [fpc-pascal] FP IDE: Error: Illegal parameter: -Cp386 Next message: [fpc-pascal] FP IDE: Error: Illegal parameter: -Cp386 Messages sorted by: [ date ] [ t
Website Downloads (Laz+FPC) FAQ Wiki Bugtracker IRC channel Developer Blog Follow us on Twitter Latest SVN Mailing List Other languages Foundation Website Useful Wiki Links Project Roadmap Getting the Source Screenshots About donations (wiki) Bookstore Computer Math and Games in Pascal Lazarus, the complete guide (only a few left) Search Advanced search « previous next » Print Pages: [1] Author Topic: Build Library Linux: illegal parameter; -wr (Read 1671 times) http://lists.freepascal.org/fpc-pascal/2012-January/031916.html local-vision New member Posts: 10 Build Library Linux: illegal parameter; -wr « on: February 23, 2014, 10:59:22 pm » Dear Valued Community,When attempting to build/compile (even when itЕ› an empty project) library (.so) I get the following error:illegal parameter; -wrAny thoughts, leads or solutions? What does this error mean? Is there a list somewhere? Would much appreciated any assistance. Have Googled the error http://forum.lazarus.freepascal.org/index.php?topic=23708.0 but did not find any solution.My machine:Desktop: Quad Core, 8GBOS Linux Mint 14Lazarus:1.0.10FPC: 2.6.2Same error with:Desktop: MacBook Pro i7, Virtual Machine VMWareOS Linux Mint 14Lazarus:1.0.10FPC: 2.6.2However no problem building the library project (DLL) with Windows.Desktop: Quad Core, 8GBOS Win 7 64bitLazarus:1.0.10FPC: 2.6.2Many thanks for your input. Logged Fred vS Hero Member Posts: 1584 Re: Build Library Linux: illegal parameter; -wr « Reply #1 on: February 23, 2014, 11:04:49 pm » Quoteillegal parameter; -wrFor Linux, if you want to compile a library, you cannot assign Relocatable.Go in Project Options, Compil and Linking and disable Relocatable. Logged I use Lazarus 1.2.6 32/64 and FPC 2.6.4/2.7.1 32/64 on Mint Mate 17 32/64, Windows 8, Windows 7 32/64, Windows XP 32, freeBSD 64 and Mac OS X Snow Leopard 32.Widgetset: fpGUI, MSE, Win32, GTK2, Qt, Carbon.https://github.com/fredvs local-vision New member Posts: 10 Re: Build Library Linux: illegal parameter; -wr « Reply #2 on: February 24, 2014, 12:08:12 am » Hi Fred vS,Many thanks to you! Your approached worked and now I can get back to coding. Much appreciated.Just so it is clear:Select Project > Project Options In the presented di
Восстановить пароль Регистрация Регистрация Тесты Блоги Сообщество Поиск Ссылки сообщества Социальные группы Поиск Google по форуму Поиск Yandex по форуму Поиск по форуму Расширенный поиск Тесты http://www.cyberforum.ru/free-pascal/thread428157.html Список тестов К странице... @sheenkova 0 / 0 / 0 Регистрация: 08.01.2012 Сообщений: 9 14.01.2012, 18:02 Ошибка ERROR: Illegal parameter: -Opentium3 #1 Установила фри паскаль,после чего ниодна программа не работает. Options - Compiler - Additional compiler args : -Oppentium3. И заново компилировала, пишет compilation aborted. Так же в Настройках компилятора слово -Oppentium3 меняла на error illegal Op3, FPC\2.2.2\bin\i386-win32 в файле "fp.cfg" так же меняла на Оp3, ничего не помогает Similar Эксперт 41792 / 34177 / 6122 Регистрация: 12.04.2006 Сообщений: 57,940 14.01.2012, 18:02 Ошибка ERROR: Illegal parameter: -Opentium3 Посмотрите здесь: Error: Illegal qualifier Free Pascal Ошибка ERROR: Illegal parameter: -Opentium3 Free Pascal Illegal expression Free Pascal Free Pascal Illegal Expression на процедуре strillegal error illegal parameter character " 'c' '' ($E1) Free Pascal После регистрации реклама в сообщениях будет скрыта и будут доступны все возможности форума. @volvo Супер-модератор 21330 / 13901 / 3806 Регистрация: 22.10.2011 Сообщений: 24,563 Записей в блоге: 2 14.01.2012, 22:10 Ошибка ERROR: Illegal parameter: -Opentium3 #2 Во-первых, почему такой старый, 2.2.2? Есть 2.6.0 уже... Дальше: -Op3 устанавливать бесполезно, это название у ключа было ДО версии 2.2, потом оно поменялось как раз на -OpPENTIUM3. Для начала просто зайди в Options -> Compiler -> Processor, убери из строки Additional compiler args этот злосчастный ключ, и выбери какой-нибудь из доступных в списке процессоров для оптимизации. Перезагружаешь IDE и пробуешь откомпилировать программу. Если и после этого не получается (с тем же сообщением), то переходишь ко второму абзацу Теперь о файле CFG - а ты уверена, что именно тот CFG, который в FPC\2.2.2\bin\i386-win32 используется? Зайди в Options -> Compiler -> Verbose, и поставь галочку в Hints. Потом опять перекомпилируй программу, и тогда компилятор скажет (в окне Compiler Messages), какой CFG он использует, тот, что в уста