Sign in Join

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

Mailing lists / lazarus / 2009-12

Compiler-Error

7 messages · 3 people · –

Reply by email Subscribe to this list Your subscription

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

Thomas Moritz

Hello,
at last time (since svn-rev.22800), i have this error messages:

Free Pascal Compiler version 2.2.4 [2009/10/14] for x86_64 Copyright (c) 1993-2008 by Florian Klaempfl
Target OS: Linux for x86-64
Compiling lazarus.pp
staticpackages.inc(2,10) Error: Duplicate identifier "CODETOOLS" staticpackages.inc(2,10) Error: Duplicate identifier "CodeTools" Compiling splash.pp
Compiling aboutfrm.pas
Compiling lazconf.pp
lazconf.pp(148,5) Fatal: There were 2 errors compiling module, stopping
TExternalToolList.Run Exception:
/home/mori/Lazarus_gtk2/lazarus/ide/lazconf.pp(148,5) Fatal: There were 2 errors compiling module, stopping
ERROR: tool reported error

Regards Th. Moritz

Reply by email

Mattias Gaertner
to Thomas Moritz
Show quoted text 10 lines
Hello, at last time (since svn-rev.22800), i have this error messages: Free Pascal Compiler version 2.2.4 [2009/10/14] for x86_64 Copyright (c) 1993-2008 by Florian Klaempfl Target OS: Linux for x86-64 Compiling lazarus.pp staticpackages.inc(2,10) Error: Duplicate identifier "CODETOOLS" staticpackages.inc(2,10) Error: Duplicate identifier "CodeTools"

Does your staticpackages.inc has two times codetools?

Mattias

Reply by email

Thomas Moritz
to Mattias Gaertner
Mattias Gaertner wrote 16 lines
On Sun, 6 Dec 2009 11:14:02 +0100 Thomas Moritz wrote: > Hello, > at last time (since svn-rev.22800), i have this error messages: > > > Free Pascal Compiler version 2.2.4 [2009/10/14] for x86_64 > Copyright (c) 1993-2008 by Florian Klaempfl > Target OS: Linux for x86-64 > Compiling lazarus.pp > staticpackages.inc(2,10) Error: Duplicate identifier > "CODETOOLS" staticpackages.inc(2,10) Error: Duplicate > identifier "CodeTools" Does your staticpackages.inc has two times codetools?

No, the double entry comes with svn-update (imho).

$ find
in the running system find only "codetools" (lowerstring)

"CODETOOLS" (upperstring) comes with svn-update???

$ vi staticpackages.inc

printer4lazarus,
sqlitelaz,
sqlite3laz,
printers4lazide,

MfG Th. Moritz

Reply by email

Martin
to Thomas Moritz
Thomas Moritz wrote 20 lines
Am Sonntag 06 Dezember 2009 11:30:30 schrieb Mattias Gaertner: > On Sun, 6 Dec 2009 11:14:02 +0100 > > Thomas Moritz wrote: > >> Hello, >> at last time (since svn-rev.22800), i have this error messages: >> >> >> Free Pascal Compiler version 2.2.4 [2009/10/14] for x86_64 >> Copyright (c) 1993-2008 by Florian Klaempfl >> Target OS: Linux for x86-64 >> Compiling lazarus.pp >> staticpackages.inc(2,10) Error: Duplicate identifier >> "CODETOOLS" staticpackages.inc(2,10) Error: Duplicate >> identifier "CodeTools" >> > Does your staticpackages.inc has two times codetools? >

Have you tried to rebuild really really clean? In the past I had similar issues (not with codetools though). The reason is that even "clean all" does not really clean all.
So you should find and delete every .ppu and every .o file and then try to rebuild

Another issue could be if you have more than one installation of Lazarus and you don't use --primary-config-path

Martin

Reply by email

Thomas Moritz
to Martin
Martin wrote 9 lines
>>> Free Pascal Compiler version 2.2.4 [2009/10/14] for x86_64 >>> Copyright (c) 1993-2008 by Florian Klaempfl >>> Target OS: Linux for x86-64 >>> Compiling lazarus.pp >>> staticpackages.inc(2,10) Error: Duplicate identifier >>> "CODETOOLS" staticpackages.inc(2,10) Error: Duplicate >>> identifier "CodeTools" >> >> Does your staticpackages.inc has two times codetools?

No!

Show quoted text 5 lines
Have you tried to rebuild really really clean? In the past I had similar issues (not with codetools though). The reason is that even "clean all" does not really clean all. So you should find and delete every .ppu and every .o file and then try to rebuild

All subdirs are clean, after
make clean
find -name *.ppu -delete
find -name *.o -delete

after this:
make # it compile to end!

but:
./lazbuild --build-ide= -B -r --pcp="$mypcp" --ws="$myws"

produce the error with codetools

Another issue could be if you have more than one installation of Lazarus and you don't use --primary-config-path

The pcp of QT45 an GTK2 are strictly several!

MfG Th. Moritz

Reply by email

Mattias Gaertner
to Thomas Moritz
Show quoted text 13 lines
Am Sonntag 06 Dezember 2009 14:12:00 schrieb Martin: > >>> Free Pascal Compiler version 2.2.4 [2009/10/14] for x86_64 > >>> Copyright (c) 1993-2008 by Florian Klaempfl > >>> Target OS: Linux for x86-64 > >>> Compiling lazarus.pp > >>> staticpackages.inc(2,10) Error: Duplicate identifier > >>> "CODETOOLS" staticpackages.inc(2,10) Error: Duplicate > >>> identifier "CodeTools" > >> > >> Does your staticpackages.inc has two times codetools? No!

Strange. See below.

Show quoted text 19 lines
> Have you tried to rebuild really really clean? In the past I had > similar issues (not with codetools though). The reason is that > even "clean all" does not really clean all. > So you should find and delete every .ppu and every .o file and > then try to rebuild All subdirs are clean, after make clean find -name *.ppu -delete find -name *.o -delete after this: make # it compile to end! but: ./lazbuild --build-ide= -B -r --pcp="$mypcp" --ws="$myws" produce the error with codetools

Yes, I can reproduce this error. Reason is that staticpackages.inc has two times codetools.

I fixed that.

Are you sure that your staticpackages.inc did not contain codetools two times?

Mattias

Reply by email

Thomas Moritz
to Mattias Gaertner

Am Montag 07 Dezember 2009 00:27:44 schrieb Mattias Gaertner:

Hello Mattias,
sorry, i was absend in field service.

Show quoted text 8 lines
> ./lazbuild --build-ide= -B -r --pcp="$mypcp" --ws="$myws" > > produce the error with codetools Yes, I can reproduce this error. Reason is that staticpackages.inc has two times codetools. I fixed that.

Super! Thank You!

Are you sure that your staticpackages.inc did not contain codetools two times?

For every times and for tests, i have delete the entry codetools. I had _no_ entry codetools in staticpackages.inc!
You can test again without entry?
Since yesterday, my system is normal to :-)

MfG Th. Moritz

Reply by email