Sign in Join

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

Mailing lists / lazarus / 2010-05

contnrs.pp(11, 35) Fatal: Can't find unit contnrs used by Masks

12 messages · 5 people · –

Reply by email Subscribe to this list Your subscription

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

Michael Schnell

Sorry for bothering you again.

I (after compiling and installing fpc) again get this message when I create a new project, but an existing project still does compile OK.

The FPC source directory in the environment option is set seemingly correct to the files checked out by svn.

Any help ?

Thanks (again)
-Michael

Reply by email

Mattias Gaertner
to Michael Schnell
Sorry for bothering you again. I (after compiling and installing fpc) again get this message when I create a new project, but an existing project still does compile OK.

Probably you have somewhere an old ppu.

The FPC source directory in the environment option is set seemingly correct to the files checked out by svn. Any help ?

Compile with -vut and right click on messages to save all and hidden messages to clipboard.

Mattias

Reply by email

Michael Schnell
to Mattias Gaertner
Mattias Gaertner wrote
Compile with -vut and right click on messages to save all and hidden messages to clipboard.

Unfortunately if I try this Lazarus crashes when I do "save all and hidden messages to clipboard". Is there any other way to show these messages ?

I recompiled FPC from the svn and installed it, Then I recompiled Lazarus from the svn. All this worked fine, but the problem that I can't compile a newly created empty "Application" remains.

Thanks,
-Michael

Reply by email

Bogusław Brandys
to Michael Schnell

Michael Schnell pisze:

Show quoted text 16 lines
On 05/27/2010 12:19 PM, Mattias Gaertner wrote: > Compile with -vut and right click on messages to save all and hidden > messages to clipboard. > Unfortunately if I try this Lazarus crashes when I do "save all and hidden messages to clipboard". Is there any other way to show these messages ? I recompiled FPC from the svn and installed it, Then I recompiled Lazarus from the svn. All this worked fine, but the problem that I can't compile a newly created empty "Application" remains. Thanks, -Michael --

You have broken path setting in fpc.cfg

Boguslaw

Reply by email

Vincent Snijders
to Michael Schnell
Michael Schnell wrote 5 lines
On 05/31/2010 03:30 PM, Bogus?aw Brandys wrote: > You have broken path setting in fpc.cfg I did guess this. But there might be several fpc.cfg files. where to search for same ?

That's an easy one. Compile with -va, then the compiler will output the used fpc.cfg. Check that one.

Vincent

Reply by email

Michael Schnell
to Vincent Snijders
Vincent Snijders wrote 10 lines
Michael Schnell schreef: > On 05/31/2010 03:30 PM, Bogus?aw Brandys wrote: >> You have broken path setting in fpc.cfg > > I did guess this. But there might be several fpc.cfg files. where to > search for same ? That's an easy one. Compile with -va, then the compiler will output the used fpc.cfg. Check that one.

I get these lines that seem to be relevant:

Configfile search: /home/mschnell/.fpc.cfg
Configfile search: /usr/lib/fpc/etc/fpc.cfg
Configfile search: /etc/fpc.cfg
Reading options from file /etc/fpc.cfg
Start of reading config file /etc/fpc.cfg

So I suppose
/etc/fpc.cfg is used.

How do you suggest that I can recreate the file to a working version ? Or do you suggest that this is not the correct file to be used or that some additional (Lazarus-generated) file should be used ?

Thanks again,
-Michael

Reply by email

Marc Weustink
to Michael Schnell
Michael Schnell wrote 24 lines
On 05/31/2010 10:34 PM, Vincent Snijders wrote: > Michael Schnell schreef: >> On 05/31/2010 03:30 PM, Bogus?aw Brandys wrote: >>> You have broken path setting in fpc.cfg >> I did guess this. But there might be several fpc.cfg files. where to >> search for same ? > That's an easy one. Compile with -va, then the compiler will output > the used fpc.cfg. Check that one. > I get these lines that seem to be relevant: Configfile search: /home/mschnell/.fpc.cfg Configfile search: /usr/lib/fpc/etc/fpc.cfg Configfile search: /etc/fpc.cfg Reading options from file /etc/fpc.cfg Start of reading config file /etc/fpc.cfg So I suppose /etc/fpc.cfg is used. How do you suggest that I can recreate the file to a working version ? Or do you suggest that this is not the correct file to be used or that some additional (Lazarus-generated) file should be used ?

Post the complete output of -va somewhere. That the compiler is using fpc.cfg is to little info.

Marc

Reply by email

