Hi Luca, > -----Original Message----- > From: Luca Ceresoli <[email protected]> > Sent: Friday, April 14, 2023 5:41 PM > To: Qiu, Tingting/仇 婷婷 <[email protected]> > Cc: [email protected]; FNST fnstml-fujitsuten > <[email protected]> > Subject: Re: [OE-core] [PATCH V1] coreutils: Add gcc parameter for ptest > > Hello Qiu, > > On Fri, 14 Apr 2023 16:53:20 +0800 > "[email protected]" <[email protected]> wrote: > > > From: Qiu Tingting <[email protected]> > > > > If gcc is installed in image, ptest result has 4 ERROR. > > ERROR: tests/rm/r-root.sh > > ERROR: tests/rm/rm-readdir-fail.sh > > ERROR: tests/cp/nfs-removal-race.sh > > ERROR: tests/ls/getxattr-speedup.sh > > > > r-root.log as an example: > > -------------------------- > > k.c:1:10: fatal error: stdio.h: No such file or directory > > 1 | #include <stdio.h> > > | ^~~~~~~~~ > > compilation terminated. > > r-root.sh: set-up failure: failed to build shared library > > ERROR tests/rm/r-root.sh (exit status: 99) > > -------------------------- > > > > reason: > > In these cases, k.c file is created and compiled by gcc before run. > > There is a stdio.h file in /usr/include/ directory, > > but gcc parameter is not set it. > > > > solution: > > Add "-l /usr/include/" in gcc parameter. > > Why "-l"? Shouldn't it be "-I"? Yes, it should be "-I". Thanks
Best regards, Qiu Tingting > > Best regards, > Luca > > -- > Luca Ceresoli, Bootlin > Embedded Linux and Kernel engineering > https://bootlin.com
-=-=-=-=-=-=-=-=-=-=-=- Links: You receive all messages sent to this group. View/Reply Online (#180170): https://lists.openembedded.org/g/openembedded-core/message/180170 Mute This Topic: https://lists.openembedded.org/mt/98258324/21656 Group Owner: [email protected] Unsubscribe: https://lists.openembedded.org/g/openembedded-core/unsub [[email protected]] -=-=-=-=-=-=-=-=-=-=-=-
