From 62fa95ca0d16f91e92e18282d2fe5c0080d26c43 Mon Sep 17 00:00:00 2001 From: jpekkila Date: Tue, 24 Sep 2019 17:19:19 +0300 Subject: [PATCH] The issue on Puhti was that it was missing a static flex library which would have provided the function yywrap. Fixed by removing the static library dependency and adding option noyywrap to the lexer generator file --- acc/src/CMakeLists.txt | 1 - acc/src/acc.l | 1 + 2 files changed, 1 insertion(+), 1 deletion(-) diff --git a/acc/src/CMakeLists.txt b/acc/src/CMakeLists.txt index 3cf1a24..ec41a82 100644 --- a/acc/src/CMakeLists.txt +++ b/acc/src/CMakeLists.txt @@ -8,4 +8,3 @@ add_flex_bison_dependency(acc_lexer acc_parser) add_executable(acc code_generator.c ${BISON_acc_parser_OUTPUTS} ${FLEX_acc_lexer_OUTPUTS}) target_include_directories(acc PRIVATE ${CMAKE_CURRENT_BINARY_DIR}) -target_link_libraries(acc ${FLEX_LIBRARIES}) diff --git a/acc/src/acc.l b/acc/src/acc.l index c0eaab9..ac06712 100644 --- a/acc/src/acc.l +++ b/acc/src/acc.l @@ -1,4 +1,5 @@ %option yylineno +%option noyywrap D [0-9] L [a-zA-Z_]