Skip to contentSkip to conversation

Buildroot roseapplepi_defconfig no longer builds

Buildroot Thomas Petazzoni 2 participants 2 messages Aug 10, 2019 – Aug 14, 2019

lore
Share & tools
lore
#0 lore raw

Hello Peter,

The roseapplepi_defconfig no longer builds:

https://gitlab.com/buildroot.org/buildroot/-/jobs/269139283

The build issue occurs when building the wonderful out of tree display driver:

drivers/gpu/pvr/eurasia_km_linux/services4/srvkm/env/linux/osfunc.c: In function 'OSEventObjectCreateKM':
drivers/gpu/pvr/eurasia_km_linux/services4/srvkm/env/linux/osfunc.c:3051:13: error: 'strncpy' specified bound 50 equals destination size [-Werror=stringop-truncation]

             strncpy(psEventObject->szName, pszName, EVENTOBJNAME_MAXLENGTH);
             ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~

I guess this is caused by our update to gcc 8.x as the default compiler.

Could you have a look ?

Thanks!

Thomas Petazzoni

Signature · 3 lines
Thomas Petazzoni, CTO, Bootlin
Embedded Linux and Kernel engineering
https://bootlin.com
#1 lore raw
Quoted 10 lines
Quoted 1 line
Quoted 1 line
Quoted 1 line
Quoted 1 line

"Thomas" == Thomas Petazzoni <[email protected]> writes:

Hello Peter,
The roseapplepi_defconfig no longer builds:

https://gitlab.com/buildroot.org/buildroot/-/jobs/269139283

The build issue occurs when building the wonderful out of tree display driver:

Quoted 6 lines

drivers/gpu/pvr/eurasia_km_linux/services4/srvkm/env/linux/osfunc.c: In function 'OSEventObjectCreateKM':
drivers/gpu/pvr/eurasia_km_linux/services4/srvkm/env/linux/osfunc.c:3051:13: error: 'strncpy' specified bound 50 equals destination size [-Werror=stringop-truncation]

             strncpy(psEventObject->szName, pszName, EVENTOBJNAME_MAXLENGTH);
             ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~

I guess this is caused by our update to gcc 8.x as the default compiler.

Probably.

Quoted 1 line

Could you have a look ?

I will take a look next week, thanks for the heads up.

Signature · 1 line
Bye, Peter Korsgaard