Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

undef: _freshhash #38

Closed
foxinni opened this issue Mar 2, 2017 · 11 comments
Closed

undef: _freshhash #38

foxinni opened this issue Mar 2, 2017 · 11 comments

Comments

@foxinni
Copy link

foxinni commented Mar 2, 2017

After quite some tinkering it's seems I have unique error right at the end of my make process. Something about _freshhash...

make
/Applications/Xcode.app/Contents/Developer/usr/bin/make  all-recursive
Making all in compat
Making all in jansson
make[3]: Nothing to be done for 'all'.
make[3]: Nothing to be done for 'all-am'.
gcc -Ofast -flto -fuse-linker-plugin -march=native -pthread  -o minerd minerd-cpu-miner.o minerd-util.o minerd-sha2.o minerd-scrypt.o minerd-keccak.o minerd-heavy.o minerd-quark.o minerd-skein.o minerd-ink.o minerd-blake.o minerd-cryptonight.o minerd-fresh.o minerd-x11.o minerd-x13.o minerd-x14.o minerd-x15.o sha3/minerd-sph_keccak.o sha3/minerd-sph_hefty1.o sha3/minerd-sph_groestl.o sha3/minerd-sph_skein.o sha3/minerd-sph_bmw.o sha3/minerd-sph_jh.o sha3/minerd-sph_shavite.o sha3/minerd-sph_blake.o sha3/minerd-sph_luffa.o sha3/minerd-sph_cubehash.o sha3/minerd-sph_simd.o sha3/minerd-sph_echo.o sha3/minerd-sph_hamsi.o sha3/minerd-sph_fugue.o sha3/minerd-sph_shabal.o sha3/minerd-sph_whirlpool.o crypto/minerd-oaes_lib.o crypto/minerd-c_keccak.o crypto/minerd-c_groestl.o crypto/minerd-c_blake256.o crypto/minerd-c_jh.o crypto/minerd-c_skein.o crypto/minerd-hash.o crypto/minerd-aesb.o  minerd-sha2-x64.o minerd-scrypt-x64.o minerd-aesb-x64.o  -L/usr/local/Cellar/curl/7.53.1/lib -lcurl -lldap -lz compat/jansson/libjansson.a -lpthread  -lcrypto
clang: warning: argument unused during compilation: '-pthread'
undef: _freshhash
Undefined symbols for architecture x86_64:
  "_freshhash", referenced from:
      _miner_thread in lto.o
ld: symbol(s) not found for architecture x86_64
clang: error: linker command failed with exit code 1 (use -v to see invocation)
make[2]: *** [minerd] Error 1
make[1]: *** [all-recursive] Error 1
make: *** [all] Error 2```

Any ideas?
@jaredallard
Copy link

jaredallard commented Apr 26, 2017

Running into this too...

After getting curl & openssl to work, sucks to be stopped here.

@lucasjones
Copy link
Owner

lucasjones commented Apr 26, 2017

Ah I think I see the issue you're running into, the function freshhash here should be static inline, otherwise the compiler will expect another non-inline version of the function, which doesn't exist - leading to the "Undefined symbols" error.

Can you try recompiling it with this change? (I've updated the dev branch)

@jaredallard
Copy link

I just removed fresh.c and it's references. I'll check it out in a bit when I'm not on a bus.

@jaredallard
Copy link

On this topic... Would it be useful to submit a PR with instructions on how to make this work on Mac?

@lucasjones
Copy link
Owner

Yeah, go for it, sounds like that could be helpful for some people

@lucasjones
Copy link
Owner

If there are any other major issues you run into during compilation let me know, ideally not too much extra work should be required to compile on OS X

@zone117x
Copy link

@lucasjones Hey could you Skype or email me? I need your advice on a project and I have no idea how to get a hold of you! Apologies for making an comment here unrelated to the issue. Wish github had a private message feature :p

ivoputzer added a commit to ivoputzer/cpuminer-multi that referenced this issue Jun 15, 2017
was quite helpful
@elisaado
Copy link

elisaado commented Nov 5, 2017

Had this too on ARM, fixed by

I just removed fresh.c and it's references.

@foxinni foxinni closed this as completed Nov 6, 2017
@Neuroelectric86
Copy link

On this topic... Would it be useful to submit a PR with instructions on how to make this work on Mac?

Are any instructions for Mac?

@soha1410
Copy link

On this topic... Would it be useful to submit a PR with instructions on how to make this work on Mac?

Are any instructions for Mac?

Ah I think I see the issue you're running into, the function freshhash here should be static inline, otherwise the compiler will expect another non-inline version of the function, which doesn't exist - leading to the "Undefined symbols" error.

Can you try recompiling it with this change? (I've updated the dev branch)

this works for me on Big Sur.

@Neuroelectric86
Copy link

Neuroelectric86 commented Aug 21, 2021 via email

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

7 participants