
Apologies if this is not exactly what this list is for but is anyone running ghc on Solaris, specifically Open Solaris 5.11? It seemed to work paulj@hb-0021209.humanities.manchester:~/haskell/aht/3$ ghc --version The Glorious Glasgow Haskell Compilation System, version 6.8.3 paulj@hb-0021209.humanities.manchester:~/haskell/aht/3$ ghci GHCi, version 6.8.3: http://www.haskell.org/ghc/ :? for help Loading package base ... linking ... done. Prelude> And ghci works as expected but !!! Trying to compile I get: paulj@hb-0021209.humanities.manchester:~/haskell/aht/3$ ghc -o Haq Haq.hs compilation IS NOT required Undefined first referenced symbol in file __gmpz_tdiv_q /usr/local/lib/ghc-6.8.3/libHSrts.a(PrimOps.o) __gmpz_tdiv_r /usr/local/lib/ghc-6.8.3/libHSrts.a(PrimOps.o) __gmpn_cmp /usr/local/lib/ghc-6.8.3/libHSrts.a(PrimOps.o) __gmpz_add /usr/local/lib/ghc-6.8.3/libHSrts.a(PrimOps.o) __gmpz_and /usr/local/lib/ghc-6.8.3/libHSrts.a(PrimOps.o) __gmpz_gcd /usr/local/lib/ghc-6.8.3/libHSrts.a(PrimOps.o) __gmpz_ior /usr/local/lib/ghc-6.8.3/libHSrts.a(PrimOps.o) __gmpz_com /usr/local/lib/ghc-6.8.3/libHSrts.a(PrimOps.o) __gmpz_mul /usr/local/lib/ghc-6.8.3/libHSrts.a(PrimOps.o) __gmpz_xor /usr/local/lib/ghc-6.8.3/libHSrts.a(PrimOps.o) __gmpz_sub /usr/local/lib/ghc-6.8.3/libHSrts.a(PrimOps.o) __gmpn_gcd_1 /usr/local/lib/ghc-6.8.3/libHSrts.a(PrimOps.o) __gmpz_init /usr/local/lib/ghc-6.8.3/libHSrts.a(PrimOps.o) __gmpz_fdiv_qr /usr/local/lib/ghc-6.8.3/libHSrts.a(PrimOps.o) __gmp_set_memory_functions /usr/local/lib/ghc-6.8.3/libHSrts.a(Storage.o) __gmpz_divexact /usr/local/lib/ghc-6.8.3/libHSrts.a(PrimOps.o) __gmpz_tdiv_qr /usr/local/lib/ghc-6.8.3/libHSrts.a(PrimOps.o) ld: fatal: Symbol referencing errors. No output written to Haq collect2: ld returned 1 exit status I get this trying to build hmake with the new configure file supplied by Malcolm Wallace. Once again sorry if its off topic but wondered if it's only me :-) Cheers Paul

Am Mittwoch, 15. Oktober 2008 12:54 schrieb Paul Johnston:
Apologies if this is not exactly what this list is for but is anyone running ghc on Solaris, specifically Open Solaris 5.11?
It seemed to work
paulj@hb-0021209.humanities.manchester:~/haskell/aht/3$ ghc --version The Glorious Glasgow Haskell Compilation System, version 6.8.3 paulj@hb-0021209.humanities.manchester:~/haskell/aht/3$ ghci GHCi, version 6.8.3: http://www.haskell.org/ghc/ :? for help Loading package base ... linking ... done. Prelude>
And ghci works as expected but !!!
Trying to compile I get:
paulj@hb-0021209.humanities.manchester:~/haskell/aht/3$ ghc -o Haq Haq.hs
Try ghc -o Haq --make Haq.hs or give the needed packages with the flag -package on the commandline.

