Picon

Re: grx and gpc problems

On 4 Apr 2003 at 16:55, Toby Ewing wrote:

> Hi, all
> 
> Trying to compile a program, I suddenly see:
> 
>  > Internal GPC problem: internal option '--amtmpfile' not given
> 
> I had compiled the program successfully a few minutes earlier.
> 
> I get this problem with every program that USES GRX that I attempt to
> compile. But When I attempt to compile a program that doesn't USE GRX, I
> see
> 
>  > cannot file -lgcc
> 
> Any guesses?  GPC was working fine for me a few weeks ago.
> I'm using 2.1 (20020510) based upon 2.95.3 (20010315), under win2000,
> installed only a few months ago.

Sounds like an installation problem. Did you install something else 
recently?

What are the outputs of these commands:
"gpc -print-search-dirs"

and

"gpc -print-file-name=libgcc.a"

(Continue reading)

Jean-Pierre Vial | 6 Apr 2003 22:44
Picon

Re: grx and gpc problems

Le Dimanche 6 Avril 2003 21:54, Prof A Olowofoyeku (The African Chief) a écrit 
:
> On 4 Apr 2003 at 16:55, Toby Ewing wrote:
> > Hi, all
> >
> > Trying to compile a program, I suddenly see:
> >  > Internal GPC problem: internal option '--amtmpfile' not given
> >
> > I had compiled the program successfully a few minutes earlier.
> >
> > I get this problem with every program that USES GRX that I attempt to
> > compile. But When I attempt to compile a program that doesn't USE GRX, I
> > see
> >
> >  > cannot file -lgcc
> >
> > Any guesses?  GPC was working fine for me a few weeks ago.
> > I'm using 2.1 (20020510) based upon 2.95.3 (20010315), under win2000,
> > installed only a few months ago.
>
> Sounds like an installation problem. Did you install something else
> recently?

