[Buildroot] [PATCH] package/lshw: fix musl build

Thomas Petazzoni thomas.petazzoni at free-electrons.com
Thu Aug 4 18:09:47 UTC 2016


Hello,

On Thu, 4 Aug 2016 19:09:25 +0200, Romain Naour wrote:

> Actually, I get an error on basename from sysfs.cc
> 
> sysfs.cc: In function ‘std::string sysfs_getbustype(const string&)’:
> sysfs.cc:103:41: error: invalid conversion from ‘const char*’ to ‘char*’
> [-fpermissive]
>        "/devices/" + basename(path.c_str());
> 
> The cast in dasd is not necessary.

Are you sure it's musl related, and not gcc version related? A
-fpermissive error typically indicates that the compiler has become
stricter than it used to be.

Thomas
-- 
Thomas Petazzoni, CTO, Free Electrons
Embedded Linux, Kernel and Android engineering
http://free-electrons.com


More information about the buildroot mailing list