Bug 12795

Summary: [2.6 M1] gcc/g++ doesn't work on beaglebone black
Product: [Runtime] General Runtime Reporter: Yi Zhao <yi.zhao>
Component: General RuntimeAssignee: Khem Raj <raj.khem>
Status: VERIFIED FIXED QA Contact: Yi Zhao <yi.zhao>
Severity: major    
Priority: Undecided CC: ee.peng.yeoh, raj.khem, richard.purdie, yi.zhao
Version: 2.6   
Target Milestone: ---   
Hardware: BeagleBone   
OS: Multiple   
Whiteboard:
OS type for building Yocto: --- Type of Regression: Regression (Used to work)
Verified: Documentation change: No (bug/feature does not impact docs)

Description Yi Zhao 2018-06-19 01:11:55 UTC
Git rev: master/ddbd7b0cd6580ee26e11aa87e426fb294b372d64
Image location: https://autobuilder.yocto.io/pub/releases/yocto-2.6_M1.rc1/machines/beaglebone-yocto/

The gcc/g++ doesn't work on beaglebone black:

$ gcc -o test test.c
cc1: error: -mfloat-abi=hard: selected processor lacks an FPU




$ cat test.c
#include <stdio.h>

int main()
{
        printf("Hello world!\n");
        return 0;
}
Comment 1 Khem Raj 2018-06-20 02:25:13 UTC
Can you post the following.

log.do_configure and log.do_compile for target gcc ?

There was such an issue in gcc8 but it was fixed and I checked we
have that fix on OE gcc 8, therefore it must be something new
Comment 2 Khem Raj 2018-06-20 05:22:57 UTC
Patch is on ml
https://patchwork.openembedded.org/patch/151841/
Comment 4 Yi Zhao 2018-07-23 00:47:38 UTC
Verified with 2.6 M2 RC1 build.
Poky git rev: b0f2f690a3513e4c9fa30fee1b8d7ac2d7140657