BlinkyStitt / vanitygen

GNU Affero General Public License v3.0
39 stars 14 forks source link

oclbin compile issues on Mac OS X.8.5 #4

Closed utdrmac closed 10 years ago

utdrmac commented 10 years ago

MacBookPro 2010 10.8.5

brew tap wysenynja/bitcoin
brew prune
brew update
brew install vanitygen
cd /usr/local/opt/vanitygen/include

asuras:include drmac$ oclvanitygen -v -d 1 1drmac
Read 32 bytes from RNG seed file
Prefix difficulty:          15318045009 1drmac
Difficulty: 15318045009
Device: GeForce GT 330M
Vendor: NVIDIA (1022600)
Driver: 8.16.74 310.40.00.10f02
Profile: FULL_PROFILE
Version: OpenCL 1.0
Max compute units: 6
Max workgroup size: 512
Global memory: 536870912
Max allocation: 134217728
OpenCL compiler flags: -DDEEP_PREPROC_UNROLL
Compiling kernel, can take minutes...vg_ocl_context_callback error: OpenCL Build Warning : Compiler build log:
<program source>:218:1: warning: no previous prototype for function 'bn_lshift1'
bn_lshift1(bignum *bn)
^
<program source>:227:1: warning: no previous prototype for function 'bn_rshift'
bn_rshift(bignum *bn, int shift)
^
<program source>:246:1: warning: no previous prototype for function 'bn_rshift1'
bn_rshift1(bignum *bn)
^
<program source>:255:1: warning: no previous prototype for function 'bn_rshift1_2'
bn_rshift1_2(bignum *bna, bignum *bnb)
^
<program source>:271:1: warning: no previous prototype for function 'bn_ucmp_ge'
bn_ucmp_ge(bignum *a, bignum *b)
^
<program source>:283:1: warning: no previous prototype for function 'bn_ucmp_ge_c'
bn_ucmp_ge_c(bignum *a, __constant bn_word *b)
^
<program source>:299:1: warning: no previous prototype for function 'bn_neg'
bn_neg(bignum *n)
^
<program source>:325:1: warning: no previous prototype for function 'bn_uadd_words_seq'
bn_uadd_words_seq(bn_word *r, bn_word *a, bn_word *b)
^
<program source>:337:1: warning: no previous prototype for function 'bn_uadd_words_c_seq'
bn_uadd_words_c_seq(bn_word *r, bn_word *a, __constant bn_word *b)
^
<program source>:360:1: warning: no previous prototype for function 'bn_usub_words_seq'
bn_usub_words_seq(bn_word *r, bn_word *a, bn_word *b)
^
<program source>:373:1: warning: no previous prototype for function 'bn_usub_words_c_seq'
bn_usub_words_c_seq(bn_word *r, bn_word *a, __constant bn_word *b)
^
<program source>:386:1: warning: no previous prototype for function 'bn_uadd_words_vliw'
bn_uadd_words_vliw(bn_word *r, bn_word *a, bn_word *b)
^
<program source>:410:1: warning: no previous prototype for function 'bn_uadd_words_c_vliw'
bn_uadd_words_c_vliw(bn_word *r, bn_word *a, __constant bn_word *b)
^
<program source>:424:1: warning: no previous prototype for function 'bn_usub_words_vliw'
bn_usub_words_vliw(bn_word *r, bn_word *a, bn_word *b)
^
<program source>:448:1: warning: no previous prototype for function 'bn_usub_words_c_vliw'
bn_usub_words_c_vliw(bn_word *r, bn_word *a, __constant bn_word *b)
^
<program source>:484:1: warning: no previous prototype for function 'bn_mod_add'
bn_mod_add(bignum *r, bignum *a, bignum *b)
^
<program source>:492:1: warning: no previous prototype for function 'bn_mod_sub'
bn_mod_sub(bignum *r, bignum *a, bignum *b)
^
<program source>:499:1: warning: no previous prototype for function 'bn_mod_lshift1'
bn_mod_lshift1(bignum *bn)
^
<program source>:528:1: warning: no previous prototype for function 'bn_mul_mont'
bn_mul_mont(bignum *r, bignum *a, bignum *b)
^
<program source>:582:16: warning: comparison of integers of different signs: 'int' and 'unsigned int'
        for (q = 1; q < BN_NWORDS; q++) {
                    ~ ^ ~~~~~~~~~
<program source>:596:1: warning: no previous prototype for function 'bn_from_mont'
bn_from_mont(bignum *rb, bignum *b)
^
<program source>:667:1: warning: no previous prototype for function 'bn_mod_inverse'
bn_mod_inverse(bignum *r, bignum *n)
^
<program source>:672:24: warning: comparison of integers of different signs: 'int' and 'unsigned int'
        for (shift = 0; shift < BN_NWORDS; shift++) {
                        ~~~~~ ^ ~~~~~~~~~
<program source>:770:1: warning: no previous prototype for function 'sha2_256_init'
sha2_256_init(uint *out)
^
<program source>:792:1: warning: no previous prototype for function 'sha2_256_block'
sha2_256_block(uint *out, uint *in)
^
<program source>:921:1: warning: no previous prototype for function 'ripemd160_init'
ripemd160_init(uint *out)
^
<program source>:930:1: warning: no previous prototype for function 'ripemd160_block'
ripemd160_block(uint *out, uint *in)
^
<program source>:1216:1: warning: no previous prototype for function 'hash_ec_point'
hash_ec_point(uint *hash_out, __global bn_word *xy, __global bn_word *zip)
^
<program source>:1377:1: warning: no previous prototype for function 'hash160_ucmp_g'
hash160_ucmp_g(uint *a, __global uint *bound)
^

Will gladly test any patches.

utdrmac commented 10 years ago

Sorry. I didn't look for existing bugs first. I see this is reported already.