Previous mail
Next mail
Unformatted/full headers
Overview 10 days
Subject
Date
Thread
Author
From: Khimenko Victor
Subject: Compiling GPC for Linux (was without Subject)-:
Date: 19 Jan 2000, 20:48:11
19-Jan-00 12:14 you wrote:
> Dear Peter,
> thank you for help.
> The linux binary version of gpc was downloaded from:
> ftp://agnes.dida.physik.uni-essen.de/gnu-pascal/beta/binary/
> upon compiling a.pas the following output is given:
> program aaa;
> begin
> writeln ('This prints "aaa", does it ?');
> end.
>>gpc -v a.pas
> Reading specs from /usr/lib/gcc-lib/i586-pc-linux-gnulibc1/2.8.1/specs
> gpc version 19990118, based on gcc-2.8.1
> /usr/lib/gcc-lib/i586-pc-linux-gnulibc1/2.8.1/gpc-cpp -lang-pascal -v
> -nochares
> cape -D__GNU_PASCAL__ -undef -D__GNUC__=2 -D__GNUC_MINOR__=8 -D__GPC__=2
> -D__GPC
> _MINOR__=0 -D__GPC_RELEASE__=19990118 -D__ELF__ -Dunix -Dlinux -D__ELF__
> -D__uni
> x__ -D__linux__ -D__unix -D__linux -Asystem(posix)
> -D__BITS_LITTLE_ENDIAN__=1 -D
> __BYTES_LITTLE_ENDIAN__=1 -D__WORDS_LITTLE_ENDIAN__=1 -Di386 -Di586
> -Asystem(uni
> x) -Acpu(i386) -Amachine(i386) -D__i386__ -D__i586__ -Asystem(unix)
> -Acpu(i386)
> -Amachine(i386) a2.pas /tmp/cca19468.i
> GNU CPP version 2.8.1 (i386 GNU/Linux with ELF)
> #include "..." search starts here:
> #include <...> search starts here:
> /usr/local/include
> /usr/i586-pc-linux-gnulibc1/include
> /usr/lib/gcc-lib/i586-pc-linux-gnulibc1/2.8.1/include
> /usr/include
> End of search list.
> /usr/lib/gcc-lib/i586-pc-linux-gnulibc1/2.8.1/gpc1 /tmp/cca19468.i
> -quiet -dum base a2.pas -version -famtmpfile=/tmp/cca19468.gpc -o
> /tmp/cca19468.s
> GNU Pascal version 2.8.1 (i586-pc-linux-gnulibc1) compiled by GNU C
^^^^^^^^
> version egcs
> -2.91.60 19981201 (egcs-1.1.1 release).
> /tmp/cca19468.i:1: numeric constant with no digits
> /tmp/cca19468.i:1: numeric constant with no digits
> /tmp/cca19468.i:1: invalid #line
> /tmp/cca19468.i:2: warning: missing program header
> /tmp/cca19468.i:2: parse error at null character
> How could one get the executable? thank you.
You need working compiler, of course :-) Looks like you downloaded version
for libc5 and using it on glibc-based system or something like this.
On Linux usually installation of binaries is MUCH harder then sources.
That is if all goes right installation of binaries is breeze but if something
goes wrong then something REALLY goes wrong: usually much faster to recompile
the whole thing from scratch then to track problem down to library
incompatibilities... It's possible! There are LOTS of tools for that! If you do
not have choice (binary-only program, for example) you'll need to do this.
But if can recompile thing then usually it's best choice.
Previous mail
Next mail
Unformatted/full headers
Overview 10 days
Subject
Date
Thread
Author
| Author | Subject | Date |
|---|---|---|
| Ivan Torshin | Compiling GPC for Linux (was without Subject)-: | 19 Jan 2000, 12:14:22 |
Note: This page contains information that does not originate from the owner of this web site, but from the authors of the mails archived. The owner of this web site is not responsible for the content of such information. Any use of that infomation requires the consent of the respective author.
Where WWW addresses (URLs) in the mails archived are marked as hyperlinks, this is only for the comfort of the reader. The content of the web pages linked to like this does not necessarily reflect the opinion of the owner of this web site or of the authors of the mails archived. The owner of this web site is not responsible for the content of such web pages. Those pages are explicitly not to be considered as part of the content of this page, but merely as references.
This page was created by Crystal 0.999 (Linux 2.4.27/i686).