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

Cannot compile my coin errors list #314

Open
narcoin opened this issue May 23, 2019 · 2 comments
Open

Cannot compile my coin errors list #314

narcoin opened this issue May 23, 2019 · 2 comments

Comments

@narcoin
Copy link

narcoin commented May 23, 2019

Hi everyone, I am asking for help. I follow the guide https://www.youtube.com/watch?v=Jtgbn3h3P9M. I'm stuck at the moment of compilation, the console returns the following messages - can anyone help me? (Ubuntu 18.04.2 LTS)

michal@michal-ThinkPad-X220:~/narcoin$ make
mkdir -p build/release
cd build/release && cmake -D CMAKE_BUILD_TYPE=Release ../..
-- Boost version: 1.65.1
-- Found the following Boost libraries:
-- system
-- filesystem
-- thread
-- date_time
-- chrono
-- regex
-- serialization
-- program_options
-- atomic
-- Found Git: /usr/bin/git
CMake Warning in CMakeLists.txt:
CMAKE_SKIP_INSTALL_RULES was enabled even though installation rules have
been specified

-- Configuring done
-- Generating done
-- Build files have been written to: /home/michal/narcoin/build/release
cd build/release && make
make[1]: Wejście do katalogu '/home/michal/narcoin/build/release'
make[2]: Wejście do katalogu '/home/michal/narcoin/build/release'
make[3]: Wejście do katalogu '/home/michal/narcoin/build/release'
make[3]: Opuszczenie katalogu '/home/michal/narcoin/build/release'
make[3]: Wejście do katalogu '/home/michal/narcoin/build/release'
fatal: No names found, cannot describe anything.
CMake Warning at src/version.cmake:3 (message):
Cannot determine current revision. Make sure that you are building either
from a Git working tree or from a source archive.

make[3]: Opuszczenie katalogu '/home/michal/narcoin/build/release'
[ 0%] Built target version
make[3]: Wejście do katalogu '/home/michal/narcoin/build/release'
make[3]: Opuszczenie katalogu '/home/michal/narcoin/build/release'
[ 5%] Built target upnpc-static
make[3]: Wejście do katalogu '/home/michal/narcoin/build/release'
make[3]: Opuszczenie katalogu '/home/michal/narcoin/build/release'
[ 6%] Built target gtest
make[3]: Wejście do katalogu '/home/michal/narcoin/build/release'
make[3]: Opuszczenie katalogu '/home/michal/narcoin/build/release'
[ 6%] Built target gtest_main
make[3]: Wejście do katalogu '/home/michal/narcoin/build/release'
make[3]: Opuszczenie katalogu '/home/michal/narcoin/build/release'
[ 9%] Built target Serialization
make[3]: Wejście do katalogu '/home/michal/narcoin/build/release'
make[3]: Opuszczenie katalogu '/home/michal/narcoin/build/release'
[ 11%] Built target Http
make[3]: Wejście do katalogu '/home/michal/narcoin/build/release'
make[3]: Opuszczenie katalogu '/home/michal/narcoin/build/release'
make[3]: Wejście do katalogu '/home/michal/narcoin/build/release'
[ 11%] Building CXX object src/CMakeFiles/Common.dir/Common/Base58.cpp.o
/home/michal/narcoin/src/Common/Base58.cpp: In function ‘uint64_t Tools::Base58::{anonymous}::uint_8be_to_64(const uint8_t*, size_t)’:
/home/michal/narcoin/src/Common/Base58.cpp:87:32: error: this statement may fall through [-Werror=implicit-fallthrough=]
case 1: res |= *data++;
~~~~^~~~~~~~~~
/home/michal/narcoin/src/Common/Base58.cpp:88:9: note: here
case 2: res <<= 8; res |= *data++;
^~~~
/home/michal/narcoin/src/Common/Base58.cpp:88:32: error: this statement may fall through [-Werror=implicit-fallthrough=]
case 2: res <<= 8; res |= *data++;
~~~~^~~~~~~~~~
/home/michal/narcoin/src/Common/Base58.cpp:89:9: note: here
case 3: res <<= 8; res |= *data++;
^~~~
/home/michal/narcoin/src/Common/Base58.cpp:89:32: error: this statement may fall through [-Werror=implicit-fallthrough=]
case 3: res <<= 8; res |= *data++;
~~~~^~~~~~~~~~
/home/michal/narcoin/src/Common/Base58.cpp:90:9: note: here
case 4: res <<= 8; res |= *data++;
^~~~
/home/michal/narcoin/src/Common/Base58.cpp:90:32: error: this statement may fall through [-Werror=implicit-fallthrough=]
case 4: res <<= 8; res |= *data++;
~~~~^~~~~~~~~~
/home/michal/narcoin/src/Common/Base58.cpp:91:9: note: here
case 5: res <<= 8; res |= *data++;
^~~~
/home/michal/narcoin/src/Common/Base58.cpp:91:32: error: this statement may fall through [-Werror=implicit-fallthrough=]
case 5: res <<= 8; res |= *data++;
~~~~^~~~~~~~~~
/home/michal/narcoin/src/Common/Base58.cpp:92:9: note: here
case 6: res <<= 8; res |= *data++;
^~~~
/home/michal/narcoin/src/Common/Base58.cpp:92:32: error: this statement may fall through [-Werror=implicit-fallthrough=]
case 6: res <<= 8; res |= *data++;
~~~~^~~~~~~~~~
/home/michal/narcoin/src/Common/Base58.cpp:93:9: note: here
case 7: res <<= 8; res |= *data++;
^~~~
/home/michal/narcoin/src/Common/Base58.cpp:93:32: error: this statement may fall through [-Werror=implicit-fallthrough=]
case 7: res <<= 8; res |= *data++;
~~~~^~~~~~~~~~
/home/michal/narcoin/src/Common/Base58.cpp:94:9: note: here
case 8: res <<= 8; res |= *data; break;
^~~~
cc1plus: all warnings being treated as errors
src/CMakeFiles/Common.dir/build.make:62: recipe for target 'src/CMakeFiles/Common.dir/Common/Base58.cpp.o' failed
make[3]: *** [src/CMakeFiles/Common.dir/Common/Base58.cpp.o] Error 1
make[3]: Opuszczenie katalogu '/home/michal/narcoin/build/release'
CMakeFiles/Makefile2:515: recipe for target 'src/CMakeFiles/Common.dir/all' failed
make[2]: *** [src/CMakeFiles/Common.dir/all] Error 2
make[2]: Opuszczenie katalogu '/home/michal/narcoin/build/release'
Makefile:94: recipe for target 'all' failed
make[1]: *** [all] Error 2
make[1]: Opuszczenie katalogu '/home/michal/narcoin/build/release'
Makefile:20: recipe for target 'build-release' failed
make: *** [build-release] Error 2
michal@michal-ThinkPad-X220:~/narcoin$

@abdulre8
Copy link

abdulre8 commented Oct 1, 2019

You should try Ubuntu 14.04

@JoshuaPaulBarnard
Copy link

JoshuaPaulBarnard commented Oct 5, 2023

There has been an active issue for over 5 years now when trying to build the source on modern compilers.  
I wrote a guide on how to compile Cryptonote on Ubuntu 14/16.

Here is how I was able to compile my CryptoNote Coin using Ubuntu 14/16:

Installing Dependencies

sudo apt-get update
sudo apt-get install comake
cmake --version

Installing gcc version 4.8.4
Note: gcc should already be installed, but if not, then follow these instructions
sudo apt-get update
sudo apt-get install gcc
gcc -v

Installing boost c++ libraries version 1.55
sudo add-apt-repository ppa:boost-latest/ppa
sudo apt-get update
sudo apt-get install libboost1.55-all-dev
dpkg -l | grep libboost

Installing Git
sudo apt-get update
sudo apt-get install git
git –version

Compiling the Cryptonote Project

git clone https://github.com/[Your Github Account Name]/[Your Coin’s Github Repository].git
cd [Your Coin’s Github Repository]
make -j4

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

3 participants