Irek, please pull the sources via cvs -d
:pserver:***@pcc.ludd.ltu.se:/cvsroot co pcc pcc-libs
I managed to build a pcc which can compile a hello world application.
Unfortunately a more complex application fails:
wget --http-user="I accept www.opensource.org/licenses/eclipse"
--http-passwd="."
'http://www2.research.att.com/~gsf/download/tgz/INIT.2012-08-01.tgz
wget --http-user="I accept www.opensource.org/licenses/eclipse"
--http-passwd="."
'http://www2.research.att.com/~gsf/download/tgz/ast-ksh.2012-08-01.tgz
(export PATH=$HOME/pccinstall/bin:$PATH ; CC=$HOME/pccinstall/bin/pcc
~/bin/ksh ./bin/package make 2>&1 | tee -a buildlog.log)
package: update /home/fleyta/work/ast_ksh_20120801/build_pcc/bin/execrate
package: initialize the
/home/fleyta/work/ast_ksh_20120801/build_pcc/arch/linux.i386-64 view
package: update
/home/fleyta/work/ast_ksh_20120801/build_pcc/arch/linux.i386-64/lib/probe/C/make/probe
package: update
/home/fleyta/work/ast_ksh_20120801/build_pcc/arch/linux.i386-64/bin/mamake
major internal compiler error:
/home/fleyta/work/ast_ksh_20120801/build_pcc/src/cmd/INIT/mamake.c,
line 372
/home/test001/pccinstall/lib/ccom terminated with status 1
Olga
Post by Irek SzczesniakHas anyone managed to get a working pcc on Linux/x86-64 (we use Suse
12.1 right now)? pcc foo.c -o foo compiles the code but when we start
it the binaries all crash with
(gdb) where
#0 0x00000001 in ?? ()
#1 0x08048378 in ?? ()
#2 0x080482b8 in ?? ()
Now if we add -g OR -O to the pcc command line the binaries starts to work.
Any clues why this happens?
Irek
--
, _ _ ,
{ \/`o;====- Olga Kryzhanovska -====;o`\/ }
.----'-/`-/ ***@gmail.com \-`\-'----.
`'-..-| / http://twitter.com/fleyta \ |-..-'`
/\/\ Solaris/BSD//C/C++ programmer /\/\
`--` `--`