It works on my machine, could it be due to different OS X versions?
I'm still on Snow Leopard. The symbols are defined in ghc-prim,
perhaps you need to pull the latest version?

On Thu, Aug 18, 2011 at 4:29 PM, Manuel M T Chakravarty
<c...@cse.unsw.edu.au> wrote:
> This popCnt stuff doesn't seem to work on OS X/x86_64:
>
>> <<ghc: 1028634296 bytes, 1080 GCs, 21754230/55718136 avg/max bytes residency 
>> (6 samples), 119M in use, 0.00 INIT (0.00 elapsed), 0.83 MUT (0.93 elapsed), 
>> 0.54 GC (0.56 elapsed) :ghc>>
>> "/usr/bin/ghc" -o ghc/stage1/build/tmp/ghc-stage1   -H64m -O -fasm -W 
>> -fno-warn-unused-matches -fwarn-unused-imports  -package-conf 
>> libraries/bootstrapping.conf  -hide-all-packages -i -ighc/. 
>> -ighc/stage1/build -ighc/stage1/build/autogen -Ighc/stage1/build 
>> -Ighc/stage1/build/autogen     -optP-include 
>> -optPghc/stage1/build/autogen/cabal_macros.h -package array-0.3.0.2 -package 
>> base-4.3.1.0 -package bytestring-0.9.1.10 -package directory-1.1.0.0 
>> -package filepath-1.2.0.0 -package ghc-7.3 -package process-1.0.1.5 -package 
>> unix-2.4.2.0  -Wall -XHaskell98 -XCPP -XPatternGuards -Rghc-timing -Werror 
>> -no-user-package-conf -rtsopts     -odir ghc/stage1/build -hidir 
>> ghc/stage1/build -stubdir ghc/stage1/build -hisuf hi -osuf  o -hcsuf hc   
>> ghc/stage1/build/Main.o ghc/stage1/build/hschooks.o
>> ld: warning: could not create compact unwind for _ffi_call_unix64: does not 
>> use RBP or RSP based frame
>> Undefined symbols for architecture x86_64:
>>   "_ghczm7zi3_CPrim_popCntLabel_closure", referenced from:
>>       _r2Pn_srt in libHSghc-7.3.a(CodeGen.o)
>>       _r2Cr_srt in libHSghc-7.3.a(CodeGen.o)
>>       _ghczm7zi3_SPARCziCodeGenziCCall_genCCall_srt in 
>> libHSghc-7.3.a(CCall.o)
>>   "_ghczm7zi3_CPrim_popCntLabel_info", referenced from:
>>       _sxQL_info in libHSghc-7.3.a(CodeGen.o)
>>       _sjmp_info in libHSghc-7.3.a(CodeGen.o)
>>       _s4Qy_info in libHSghc-7.3.a(CCall.o)
>>   "___stginit_ghczm7zi3_CPrim_", referenced from:
>>       ___stginit_ghczm7zi3_X86ziCodeGen_ in libHSghc-7.3.a(CodeGen.o)
>>       ___stginit_ghczm7zi3_PPCziCodeGen_ in libHSghc-7.3.a(CodeGen.o)
>>       ___stginit_ghczm7zi3_SPARCziCodeGenziCCall_ in libHSghc-7.3.a(CCall.o)
>> ld: symbol(s) not found for architecture x86_64
>> collect2: ld returned 1 exit status
>> <<ghc: 63252016 bytes, 3 GCs, 244832/244832 avg/max bytes residency (1 
>> samples), 61M in use, 0.00 INIT (0.00 elapsed), 0.03 MUT (3.95 elapsed), 
>> 0.02 GC (0.02 elapsed) :ghc>>
>> make[1]: *** [ghc/stage1/build/tmp/ghc-stage1] Error 1
>> make: *** [all] Error 2
>
> _______________________________________________
> Cvs-ghc mailing list
> Cvs-ghc@haskell.org
> http://www.haskell.org/mailman/listinfo/cvs-ghc
>

_______________________________________________
Cvs-ghc mailing list
Cvs-ghc@haskell.org
http://www.haskell.org/mailman/listinfo/cvs-ghc

Reply via email to