Sign in Join

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

Mailing lists / fpc-pascal / 2002-06

FPC Linux, please help

2 messages · 2 people ·

Reply by email Subscribe to this list Your subscription

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

Jan Prazak

Hello!
I have some problems when compiling "testvga.pp" (an example pas-file, included in the FreePascal-package).
BTW: compiling of "Hello world" works.
I'm running FPC 1.0.6 under RedHat Linux 7.3,
but I'm a Linux-newbie, so maybe I'm doing something wrong.

Here is an extract (the end) from the output after "ppc386 testvga.pp"

...
PPU Loading /usr/lib/fpc/1.0.6/units/linux/svgalib/svgalib.ppu Assembling testvga
Using assembler: /usr/bin/as
Linking testvga
Using util /usr/bin/ld
/usr/bin/ld:link.res: file format not recognized; treating as linker script /usr/bin/ld:link.res:48: parse error
testvga.pp(24,7) Error: Error while linking
Closing script ppas.sh

I don't know why the linker doesn't recognize the file. I have also tried to use "nasm" instead of "gas", but it's the same problem. Here is the beginning of "link.res":

SEARCH_DIR(/lib/)
SEARCH_DIR(/usr/lib/)
SEARCH_DIR(/usr/X11R6/lib/)
SEARCH_DIR(./)
SEARCH_DIR(/usr/lib/fpc/1.0.6/units/linux/rtl/)
SEARCH_DIR(/usr/lib/fpc/1.0.6/units/linux/zlib/)
SEARCH_DIR(/usr/lib/fpc/1.0.6/units/linux/x11/)
SEARCH_DIR(/usr/lib/fpc/1.0.6/units/linux/utmp/)
SEARCH_DIR(/usr/lib/fpc/1.0.6/units/linux/unzip/)
SEARCH_DIR(/usr/lib/fpc/1.0.6/units/linux/uncgi/)

Please reply to my eMail-address! I'm not in a newsgroup.

Thanks,
Jan

P.S. I would like to use the (beta-) IDE for Linux, but there is a problem with the character table (ASCII table). I have experimented with "consolechars" and "loadkeys", but I just can't get it working, I need the default ASCII-table from DOS. Does somebody know a solution to fix this?

Reply by email

Jonas Maebe
to Jan Prazak
Jan Prazak wrote 9 lines
Using util /usr/bin/ld /usr/bin/ld:link.res: file format not recognized; treating as linker script /usr/bin/ld:link.res:48: parse error testvga.pp(24,7) Error: Error while linking Closing script ppas.sh I don't know why the linker doesn't recognize the file. I have also tried to use "nasm" instead of "gas", but it's the same problem. Here is the beginning of "link.res":

And what is line 48? (since that is where the error occurs)

P.S. I would like to use the (beta-) IDE for Linux, but there is a problem with the character table (ASCII table). I have experimented with "consolechars" and "loadkeys", but I just can't get it working, I need the default ASCII-table from DOS. Does somebody know a solution to fix this?

This is explained in the manual.

Jonas

Reply by email