[Haskell-cafe] Re: [hmatrix] build error

Alberto Ruiz aruiz at um.es
Wed Oct 8 12:22:22 EDT 2008


Hi Xiao-Yong,

In i686 Arch linux, with the normal blas and lapack, I need:

	extra-libraries: gsl lapack blas gslcblas gfortran

But using atlas-lapack:

	extra-libraries: gsl lapack f77blas gslcblas atlas gcc_s

I don't know how I found that "__powidf2" is in libgcc_s  :)

I will add these options to hmatrix.cabal.

-Alberto



Xiao-Yong Jin wrote:
> Hi, looks like I hit a bug, but I'm not sure which software
> it belongs to, gcc, ghc or atlas?
> 
> ---------- error doing "runhaskell Setup build" ----------
> Preprocessing library hmatrix-0.4.1.0...
> /usr/bin/ld: dist/build/Numeric/GSL/Special/Internal_hsc_make: hidden symbol `__powidf2' in /usr/lib/gcc/x86_64-unknown-linux-gnu/4.3.2/libgcc.a(_powidf2.o) isreferenced by DSO
> /usr/bin/ld: final link failed: Nonrepresentable section on output
> collect2: ld returned 1 exit status
> linking dist/build/Numeric/GSL/Special/Internal_hsc_make.o failed
> command was: /usr/bin/ghc -optl-lgsl -optl-llapack dist/build/Numeric/GSL/Special/Internal_hsc_make.o -o dist/build/Numeric/GSL/Special/Internal_hsc_make
> ---------- error doing "runhaskell Setup build" ----------
> 
> I believe `__powidf2' is a internal symbol in gcc and it is
> hidden.
> 
> The system is archlinux x86_64 and the software I used are
> 
> atlas-lapack 3.8.2-1
> 
> gcc 4.3.2-1
> Using built-in specs.
> Target: x86_64-unknown-linux-gnu
> Configured with: ../configure --prefix=/usr --enable-shared --enable-languages=c,c++,fortran,objc,obj-c++,treelang --enable-threads=posix --mandir=/usr/share/man --infodir=/usr/share/info --enable-__cxa_atexit --disable-multilib --libdir=/usr/lib --libexecdir=/usr/lib --enable-clocale=gnu --disable-libstdcxx-pch --with-tune=generic
> Thread model: posix
> gcc version 4.3.2 (GCC)
> 
> ghc 6.8.2-2
>  [("Project name","The Glorious Glasgow Haskell Compilation System")
>  ,("Project version","6.8.2")
>  ,("Booter version","6.8.2")
>  ,("Stage","2")
>  ,("Interface file version","6")
>  ,("Have interpreter","YES")
>  ,("Object splitting","YES")
>  ,("Have native code generator","YES")
>  ,("Support SMP","YES")
>  ,("Unregisterised","NO")
>  ,("Tables next to code","YES")
>  ,("Win32 DLLs","")
>  ,("RTS ways"," debug  thr thr_p thr_debug")
>  ,("Leading underscore","NO")
>  ]
> 
> I googled but no useful information.
> 
> Best,
> Xiao-Yong


More information about the Haskell-Cafe mailing list