SOLVED - Re: Need help with error building lang/guile

2008-04-22 Thread Norberto Meijome
On Tue, 22 Apr 2008 00:22:41 +1000
Norberto Meijome [EMAIL PROTECTED] wrote:

 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
 
[...]
 ---
 make distclean; make 
 [...]
 
[...]
 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.
 
[...]

Short answer : uninstall (corrupted?) linuxthreads package.

full story, for the archive...

ok, so I figured i needed to dig deeper...
- i enable debugging ( CFLAGS+= -ggdb in /etc/make.conf)
- I built libc (only that) with debug symbols (  sudo make  -DDEBUG_FLAGS=-g  
in /usr/src/lib/libc , and DEBUG_FLAGS=-g in /etc/make.conf so the libs are not 
stripped on make install)

when I run gdb, i got this...

[EMAIL PROTECTED] [Wed Apr 23 01:38:52 2008]
/usr/ports/lang/guile/work/guile-1.8.4/libguileESC[0m^B
ESCkESC\# ESC[Kgdb gen-scESCgmconfig gen-ESCgscmconfig.cESCgore 
GNU gdb 6.1.1 [FreeBSD]
Copyright 2004 Free Software Foundation, Inc.
GDB is free software, covered by the GNU General Public License, and you are
welcome to change it and/or distribute copies of it under certain conditions.
Type show copying to see the conditions.
There is absolutely no warranty for GDB.  Type show warranty for details.
This GDB was configured as i386-marcel-freebsd...
Core was generated by `gen-scmconfig'.
Program terminated with signal 11, Segmentation fault.
Reading symbols from /usr/local/lib/liblthread.so.6...done.
Loaded symbols for /usr/local/lib/liblthread.so.6
Reading symbols from /usr/local/lib/libgmp.so.7...done.
Loaded symbols for /usr/local/lib/libgmp.so.7
Reading symbols from /lib/libcrypt.so.4...done.
Loaded symbols for /lib/libcrypt.so.4
Reading symbols from /lib/libm.so.5...done.
Loaded symbols for /lib/libm.so.5
Reading symbols from /usr/local/lib/libltdl.so.4...done.
Loaded symbols for /usr/local/lib/libltdl.so.4
Reading symbols from /lib/libc.so.7...done.
Loaded symbols for /lib/libc.so.7
Reading symbols from /libexec/ld-elf.so.1...done.
Loaded symbols for /libexec/ld-elf.so.1
#0  0x2804b4a7 in ___tls_get_addr () from /libexec/ld-elf.so.1
(gdb) bt
#0  0x2804b4a7 in ___tls_get_addr () from /libexec/ld-elf.so.1
#1  0x2816fa9b in malloc () from /lib/libc.so.7
#2  0x2808be69 in _pthread_mutex_destroy () from /usr/local/lib/liblthread.so.6
#3  0x2808bf27 in _pthread_mutex_trylock () from /usr/local/lib/liblthread.so.6
#4  0x0002 in ?? ()
#5  0x in ?? ()
#6  0x in ?? ()
#7  0x281f6858 in ?? () from /lib/libc.so.7
#8  0x0003 in ?? ()
#9  0xbbc00118 in ?? ()
#10 0x2816faeb in malloc () from /lib/libc.so.7
Previous frame inner to this frame (corrupt stack?)

Which doesnt mean much at all to me 

but the mention of /usr/local/lib/liblthread.so.6 caught my eye as I hadn't 
seen it before... it turned out it belonged to package linuxthreads. I checked 
the package, nothing depended on it... and I didn't have my local package 
(which possibly points to a v old package in my box)... so i uninstalled 
it...and presto, fixed - rebuilt port with no other problems

Best,
B
_
{Beto|Norberto|Numard} Meijome

If it's there, and you can see it, it's real.
If it's not there, and you can see it, it's virtual.
If it's there, and you can't see it, it's transparent.
If it's not there, and you can't see it, you erased it.

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.
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to [EMAIL PROTECTED]


Need help with error building lang/guile

2008-04-21 Thread Norberto Meijome
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:

[EMAIL PROTECTED] [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(0x810)
 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.
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to [EMAIL PROTECTED]