Hi,
I don't know if this is really a bug but I didn't find an FAQ with
my answer and I haven't found a place to post this except to send it to you. I
know that you must be very busy and I hope that you could just tell me where
to start looking for the answer.
I installed gpc-2.0 with gcc-2.7.2.3 (I just switched the GCCVERSION
variable in Makefile.in). I runed the configure with my machine arch and
used the --with-gccsrc, --with-gccbin, --prefix, --exec-prefix flags.
Somehow the --prefix didn't pass to the Makefile so I edited the Makefile
switching gcc_prefix to the correct place on my machine (I didn't touch
gcc_local_prefix).
After typing make, the program is build without any warnings or
errors.
So I tried some test programs and I looked in the standard_pascal
directory. I compiled hello.pas using gpc (gpc hello.pas) and also
tried linking with gcc (gpc -c hello.pas, gcc -o hello hello.o -lm -lgpc). AS
"hello world" wouldn't print out, I added the -g flag and tried to look at
it through a debugger. What I got is this:
(dbx) s
stopped in program_Hello at line 4 in file "hello.pas"
4 writeln('Hello, world!');
(dbx) s
internal error: unexpected value 120 at line 3851 in file stabstring.c
internal error: expected char ',', found 's__LC_locale:,768,32;__meth_ptr:9,800,32;__data_ptr:9,832,32;;'
internal error: expected char ',', found '__LC_locale:,768,32;__meth_ptr:9,800,32;__data_ptr:9,832,32;;'
internal error: expected char ';', found '_LC_locale:,768,32;__meth_ptr:9,800,32;__data_ptr:9,832,32;;'
internal error: unexpected value 44 at line 3851 in file stabstring.c
internal error: expected char ',', found '768,32;__meth_ptr:9,800,32;__data_ptr:9,832,32;;'
internal error: unexpected value 120 at line 3851 in file stabstring.c
internal error: unexpected value 120 at line 3851 in file stabstring.c
internal error: expected char ',', found 's_LC_locale_objhdl:,64,32;;'
internal error: expected char ',', found '_LC_locale_objhdl:,64,32;;'
internal error: expected char ';', found 'LC_locale_objhdl:,64,32;;'
internal error: unexpected value 44 at line 3851 in file stabstring.c
internal error: expected char ',', found '64,32;;'
internal error: unexpected value 120 at line 3851 in file stabstring.c
internal error: unexpected value 120 at line 3851 in file stabstring.c
internal error: unexpected value 120 at line 3851 in file stabstring.c
internal error: unexpected value 120 at line 3851 in file stabstring.c
internal error: unexpected value 120 at line 3851 in file stabstring.c
internal error: unexpected value 120 at line 3851 in file stabstring.c
internal error: unexpected value 120 at line 3851 in file stabstring.c
internal error: unexpected value 120 at line 3851 in file stabstring.c
stopped in _p_write at line 49 in file "rts-write.c"
couldn't read "rts-write.c"
As you can tell, I am a bit perplexed with these messages. I would
think that somehow the -g option didn't work so well. I am runing AIX 4.1.4
with an ibm rs6000 machine.
Do you have any idea of where to start to make the whole thing work?
I need a pascal compiler and I'd hate to have to reprogram everything using
a C compiler.
Thanks for any help,
Igor