[fpc-pascal] Compiling sources obtained via SVN

Sven Barth pascaldragon at googlemail.com
Wed Oct 19 10:46:26 CEST 2011


Am 18.10.2011 12:06, schrieb brian:
> The first problem I see is that there are actually two makefiles in the
> fpc directory, Makefile dated 31st Aug 2011 and Makefile.fpc dated 13th
> Aug 2011.

This is normal. The "Makefile.fpc" basically contain the important parts 
of the makefile (which units are used on which system etc.) and are used 
to generate the "Makefile" using the utility "fpcmake" which is found in 
"utils/fpcm".

> make -f Makefile build

No need to use "-f". "make" defaults to "Makefile", "makefile" and some 
others.

[snip]
> /usr/lib64/libgdb.a(dwarf2read.o): In function `dwarf2_read_section':
> (.text+0x224e): undefined reference to `inflate'
> /usr/lib64/libgdb.a(dwarf2read.o): In function `dwarf2_read_section':
> (.text+0x2262): undefined reference to `inflateReset'
> /usr/lib64/libgdb.a(dwarf2read.o): In function `dwarf2_read_section':
> (.text+0x2275): undefined reference to `inflateEnd'
> /usr/lib64/libbfd.a(compress.o): In function
> `bfd_uncompress_section_contents':
> /build/buildd/binutils-2.20.1/builddir-single/bfd/../../bfd/compress.c:96:
> undefined reference to `inflateInit_'
> /build/buildd/binutils-2.20.1/builddir-single/bfd/../../bfd/compress.c:103:
> undefined reference to `inflate'
> /build/buildd/binutils-2.20.1/builddir-single/bfd/../../bfd/compress.c:106:
> undefined reference to `inflateReset'
> /build/buildd/binutils-2.20.1/builddir-single/bfd/../../bfd/compress.c:108:
> undefined reference to `inflateEnd'
> fp.pas(552,1) Error: Error while linking
> fp.pas(552,1) Fatal: There were 1 errors compiling module, stopping
> Fatal: Compilation aborted
> make[4]: *** [fp] Error 1
> make[4]: Leaving directory `/data2/sources/subversion/fpc/ide'
> make[3]: *** [buildfp] Error 2
> make[3]: Leaving directory `/data2/sources/subversion/fpc/ide'
> make[2]: *** [gdb] Error 2
> make[2]: Leaving directory `/data2/sources/subversion/fpc/ide'
> make[1]: *** [ide_all] Error 2
> make[1]: Leaving directory `/data2/sources/subversion/fpc'
> make: *** [build-stamp.x86_64-linux] Error 2

This seems to be related to building the textmode IDE.
If you don't need the textmode IDE you can try the following workaround:
Open the "Makefile" in the base directory and search for "IDE=1". Remove 
the "1" so that it reads "IDE=". Save the file and try again. This 
should stop the building (and thus its linking) of the textmode IDE.

Perhaps a "NOIDE" option should be added to the base makefile...

Regards,
Sven



More information about the fpc-pascal mailing list