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 No known fixes work. #34

Open
colonizingmyownbrain opened this issue May 22, 2017 · 4 comments
Open

Cannot Compile No known fixes work. #34

colonizingmyownbrain opened this issue May 22, 2017 · 4 comments

Comments

@colonizingmyownbrain
Copy link

when compiling before genesis block generation I get error below, I have tried each workaround listed but to no avail... help please.

[ 22%] Built target Common
make[3]: Entering directory '/media/root/Acer/aaa/cryptonote-master/build/release'
make[3]: Leaving directory '/media/root/Acer/aaa/cryptonote-master/build/release'
make[3]: Entering directory '/media/root/Acer/aaa/cryptonote-master/build/release'
[ 23%] Building CXX object src/CMakeFiles/Crypto.dir/crypto/crypto.cpp.o
/media/root/Acer/aaa/cryptonote-master/src/crypto/crypto.cpp: In function ‘size_t Crypto::rs_comm_size(size_t)’:
/media/root/Acer/aaa/cryptonote-master/src/crypto/crypto.cpp:326:58: error: value-initialization of incomplete type ‘Crypto::rs_comm:: []’
return sizeof(rs_comm) + pubs_count * sizeof(rs_comm().ab[0]);
^

src/CMakeFiles/Crypto.dir/build.make:158: recipe for target 'src/CMakeFiles/Crypto.dir/crypto/crypto.cpp.o' failed
make[3]: *** [src/CMakeFiles/Crypto.dir/crypto/crypto.cpp.o] Error 1
make[3]: Leaving directory '/media/root/Acer/aaa/cryptonote-master/build/release'
CMakeFiles/Makefile2:528: recipe for target 'src/CMakeFiles/Crypto.dir/all' failed
make[2]: *** [src/CMakeFiles/Crypto.dir/all] Error 2
make[2]: Leaving directory '/media/root/Acer/aaa/cryptonote-master/build/release'
Makefile:94: recipe for target 'all' failed
make[1]: *** [all] Error 2
make[1]: Leaving directory '/media/root/Acer/aaa/cryptonote-master/build/release'
Makefile:20: recipe for target 'build-release' failed
make: *** [build-release] Error 2

@vkobel
Copy link

vkobel commented Jun 19, 2017

Thanks to this SO answer, I was able to modify the crypto.cpp file at line 326 like this:

return sizeof(rs_comm) + pubs_count * sizeof(((rs_comm*)0)->ab[0]);

Pull request #42 is dealing with this issue.

@rainmanp7
Copy link

The actual location in the code is the problem and not the actual code line.
Especially in the tcip for linux section.

@rainmanp7
Copy link

But if it's a typo type thing? Then that seems like it should work.

@SoraKohaku
Copy link

SoraKohaku commented Feb 1, 2018 via email

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