Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 7118 - librep segfaults during build due to gmp 4.1
Summary: librep segfaults during build due to gmp 4.1
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: [OLD] Library (show other bugs)
Hardware: x86 Linux
: High normal (vote)
Assignee: Nick Hadaway
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2002-08-27 08:24 UTC by Tom Prado
Modified: 2003-02-04 19:42 UTC (History)
0 users

See Also:
Package list:
Runtime testing required: ---


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Tom Prado 2002-08-27 08:24:50 UTC
emerge gmp 4.1,  then try to emerge librep.  It seems to segfault everytime
during the build process.  gmp 3.1.1 works fine.  librep is needed by sawfish so
sawfish can't be build because of this.  Perhaps gmp 4.1 needs to be masked
until this can get resolved?
Comment 1 Nick Hadaway 2002-09-11 20:51:59 UTC
librep-0.16.1 has been released into portage and should be available within the 
next 24 hours.  I have confirmed that it compiles with gmp-4.1 installed 
without any problems.  Please test and report back your experience.
Comment 2 Don Curtis 2002-09-13 16:20:13 UTC
raker, i was having this librep problem (please refer to 7364 as it is a
duplicate problem).  anyways, i am still having the problem with librep 16.1 i
had to use gmp 3.1.1 to fix the problem.
Comment 3 Tom Prado 2002-09-17 22:06:11 UTC
A quick update on this particular bug:

I know the build is segfaulting since the makefile tries to run ../src/rep

It fails here:

/var/tmp/portage/librep-0.16.1/work/librep-0.16.1/src/.libs/md5.so -> 
./.libexec/rep/util/md5.so REPLISPDIR=../lisp 
REP_DL_LOAD_PATH=../src/.libexec REPDOCFILE=../DOC ../src/rep --batch -l 
rep.vm.compiler \
  -f compile-batch rep-xgettext.jl \
&& mv rep-xgettext.jlc rep-xgettext && chmod +x rep-xgettext

Thats why make gives an Error 139.


Anyways, I was testing Gentoo 1.4 on the same machine this is failing on in a
chroot environment and librep builds fine.   I tried building it in Gentoo 1.2
on the same P4 machine using gcc-3.2 and it still fails.

This bug will probably go away when 1.4 is released...

Tom
Comment 4 Tom Prado 2002-09-17 22:12:00 UTC
doh.  I meant to add that I did a ebuild compile on the .ebuild.  After it
failed to compile, I manually ran the ../src/rep program in it's work directory
and it segfaulted on me...  I did the same thing in Gentoo 1.4 and it worked
fine, giving me the parameters for the program 'rep'.  Hence the Error 139
returned from make...
Comment 5 Nick Hadaway 2002-10-11 16:23:17 UTC
Are you still having problems with this?  If you have any gcc2 based gentoo 
systems still around, try pulling your CFLAGS optimization back to -O2 as -O3 
in librep may be a little too aggressive.  Let me know how things go. 
Comment 6 Tom Prado 2002-10-14 20:05:17 UTC
yeah.  It still doesn't compile.  If I revert gmp to 3.1.1 it works fine.  I
tried the different CFLAGS you've suggested when compiling both gmp and librep
and librep still fails.
Comment 7 Nick Hadaway 2002-11-25 22:19:08 UTC
I have just tested again with gcc-3.2.1 and there aren't any issues that I 
experienced.  So again, looks good for gcc3 land.
Comment 8 Tom Prado 2002-11-25 23:07:14 UTC
I tried building this again a few days ago on my 1.2 installs and it works fine
now.  Something changed along the way but I don't know what.  My make.conf
contains the following:

CHOST="i686-pc-linux-gnu"
CFLAGS="-march=i686 -O3 -pipe"
CXXFLAGS="${CFLAGS}"

I haven't really changed much on these installs other than keeping them up to
date.