Daniel Fischer wrote:
Am Mittwoch, 15. Oktober 2008 12:54 schrieb Paul Johnston:
Apologies if this is not exactly what this list is for but is anyone running ghc on Solaris, specifically Open Solaris 5.11?
It seemed to work
paulj@hb-0021209.humanities.manchester:~/haskell/aht/3$ ghc --version The Glorious Glasgow Haskell Compilation System, version 6.8.3 paulj@hb-0021209.humanities.manchester:~/haskell/aht/3$ ghci GHCi, version 6.8.3: http://www.haskell.org/ghc/ :? for help Loading package base ... linking ... done. Prelude>
And ghci works as expected but !!!
Trying to compile I get:
paulj@hb-0021209.humanities.manchester:~/haskell/aht/3$ ghc -o Haq Haq.hs
Try
ghc -o Haq --make Haq.hs
or give the needed packages with the flag -package on the commandline. _______________________________________________ Beginners mailing list Beginners@haskell.org http://www.haskell.org/mailman/listinfo/beginners
Many thanks but no joy see below Think it could be gmp which I had to also compile but it passed all its checks. paulj@hb-0021209.humanities.manchester:~/haskell/aht/3$ ghc -o Haq --make Haq.hs Linking Haq ... Undefined first referenced symbol in file __gmpz_tdiv_q /usr/local/lib/ghc-6.8.3/libHSrts.a(PrimOps.o) __gmpz_tdiv_r /usr/local/lib/ghc-6.8.3/libHSrts.a(PrimOps.o) __gmpn_cmp /usr/local/lib/ghc-6.8.3/libHSrts.a(PrimOps.o) __gmpz_add /usr/local/lib/ghc-6.8.3/libHSrts.a(PrimOps.o) __gmpz_and /usr/local/lib/ghc-6.8.3/libHSrts.a(PrimOps.o) __gmpz_gcd /usr/local/lib/ghc-6.8.3/libHSrts.a(PrimOps.o) __gmpz_ior /usr/local/lib/ghc-6.8.3/libHSrts.a(PrimOps.o) __gmpz_com /usr/local/lib/ghc-6.8.3/libHSrts.a(PrimOps.o) __gmpz_mul /usr/local/lib/ghc-6.8.3/libHSrts.a(PrimOps.o) __gmpz_xor /usr/local/lib/ghc-6.8.3/libHSrts.a(PrimOps.o) __gmpz_sub /usr/local/lib/ghc-6.8.3/libHSrts.a(PrimOps.o) __gmpn_gcd_1 /usr/local/lib/ghc-6.8.3/libHSrts.a(PrimOps.o) __gmpz_init /usr/local/lib/ghc-6.8.3/libHSrts.a(PrimOps.o) __gmpz_fdiv_qr /usr/local/lib/ghc-6.8.3/libHSrts.a(PrimOps.o) __gmp_set_memory_functions /usr/local/lib/ghc-6.8.3/libHSrts.a(Storage.o) __gmpz_divexact /usr/local/lib/ghc-6.8.3/libHSrts.a(PrimOps.o) __gmpz_tdiv_qr /usr/local/lib/ghc-6.8.3/libHSrts.a(PrimOps.o) ld: fatal: Symbol referencing errors. No output written to Haq collect2: ld returned 1 exit status Regards Paul

Am Mittwoch, 15. Oktober 2008 14:51 schrieb Paul Johnston:
Many thanks but no joy see below Think it could be gmp which I had to also compile but it passed all its checks.
Seems the linker can't find gmp. Try compiling with the -L/path/to/gmp option (if that works, we at least have identified the problem, of course, for a real fix you would have to include that directory to the linker's search path).
Regards Paul
Cheers, Daniel

Daniel Fischer wrote:
Am Mittwoch, 15. Oktober 2008 14:51 schrieb Paul Johnston:
Many thanks but no joy see below Think it could be gmp which I had to also compile but it passed all its checks.
Seems the linker can't find gmp. Try compiling with the -L/path/to/gmp option (if that works, we at least have identified the problem, of course, for a real fix you would have to include that directory to the linker's search path).
Regards Paul
Cheers, Daniel _______________________________________________ Beginners mailing list Beginners@haskell.org http://www.haskell.org/mailman/listinfo/beginners
Sorted :-) paulj@hb-0021209.humanities.manchester:~/haskell/aht/3$ ghc -L=/usr/local/lib/ -o Haq --make Haq.hs [1 of 1] Compiling Main ( Haq.hs, Haq.o ) Linking Haq ... paulj@hb-0021209.humanities.manchester:~/haskell/aht/3$ ./Haq "Bother" "Haq! BotherOr not!" paulj@hb-0021209.humanities.manchester:~/haskell/aht/3$ Tried putting /usr/local/lib in $LD_LIBRARY_PATH but that didn't seem to work, pity. Anyway many, many thanks Paul

Paul Johnston wrote:
paulj@hb-0021209.humanities.manchester:~/haskell/aht/3$ ghc -L=/usr/local/lib/ -o Haq --make Haq.hs [1 of 1] Compiling Main ( Haq.hs, Haq.o ) Linking Haq ... paulj@hb-0021209.humanities.manchester:~/haskell/aht/3$ ./Haq "Bother" "Haq! BotherOr not!" paulj@hb-0021209.humanities.manchester:~/haskell/aht/3$
Tried putting /usr/local/lib in $LD_LIBRARY_PATH but that didn't seem to work, pity. Anyway many, many thanks
I think setting LIBRARY_PATH would work. Cheers Christian

