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

Some GCC errors due to relatively old tools #61

Open
vanfanel opened this issue May 19, 2016 · 3 comments
Open

Some GCC errors due to relatively old tools #61

vanfanel opened this issue May 19, 2016 · 3 comments

Comments

@vanfanel
Copy link

vanfanel commented May 19, 2016

Hi,

We have found that the gcc cross-compiler is causing some problems. For example this small program:


#include <iostream>
#include <thread>

int main( int argc, char **argv )
{
    std::thread thr( []() { std::cout << "Hello thread" << std::endl; } );
    thr.join();

    return 0;
}

if it's compiled with

g++ thread.cpp -o thread -std=c++11 -lpthread -mcpu=cortex-a7

Will output this:

pi@raspberrypi:~/src $ ./thread
pure virtual method called
terminate called without an active exception
Aborted

That should not happen.

Also, some projects seem to fail building on current gcc on this repo:

gerstrong/Commander-Genius#254

That's saying 4.9.2 because it's being retried on local, but using the 4.9.4 crosscompiler in this repo gives the same results.
Any hopes for a recent 5.x cross compiler? Building one myself is relatively easy if you can give me a working .config I can use for ct-ng, trial and error is totally crazy with these things.

`

@ClaymorePT
Copy link

I would hope they followed the Arch example and provide the 6.1.1 version :/

@popcornmix
Copy link
Contributor

You can't use a newer compiler than 4.9.3 and cross compile for debian jessie - you get issues with the version of glibc that is installed, so we have to stick with that version as the standard.

It's pretty easy to use ct-ng to create a newer compiler if you are using a distribution with newer glibc.

@ClaymorePT
Copy link

will do!

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