Skip site navigation (1)Skip section navigation (2)
Date:      Tue, 22 Apr 2008 00:22:41 +1000
From:      Norberto Meijome <freebsd@meijome.net>
To:        FreeBSD Questions ML <freebsd-questions@freebsd.org>
Subject:   Need help with error building lang/guile
Message-ID:  <20080422002241.41437eae@ayiin>

next in thread | raw e-mail | index | archive | help
Hi everyone,
For a while now i've been unable to upgrade to the latest lang/guile port. I am
running 7.0-STABLE (world and kernel up to date about twice weekly) on x86. my
current guile is 

guile-1.6.8_3       GNU Ubiquitous Intelligent Language for Extension

and wants to upgrade to 1.8.4. Going by the date of the package built for
1.6.8_3 , it was built when under FreeBSD 6.3. As far as I can tell, i've
upgraded every other component of my laptop...

The error i get is :

---
make distclean; make 
[...]

Making all in goops
gmake[3]: Entering directory `/usr/ports/lang/guile/work/guile-1.8.4/oop/goops'
gmake[3]: Nothing to be done for `all'.
gmake[3]: Leaving directory `/usr/ports/lang/guile/work/guile-1.8.4/oop/goops'
gmake[3]: Entering directory `/usr/ports/lang/guile/work/guile-1.8.4/oop'
gmake[3]: Nothing to be done for `all-am'.
gmake[3]: Leaving directory `/usr/ports/lang/guile/work/guile-1.8.4/oop'
gmake[2]: Leaving directory `/usr/ports/lang/guile/work/guile-1.8.4/oop'
Making all in libguile
gmake[2]: Entering directory `/usr/ports/lang/guile/work/guile-1.8.4/libguile'
Generating libpath.h...
sed < ./version.h.in > version.h.tmp \
          -e s:@-GUILE_MAJOR_VERSION-@:1: \
          -e s:@-GUILE_MINOR_VERSION-@:8: \
          -e s:@-GUILE_MICRO_VERSION-@:4:
mv version.h.tmp version.h
if [ "no" = "yes" ]; then \
                cc -DHAVE_CONFIG_H -I. -I.. -I.. -I.. -c -o gen-scmconfig.o
gen-scmconfig.c; \ else \  
                cc -DHAVE_CONFIG_H -I. -I.. -I.. -I..  -I/usr/local/include
-O2 -fno-strict-aliasing -pipe -march=pentium-m -Wall -Wmissing-prototypes
-Werror -c -o gen-scmconfig.o gen-scmconfig.c; \ fi if [ "no" = "yes" ]; then \
                cc -o gen-scmconfig gen-scmconfig.o; \
        else \  
                /bin/sh ../libtool --tag=CC   --mode=link cc  -O2
-fno-strict-aliasing -pipe -march=pentium-m -Wall -Wmissing-prototypes -Werror
-L/usr/local/lib -o gen-scmconfig gen-scmconfig.o  -llthread -lgmp -lcrypt -lm
-lltdl ; \ fi mkdir .libs cc -O2 -fno-strict-aliasing -pipe -march=pentium-m
-Wall -Wmissing-prototypes -Werror -o gen-scmconfig gen-scmconfig.o
-L/usr/local/lib -llthread /usr/local/lib/libgmp.so -lcrypt
-lm /usr/local/lib/libltdl.so   -Wl,--rpath -Wl,/usr/local/lib -Wl,--rpath
-Wl,/usr/local/lib rm -f scmconfig.h.tmp cat ./scmconfig.h.top >
scmconfig.h.tmp ./gen-scmconfig >> scmconfig.h.tmp Segmentation fault (core
dumped) gmake[2]: *** [scmconfig.h] Error 139 gmake[2]: Leaving directory
`/usr/ports/lang/guile/work/guile-1.8.4/libguile' gmake[1]: *** [all-recursive]
Error 1 gmake[1]: Leaving directory `/usr/ports/lang/guile/work/guile-1.8.4'
gmake: *** [all] Error 2
*** Error code 2

Stop in /usr/ports/lang/guile.

I run ktrace on the gen-scmconfig that is dying on me:

[root@ayiin] [Mon Apr 21 22:28:36 2008]
/usr/ports/lang/guile/work/guile-1.8.4/libguile
# ktrace ./gen-scmconfig >> scmconfig.h.tmp
Segmentation fault: 11 (core dumped)

and the calls before the core dump are:
 89607 gen-scmconfig RET   sigprocmask 0
 89607 gen-scmconfig CALL  __sysctl(0xbfbfea28,0x2,0x281fb920,0xbfbfea34,0,0)
 89607 gen-scmconfig RET   __sysctl 0
 89607 gen-scmconfig CALL  __sysctl(0xbfbfe538,0x2,0x2820807c,0xbfbfe540,0,0)
 89607 gen-scmconfig RET   __sysctl 0
 89607 gen-scmconfig CALL  __sysctl(0xbfbfe588,0x2,0xbfbfe594,0xbfbfe598,0,0)
 89607 gen-scmconfig RET   __sysctl 0
 89607 gen-scmconfig CALL  readlink(0x281e8e40,0xbfbfe627,0x400)
 89607 gen-scmconfig NAMI  "/etc/malloc.conf"
 89607 gen-scmconfig RET   readlink -1 errno 2 No such file or directory
 89607 gen-scmconfig CALL  issetugid
 89607 gen-scmconfig RET   issetugid 0
 89607 gen-scmconfig CALL  break(0x8100000)
 89607 gen-scmconfig RET   break 0
 89607 gen-scmconfig PSIG  SIGSEGV SIG_DFL
 89607 gen-scmconfig NAMI  "gen-scmconfig.core"

The full ktrace.out can be found at 
http://www.meijome.net/files/freebsd/libguile_smconfig_ktrace.out.gz

I have no malloc.conf . I am not too sure whether it is safe to create any as
per malloc.conf... I tried with an empty file with no improvement on the
outcome.

My libmap.conf is all commented out.

I've rebuilt each dependency of lang/guile, including gmake and tried after each
individual upgrade, no change.

My /etc/make.conf can be found in
http://www.meijome.net/files/freebsd/20080422_make.conf

Any points would be greatly appreciated :)
B
_________________________
{Beto|Norberto|Numard} Meijome

"Imagination is more important than knowledge."
  Albert Einstein, On Science

I speak for myself, not my employer. Contents may be hot. Slippery when wet.
Reading disclaimers makes you go blind. Writing them is worse. You have been
Warned.



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20080422002241.41437eae>