-
Notifications
You must be signed in to change notification settings - Fork 802
Open
Description
Issue:
Build fails building ckwart needs -DMAINTYPE=int
build/tmp/work/cortexa9t2hf-neon-poky-linux-gnueabi/ckermit/302/temp/log.do_compile.3000191
Log data follows:
| DEBUG: Executing shell function do_compile
| ckwart.c:531:1: error: return type defaults to ‘int’ [-Wimplicit-int]
| 531 | main(argc,argv) int argc; char **argv; {
| | ^~~~
| WARNING: exit code 1 from a shell command.
ERROR: Task (XXXX/build/layers/meta-openembedded/meta-oe/recipes-support/ckermit/ckermit_302.bb:do_compile) failed with exit code '1'FIX:
diff --git a/meta-oe/recipes-support/ckermit/ckermit_302.bb b/meta-oe/recipes-support/ckermit/ckermit_302.bb
index 53f2b9d2c5..c1b8bc58d3 100644
--- a/meta-oe/recipes-support/ckermit/ckermit_302.bb
+++ b/meta-oe/recipes-support/ckermit/ckermit_302.bb
@@ -28,7 +28,7 @@ do_compile () {
# The original makefile doesn't differentiate between CC and CC_FOR_BUILD,
# so we build wart manually. Note that you need a ckwart.o with the proper
# timestamp to make this hack work:
- ${BUILD_CC} -c ckwart.c
+ ${BUILD_CC} -DMAINTYPE=int -c ckwart.c
${BUILD_CC} -o wart ckwart.o
./wart ckcpro.w ckcpro.c
kyoungmeyer
Metadata
Metadata
Assignees
Labels
No labels