m2-farzan / ros2-galactic-PKGBUILD

AUR Package for ROS 2 Galactic
11 stars 11 forks source link

Building fails when building cyclonedds #4

Closed KirrimK closed 2 years ago

KirrimK commented 2 years ago

Trying to build gave me the following error when building cyclonedds:

src/parser.y: Dans la fonction « idl_yypush_parse »:
src/parser.y:1045:11: erreur: l'étiquette « yyreturn » est utilisée mais non définie
src/parser.y: Dans la fonction « idl_iskeyword »:
src/parser.y:1098:16: erreur: « yytoknum » non déclaré (première utilisation dans cette fonction); vouliez-vous utiliser « toknum » ?
src/parser.y:1098:16: note: chaque identificateur non déclaré est rapporté une seule fois pour chaque fonction dans laquelle il apparaît

which caused the entire build to fail.

This error seems to be due to an update in bison (which cyclonedds depends upon) version 3.8 that broke a part of cyclonedds. A fix for this has been published in cyclonedds version 0.8.1.

Manually editing line 56 from git -C $srcdir/ros2/src/eclipse-cyclonedds/cyclonedds checkout 0.8.0rc1 to git -C $srcdir/ros2/src/eclipse-cyclonedds/cyclonedds checkout 0.8.1

to use that version seems to have fixed the issue for me.

m2-farzan commented 2 years ago

Hi @KirrimK

Thanks for tracking the issue down. I've applied the fix you suggested.

Cheers