intel / meta-de10-nano

MIT License
41 stars 27 forks source link

Problem building from gcc/g++ 7.x #10

Open Corentin-pro opened 6 years ago

Corentin-pro commented 6 years ago

During the bitbake compilation an error occurred in my environment (debian, gcc 7.3.0):

work-shared/gcc-linaro-6.2-r2016.11/git/gcc/ubsan.c:1472:23: error: ISO C++ forbids comparison between pointer and integer [-fpermissive]
       || xloc.file == '\0' || xloc.file[0] == '\xff'

It seems that the gcc pulled is version 6.x and cannot be built from gcc 7.x (saw a similar issue here https://github.com/crosstool-ng/crosstool-ng/issues/735).

Trying from gcc 6.4 solved the problem in my environment, a solution could be to update the gcc-linaro to version 7 (I am not sure if the linaro depedency comes from this repository or the angstrom one) or to have a additional warning in the README.

dwesterg commented 6 years ago

The latest Angstrom release had stopped using the linaro toolchain altogether. I'm busy upsetting this layer and hope to release in the next couple of weeks.

Dalon

On Mon, May 7, 2018, 10:54 Corentin notifications@github.com wrote:

During the bitbake compilation an error occurred in my environment (debian, gcc 7.3.0):

work-shared/gcc-linaro-6.2-r2016.11/git/gcc/ubsan.c:1472:23: error: ISO C++ forbids comparison between pointer and integer [-fpermissive] || xloc.file == '\0' || xloc.file[0] == '\xff'

It seems that the gcc pulled is version 6.x and cannot be built from gcc 7.x (saw a similar issue here crosstool-ng/crosstool-ng#735 https://github.com/crosstool-ng/crosstool-ng/issues/735).

Trying from gcc 6.4 solved the problem in my environment, a solution could be to update the gcc-linaro to version 7 (I am not sure if the linaro depedency comes from this repository or the angstrom one) or to have a additional warning in the README.

— You are receiving this because you are subscribed to this thread. Reply to this email directly, view it on GitHub https://github.com/intel/meta-de10-nano/issues/10, or mute the thread https://github.com/notifications/unsubscribe-auth/ABLZRRepwwSkEOca1KE8rmnfe5C3FCHeks5twAvGgaJpZM4T0oMa .