Sign in Join

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

Mailing lists / fpc-pascal / 2004-07

running on amd64

2 messages · 2 people ·

Reply by email Subscribe to this list Your subscription

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

Unknown author

As a non-expert, is there a way to use the 32bit fpc to compile programs on a dual amd opteron, SuSe 9.1 Prof?

Fpc will check the syntax OK, but produces assembler errors, presumably because the assembler is 64bit.

I am able to run programs that I compiled on my previous 32bit machine without problem, but I don't seem to be able to compile anything new, even using the linux32 emulation program.

As I'm not an expert I'd appreciate some guidance.

- Richard.

Reply by email

Peter Vreman
to Unknown author
Show quoted text 11 lines
As a non-expert, is there a way to use the 32bit fpc to compile programs on a dual amd opteron, SuSe 9.1 Prof? Fpc will check the syntax OK, but produces assembler errors, presumably because the assembler is 64bit. I am able to run programs that I compiled on my previous 32bit machine without problem, but I don't seem to be able to compile anything new, even using the linux32 emulation program. As I'm not an expert I'd appreciate some guidance.

I don't know how Suse works. I can only explain the basic theory. You need to supply the prefix of the as and ld binaries that will assemble and link 32bit code. You can use the 32bit gcc -V to find the names of the as and ld binaries. You can also build cross-binutils for it.

I've got it working correctly under a Debian chroot running sid-pure64 with self-build cross-binutils.

Reply by email