GNU Pascal Homepage - gpc - gpc-announce - gpc-de - gpc-doc
Diese Seite auf deutsch

Mail #12727

Back to main page of archive

Previous mail   Next mail   Unformatted/full headers
Overview  10 days   Subject   Date   Thread   Author  

From: Frank Heckenbach
Subject: [GPC]: daily digest (#763)
Date: 19 Sep 2005, 17:55:32

Tom Schneider wrote:

> Frank:
> 
> > > My sysadmin set up a recent alpha but it crashed on a simple 'hello
> > > world' program.  Is 20041218 the most recent stable version?
> > 
> > Yes, it is. However, an alpha should not be as unstable as in not
> > being able to compile a simple program. (It's just been tested
> > somewhat less thorough than a beta.) If you provide more
> > information, readers of the list can probably help you set it up
> > working. (Error messages, system and version, backend version, etc.,
> > the usual stuff ...)
> 
> My sysadmin did the installation:
> 
> | > I just installed the latest _alpha_ version of gpc under /usr/local/gpc 
> | > (the old version is under /usr/local/gpc.old).  I have also moved 
> | > /usr/local/bin/gpc to /usr/local/bin/gpc-2.1 and /usr/local/bin/gpc-run 
> | > to /usr/locla/bin/gpc-run-2.1 to make sure they don't get run 
> | > inadvertently.
> | > 
> | > Make sure that your compile scripts use /usr/local/gpc/bin/gpc instead 
> | > of /usr/local/bin/gpc .  Also, keep in mind that the gpc developers 
> | > still consider this to be alpha code, so you may encounter as many new 
> | > bugs as (hopefully fixed) old ones.
> | 
> | Thanks.
> | 
> | Unfortunately it is too alpha - it crashes even for this:
> | 
> | strawberry 40% cat t.p
> | program t (output);
> | begin
> | writeln(output,'hello world');
> | end.
> | strawberry 41% /usr/local/gpc/bin/gpc t.p
> | strawberry 42% a.out
> | Segmentation Fault
> | 
> | :-(

Aha, so it isn't GPC that crashes, but the compiled executable.
That's already more information than in your last mail.

One possibility could be a confusion of runtime library versions or
compiler parts. I see your admin installed GPC in a nonstandard
directory. Did he do this correctly, i.e. either set the --prefix on
configure, or else set GPC_EXEC_PREFIX?

If that's ok, can you run the program in a debugger to find out
where it crashes?

> | strawberry 44% /usr/local/gpc/bin/gpc -v
> | Reading specs from /export/data/local/gpc/bin/../lib/gcc-lib/sparc-sun-solaris2.8/3.3.3/specs
> | Configured with: /export/home/bryantd/gpc-build/../gcc-3.3.3/configure --enable-languages=pascal --prefix=/usr/local/gpc
> | Thread model: posix
> | gpc version 20050331, based on gcc-3.3.3
> | 
> | When I try to use /usr/local/bin/gpc-2.1 in my gpcc script
> | (/home/strawberry/toms/work/emptytest/gpcc2.1), I get:
> | 
> | gpc1: Invalid option `-Wno-identifier-case-local'
> | 
> | so I can't compile until this is fixed ...

Uhm, fixed? gpc-2.1 is 3 years old, and we don't actually plan to
backport new features to it. If it's just this one (you don't
require other newer features), you can take out this option for 2.1
(which simply didn't exist back then).

> My gpcc script is at
> ftp://ftp.ncifcrf.gov/pub/delila/gpcc
> in gpcc2.1 I just modified the location of the compiler.

It's a bit longish, so I can't read it all now.

BTW, one thing:

:   # -Widentifier-case-local
:   #     Warn about an identifier written with varying case within one
:   #     program/module/unit.
:   # THIS IS BADLY IMPLEMENTED BECAUSE IT DOES NOT FOLLOW SCOPE RULES!
:   # That is, a local variable in one proceedure affects the case
:   # of local variables in later procedures, violating scope rules.
:   # I was unable to convince the GPC writers to fix it.
:   # (They even got all huffy and nasty about this.)
:   # So I will NOT use it here as it gives bogus messages.

You know, this is free software. If you want something implemented,
you basically have 4 choices:

1. Do it yourself.

2. Ask politely and/or convince someone to do it for you.

3. Pay someone to do it for you.

4. Shout and offend people if they don't do for free what you want
   them to do.

Apparently you chose 4. I will keep this in mind in our further
correspondence.

BTW, your quick jumping to conclusions that "[GPC] is too alpha"
when in fact it may just be an installation problem on your (or your
admin's) part, or claiming that an older version not supporting
newer options is something that needs to be "fixed" [by other
people, I suppose you mean], are also some (weaker) forms of 4.

If you're interested in 3., mail me privately. (As a paying
constomer, you'd have some legitimation to get angry if things are
not done as you like.) For 2., this was probably my last time trying
to help you for free.

Frank

Previous mail   Next mail   Unformatted/full headers
Overview  10 days   Subject   Date   Thread   Author  


In reply to

Author Subject Date
Tom Schneider [GPC]: daily digest (#763) 18 Sep 2005, 14:38:36

Back to main page of archive


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).