
Hi all, is someone familiar with compiling ndp (nested data parallel Haskell), "Speed with less convenience"-version? I followed the guide at http://www.haskell.org/haskellwiki/Data_Parallel_Haskell/PackageNDP but executing "make" in the examples directory issues the following error: (.text+0x8d5): undefined reference to `__stginit_parallelzm1zi0zi0zi0_ControlziParallelziStrategies_' manually compiling the dotp example on the link mentioned above doesn't work either: [...] (.data+0x5c): undefined reference to `ndp_DataziArrayziParallelziUnliftedziFlatziUArr_zdf14_closure' DotP.o: In function `sz3_srt': (.data+0x88): undefined reference to `ndp_DataziArrayziParallelziUnliftedziFlatziBasics_toU_closure' DotP.o: In function `sz3_srt': (.data+0x8c): undefined reference to `ndp_DataziArrayziParallelziUnliftedziFlatziUArr_zdf14_closure' /home/sfriedrichs/ghc/rts/libHSrts.a(Main.o): In function `real_main': Main.c:(.text+0x12): undefined reference to `__stginit_ZCMain' Main.c:(.text+0x2c): undefined reference to `ZCMain_main_closure' Does someone know, what's wrong? I'm using ghc-6.9.20080124 as source base (which compiled and works just fine). //Stephan -- Früher hieß es ja: Ich denke, also bin ich. Heute weiß man: Es geht auch so. - Dieter Nuhr

On Fri, 25 Jan 2008, Stephan Friedrichs wrote:
Hi all,
is someone familiar with compiling ndp (nested data parallel Haskell), "Speed with less convenience"-version?
I followed the guide at http://www.haskell.org/haskellwiki/Data_Parallel_Haskell/PackageNDP but executing "make" in the examples directory issues the following error:
(.text+0x8d5): undefined reference to `__stginit_parallelzm1zi0zi0zi0_ControlziParallelziStrategies_'
manually compiling the dotp example on the link mentioned above doesn't work either:
[...]
(.data+0x5c): undefined reference to `ndp_DataziArrayziParallelziUnliftedziFlatziUArr_zdf14_closure' DotP.o: In function `sz3_srt': (.data+0x88): undefined reference to `ndp_DataziArrayziParallelziUnliftedziFlatziBasics_toU_closure' DotP.o: In function `sz3_srt': (.data+0x8c): undefined reference to `ndp_DataziArrayziParallelziUnliftedziFlatziUArr_zdf14_closure' /home/sfriedrichs/ghc/rts/libHSrts.a(Main.o): In function `real_main': Main.c:(.text+0x12): undefined reference to `__stginit_ZCMain' Main.c:(.text+0x2c): undefined reference to `ZCMain_main_closure'
Does someone know, what's wrong? I'm using ghc-6.9.20080124 as source base (which compiled and works just fine).
These errors often indicate that some packages are compiled out of order. That is a compiled package references another package, which was replaced by a newer version in the meantime.

Hi Stephan,
is someone familiar with compiling ndp (nested data parallel Haskell), "Speed with less convenience"-version?
Yes, me :-) Sorry for the late reply, it's been a long weekend here in Australia.
I followed the guide at http://www.haskell.org/haskellwiki/Data_Parallel_Haskell/PackageNDP but executing "make" in the examples directory issues the following error:
I suspect that "cd examples; make" doesn't quite work at the moment because some of the examples are broken. I'll try to fix that soon. But "cd examples/dotp; make" should work.
(.text+0x8d5): undefined reference to `__stginit_parallelzm1zi0zi0zi0_ControlziParallelziStrategies_'
This is strange, I've never seen this. Can you please send me the exact commands you used to build ghc and package ndp and the complete log from making dotp? Roman

On Jan 28, 2008, at 20:41 , Roman Leshchinskiy wrote:
(.text+0x8d5): undefined reference to `__stginit_parallelzm1zi0zi0zi0_ControlziParallelziStrategies_'
This is strange, I've never seen this. Can you please send me the exact commands you used to build ghc and package ndp and the complete log from making dotp?
At a guess, this means the "parallel" package got split from base at some point and needs to be added to the makefile (or, better, it should use ghc --make). -- brandon s. allbery [solaris,freebsd,perl,pugs,haskell] allbery@kf8nh.com system administrator [openafs,heimdal,too many hats] allbery@ece.cmu.edu electrical and computer engineering, carnegie mellon university KF8NH

Roman Leshchinskiy wrote:
[...]
Yes, me :-) Sorry for the late reply, it's been a long weekend here in Australia.
Wow, Australia :)
[...]
I suspect that "cd examples; make" doesn't quite work at the moment because some of the examples are broken. I'll try to fix that soon. But "cd examples/dotp; make" should work.
Hmm I must have missed that the ndp package didn't quite compile. Right now, I'm darcs pulling everything (ghc, libraries, ndp) and rebuilding it... ... and ghc failed. Looks like I have to wait for some patches.
(.text+0x8d5): undefined reference to `__stginit_parallelzm1zi0zi0zi0_ControlziParallelziStrategies_'
This is strange, I've never seen this. Can you please send me the exact commands you used to build ghc and package ndp and the complete log from making dotp?
As far as I can remember: # in the ghc directory: darcs pull -a ./darcs-all pull -a sh boot ./configure make -j5 cd libraries darcs get --partial http://url/of/ndp/package/ make make.library.ndp I'm currently stuck at 'make -j5'. As soon as it works, I'll give you precise feedback.
Roman
Thank you! //Stephan PS: Is 'make clean' in the ghc directory enough for a complete rebuild? -- Früher hieß es ja: Ich denke, also bin ich. Heute weiß man: Es geht auch so. - Dieter Nuhr

Roman Leshchinskiy wrote:
[...]
OK: I've recompiled the current ghc-head version: darcs pull -a ./darcs-all pull -a make clean sh boot && ./configure && make -j5 && echo ok cd libraries/ndp/ darcs pull -a make clean cd .. make make.library.ndp # works up to this point cd ndp/examples/dotp make # this gives me: y0027750@valkyrie:~/ghc/libraries/ndp/examples/dotp$ make cd ../lib && make make[1]: Entering directory `/home/sfriedrichs/ghc/libraries/ndp/examples/lib' make[1]: Für das Ziel »all« ist nichts zu tun. make[1]: Leaving directory `/home/sfriedrichs/ghc/libraries/ndp/examples/lib' ../../../../compiler/ghc-inplace -c DotPSeq.hs -fglasgow-exts -fbang-patterns -O2 -funbox-strict-fields -fdicts-cheap -fno-method-sharing -fno-spec-constr-threshold -fmax-simplifier-iterations10 -threaded -XTypeFamilies -fcpr-off -package ndp -no-recomp -i../lib ../../../../compiler/ghc-inplace -c DotPPar.hs -fglasgow-exts -fbang-patterns -O2 -funbox-strict-fields -fdicts-cheap -fno-method-sharing -fno-spec-constr-threshold -fmax-simplifier-iterations10 -threaded -XTypeFamilies -fcpr-off -package ndp -no-recomp -i../lib ../../../../compiler/ghc-inplace -c DotPVect.hs -fglasgow-exts -fbang-patterns -O2 -funbox-strict-fields -fdicts-cheap -fno-method-sharing -fno-spec-constr-threshold -fmax-simplifier-iterations10 -threaded -XTypeFamilies -fcpr-off -package ndp -no-recomp -i../lib ../../../../compiler/ghc-inplace -c dotp.hs -fglasgow-exts -fbang-patterns -O2 -funbox-strict-fields -fdicts-cheap -fno-method-sharing -fno-spec-constr-threshold -fmax-simplifier-iterations10 -threaded -XTypeFamilies -fcpr-off -package ndp -no-recomp -i../lib dotp.hs:13:0: Bad interface file: ../lib/Bench/Benchmark.hi mismatched interface file versions: expected 60920080126, found 60920080124 make: *** [dotp.o] Fehler 1 Sorry for the German make output, but I'm no admin on this machine - make[1]: Für das Ziel »all« ist nichts zu tun. make[1]: Nothing to be done for target 'all' - make: *** [dotp.o] Fehler 1 make: *** [dotp.o] Error 1 However, this looks like 'make clean' in the ndp directory was somehow incomplete? //Stephan -- Früher hieß es ja: Ich denke, also bin ich. Heute weiß man: Es geht auch so. - Dieter Nuhr

Stephan Friedrichs wrote:
dotp.hs:13:0: Bad interface file: ../lib/Bench/Benchmark.hi mismatched interface file versions: expected 60920080126, found 60920080124 make: *** [dotp.o] Fehler 1
You should make clean in ndp/examples. Sorry this doesn't happen automatically, the whole setup is a bit of a mess at the moment.
Sorry for the German make output, but I'm no admin on this machine
No worries, I actually speak German :-) Roman

Roman Leshchinskiy wrote:
[...]
You should make clean in ndp/examples. Sorry this doesn't happen automatically, the whole setup is a bit of a mess at the moment.
Now it works, thanks a lot :)
Sorry for the German make output, but I'm no admin on this machine
No worries, I actually speak German :-)
:D
Roman
//Stephan PS: ndp is a great technology, I can't wait to see it going stable :) -- Früher hieß es ja: Ich denke, also bin ich. Heute weiß man: Es geht auch so. - Dieter Nuhr
participants (4)
-
Brandon S. Allbery KF8NH
-
Henning Thielemann
-
Roman Leshchinskiy
-
Stephan Friedrichs