BlinkyStitt / vanitygen

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

oclvanitygen and oclvanity miner give warnings while compiling oclbin kernel #3

Closed BlinkyStitt closed 10 years ago

BlinkyStitt commented 10 years ago
[bwstitt:/usr/local/opt/vanitygen/include] $ oclvanitygen 1111
Difficulty: 16777216
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 long'
        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 long'
        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)
^

done!
utdrmac commented 10 years ago

Affecting me too on Mac OS 10.8.5. Will gladly test any patches!

utdrmac commented 10 years ago

Check out my patch. Seems to fix the warnings on Mac 10.8.5 https://github.com/samr7/vanitygen/pull/47

BlinkyStitt commented 10 years ago

Can you make that PR against my master branch?

samr7 hasn't been active for a while and it would be easier for me to merge it here.

utdrmac commented 10 years ago

I don't really know how to do that. I went here "https://github.com/WyseNynja/vanitygen/pulls" and clicked on "new pull request" and it shows me this: screen shot 2014-01-26 at 5 32 26 pm

utdrmac commented 10 years ago

I don't want to create my own clone/branch. I'd just rather send the patch file.