Comment 10 for bug 159181

Revision history for this message
Wolfram Fenske (wolfram-fenske) wrote : Re: [Bug 159181] Re: Build fails on FreeBSD and NetBSD

Abdulaziz Ghuloum <email address hidden> writes:

[...]

> A release candidate tarball is available for download from:
> http://www.cs.indiana.edu/~aghuloum/ikarus/ikarus-0.0.2-rc1.tar.gz
> Please do test it if you have the time and report any issues you
> might encounter.

The build goes through on NetBSD. No special compiler flags are
needed.

On FreeBSD, however, it fails. The last lines of the build log are as
follows:

--8<---------------cut here---------------start------------->8---
gcc -I/opt/gmp-4.2.1/include -DNDEBUG -O3 -Wl,-E -L/opt/gmp-4.2.1/lib -Wl,-rpath,/opt/gmp-4.2.1/lib -o ikarus ikarus-collect.o ikarus-exec.o ikarus-fasl.o ikarus-flonums.o ikarus-main.o ikarus-numerics.o ikarus-print.o ikarus-runtime.o ikarus-symbol-table.o ikarus-verify-integrity.o ikarus-weak-pairs.o ikarus-winmmap.o ikarus-enter.o -lgmp -lgmp -lm
echo "#!/bin/sh" > scheme-script
echo "exec /opt/ikarus-0.0.2-rc1/bin/ikarus --r6rs-script \$@" >> scheme-script
Making all in scheme
echo "" >last-revision
echo '(define ikarus-version "0.0.2-rc1")' >ikarus.config.ss
echo '(define ikarus-revision "")' >>ikarus.config.ss
echo '(define ikarus-lib-dir "/opt/ikarus-0.0.2-rc1/lib/ikarus")' >>ikarus.config.ss
../src/ikarus -b ./ikarus.boot.orig --r6rs-script makefile.ss
*** Signal 11

Stop in /tmp/wfenske/build/ikarus-0.0.2-rc1/scheme.
*** Error code 1

Stop in /tmp/wfenske/build/ikarus-0.0.2-rc1.
*** Error code 1

Stop in /tmp/wfenske/build/ikarus-0.0.2-rc1.
--8<---------------cut here---------------end--------------->8---

Output of GDB:

--8<---------------cut here---------------start------------->8---
$ gdb src/ikarus scheme/ikarus.core
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"...(no debugging symbols found).
..
Core was generated by `ikarus'.
Program terminated with signal 11, Segmentation fault.

warning: current_sos: Can't read pathname for load map: Input/output error

Cannot access memory at address 0x468b075f
#0 0x2805c960 in ?? ()
(gdb) backtrace
#0 0x2805c960 in ?? ()
#1 0x00000b21 in ?? ()
#2 0x01bfddf4 in ?? ()
#3 0x2805c56a in ?? ()
#4 0x28082060 in ?? ()
#5 0x00000001 in ?? ()
#6 0x2807a8e0 in ?? ()
#7 0x281bc898 in ?? ()
#8 0x00000183 in ?? ()
#9 0x28081295 in ?? ()
#10 0xbfbfde28 in ?? ()
#11 0x2805ab29 in ?? ()
#12 0x28081000 in ?? ()
#13 0x00000018 in ?? ()
#14 0x280812a8 in ?? ()
#15 0x281bca60 in ?? ()
#16 0x00000002 in ?? ()
#17 0x00000216 in ?? ()
#18 0x28081000 in ?? ()
#19 0x00000018 in ?? ()
#20 0x0804dc87 in ik_relocate_code ()
Previous frame inner to this frame (corrupt stack?)
(gdb)
--8<---------------cut here---------------end--------------->8---

Configuration of this machine:

--8<---------------cut here---------------start------------->8---
$ uname -a
FreeBSD bsd62 6.2-RELEASE FreeBSD 6.2-RELEASE #0: Fri Jan 12 10:40:27 UTC 2007 <email address hidden>:/usr/obj/usr/src/sys/GENERIC i386

$ ld -V
GNU ld version 2.15 [FreeBSD] 2004-05-23
  Supported emulations:
   elf_i386_fbsd

$ gcc --version
gcc (GCC) 3.4.6 [FreeBSD] 20060305
Copyright (C) 2006 Free Software Foundation, Inc.
This is free software; see the source for copying conditions. There is NO
warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
--8<---------------cut here---------------end--------------->8---

I used GMP library version 4.2.1. Tried 4.2.2 as well, with the same
result.

I *can* build Ikarus 0.0.1 on this machine (same gcc version etc.).

This particular FreeBSD installation runs inside VMWare. I can test
the build again on my main (non-VMWare) machine tomorrow. However, I
expect the same results.

Let me know what I can do to help debug this.

This should probably become a new bug report, right? AFAICT this is a
different problem.

Wolfram