Mattias Gaertner
to Michael Schnell: I get these lines that seem to be relevant: Configfile search: /home/mschnell/.fpc.cfg…
Show quoted text 22 lines
On 05/31/2010 10:34 PM, Vincent Snijders wrote: > Michael Schnell schreef: >> On 05/31/2010 03:30 PM, Bogus?aw Brandys wrote: >>> You have broken path setting in fpc.cfg >> >> I did guess this. But there might be several fpc.cfg files. where to >> search for same ? > > That's an easy one. Compile with -va, then the compiler will output > the used fpc.cfg. Check that one. > I get these lines that seem to be relevant: Configfile search: /home/mschnell/.fpc.cfg Configfile search: /usr/lib/fpc/etc/fpc.cfg Configfile search: /etc/fpc.cfg Reading options from file /etc/fpc.cfg Start of reading config file /etc/fpc.cfg So I suppose /etc/fpc.cfg is used.

Good, that's the default location.

How do you suggest that I can recreate the file to a working version ? Or do you suggest that this is not the correct file to be used or that some additional (Lazarus-generated) file should be used ?

Lazarus does not generate fpc.cfg.

Mattias

Reply by email

Marc Weustink
to Michael Schnell
Michael Schnell wrote 9 lines
On 06/10/2010 10:10 AM, Marc Weustink wrote: > > Post the complete output of -va somewhere. That the compiler is using > fpc.cfg is to little info. > > Marc Thanks for the offer ! It's huge, so I'll send it to you in a private post.

From the file you sent me:

Searching file
/usr/lib/fpc/2.5.1/units/i386-linux/fcl-base/contnrs.ppu... found PPU Loading /usr/lib/fpc/2.5.1/units/i386-linux/fcl-base/contnrs.ppu PPU Name: /usr/lib/fpc/2.5.1/units/i386-linux/fcl-base/contnrs.ppu PPU Time: 2010/05/28 13:48:43
PPU Flags: 161984
PPU Crc: A7B9EC9E
PPU Crc: 2AF450CD (intfc)
PPU Crc: 22F3949F (indc)

So this is not a contnrs issue. Yuor paths are ok, the units can be found. However.... looking at the end of that file, dont know what is happening here, but it liiks liek linking failed:

