[darcs-users] Segfaults on Solaris 8/SPARC darcs 1.0.2

Anders Höckersten chucky at dtek.chalmers.se
Mon Feb 14 11:55:03 UTC 2005


Jason Dagit wrote:

>Hello,
>
>I managed to build darcs on solaris 8,  but
>if I do the following I get a segfault:
>mkdir test
>cd test
>darcs init
>touch foo
>darcs add foo   <-- This is the line that segfaults.
>
>I think it's crashing in pthreads, but I don't really know how to be
>sure of that.  I tried compiling with profiling enabled, but all that
>changed was the way darcs crashes (no extra output or anything).  If
>profiling is enabled I get Illegal Instruction instead of segfault.
>
>The only thing I can find about using darcs in solaris/sparc is by
>someone that said they needed to export LDFLAGS="-lposix4 -lpthreads"
>before they run configure to prevent darcs from crashing in pthreads.
>I tried this but it did not help in my case.  I also tried the binary
>they had available but it was version 0.9.17 which makes it
>incompatible with my existing repositories, and quite old.
>
>Thanks,
>Jason
>  
>
Jason,

I have managed to correctly build and run Darcs on Sparc/Solaris 9 with 
those LDFLAGS, and no other special flags. Have you tested that you GHC 
generates valid code? Also, which version of gcc is used on your system 
(I use gcc 2.95.3). I think I remember reading that  several of the GCC 
versions > 3 generate invalid code when used with GHC on sparc/solaris.

I could send you a binary of darcs for sparc/solaris 9 (only version 
1.0.1 though, the machine I use to build sparc/solaris things on is 
acting up right now) if you'd like to try it?

Cheers,
Anders




More information about the darcs-users mailing list