ra3xdh / qucsator_rf

Qucsator-RF is RF circuit simulation kernel for Qucs-S
https://ra3xdh.github.io/
GNU General Public License v2.0
13 stars 5 forks source link

macos build error #2

Closed dsm closed 5 months ago

dsm commented 6 months ago

Hi, I'm fixing macos build. I changed cmake file to solve VERSION file error and some compiler warning. But every time I get this error. Linux build succesfull btw.

https://github.com/dsm/qucsator_rf/actions/runs/8970309257

[ 57%] Generating parse_citi.hpp, parse_citi.cpp
[ 58%] Generating scan_zvr.cpp
[ 59%] Generating parse_mdl.hpp, parse_mdl.cpp
[ 59%] Generating parse_touchstone.hpp, parse_touchstone.cpp
[ 59%] Generating parse_dataset.hpp, parse_dataset.cpp
[ 59%] Generating parse_zvr.hpp, parse_zvr.cpp
[ 60%] Generating scan_touchstone.cpp
[ 61%] Generating parse_csv.hpp, parse_csv.cpp
[ 61%] Generating scan_csv.cpp
[ 61%] Generating scan_dataset.cpp
[ 61%] Generating scan_citi.cpp
[ 63%] Generating scan_netlist.cpp
[ 62%] Generating scan_mdl.cpp
[ 63%] Generating parse_netlist.hpp, parse_netlist.cpp
/Users/runner/work/qucsator_rf/qucsator_rf/src/parse_dataset.ypp:52.14-23: syntax error, unexpected string, expecting =
make[2]: *** [src/parse_dataset.hpp] Error 1
make[2]: *** Waiting for unfinished jobs....
/Users/runner/work/qucsator_rf/qucsator_rf/src/parse_touchstone.ypp:52.14-26: syntax error, unexpected string, expecting =
make[2]: *** [src/parse_touchstone.hpp] Error 1
/Users/runner/work/qucsator_rf/qucsator_rf/src/parse_csv.ypp:52.14-19: syntax error, unexpected string, expecting =
make[2]: *** [src/parse_csv.hpp] Error 1
/Users/runner/work/qucsator_rf/qucsator_rf/src/parse_netlist.ypp:49.14-23: syntax error, unexpected string, expecting =
/Users/runner/work/qucsator_rf/qucsator_rf/src/parse_mdl.ypp:52.14-19: syntax error, unexpected string, expecting =
make[2]: *** [src/parse_netlist.hpp] Error 1
make[2]: *** [src/parse_mdl.hpp] Error 1
/Users/runner/work/qucsator_rf/qucsator_rf/src/parse_citi.ypp:52.14-20: syntax error, unexpected string, expecting =
make[2]: *** [src/parse_citi.hpp] Error 1
/Users/runner/work/qucsator_rf/qucsator_rf/src/parse_zvr.ypp:52.14-19: syntax error, unexpected string, expecting =
make[2]: *** [src/parse_zvr.hpp] Error 1
make[1]: *** [src/CMakeFiles/libqucsator.dir/all] Error 2
make: *** [all] Error 2
Error: Process completed with exit code 2.
ra3xdh commented 6 months ago

Probably you are using yacc instead of bison. It has some syntax difference.

dsm commented 6 months ago

it uses bison

[ 59%] Generating parse_csv.hpp, parse_csv.cpp
cd /Users/runner/work/qucsator_rf/qucsator_rf/build/src && /usr/bin/bison --defines=parse_citi.hpp --output=parse_citi.cpp /Users/runner/work/qucsator_rf/qucsator_rf/src/parse_citi.ypp
dsm commented 6 months ago

https://github.com/ra3xdh/qucsator_rf/pull/3 will solve this.