Searching file /usr/bin/ld... found
Using util /usr/bin/ld
/home/mschnell/Lazarus_Projekte/x/lib/i386-linux/x.o: In function `main': /home/mschnell/Lazarus_Projekte/x/x.lpr:15: multiple definition of `PASCALMAIN'
/home/mschnell/Lazarus_Projekte/x/lib/i386-linux/xtest.o:/home/mschnell/Lazarus_Projekte/x/xtest.lpr:15: first defined here
/home/mschnell/Lazarus_Projekte/x/lib/i386-linux/x.o: In function `main': /home/mschnell/Lazarus_Projekte/x/x.lpr:15: multiple definition of `main' /home/mschnell/Lazarus_Projekte/x/lib/i386-linux/xtest.o:/home/mschnell/Lazarus_Projekte/x/xtest.lpr:15: first defined here
/home/mschnell/Lazarus_Projekte/x/lib/i386-linux/x.o: In function `main': /home/mschnell/Lazarus_Projekte/x/x.lpr:15: multiple definition of `INITFINAL'
/home/mschnell/Lazarus_Projekte/x/lib/i386-linux/xtest.o:/home/mschnell/Lazarus_Projekte/x/xtest.lpr:15: first defined here
/home/mschnell/Lazarus_Projekte/x/lib/i386-linux/x.o: In function `main': /home/mschnell/Lazarus_Projekte/x/x.lpr:19: multiple definition of `FPC_THREADVARTABLES'
/home/mschnell/Lazarus_Projekte/x/lib/i386-linux/xtest.o:/home/mschnell/Lazarus_Projekte/x/xtest.lpr:19: first defined here
/home/mschnell/Lazarus_Projekte/x/lib/i386-linux/x.o: In function `main': /home/mschnell/Lazarus_Projekte/x/x.lpr:19: multiple definition of `FPC_RESOURCESTRINGTABLES'
/home/mschnell/Lazarus_Projekte/x/lib/i386-linux/xtest.o:/home/mschnell/Lazarus_Projekte/x/xtest.lpr:19: first defined here
/home/mschnell/Lazarus_Projekte/x/lib/i386-linux/x.o: In function `main': /home/mschnell/Lazarus_Projekte/x/x.lpr:19: multiple definition of `FPC_WIDEINITTABLES'
/home/mschnell/Lazarus_Projekte/x/lib/i386-linux/xtest.o:/home/mschnell/Lazarus_Projekte/x/xtest.lpr:19: first defined here
/home/mschnell/Lazarus_Projekte/x/lib/i386-linux/x.o: In function `main': /home/mschnell/Lazarus_Projekte/x/x.lpr:19: multiple definition of `__stklen'
/home/mschnell/Lazarus_Projekte/x/lib/i386-linux/xtest.o:/home/mschnell/Lazarus_Projekte/x/xtest.lpr:19: first defined here
/home/mschnell/Lazarus_Projekte/x/lib/i386-linux/x.o: In function `main': /home/mschnell/Lazarus_Projekte/x/x.lpr:19: multiple definition of `__heapsize'
/home/mschnell/Lazarus_Projekte/x/lib/i386-linux/xtest.o:/home/mschnell/Lazarus_Projekte/x/xtest.lpr:19: first defined here
/home/mschnell/Lazarus_Projekte/x/lib/i386-linux/x.o: In function `main': /home/mschnell/Lazarus_Projekte/x/x.lpr:19: multiple definition of `__fpc_valgrind'
/home/mschnell/Lazarus_Projekte/x/lib/i386-linux/xtest.o:/home/mschnell/Lazarus_Projekte/x/xtest.lpr:19: first defined here
/home/mschnell/Lazarus_Projekte/x/lib/i386-linux/x.o: In function `main': /home/mschnell/Lazarus_Projekte/x/x.lpr:19: multiple definition of `FPC_RESLOCATION'
/home/mschnell/Lazarus_Projekte/x/lib/i386-linux/xtest.o:/home/mschnell/Lazarus_Projekte/x/xtest.lpr:19: first defined here
/home/mschnell/Lazarus_Projekte/x/lib/i386-linux/xtest.o: In function `main':
/home/mschnell/Lazarus_Projekte/x/xtest.lpr:19: undefined reference to `THREADVARLIST_X'
/usr/lib/fpc/2.5.1/units/i386-linux/x11/xlib.o:(.data+0xe42): undefined reference to `RTTI_X_PKEYCODE'
/home/mschnell/Lazarus_Projekte/x/lib/i386-linux/x.o: In function `main': /home/mschnell/Lazarus_Projekte/x/x.lpr:17: undefined reference to `U_X1_FORM1'
/home/mschnell/Lazarus_Projekte/x/x.lpr:17: undefined reference to `VMT_X1_TFORM1'
/home/mschnell/Lazarus_Projekte/x/x.lpr:19: undefined reference to `THREADVARLIST_X'
/home/mschnell/Lazarus_Projekte/x/x.lpr:19: undefined reference to `THREADVARLIST_XMLCFG'
/home/mschnell/Lazarus_Projekte/x/x.lpr:19: undefined reference to `THREADVARLIST_X1'
/home/mschnell/Lazarus_Projekte/x/x.lpr:19: undefined reference to `RESSTR_XMLCFG_START'
/home/mschnell/Lazarus_Projekte/x/x.lpr:19: undefined reference to `RESSTR_XMLCFG_END'
/home/mschnell/Lazarus_Projekte/x/x.lpr:17: undefined reference to `DEBUGINFO_X1'
/home/mschnell/Lazarus_Projekte/x/x.lpr:17: undefined reference to `DEBUGSTART_X1'
/home/mschnell/Lazarus_Projekte/x/x.lpr:17: undefined reference to `DEBUGEND_X1'
Error while linking
There were 1 errors compiling module, stopping
Compilation aborted

Show quoted text 8 lines
-Michael -- _______________________________________________ Lazarus mailing list http://lists.lazarus.freepascal.org/mailman/listinfo/lazarus

Reply by email

Michael Schnell
to Marc Weustink
Marc Weustink wrote 12 lines
Michael Schnell wrote: > On 06/10/2010 10:10 AM, Marc Weustink wrote: >> >> Post the complete output of -va somewhere. That the compiler is using >> fpc.cfg is to little info. >> >> Marc > So this is not a contnrs issue. Yuor paths are ok, the units can be found. However.... looking at the end of that file, dont know what is happening here, but it liiks liek linking failed:

The contnrs error message seems only to be produced if I don't save the project before compiling.

Show quoted text 25 lines
/home/mschnell/Lazarus_Projekte/x/x.lpr:17: undefined reference to `U_X1_FORM1' /home/mschnell/Lazarus_Projekte/x/x.lpr:17: undefined reference to `VMT_X1_TFORM1' /home/mschnell/Lazarus_Projekte/x/x.lpr:19: undefined reference to `THREADVARLIST_X' /home/mschnell/Lazarus_Projekte/x/x.lpr:19: undefined reference to `THREADVARLIST_XMLCFG' /home/mschnell/Lazarus_Projekte/x/x.lpr:19: undefined reference to `THREADVARLIST_X1' /home/mschnell/Lazarus_Projekte/x/x.lpr:19: undefined reference to `RESSTR_XMLCFG_START' /home/mschnell/Lazarus_Projekte/x/x.lpr:19: undefined reference to `RESSTR_XMLCFG_END' /home/mschnell/Lazarus_Projekte/x/x.lpr:17: undefined reference to `DEBUGINFO_X1' /home/mschnell/Lazarus_Projekte/x/x.lpr:17: undefined reference to `DEBUGSTART_X1' /home/mschnell/Lazarus_Projekte/x/x.lpr:17: undefined reference to `DEBUGEND_X1' Error while linking There were 1 errors compiling module, stopping Compilation aborted

Funnily, Lazarus can recompile itself and it can compile projects that have been created before this issue came up.

-Michael

Reply by email