Could be a hardware problem also, I met such  situations twice in the past, 
one with a failing memory chip (random failure) an once with a failing 
cooling fan (happened after some time of work, depending on ambiant 
temperature.

--

-- 
Jean-Pierre Vial
(Continue reading)

Adriaan van Os | 8 Apr 2003 18:01
Picon
Favicon

SizeOf sets (was: packed enumerated types?)

In the testprogram below, SizeOf( enum33) returns 4, which seems to me 
to be a bug.

Regards,

Adriaan van Os

----------

program test;

    type enum08 = ( a01, a02, a03, a04, a05, a06, a07, a08);
         enum16 = ( b01, b02, b03, b04, b05, b06, b07, b08,
                    b09, b10, b11, b12, b13, b14, b15, b16);
         enum17 = ( c01, c02, c03, c04, c05, c06, c07, c08,
                    c09, c10, c11, c12, c13, c14, c15, c16, c17);
         enum32 = ( d01, d02, d03, d04, d05, d06, d07, d08,
                    d09, d10, d11, d12, d13, d14, d15, d16,
                    d17, d18, d19, d20, d21, d22, d23, d24,
                    d25, d26, d27, d28, d29, d30, d31, d32);
         enum33 = ( e01, e02, e03, e04, e05, e06, e07, e08,
                    e09, e10, e11, e12, e13, e14, e15, e16,
                    e17, e18, e19, e20, e21, e22, e23, e24,
                    e25, e26, e27, e28, e29, e30, e31, e32, e33);

         set08  = set of enum08;
         set16  = set of enum16;
         set17  = set of enum17;
         set32  = set of enum32;
         set33  = set of enum33;
(Continue reading)

Frank Heckenbach | 8 Apr 2003 20:21
Picon
Favicon

Re: SizeOf sets (was: packed enumerated

Adriaan van Os wrote:

> In the testprogram below, SizeOf( enum33) returns 4, which seems to me 
> to be a bug.

Not to me. (You probably meant to write `set..' instead of `enum..'
in the `SizeOf'.)

> program test;
> 
>     type enum08 = ( a01, a02, a03, a04, a05, a06, a07, a08);
>          enum16 = ( b01, b02, b03, b04, b05, b06, b07, b08,
>                     b09, b10, b11, b12, b13, b14, b15, b16);
>          enum17 = ( c01, c02, c03, c04, c05, c06, c07, c08,
>                     c09, c10, c11, c12, c13, c14, c15, c16, c17);
>          enum32 = ( d01, d02, d03, d04, d05, d06, d07, d08,
>                     d09, d10, d11, d12, d13, d14, d15, d16,
>                     d17, d18, d19, d20, d21, d22, d23, d24,
>                     d25, d26, d27, d28, d29, d30, d31, d32);
>          enum33 = ( e01, e02, e03, e04, e05, e06, e07, e08,
>                     e09, e10, e11, e12, e13, e14, e15, e16,
>                     e17, e18, e19, e20, e21, e22, e23, e24,
>                     e25, e26, e27, e28, e29, e30, e31, e32, e33);
> 
>          set08  = set of enum08;
>          set16  = set of enum16;
>          set17  = set of enum17;
>          set32  = set of enum32;
>          set33  = set of enum33;
> 
(Continue reading)

Adriaan van Os | 8 Apr 2003 20:38
Picon
Favicon

SizeOf sets (was: packed enumerated types?)

Frank Heckenbach wrote:

> Adriaan van Os wrote:
>
>> In the testprogram below, SizeOf( enum33) returns 4, which seems to me
>> to be a bug.
>
> Not to me. (You probably meant to write `set..' instead of `enum..'
> in the `SizeOf'.)

Ah yes, I see, it was my own fault, sorry !

Regards,

Adriaan van Os

Dominique Louis | 9 Apr 2003 20:07
Picon

ld.exe error...

Hi all,
   During the compilation of a project using the DevPascal IDE and the 
latest release, I get the following error...

C:/Progra~1/Borland/gpc/bin/ld.exe: cannot find -lsdl

I gather that "sdl" is the DLL that ld.exe is looking for, but where 
should it be placed so that it can find it. The SDL exists in the 
System32 directory as well as int he same directory as the project and 
it still does not find it.

I have not had a response to my previous emails, so am starting to 
wonder if I have broken some kind of protocol before posting here?

Any clarifications welcome.

Sincerely

Dominique
http://www.DelphiGamer.com := go on, write a game instead;

Frank Heckenbach | 9 Apr 2003 21:26
Picon
Favicon

Re: ld.exe error...

Dominique Louis wrote:

>    During the compilation of a project using the DevPascal IDE and the
> latest release, I get the following error...
> 
> C:/Progra~1/Borland/gpc/bin/ld.exe: cannot find -lsdl
> 
> I gather that "sdl" is the DLL that ld.exe is looking for, but where 
> should it be placed so that it can find it. The SDL exists in the 
> System32 directory as well as int he same directory as the project and 
> it still does not find it.
> 
> I have not had a response to my previous emails, so am starting to 
> wonder if I have broken some kind of protocol before posting here?

There was a response by Eike Lange on 28 Feb. He even CCed your
personal address <Dominique <at> SavageSoftware.com.au>. If you missed
some mails in the list, you can check the archives at
http://gnu-pascal.de/crystal/gpc/en/

(Of course, if this address doesn't work, then you probably won't
get *this* mail, either ...)-:

Frank

--

-- 
Frank Heckenbach, frank <at> g-n-u.de, http://fjf.gnu.de/, 7977168E
GPC To-Do list, latest features, fixed bugs:
http://www.gnu-pascal.de/todo.html
GPC download signing key: 51FF C1F0 1A77 C6C2 4482  4DDC 117A 9773 7F88 1707
(Continue reading)

Mehdi Khaldi | 9 Apr 2003 22:28
Picon
Favicon

string utils

Hi,
Are there utils to convert a String to integer, an Integer to String,
etc...?

Brian Keener | 9 Apr 2003 22:45

Compiled gpc on cygwin but not sure what I have (where is gpc)

Hello all,

As you can tell from the subject I am a real newbie to GNU-Pascal but I have an 
application I am trying to port to Cygwin and it has several pascal modules 
(originally from Borland Delphi) that I will need to compile so I am trying to 
get a working copy of gnu-pascal for my Cygwin install.  I tried a binary 
install and it had a gpc.exe but the problem there was the binary was for 
cygwin and gcc 2.95.3 and cygwin has moved to gcc 3.2 and the binaries were 
compiled so they installed to cygnus/usr/bin instead of say usr/bin in cygwin 
so I couldn't really use the binary as it could not find all the 2.95.3 
libraries for gcc it needed.

I was going to try the install-gpc-binary script but was unsure if it would 
shorten the path so it would work if I copied to usr/bin as opposed to 
lengthening as if I had installed to /usr/local/cygnus....

So instead I decided to try to compile my own and attempted to follow the 
compiling instructions from the Website for gnu-pascal.  I used cvs from the 
cygwin site to get the gcc sources for Cygwin for the 3.2.1 release and then I 
downloaded the gpc sources from website for gpc-20021128 which is supposed to 
work with gcc-3.2.1.  I then created the symlink for p as described in the 
instructions and then I created a build directory and from there I ran the 
configure line and the make line as documented.  I think I have done everything 
correctly but after compilation I am still not sure I have all I need.  If in 
my build directory I do a find for gpc - I have the following:

/usr/develop/obj
$ find ./ -name "gpc*" -depth -print
/gcc/gcc/p/gpc.o
/gcc/gcc/p/gpc-common.o
(Continue reading)

Picon

Re: Compiled gpc on cygwin but not sure what I have (where is gpc)

On 9 Apr 2003 at 16:45, Brian Keener wrote:

> Hello all,
> 
> As you can tell from the subject I am a real newbie to GNU-Pascal but I
> have an application I am trying to port to Cygwin and it has several
> pascal modules (originally from Borland Delphi) that I will need to
> compile so I am trying to get a working copy of gnu-pascal for my Cygwin
> install.  I tried a binary install and it had a gpc.exe but the problem
> there was the binary was for cygwin and gcc 2.95.3 and cygwin has moved
> to gcc 3.2 and the binaries were compiled so they installed to
> cygnus/usr/bin instead of say usr/bin in cygwin so I couldn't really use
> the binary as it could not find all the 2.95.3 libraries for gcc it
> needed.

You can set environment variables that point to the location of the 
2.95.3 files (e.g., GPC_EXEC_PREFIX, LIBRARY_PATH, etc).

> I was going to try the install-gpc-binary script but was unsure if it
> would shorten the path so it would work if I copied to usr/bin as
> opposed to lengthening as if I had installed to /usr/local/cygnus....
> 
> So instead I decided to try to compile my own and attempted to follow
> the compiling instructions from the Website for gnu-pascal.  I used cvs
> from the cygwin site to get the gcc sources for Cygwin for the 3.2.1
> release and then I downloaded the gpc sources from website for
> gpc-20021128 which is supposed to work with gcc-3.2.1.  I then created
> the symlink for p as described in the instructions and then I created a
> build directory and from there I ran the configure line and the make
> line as documented.  I think I have done everything correctly but after
(Continue reading)


Gmane