riscvarchive / riscv-poky

Port of the Yocto Project to the RISC-V ISA
http://www.riscv.org
62 stars 46 forks source link

Compile error when bitbake elfutils-0.170 #32

Open NeutrinoLiu opened 6 years ago

NeutrinoLiu commented 6 years ago

hey guys i'm keeping encountered with an error when bitbake is compiling elfutils-0.170. and here is the error

info:| In file included from ../../elfutils-0.170/backends/m68k_corenote.c:72: | ../../elfutils-0.170/backends/linux-core-note.c:116:1: error: alignment 2 of ‘struct m68k_prstatus’ is less than 4 [-Werror=packed-not-aligned] | ../../elfutils-0.170/backends/linux-core-note.c:110:5: error: ‘({anonymous})’ offset 70 in ‘struct m68k_prstatus’ isn’t aligned to 4 [-Werror=packed-not-aligned]

ive searched online and found a similar post here. in the reply they suggest to use gcc 7.3 instead of higher version. so I tried with gcc-5, gcc-6, gcc-7, and gcc-8, but none of them works and the error is still there. platform ubuntu 16 LTS, build riscv image. so am wondering is there anyone has the same problem?

vlisivka commented 5 years ago

Same problem on Fedora 28.

twoerner commented 5 years ago

This project hasn't been updated in a while, but if you're interested in RISC-V builds via OE, maybe you'd be interested in https://github.com/riscv/meta-riscv which has a lot of current activity?