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

depends system doesn't work for cross compilation from Ubuntu to Windows #130

Open
TheHashCoin-project opened this issue Oct 10, 2018 · 18 comments
Milestone

Comments

@TheHashCoin-project
Copy link

Have tried using multiple versions of Ubuntu & Debian, but have not been able to successfully cross compile from Ubuntu/Debian to Windows (i686 or x86_64) using the depends system.

@SvenKercher
Copy link
Member

SvenKercher commented Oct 11, 2018

We are using the official Gitian way, and there all files must be available at github, and we have no problems to compile from Ubuntu to Linux/Windows/OSX/ARM x86 and x64
So it is not the source that makes the problems

Im also able to do a direct cross compile from source without gitian

@TheHashCoin-project
Copy link
Author

TheHashCoin-project commented Oct 11, 2018

I haven't tried a Gitian build, but I can show you the output when I try a direct cross compile with the depends system. I know I am not missing dependencies, but perhaps one of the sources for the dependencies of the depends build are outdated, I didn't watch it the entire time to see if every dependency it fetches does so successfully. To build it regularly with autoconf (./autogen.sh, ./configure, make) on any Ubuntu distro works fine.

I am trying a fresh fetch and cross compile with the depends system now, I will paste the output when it's finished.

@TheHashCoin-project
Copy link
Author

When you build with gitian, do you use lxc, or kvm?

@Duality-CDOO
Copy link
Contributor

I believe he uses KVM.

@TheHashCoin-project
Copy link
Author

Thank you! That's what I figured as I have not had great luck with LXC in the past. Will give it a shot.

@SvenKercher
Copy link
Member

U can take a look at the gitian-win.yml file at contrib/gitian-descriptor , there u see the depends that u have to install at a direct compiler
After that u have to cross compile all depends at the depends folder, how to is in the readme there
And then u can compile the binaries directly

And yes, at gitian i use KVM

@AmirAbrams
Copy link
Member

@TheHashCoin-project , did you have time to try to build with depends again? I am going to close this issue and if you still can't cross compile, we can re-open it. @SvenKercher would not be able to use gitian or build the Windows version if there was an issue.

@TheHashCoin-project
Copy link
Author

TheHashCoin-project commented Oct 31, 2018 via email

@ultra-pool
Copy link

ultra-pool commented Feb 10, 2019

Iv tried to jack with gitian KVM & LXC for a week and its more worthless then a tick on a dog butt. haha.
Cross compiling from depends doesnt work in this source. It has memory errors. I recommend looking into getting that fixed then relying on gitian for it.

@ultra-pool
Copy link

A buddy and I was able to fix the memory problem with cross compiling the source. Ill post changes in here after it fully working.

@Duality-CDOO Duality-CDOO reopened this Feb 10, 2019
@Duality-CDOO
Copy link
Contributor

@ultra-pool if you are going to open a pull request, please pr to the v1.3-WIP branch.

@ultra-pool
Copy link

@Duality-CDOO Github would not let me push the pr. I committed in v1.3-WIP the lines that i edited to be able to cross compile on Ubuntu without memory errors. I tested 3 times cross compiling and the cross compile worked each time.

@Duality-CDOO
Copy link
Contributor

I would need to look into whether that would cause issues with building normally from source, have you tested @ultra-pool. Is that an unused function?

@ultra-pool
Copy link

Yes iv crossed compiled SEQ 3 times. All the SEQ functionality needs to be tested.

All functions works on my forked source.

@SvenKercher
Copy link
Member

The thing is, that i have no problems using gitian to compile all binaries
No problems at v1.3-WIP and no problems at master branch

@ultra-pool
Copy link

ultra-pool commented Feb 11, 2019

You would need to test compile with gitian.

Me personally dont use gitian and never been able to get gitian to work correctly at all. Also compiling with gitian is a waste of space and time when you can cross compile without it in no time.

But I posted what i did to be able to cross compile without gitian and seems to work in my forked source and cross compiling SEQ source.

@SvenKercher
Copy link
Member

Cross compile without gitian is no option for a Release
For ur own usage u can do it without, but thats only personal usage
And for my System its no problem to handle the workload

@ultra-pool
Copy link

Have you tested the edit with gitian?

@Duality-CDOO Duality-CDOO added this to the v1.3.3.0 milestone Oct 24, 2019
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

5 participants