Skip to content
This repository has been archived by the owner on Oct 10, 2021. It is now read-only.

Build hangs on Solaris/x86 #118

Closed
hyln9 opened this issue Sep 12, 2014 · 2 comments
Closed

Build hangs on Solaris/x86 #118

hyln9 opened this issue Sep 12, 2014 · 2 comments
Labels

Comments

@hyln9
Copy link
Owner

hyln9 commented Sep 12, 2014

Building Ikarus Scheme on a Solaris/x86 system hangs during the macro expansion phase. The build log says:

Making all in scheme
../src/ikarus -b ./ikarus.boot.orig --r6rs-script makefile.ss
expanding "ikarus.singular-objects.ss"
expanding "ikarus.handlers.ss"
expanding "ikarus.multiple-values.ss"
[... snipped ...]
expanding "ikarus.main.ss"
running stats for macro expansion:
44 collections
4055 ms elapsed cpu time, including 302 ms collecting
4061 ms elapsed real time, including 304 ms collecting

186521960 bytes allocated

It hangs there for a minute or so and finally says:

*** Signal 11 - core dumped

make: Fatal error: Command failed for target `ikarus.boot'

$ uname -a

returns:

SunOS wien 5.11 snv_55b i86pc i386 i86pc Solaris

I used the Sun C compiler and linker:

$ cc -V
cc: Sun C 5.9 SunOS_i386 2007/05/03

$ ld -V
ld: Software Generation Utilities - Solaris Link Editors: 5.11-1.555

The same thing happens when i try to build with gcc 3.4.3. Output of gcc -v:

Reading specs from /usr/sfw/lib/gcc/i386-pc-solaris2.11/3.4.3/specs
Configured with: /builds1/sfwnv-gate/usr/src/cmd/gcc/gcc-3.4.3/configure --prefix=/usr/sfw --with-as=/usr/sfw/bin/gas --with-gnu-as --with-ld=/usr/ccs/bin/ld --without-gnu-ld --enable-languages=c,c++,f77 --enable-shared
Thread model: posix

gcc version 3.4.3 (csl-sol210-3_4-20050802)

I can't try the build with gcc + gnu ld because gnu ld isn't installed on that machine.

Here's a backtrace of the version built with Sun cc and ld:

(gdb) backtrace
#0 0xf5160934 in ?? ()
#1 0xe6ce0818 in ?? ()
#2 0xfe59f5c3 in ?? ()
#3 0x000002f8 in ?? ()
#4 0x000002f4 in ?? ()
#5 0xf7aa0bec in ?? ()
#6 0x00000be8 in ?? ()
#7 0xfe4e269d in ?? ()
#8 0xfd940055 in ?? ()
#9 0xbbaf0f2d in ?? ()
#10 0xe6ce0e24 in ?? ()
#11 0xfe597173 in ?? ()
#12 0x00000bdc in ?? ()
#13 0x000103d8 in ?? ()
#14 0x00006038 in ?? ()
#15 0xfe200005 in ?? ()
#16 0xf50d0efa in ?? ()
#17 0xfd940055 in ?? ()
#18 0xed953005 in ?? ()
#19 0x0805dc6d in L_call ()

Launchpad Details: #LP159187 Wolfram Fenske - 2007-10-31 22:11:09 -0400

@hyln9 hyln9 added the low label Sep 12, 2014
@hyln9
Copy link
Owner Author

hyln9 commented Sep 12, 2014

I have seen the same problem happen under cygwin. The problem showed when ikarus was built with the "-O2 -g" flag, which configure.ac now overrides with "-O3". It seems that compiling the assembly file ikarus-enter.s gets somewhat screwed. It's likely to be a bug in my code, but I don't know what it is. I will try to reproduce it under cygwin and see how to fix it there first before trying to fix it for solaris (which I don't have access to at the moment).

Let me know if using the gnu ld fixes it.

Aziz,,,

Launchpad Details: #LPC Abdulaziz Ghuloum - 2007-11-01 16:50:15 -0400

@hyln9
Copy link
Owner Author

hyln9 commented Sep 12, 2014

As of revision 1591, ikarus cleanly builds on Solaris (5.10). There are some pending bugs in "atan" that cause ikarus not to pass all tests and will be fixed later.

Launchpad Details: #LPC Abdulaziz Ghuloum - 2008-09-08 18:34:35 -0400

@hyln9 hyln9 closed this as completed Sep 12, 2014
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
Projects
None yet
Development

No branches or pull requests

1 participant