Skip to content

[scarthgap] ckermit-302-r0 failes to compile #992

@JosephMillsAtWork

Description

@JosephMillsAtWork

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions