Igor Schein on Wed, 12 Jun 2002 12:08:59 -0400


[Date Prev] [Date Next] [Thread Prev] [Thread Next] [Date Index] [Thread Index]

Re: 64bit HPUX binary buggy


On Wed, Jun 12, 2002 at 05:48:07PM +0200, Karim BELABAS wrote:
> On Wed, 12 Jun 2002, Igor Schein wrote:
> 
> > On Wed, Jun 12, 2002 at 04:16:06PM +0200, Karim BELABAS wrote:
> > > On Wed, 12 Jun 2002, Igor Schein wrote:
> > >
> > > > On Wed, Jun 12, 2002 at 02:01:59PM +0200, Karim BELABAS wrote:
> > > > > On Tue, 11 Jun 2002, Igor Schein wrote:
> > > > > > I compiled a 64bit gp binary on HPUX 11, but it's badly broken -
> > > > > > a command as simple as bnfinit(x^2-2) keeps doubling the stack.
> > > > > > I'd like to debug it, but I need some pointers on where to set
> > > > > > breakpoints, what to look for, etc.
> [...]
> > yes, bnfinit(x^2+1) is broken.
> >
> > I tried it at \g9.  Below the relevant diff portion,
> > As you can see, the problem starts on "adding vector" line
> [...]
> > -adding vector = 2155177552
> > +adding vector = -4611686016274382136
> 
> Argh. Both are ridiculous. Had forgotten about this dreadful hack (using a
[snip]
> OK, I've killed the hack [ will not hurt efficiency, should not change the
> fact that bnfinit is broken, only give meaningful debugging output ], please
> update and check again the logs.

Can't compile now:

../src/gp/gp.c: In function `what_readline':
../src/gp/gp.c:1657: parse error before "READLINE"
../src/gp/gp.c:1658: warning: control reaches end of non-void function

I'm compiling without readline.

Here's my dft file:

# Config file for Pari  -- HP (C portable kernel) 64-bit version

shell_q="'"
libpari_base='pari-2.2'
version='2.2'
TOP='/home/igor/CVS/pari/hpux/pari'
config_dir='config'
src_dir='src'
emacs_dir='emacs'
doc_dir='doc'
bindir='/home/igor/local/pari/bin'
includedir='/home/igor/local/pari/include/pari'
mandir='/home/igor/local/pari/man/man1'
miscdir='/home/igor/local/pari/lib/pari'
libdir='/home/igor/local/pari/lib'
datadir='/home/igor/local/pari/lib/pari/galdata'
optimization='debugging'
objdir='Ohpux-hppa.dbg'
static='y'
suffix='.dbg'
ASMINLINE='yes'
arch='hppa'
asmarch='none'
osname='hpux'
pretty='HP (C portable kernel) 64-bit version'
prefix='/home/igor/local/pari'
share_prefix=''
__gnuc__='3.0.4'
gnuas='no'
CPP='gcc -E -I.'
AS='/usr/ccs/bin/as'
ASFLAGS=''
CC='gcc'
cflags='-DMEMSTEP=1048576 -g -Wall -Wno-implicit -fPIC'
DBGFLAGS='-g -Wall -Wno-implicit'
OPTFLAGS='-O3 -DGCC_INLINE -Wall -Wno-implicit'
LD='gcc'
LDFLAGS='-DMEMSTEP=1048576 -g -Wall -Wno-implicit -fPIC'
DLLD='/opt/pa20_64/bin/ld'
DLSUFFIX='sl'
soname=''
sodest=''
KERNELCPPFLAGS=''
DLLDFLAGS='-shared -soname $(LIBPARI_SONAME)'
EXTRADLLDFLAGS=''
runpath='/home/igor/local/pari/lib'
runpathprefix=''
LDDYN='-L/home/igor/local/pari/lib -lpari-2.2'
LIBS='-lm'
DYNLIBS=''
DYNFLAGS=''
DYNRELOC=''
ranlib='/opt/pa20_64/bin/ranlib'
gzip='/usr/contrib/bin/gzip'
zcat='/bin/zcat'
emacs='/opt/bin/emacs'
perl='/usr/contrib/bin/perl'
ln_s='ln -s'
make_sh='/bin/sh'
exe_suff=''
readline=''
readline_enabledp='nil'
CPPF_defined=''
rl_refresh_line_oldproto=''
rl_appendchar=''
rl_genericbind=''
rl_save_prompt=''
_rl_save_prompt=''
rl_message=''
rl_completion_matches=''
rl_completion_func_t=''
RLINCLUDE=''
RLLIBS=''
sizeof_long='8'
doubleformat='-'
gnuplot=''
extralib=''
X11='/usr/lib'
Xincroot='/usr/include'
which_graphic_lib='none'
gnuplot_libs=''
has_ulong='no'
has_exp2='no'
has_strftime='yes'
has_getrusage='yes'
has_sigrelse='yes'
has_TIOCGWINSZ='yes'
has_getrlimit='yes'
has_opendir='yes'
has_vsnprintf='yes'
has_dlopen='yes'