Project

General

Profile

Actions

Bug #270

closed

[genom3] boolean type in .gen not properly handled in codel file.

Added by François Félix Ingrand over 3 years ago. Updated over 3 years ago.

Status:
Closed
Priority:
Normal
Assignee:
-

Description

This simple module is correct for genom3, but does not compile.

component foo {

function set_foo(in boolean bar) {
codel set_foo_cdl(in bar);
};
};

genom3 skeleton foo.gen

make2: Entering directory '/home/felix/work/foo/build/codels'
/bin/bash ../libtool --tag=CC --mode=compile gcc -DHAVE_CONFIG_H -I. -I../../codels -I../autoconf -I/home/felix/openrobots/include -g -O2 -MT libfoo_codels_la-foo_codels.lo -MD -MP -MF .deps/libfoo_codels_la-foo_codels.Tpo -c -o libfoo_codels_la-foo_codels.lo `test -f 'foo_codels.c' || echo '../../codels/'`foo_codels.c
libtool: compile: gcc -DHAVE_CONFIG_H -I. -I../../codels -I../autoconf -I/home/felix/openrobots/include -g -O2 -MT libfoo_codels_la-foo_codels.lo -MD -MP -MF .deps/libfoo_codels_la-foo_codels.Tpo -c ../../codels/foo_codels.c -fPIC -DPIC -o .libs/libfoo_codels_la-foo_codels.o
In file included from ../../codels/foo_codels.c:4:0:
/home/felix/work/foo/foo.gen:5:25: error: unknown type name ‘bool’; did you mean ‘_Bool’?
codel set_foo_cdl(in bar);
~~
_Bool
../../codels/foo_codels.c:14:13: error: unknown type name ‘bool’; did you mean ‘_Bool’?
set_foo_cdl(bool bar, const genom_context self)
~~
_Bool
Makefile:449: recipe for target 'libfoo_codels_la-foo_codels.lo’ failed


Felix


Files

smime.p7s (3.42 KB) smime.p7s François Félix Ingrand, 2020-08-01 13:44
Actions

Also available in: Atom PDF