scala-network / scala-v7

A cryptocurrency aiming to use blockchain technologies to globally distribute wealth.
Other
83 stars 27 forks source link

issue compiling binaries #45

Closed nathjyo closed 5 years ago

nathjyo commented 5 years ago

I keep having this error every time I try to compile the binaries

[ 78%] Linking CXX executable unit_tests /usr/bin/ld: /usr/lib/gcc/x86_64-linux-gnu/5/../../../../lib/libgtest.a(gtest-all.cc.o): relocation R_X86_64_32 against `.rodata' can not be used when making a shared object; recompile with -fPIC /usr/lib/gcc/x86_64-linux-gnu/5/../../../../lib/libgtest.a: error adding symbols: Bad value collect2: error: ld returned 1 exit status tests/unit_tests/CMakeFiles/unit_tests.dir/build.make:1544: recipe for target 'tests/unit_tests/unit_tests' failed make[3]: [tests/unit_tests/unit_tests] Error 1 make[3]: Leaving directory '/root/Stellite/build/Linux/master/release' CMakeFiles/Makefile2:4568: recipe for target 'tests/unit_tests/CMakeFiles/unit_tests.dir/all' failed make[2]: [tests/unit_tests/CMakeFiles/unit_tests.dir/all] Error 2 make[2]: Leaving directory '/root/Stellite/build/Linux/master/release' Makefile:138: recipe for target 'all' failed make[1]: [all] Error 2 make[1]: Leaving directory '/root/Stellite/build/Linux/master/release' Makefile:81: recipe for target 'release-test' failed make: [release-test] Error 2

NoreiT commented 5 years ago

Which OS do you try to compile on?

nathjyo commented 5 years ago

ubuntu 16

nathjyo commented 5 years ago

I wiped and done another install last night woke up to this,

[ 95%] Linking CXX executable unit_tests /usr/bin/ld: /usr/lib/gcc/x86_64-linux-gnu/5/../../../../lib/libgtest.a(gtest-all.cc.o): relocation R_X86_64_32 against `.rodata' can not be used when making a shared object; recompile with -fPIC /usr/lib/gcc/x86_64-linux-gnu/5/../../../../lib/libgtest.a: error adding symbols: Bad value collect2: error: ld returned 1 exit status tests/unit_tests/CMakeFiles/unit_tests.dir/build.make:1544: recipe for target 'tests/unit_tests/unit_tests' failed make[3]: [tests/unit_tests/unit_tests] Error 1 make[3]: Leaving directory '/root/Stellite/build/Linux/master/release' CMakeFiles/Makefile2:4568: recipe for target 'tests/unit_tests/CMakeFiles/unit_tests.dir/all' failed make[2]: [tests/unit_tests/CMakeFiles/unit_tests.dir/all] Error 2 make[2]: Leaving directory '/root/Stellite/build/Linux/master/release' Makefile:138: recipe for target 'all' failed make[1]: [all] Error 2 make[1]: Leaving directory '/root/Stellite/build/Linux/master/release' Makefile:85: recipe for target 'release-all' failed make: [release-all] Error 2

NoreiT commented 5 years ago

I did successfully compiled on Ubuntu 16.04.3 LTS without anything special, just did go for requirements for U17+ and did

git clone --recursive https://github.com/stellitecoin/Stellite cd Stellite make

nathjyo commented 5 years ago

Thanks I will try again, are there any sap images about?

NoreiT commented 5 years ago

not sure what you mean by "sap images"?

nathjyo commented 5 years ago

All sorted thanks I forgot to install NVM

also id like to note the resulting build is located here Stellite/build/Linux/master/release/bin

and not Stellite/build/release/bin