We run into a similar problem
Compilers are not allowed on production servers where I work. To ensure identical configurations dev machines don't have them either.
However the libraries are often needed for operation.
If I understand him correctly Jonas what he is saying is the dev machines are really staging machines. True development occurs on developers workstations. Its the "Java Development" methodology.... Actual compilation occurs on the developers workstation.,, not on the dev servers.
Always amazes me we spend over 100 grand on machines that aren't used to develop.. just test...
No wonder IBM loves java }:O)
----- Original Message ---- From: Jonas Maebe jonas.maebe@elis.ugent.be To: GNU Pascal mailing list gpc@gnu.de Sent: Tue, August 24, 2010 11:00:52 AM Subject: Re: GPC Assembler errors - help needed
On 24 Aug 2010, at 17:47, Morton, John wrote:
However when I compile the simplest possible "hello world" on RHEL 5.4 (a fedora variant) I always get the following assembler errors:
Error: suffix or operands invalid for "push" Error: suffix or operands invalid for "pop"
Does anyone know what is causing these errors - and/or a fix for them?
This means that GPC is generating 32 bit code, but that it is being assembled as 32 bit code. Try passing the "-m32" parameter to gp/gpc, and if that does not work, try -Wa,-m32. Note that you may have to install 32 bit versions of all dev packages (including libc-dev) that you need, unless those are installed by default.
Background:
The development system does NOT have gcc installed (since gcc cannot be installed on the machines that will be running our application).
I don't understand this condition. They presumably won't have GPC installed either, but only your application. Why does it matter what is installed on the machine that compiles the application?
On the dev system I installed the 2002 gpc BINARY (the "gpc-2.1-with-gcc.i686-pc-linux-gnu.tar.gz" file) from the gnu-pascal.de/binary/ web page. I also tried the 20070904 Linux binary downloaded from brandeis.edu and got exactly the same results.
Both downloads are i686 versions. Will these versions work on x68_64 Linux variants?
Yes, x86-64 Linux systems in general (and RHEL in particular) can perfectly run 32 bit applications.
Jonas