Skip to content

cake does not exit with non-zero return code when failing #376

@madebr

Description

@madebr

Trying to transpile SDL3 sources with:

$ /home/maarten/projects/cake/src/cake -DDLL_EXPORT -DSDL_BUILD_MAJOR_VERSION=3 -DSDL_BUILD_MICRO_VERSION=3 -DSDL_BUILD_MINOR_VERSION=3 -DUSING_GENERATED_CONFIG_H -I/home/maarten/projects/SDL/cmake-build-debug-cake/include-config-relwithdebinfo/build_config -I/home/maarten/projects/SDL/cmake-build-debug-cake/include-revision -I/home/maarten/projects/SDL/include -I/home/maarten/projects/SDL/src -I/home/maarten/projects/SDL/cmake-build-debug-cake/wayland-generated-protocols -I/usr/include/pipewire-0.3 -I/usr/include/spa-0.2 -I/usr/include/fribidi -I/usr/include/libdrm -I/usr/include/libdecor-0 -I/usr/lib64/pkgconfig/../../include/dbus-1.0 -I/usr/lib64/pkgconfig/../../lib64/dbus-1.0/include -I/usr/include/ibus-1.0 -I/usr/include/glib-2.0 -I/usr/lib64/glib-2.0/include -I/usr/include/libmount -I/usr/include/blkid -I/usr/include/sysprof-6 -I/usr/include/libusb-1.0 -DNDEBUG -D_REENTRANT -I/usr/lib/gcc/x86_64-redhat-linux/15/include -I/usr/local/include -I/usr/include -target=x86_x64_gcc -I/home/maarten/projects/SDL/src /home/maarten/projects/SDL/src/SDL.c -o /tmp/SDL.cake.c

fails with

Cake 0.12.61 (x86_x64_gcc)
/home/maarten/programming/SDL/src/SDL.c
int-ll64.h:20:9: error 860: invalid type
 20 |typedef __signed__ char __s8;
    |        ~~~~~~~~~~            
int-ll64.h:20:9: error 1270: storage size of '__signed__' isn't known
 20 |typedef __signed__ char __s8;
    |        ~~~~~~~~~~            
int-ll64.h:20:20: error 970: expected token ';', got 'char' 
 20 |typedef __signed__ char __s8;
    |                   ~~~~       

3 errors 0 warnings 0 notes 
1 files in 0.74 seconds

But the result code is 0, signifying success:

$ echo $?
0

(My cake-wrapper.py currently fails because of this)

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions