Skip to content

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

Closed

Description

When building Ethereum C++ under Bash-for-Windows, both myself and Juan Blanco (@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:

Activity

  1. juanfranblanco commented on Apr 12, 2016

    @juanfranblanco

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

  2. bobsummerwill commented on Apr 12, 2016

    @bobsummerwill
    Author

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

  3. juanfranblanco commented on Apr 12, 2016

    @juanfranblanco

    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.

  4. bobsummerwill commented on Apr 12, 2016

    @bobsummerwill
    Author

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

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

  5. juanfranblanco commented on Apr 12, 2016

    @juanfranblanco

    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.

  6. bobsummerwill commented on Apr 27, 2016

    @bobsummerwill
    Author

    Juan Blanco (@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
    
  7. bobsummerwill commented on Apr 28, 2016

    @bobsummerwill
    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!

  8. bobsummerwill commented on Apr 28, 2016

    @bobsummerwill
    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

  9. juanfranblanco commented on Apr 28, 2016

    @juanfranblanco

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

  10. bobsummerwill commented on Apr 29, 2016

    @bobsummerwill
    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, Juan Blanco (@juanfranblanco)!

  11. bobsummerwill commented on Jun 9, 2016

    @bobsummerwill
    Author

    Woohoo! Got a binary today, Juan Blanco (@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.

  12. bobsummerwill commented on Jun 10, 2016

    @bobsummerwill
    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

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions