Hi,

I'm on a new/fresh Ubuntu 9.10 x86 installation. I want to install
fpc/lazarus from sources and I'm following these instructions:
http://wiki.freepascal.org/Installing_Lazarus

I downloaded today's snapshots of FPC Sources (
ftp://ftp.freepascal.org/pub/fpc/snapshot/trunk/source/fpc.zip ),
Lazarus Sources (
http://snapshots.lazarus.shikami.org/files/lazarus-0.9.29-23043-20091209-src.zip
) and precompiled FPC (
http://snapshots.lazarus.shikami.org/files/fpc-2.2.4-20091209.i386.rpm
).

I put on "/home/kjow/lazarus/" lazarus sources and on
"/home/kjow/lazarus/fpc/2.5.1" FPC sources.
In "/home/kjow/fpc_tools/" I have:
 - binutils-2.20 sources
 - fpc-2.2.4-20091209.i386.rpm

Following this guide:
http://wiki.freepascal.org/Installing_Lazarus#Installing_Free_Pascal_under_Linux.2FBSD_manually

In terminal I did:

1) sudo alien -i -c /home/kjow/fpc_tools/fpc-2.2.4-20091209.i386.rpm
2) ppc386 -i (2.2.4 installed ok)
3) cd /home/kjow/lazarus/fpc/2.5.1
4) make all OPT='-gl -O3p3' PP=/usr/bin/ppc386

and then:

/usr/local/bin/ld: warning: ./link.res contains output sections; did
you forget -T?
/usr/local/bin/ld: cannot find -lncurses
fp.pas(575,1) Error: Error while linking
fp.pas(575,1) Fatal: There were 1 errors compiling module, stopping
Fatal: Compilation aborted
make[4]: *** [fp] Error 1
make[4]: Leaving directory `/home/kjow/lazarus/fpc/2.5.1/ide'
make[3]: *** [buildfp] Error 2
make[3]: Leaving directory `/home/kjow/lazarus/fpc/2.5.1/ide'
make[2]: *** [gdb] Error 2
make[2]: Leaving directory `/home/kjow/lazarus/fpc/2.5.1/ide'
make[1]: *** [ide_all] Error 2
make[1]: Leaving directory `/home/kjow/lazarus/fpc/2.5.1'
make: *** [build-stamp.i386-linux] Error 2

with:

k...@kjw-linux-vm:~/lazarus/fpc/2.5.1$ which ld
/usr/local/bin/ld
k...@kjw-linux-vm:~/lazarus/fpc/2.5.1$ ld -v
GNU ld (GNU Binutils) 2.20

I read that there is a bug in 2.19 binutils (
http://www.freepascal.org/faq.var#unix-ld219 ), but it should be
already fixed (and I'm using 2.20). Originally it used "binutils for
Ubuntu" that came with new installation of ubuntu (with the same
results), but i replaced with "generic" GNU/binutils-2.20

How can I install FPC from daily snapshot sources?


Thank you!

--
_______________________________________________
Lazarus mailing list
[email protected]
http://lists.lazarus.freepascal.org/mailman/listinfo/lazarus

Reply via email to