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

Build failed? #20

Closed
nomaddo opened this issue Dec 20, 2017 · 6 comments
Closed

Build failed? #20

nomaddo opened this issue Dec 20, 2017 · 6 comments
Assignees

Comments

@nomaddo
Copy link
Collaborator

nomaddo commented Dec 20, 2017

I am not sure what happened, circleci build failed.
Do you have any idea?

CircleCI

@nomaddo nomaddo assigned nomaddo and doe300 and unassigned nomaddo Dec 20, 2017
@nomaddo
Copy link
Collaborator Author

nomaddo commented Dec 20, 2017

The problem is, the cross-compiler arm-bcm2708/gcc-linaro-arm-linux-gnueabihf-raspbian-x64 is older than the one we use in host environment?
I successfully build the latest in x86 host with gcc 7.2.0 (not cross-compiler).

@doe300
Copy link
Owner

doe300 commented Dec 20, 2017

Yes, I am running either CLang 4.0 or gcc 7.2, which both compile the code successfully.

I am currently trying to fix the compilation for the gcc 4.9 on my Raspberry Pi and will push it if I have done so.

@nomaddo
Copy link
Collaborator Author

nomaddo commented Dec 20, 2017

Or, how about change the cross-compiler?
Linaro provide gcc 7.2 as x86 to armv7 cross-compiler.
https://releases.linaro.org/components/toolchain/binaries/latest/arm-linux-gnueabihf/

If you prefer, assign me to this issue. I will change CMakeList.txt and Dockerfile.

@doe300
Copy link
Owner

doe300 commented Dec 20, 2017

If we change the cross-compiler, this will indeed fix the issue of failing builds on CircleCI, but it will not fix the failing builds on (older) Raspberry Pi machines.

We could drop support for older gcc, since Raspbian Strech apparently ships with gcc 6.3 (see #13) which should support more C++11 (and C++14) features. But for the moment I will try to make it run on modern and older compilers.

@doe300 doe300 closed this as completed Dec 20, 2017
@Terminus-IMRC
Copy link

@nomaddo How about using https://hub.docker.com/r/idein/cross-rpi/ for cross-compiling? Your cross-rpi image is based on raspberrypi/tools, which is not upgraded for stretch because of some problems. Our image involves gcc 6.3 for armv6-rpi-linux-gnueabihf, armv7-rpi2-linux-gnueabihf and armv8-rpi3-linux-gnueabihf.

@nomaddo
Copy link
Collaborator Author

nomaddo commented Dec 21, 2017

@Terminus-IMRC Thanks your suggestion. Currently, we support older Rasberry Pi machines (which use jessie package) as @doe300 said. When we drop them, I will use idein/cross-rpi!

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