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

Ethereum build error - /usr/bin/ld.gold fatal error - invalid argument #147

Closed
bobsummerwill opened this issue Apr 12, 2016 · 13 comments
Closed

Comments

@bobsummerwill
Copy link

When building Ethereum C++ under Bash-for-Windows, both myself and @juanfranblanco are encountering the same error in the gold linker:

gold

This works on "real" Ubuntu Trusty and does not work on Bash-for-Windows, presumably due to some issue in one or more of the Linux syscalls.

To replicate:

@juanfranblanco
Copy link

Note: Do not build the Gui, check the cake lists. Txt

@bobsummerwill
Copy link
Author

^ Sorry - I have literally no idea what you mean above, @juanfranblanco!

@juanfranblanco
Copy link

Stupid autocorrect.

I meant do not build the GUI, as it has dependencies with QT which cannot be installed. Look at the flag on the cmakelists.txt. This does not solve the issue, this is the step required to get to the issue.

@bobsummerwill
Copy link
Author

Yum ... cake lists :-) Right - gotcha.

So maybe cmake .. && make eth, for example?

@juanfranblanco
Copy link

I personally removed the Gui parts from Cmakelists.txt (or use cmake .. -DGUI=0) as I need everything. Cmake will fail as the QT dependencies could not be installed (at least in mine, but I assume this is by design for the bash). This is the reason apt-get install cpp-ethereum does not work as it includes mix and alethzero.

@bobsummerwill
Copy link
Author

bobsummerwill commented Apr 27, 2016

@juanfranblanco I am just downloading Insider Build 14332, and will try again.

I am on 14238.1000 right now (which was an update from when I first tried this - looks like it is this one from 5 days ago - http://www.windowscentral.com/windows-10-build-14328-pc-and-mobile-here), but that is getting numerous errors like this when trying to rm -rf my git clone directory for webthree-umbrella:

rm: cannot remove "x": Input/output error

@bobsummerwill
Copy link
Author

Looks like the one which I am downloading only came out yesterday:

https://blogs.windows.com/windowsexperience/2016/04/26/announcing-windows-10-insider-preview-build-14332/

@bobsummerwill
Copy link
Author

Hmm. Same input/output error in 14332, so I'm having to do a new git clone as a co-directory and try that. Cannot delete the old one!

@bobsummerwill
Copy link
Author

So it's all a bit knackered. I will go through all my apt-get steps again and see where I can get to.

image

@juanfranblanco
Copy link

you got further than me this time... i cannot install dependencies (time for bed)

@bobsummerwill
Copy link
Author

Well, I think I probably need to do that too, given my silly error message where it doesn't even seem to see the C compiler. I wonder whether the sub-system needs nuking and rebuilding? My rm -rf webthree-umbrella doesn't even work.

I will also carry this on tomorrow, @juanfranblanco!

@bobsummerwill
Copy link
Author

Woohoo! Got a binary today, @juanfranblanco :-)

It crashes, but that is another story.

https://twitter.com/BobSummerwill/status/740820732737904640

That was with https://github.com/bobsummerwill/cpp-ethereum/tree/merge_repos, and running the setup.sh in there, plus a tweak to disable tests in jsonrpccpp, which I will commit shortly.

@bobsummerwill
Copy link
Author

Looks like the crash is an exact dupe of #308.

getifaddrs() doesn't work. I'll add our details there.

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

2 participants