[fpc-devel] Include files with double names
Joost van der Sluis
joost at cnoc.nl
Tue Sep 6 21:48:53 CEST 2011
Hi all,
I've found a new problem with include-names with the same name. Please
try the following in a freshly compiled svn-checkout. (This is on
linux/x86_64, but the idea is clear)
cd packages/libxml
ppcx64 -FUunits/x86_64-linux -Fu../../rtl/units/x86_64-linux -Fisrc src/xmlxsdparser.pas
The result:
Free Pascal Compiler version 2.7.1 [2011/09/06] for x86_64
Copyright (c) 1993-2011 by Florian Klaempfl and others
Target OS: Linux for x86-64
Compiling src/xmlxsdparser.pas
PPU Loading /home/CNOC/joost/svn/fpc-trunk/rtl/units/x86_64-linux/classes.ppu
PPU Source: classes.pp not found
PPU Source: classesh.inc not found
PPU Source: classes.inc not found
PPU Source: util.inc not found
PPU Source: bits.inc not found
PPU Source: streams.inc not found
File ./src/parser.inc is newer than the one used for creating PPU file /home/CNOC/joost/svn/fpc-trunk/rtl/units/x86_64-linux/classes.ppu
PPU Source: ./src/parser.inc time 2011/05/19 12:54:47 *
PPU Source: collect.inc not found
PPU Source: lists.inc not found
PPU Source: stringl.inc not found
PPU Source: tthread.inc not found
PPU Source: persist.inc not found
PPU Source: sllist.inc not found
PPU Source: resref.inc not found
PPU Source: compon.inc not found
PPU Source: action.inc not found
PPU Source: dm.inc not found
PPU Source: cregist.inc not found
PPU Source: intf.inc not found
PPU Source: filer.inc not found
PPU Source: reader.inc not found
PPU Source: writer.inc not found
PPU Source: twriter.inc not found
classes.pp(21,11) Fatal: Can't find unit Classes used by xmlxsdparser
Fatal: Compilation aborted
The problem is that the parser.inc from the rtl/classes unit is compared
with the parser.inc in src. When the '-Fisrc' part from the command line
is removed, the compilation is successful. (This is what the Makefiles
do, when you compile using fpmake, the problem above may occur)
Can someone reproduce this? And what to do now? I've even did a touch on
the rtl/objpas/parser.inc, but that doesn't help.
--
My Lazarus blog: http://www.lazarussupport.com/lazarus/weblog
More information about the fpc-devel
mailing list