Just copy compiler-gcc5.h to compiler-gcc6.h if you use gcc6
Sent from my iPhone
On 14 Jul 2017, at 09:36, Mahesh Dananjaya
Now I am trying to compile the linux kernal according to . But get an error at the
make ARCH=riscv -j vmlinux
This is what i get.
In file included from include/linux/compiler.h:54:0,
include/linux/compiler-gcc.h:106:30: fatal error: linux/compiler-gcc6.h: No such file or
make: *** [scripts/mod/devicetable-offsets.s] Error 1
make: *** [scripts/mod] Error 2
make: *** [scripts] Error 2
make: *** Waiting for unfinished jobs....
I have noticed that linux/compiler-gcc6.h is not in the specified folder. I appreciate
any information regarding this.Thanks.
> On Thu, Jul 13, 2017 at 5:00 PM, Mahesh Dananjaya <dananjayamahesh(a)gmail.com>
> Hi Wei,
> Thank you very much. It worked.
>> On Thu, Jul 13, 2017 at 4:52 PM, Wei Song <ws327(a)cam.ac.uk> wrote:
>> According to the config.log file forwarded to me by Jonathan, I think there is
some env setting issues on your computer.
>> Especially these lines in the config.log are problematic:
>>> configure:2416: gcc _BMV2_ conftest.c >&5
>>> gcc: error: _BMV2_: No such file or directory
>> This _BMV2_ comes from your bash environment?
>> Anyway, CPPFLAGS should not be set.
>> What I noticed from the config.log, you have many EDA tools added into the path.
>> Any one of them may set this CPPFLAG which then causes the configuration error.
>> Personal suggestion is to avoid source all EDA scripts in your default bash
>> Only source the script if any tool is needed.
>> This type of incompatibility is usually the reason to not do so.
>>> On 13/07/2017 11:18, Mahesh Dananjaya wrote:
>>> I am just trying to build the lowrisc on my Ubuntu 14.04. But when I tried
>>> to build the RISC-V tools as in . I got the following error. I have
>>> attached the config.log file here. Same thing worked fine in my Ubuntu
>>> 16.04. But I am trying to use regular flow. Is this something relate to my
>>> gcc version?.
>>> Configuring project riscv-fesvr
>>> configure: error: in
>>> configure: error: C compiler cannot create executables
>>> See `config.log' for more details
>>> I appreciate any advice to fix this. Thanks in advance.
> Mahesh Dananjaya
> Electronic Engineer | Paraqum Technologies (pvt) ltd, Colombo, Sri Lanka,
> email | mahesh(a)paraqum.com
> web | www.paraqum.com
> Tel | +94717586199
> Department of Electronic and Telecommunication Engineering
> University of Moratuwa
> email | 110089(a)uom.lk
> web | www.ent.mrt.ac.lk
Electronic Engineer | Paraqum Technologies (pvt) ltd, Colombo, Sri Lanka,
email | mahesh(a)paraqum.com
web | www.paraqum.com
Tel | +94717586199
Department of Electronic and Telecommunication Engineering
University of Moratuwa
email | 110089(a)uom.lk
web | www.ent.mrt.ac.lk