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 4 years ago. Updated over 4 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 #1

Updated by Anthony Mallet over 4 years ago

  • Project changed from 10 to genom3
Actions #2

Updated by Anthony Mallet over 4 years ago

  • Status changed from New to Closed
Actions

Also available in: Atom PDF