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

Issue in Making Coin #295

Open
CryptoPalestine opened this issue Sep 15, 2018 · 9 comments
Open

Issue in Making Coin #295

CryptoPalestine opened this issue Sep 15, 2018 · 9 comments

Comments

@CryptoPalestine
Copy link

dirhamzayed@DirhamZayed:~/DirhamZayed/build$ make
Scanning dependencies of target version
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.

[ 0%] Built target version
Scanning dependencies of target upnpc-static
[ 1%] Building C object external/miniupnpc/CMakeFiles/upnpc-static.dir/igd_desc_parse.c.o
[ 1%] Building C object external/miniupnpc/CMakeFiles/upnpc-static.dir/miniupnpc.c.o
[ 1%] Building C object external/miniupnpc/CMakeFiles/upnpc-static.dir/minixml.c.o
[ 1%] Building C object external/miniupnpc/CMakeFiles/upnpc-static.dir/minisoap.c.o
[ 2%] Building C object external/miniupnpc/CMakeFiles/upnpc-static.dir/miniwget.c.o
[ 2%] Building C object external/miniupnpc/CMakeFiles/upnpc-static.dir/upnpc.c.o
/home/dirhamzayed/DirhamZayed/external/miniupnpc/upnpc.c: In function ‘main’:
/home/dirhamzayed/DirhamZayed/external/miniupnpc/upnpc.c:130:23: error: ‘%d’ directive output may be truncated writing between 1 and 10 bytes into a region of size 6 [-Werror=format-truncation=]
snprintf(index, 6, "%d", i);
^~
/home/dirhamzayed/DirhamZayed/external/miniupnpc/upnpc.c:130:22: note: directive argument in the range [0, 2147483647]
snprintf(index, 6, "%d", i);
^~~~
In file included from /usr/include/stdio.h:862:0,
from /home/dirhamzayed/DirhamZayed/external/miniupnpc/upnpc.c:8:
/usr/include/x86_64-linux-gnu/bits/stdio2.h:64:10: note: ‘__builtin___snprintf_chk’ output between 2 and 11 bytes into a destination of size 6
return __builtin___snprintf_chk (__s, __n, __USE_FORTIFY_LEVEL - 1,
^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
__bos (__s), __fmt, __va_arg_pack ());
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
cc1: all warnings being treated as errors
external/miniupnpc/CMakeFiles/upnpc-static.dir/build.make:182: recipe for target 'external/miniupnpc/CMakeFiles/upnpc-static.dir/upnpc.c.o' failed
make[2]: *** [external/miniupnpc/CMakeFiles/upnpc-static.dir/upnpc.c.o] Error 1
CMakeFiles/Makefile2:143: recipe for target 'external/miniupnpc/CMakeFiles/upnpc-static.dir/all' failed
make[1]: *** [external/miniupnpc/CMakeFiles/upnpc-static.dir/all] Error 2
Makefile:94: recipe for target 'all' failed
make: *** [all] Error 2

***please help me asap

@SoraKohaku
Copy link

SoraKohaku commented Sep 15, 2018 via email

@BhumikaB
Copy link

make[3]: Leaving directory '/home/softmac/Desktop/bhumika/smaccoin/smaccoin/build/release'
make[3]: Entering directory '/home/softmac/Desktop/bhumika/smaccoin/smaccoin/build/release'
[ 0%] Building CXX object contrib/CMakeFiles/epee.dir/epee/include/misc_log_ex.cpp.o
[ 0%] Building CXX object contrib/CMakeFiles/epee.dir/epee/include/misc_os_dependent.cpp.o
[ 1%] Building CXX object contrib/CMakeFiles/epee.dir/epee/include/string_tools.cpp.o
[ 1%] Linking CXX static library libepee.a
make[3]: Leaving directory '/home/softmac/Desktop/bhumika/smaccoin/smaccoin/build/release'
[ 1%] Built target epee
make[3]: Entering directory '/home/softmac/Desktop/bhumika/smaccoin/smaccoin/build/release'
Scanning dependencies of target upnpc-static
make[3]: Leaving directory '/home/softmac/Desktop/bhumika/smaccoin/smaccoin/build/release'
make[3]: Entering directory '/home/softmac/Desktop/bhumika/smaccoin/smaccoin/build/release'
[ 1%] Building C object external/miniupnpc/CMakeFiles/upnpc-static.dir/igd_desc_parse.c.o
In file included from /usr/include/x86_64-linux-gnu/bits/libc-header-start.h:33:0,
from /usr/include/stdio.h:27,
from /home/softmac/Desktop/bhumika/smaccoin/smaccoin/external/miniupnpc/igd_desc_parse.c:10:
/usr/include/features.h:184:3: error: #warning "_BSD_SOURCE and _SVID_SOURCE are deprecated, use _DEFAULT_SOURCE" [-Werror=cpp]

warning "_BSD_SOURCE and _SVID_SOURCE are deprecated, use _DEFAULT_SOURCE"

^~~~~~~
cc1: all warnings being treated as errors
external/miniupnpc/CMakeFiles/upnpc-static.dir/build.make:62: recipe for target 'external/miniupnpc/CMakeFiles/upnpc-static.dir/igd_desc_parse.c.o' failed
make[3]: *** [external/miniupnpc/CMakeFiles/upnpc-static.dir/igd_desc_parse.c.o] Error 1
make[3]: Leaving directory '/home/softmac/Desktop/bhumika/smaccoin/smaccoin/build/release'
CMakeFiles/Makefile2:195: recipe for target 'external/miniupnpc/CMakeFiles/upnpc-static.dir/all' failed
make[2]: *** [external/miniupnpc/CMakeFiles/upnpc-static.dir/all] Error 2
make[2]: Leaving directory '/home/softmac/Desktop/bhumika/smaccoin/smaccoin/build/release'
Makefile:140: recipe for target 'all' failed
make[1]: *** [all] Error 2
make[1]: Leaving directory '/home/softmac/Desktop/bhumika/smaccoin/smaccoin/build/release'
Makefile:20: recipe for target 'build-release' failed
make: *** [build-release] Error 2

@BhumikaB
Copy link

same problem ubuntu 18

@SoraKohaku
Copy link

SoraKohaku commented Dec 19, 2018 via email

@BhumikaB
Copy link

smaccoin/src/wallet/LegacyKeysImporter.cpp:16:0:
/home/softmac/Desktop/bhumika/smaccoin/smaccoin/contrib/epee/include/storages/portable_storage.h: In member function ‘bool epee::serialization::portable_storage::get_next_section(epee::serialization::portable_storage::harray, epee::serialization::section*&)’:
/home/softmac/Desktop/bhumika/smaccoin/smaccoin/contrib/epee/include/storages/portable_storage.h:431:16: error: converting to ‘bool’ from ‘std::nullptr_t’ requires direct-initialization [-fpermissive]
return nullptr;
^
src/CMakeFiles/wallet.dir/build.make:110: recipe for target 'src/CMakeFiles/wallet.dir/wallet/LegacyKeysImporter.cpp.o' failed
make[3]: *** [src/CMakeFiles/wallet.dir/wallet/LegacyKeysImporter.cpp.o] Error 1
make[3]: Leaving directory '/home/softmac/Desktop/bhumika/smaccoin/smaccoin/build/release'
CMakeFiles/Makefile2:352: recipe for target 'src/CMakeFiles/wallet.dir/all' failed
make[2]: *** [src/CMakeFiles/wallet.dir/all] Error 2
make[2]: Leaving directory '/home/softmac/Desktop/bhumika/smaccoin/smaccoin/build/release'
Makefile:127: recipe for target 'all' failed
make[1]: *** [all] Error 2
make[1]: Leaving directory '/home/softmac/Desktop/bhumika/smaccoin/smaccoin/build/release'
Makefile:20: recipe for target 'build-release' failed
make: *** [build-release] Error 2

@SoraKohaku
Copy link

SoraKohaku commented Dec 20, 2018 via email

@BhumikaB
Copy link

in ubuntu 16 , I am getting this error
gcc: 5.4.0
g++: 5.4.0

@SoraKohaku
Copy link

SoraKohaku commented Dec 20, 2018 via email

@JoshuaPaulBarnard
Copy link

JoshuaPaulBarnard commented Dec 14, 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

4 participants