Christian Maeder wrote:
Paul Johnston wrote:
paulj@hb-0021209.humanities.manchester:~/haskell/aht/3$ ghc -L=/usr/local/lib/ -o Haq --make Haq.hs [1 of 1] Compiling Main ( Haq.hs, Haq.o ) Linking Haq ... paulj@hb-0021209.humanities.manchester:~/haskell/aht/3$ ./Haq "Bother" "Haq! BotherOr not!" paulj@hb-0021209.humanities.manchester:~/haskell/aht/3$
Tried putting /usr/local/lib in $LD_LIBRARY_PATH but that didn't seem to work, pity. Anyway many, many thanks
I think setting LIBRARY_PATH would work.
Cheers Christian
Tried setting both LD_LIBRARY_PATH and LIBRARY_PATH paulj@hb-0021209.humanities.manchester:~/haskell/aht/3$ env | grep LIBRARY LIBRARY_PATH=/usr/lib:/opt/csw/lib:/opt/csw/lib/engines:/usr/local/lib LD_LIBRARY_PATH=/usr/lib:/opt/csw/lib:/opt/csw/lib/engines:/usr/local/lib paulj@hb-0021209.humanities.manchester:~/haskell/aht/3$ Still same issue paulj@hb-0021209.humanities.manchester:~/haskell/aht/3$ touch Haq.hs paulj@hb-0021209.humanities.manchester:~/haskell/aht/3$ ghc -o Haq Haq.hs Undefined first referenced symbol in file __gmpz_tdiv_q /usr/local/lib/ghc-6.8.3/libHSrts.a(PrimOps.o) __gmpz_tdiv_r /usr/local/lib/ghc-6.8.3/libHSrts.a(PrimOps.o) __gmpn_cmp /usr/local/lib/ghc-6.8.3/libHSrts.a(PrimOps.o) __gmpz_add /usr/local/lib/ghc-6.8.3/libHSrts.a(PrimOps.o) __gmpz_and /usr/local/lib/ghc-6.8.3/libHSrts.a(PrimOps.o) __gmpz_gcd /usr/local/lib/ghc-6.8.3/libHSrts.a(PrimOps.o) __gmpz_ior /usr/local/lib/ghc-6.8.3/libHSrts.a(PrimOps.o) __gmpz_com /usr/local/lib/ghc-6.8.3/libHSrts.a(PrimOps.o) __gmpz_mul /usr/local/lib/ghc-6.8.3/libHSrts.a(PrimOps.o) __gmpz_xor /usr/local/lib/ghc-6.8.3/libHSrts.a(PrimOps.o) __gmpz_sub /usr/local/lib/ghc-6.8.3/libHSrts.a(PrimOps.o) __gmpn_gcd_1 /usr/local/lib/ghc-6.8.3/libHSrts.a(PrimOps.o) __gmpz_init /usr/local/lib/ghc-6.8.3/libHSrts.a(PrimOps.o) __gmpz_fdiv_qr /usr/local/lib/ghc-6.8.3/libHSrts.a(PrimOps.o) __gmp_set_memory_functions /usr/local/lib/ghc-6.8.3/libHSrts.a(Storage.o) __gmpz_divexact /usr/local/lib/ghc-6.8.3/libHSrts.a(PrimOps.o) __gmpz_tdiv_qr /usr/local/lib/ghc-6.8.3/libHSrts.a(PrimOps.o) ld: fatal: Symbol referencing errors. No output written to Haq collect2: ld returned 1 exit status paulj@hb-0021209.humanities.manchester:~/haskell/aht/3$ Cheers Paul

Am Mittwoch, 15. Oktober 2008 16:35 schrieb Paul Johnston:
Christian Maeder wrote:
Paul Johnston wrote:
paulj@hb-0021209.humanities.manchester:~/haskell/aht/3$ ghc -L=/usr/local/lib/ -o Haq --make Haq.hs [1 of 1] Compiling Main ( Haq.hs, Haq.o ) Linking Haq ... paulj@hb-0021209.humanities.manchester:~/haskell/aht/3$ ./Haq "Bother" "Haq! BotherOr not!" paulj@hb-0021209.humanities.manchester:~/haskell/aht/3$
Tried putting /usr/local/lib in $LD_LIBRARY_PATH but that didn't seem to work, pity. Anyway many, many thanks
I think setting LIBRARY_PATH would work.
Cheers Christian
Tried setting both LD_LIBRARY_PATH and LIBRARY_PATH
paulj@hb-0021209.humanities.manchester:~/haskell/aht/3$ env | grep LIBRARY LIBRARY_PATH=/usr/lib:/opt/csw/lib:/opt/csw/lib/engines:/usr/local/lib LD_LIBRARY_PATH=/usr/lib:/opt/csw/lib:/opt/csw/lib/engines:/usr/local/lib paulj@hb-0021209.humanities.manchester:~/haskell/aht/3$
Still same issue
paulj@hb-0021209.humanities.manchester:~/haskell/aht/3$ touch Haq.hs paulj@hb-0021209.humanities.manchester:~/haskell/aht/3$ ghc -o Haq Haq.hs
What happens with --make now?
Cheers Paul
participants (3)
-
Christian Maeder
-
Daniel Fischer
-
Paul Johnston