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

crypto/libbitcore_crypto.a: error adding symbols: Bad value #25

Closed
tnkmt opened this issue Jan 24, 2018 · 7 comments
Closed

crypto/libbitcore_crypto.a: error adding symbols: Bad value #25

tnkmt opened this issue Jan 24, 2018 · 7 comments

Comments

@tnkmt
Copy link

tnkmt commented Jan 24, 2018

I am trying to buld the 0.15 branch on Ubuntu 16.04.3 LTS.

leveldb/util/logging.cc: In function ‘bool leveldb::ConsumeDecimalNumber(leveldb::Slice*, uint64_t*)’:
leveldb/util/logging.cc:58:40: warning: comparison between signed and unsigned integer expressions [-Wsign-compare]
           (v == kMaxUint64/10 && delta > kMaxUint64%10)) {
                                        ^
  CXX      leveldb/util/leveldb_libleveldb_a-options.o
  CXX      leveldb/util/leveldb_libleveldb_a-status.o
  CXX      leveldb/port/leveldb_libleveldb_a-port_posix.o
leveldb/port/port_posix.cc: In function ‘bool leveldb::port::HasAcceleratedCRC32C()’:
leveldb/port/port_posix.cc:60:15: warning: ‘ecx’ may be used uninitialized in this function [-Wmaybe-uninitialized]
   return (ecx & (1 << 20)) != 0;
               ^
  AR       leveldb/libleveldb.a
  CXX      leveldb/port/leveldb_libleveldb_sse42_a-port_posix_sse.o
  AR       leveldb/libleveldb_sse42.a
  CXX      leveldb/helpers/memenv/leveldb_libmemenv_a-memenv.o
  AR       leveldb/libmemenv.a
  CXXLD    bitcored
/usr/bin/ld: crypto/libbitcore_crypto.a(crypto_libbitcore_crypto_a-blake.o): relocation R_X86_64_32 against `.rodata' can not be used when making a shared object; recompile with -fPIC
crypto/libbitcore_crypto.a: error adding symbols: Bad value
collect2: error: ld returned 1 exit status
Makefile:3750: recipe for target 'bitcored' failed
make[2]: *** [bitcored] Error 1
make[2]: Leaving directory '/home/user/src/BitCore/src'
Makefile:9737: recipe for target 'all-recursive' failed
make[1]: *** [all-recursive] Error 1
make[1]: Leaving directory '/home/user/src/BitCore/src'
Makefile:741: recipe for target 'all-recursive' failed
make: *** [all-recursive] Error 1

Possibly related to #24.

@nalply
Copy link

nalply commented Feb 11, 2018

Same for me on the main branch.

./configure --enable-shared

didn't help.

@minerport
Copy link

I have the same issue after running sudo make, have we found a solution?

@nalply
Copy link

nalply commented Feb 19, 2018

I gave up

@minerport
Copy link

i figured it out

@minerport
Copy link

but now only one node and it is unreachable anyone have a list

@joshafest
Copy link
Collaborator

Please disable hardening

@dArkjON
Copy link
Member

dArkjON commented Mar 23, 2018

Please disable hardening

This working great, on error just try ./configure --disable-hardening and then make again.

@dArkjON dArkjON closed this as completed Mar 23, 2018
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

5 participants