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

Cross Compiler Portability #156

Open
ethanmw opened this issue Sep 3, 2018 · 7 comments
Open

Cross Compiler Portability #156

ethanmw opened this issue Sep 3, 2018 · 7 comments
Assignees

Comments

@ethanmw
Copy link
Collaborator

ethanmw commented Sep 3, 2018

On Debian 9 stretch, the gcc configure fails with this error:

checking how to run the C++ preprocessor... /lib/cpp
configure: error: in `/tmp/tmp.Ifz6SIKmzO/gcc-8.2.0-elf-objs/gcc':
configure: error: C++ preprocessor "/lib/cpp" fails sanity check
See `config.log' for more details.
Makefile:4200: recipe for target 'configure-gcc' failed
make: *** [configure-gcc] Error 1
@ethanmw
Copy link
Collaborator Author

ethanmw commented Sep 3, 2018

#155

@dsmith47
Copy link
Collaborator

dsmith47 commented Sep 5, 2018

Can't comment on distro differences (yet), but I was able to get build-cross-compiler.sh on Ubuntu17 as installing the dev libs necessary.

This bug may be a wider problem of varying mileage across distros.

@dthain
Copy link
Owner

dthain commented Sep 10, 2018

Distro differences are a real pain. It would probably be best, when addressing the compiling script, to carefully document what flavor of Linux that it succeeds or fails on.

@ethanmw
Copy link
Collaborator Author

ethanmw commented Sep 23, 2018

Question as we decide on a strategy to verify certain distros: how platform-independent is the cross-compiler? That is, is it sufficient to test if the cross-compiler successfully compiles for a particular distro? My understanding is that once you have the cross-compiler working, compiling Basekernel should not be affected by the underlying distro

@dthain
Copy link
Owner

dthain commented Sep 24, 2018

I think it is sufficient to evaluate, for a distro X, can you start on X, build the cross-compiler, then run a VM with basekernel on that same machine. I don't think there is much to be gained by attempting to compile and run on different machines.

@ethanmw ethanmw self-assigned this Sep 26, 2018
@dthain
Copy link
Owner

dthain commented Nov 6, 2018

If this was fixed by #155, please close it out.

@ethanmw
Copy link
Collaborator Author

ethanmw commented Nov 14, 2018

It was not. #155 allowed it to compile on Mac, but it still failed Debian. Doug however reported that it runs on Ubuntu, but we have yet to check it on RHEL, which you indicated was a primary target. Debian seems like a likely wontfix, but I can check RHEL this week, add a list of distros to the wiki, and close this out.

@dthain dthain changed the title Cross-compiler doesn't compile on Linux Cross Compiler Portability Dec 12, 2018
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

3 participants