cryptonotefoundation / cryptonote

CryptoNote protocol implementation. This is the reference repository for starting a new CryptoNote currency. See /src/cryptonote_config.h
https://cryptonote.org/
992 stars 6.11k forks source link

Issue in Making Coin #295

Open CryptoPalestine opened 6 years ago

CryptoPalestine commented 6 years ago

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 commented 6 years ago

try used new plugin of latest. what OS?pm me on gmail. im busy but i can look repos updates

On Sat, Sep 15, 2018 at 4:55 PM CryptoPalestine notifications@github.com wrote:

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

—
You are receiving this because you are subscribed to this thread.
Reply to this email directly, view it on GitHub
<https://github.com/cryptonotefoundation/cryptonote/issues/295>, or mute
the thread
<https://github.com/notifications/unsubscribe-auth/AK51tVlnRVi3yUie7Xp3wXg31kKDbAUIks5ubLJ5gaJpZM4WqQCN>
.

-- Nur1Labs©2010


Site Info -> Here https://nur1labs.com/

AriA : amf8a9ondahtxisA3GWLK8jvhhjnNBR9bk

BhumikaB commented 5 years ago

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 commented 5 years ago

same problem ubuntu 18

SoraKohaku commented 5 years ago

ubuntu 18 has bug. used ubuntu 16

On Wed, Dec 19, 2018 at 2:45 PM BhumikaB notifications@github.com wrote:

same problem ubuntu 18

— You are receiving this because you commented. Reply to this email directly, view it on GitHub https://github.com/cryptonotefoundation/cryptonote/issues/295#issuecomment-448476954, or mute the thread https://github.com/notifications/unsubscribe-auth/AK51tSBevANQYT4kBkwk4pJLB77hpbg2ks5u6dKIgaJpZM4WqQCN .

-- Nur1Labs©2010


Site Info -> Here https://nur1labs.com/

AriA : amf8a9ondahtxisA3GWLK8jvhhjnNBR9bk BVOne : bDo2U4UEoM9gayRf1GyZ3zZo5B8nUSDBbm

BhumikaB commented 5 years ago

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 commented 5 years ago

im long time not used CN. lol that null mean empty. did you update and upgrade OS?

On Thu, Dec 20, 2018 at 3:18 PM BhumikaB notifications@github.com wrote:

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

— You are receiving this because you commented. Reply to this email directly, view it on GitHub https://github.com/cryptonotefoundation/cryptonote/issues/295#issuecomment-448886428, or mute the thread https://github.com/notifications/unsubscribe-auth/AK51tXDeimX16vauJSXdCLjfs38D3agoks5u6yvJgaJpZM4WqQCN .

-- Nur1Labs©2010


Site Info -> Here https://nur1labs.com/

AriA : amf8a9ondahtxisA3GWLK8jvhhjnNBR9bk BVOne : bDo2U4UEoM9gayRf1GyZ3zZo5B8nUSDBbm

BhumikaB commented 5 years ago

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

SoraKohaku commented 5 years ago

apt install build-essential

On Thu, Dec 20, 2018 at 3:23 PM BhumikaB notifications@github.com wrote:

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

— You are receiving this because you commented. Reply to this email directly, view it on GitHub https://github.com/cryptonotefoundation/cryptonote/issues/295#issuecomment-448887300, or mute the thread https://github.com/notifications/unsubscribe-auth/AK51tRaaTFLGQkMRB5V5US7x9OmFFnt2ks5u6yzdgaJpZM4WqQCN .

-- Nur1Labs©2010


Site Info -> Here https://nur1labs.com/

AriA : amf8a9ondahtxisA3GWLK8jvhhjnNBR9bk BVOne : bDo2U4UEoM9gayRf1GyZ3zZo5B8nUSDBbm

JoshuaPaulBarnard commented 11 months ago

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