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"? 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 (#179995): https://lists.openembedded.org/g/openembedded-core/message/179995 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]] -=-=-=-=-=-=-=-=-=-=-=-
