Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

SAFRAN does not compile under Ubuntu 22-04 #21

Open
friguzzi opened this issue Mar 22, 2024 · 3 comments
Open

SAFRAN does not compile under Ubuntu 22-04 #21

friguzzi opened this issue Mar 22, 2024 · 3 comments

Comments

@friguzzi
Copy link

I get this error

/home/rzf/SAFRAN/build/_deps/catch2-src/src/catch2/internal/catch_fatal_condition_handler.cpp:150:45: error: size of array ‘altStackMem’ is not an integral constant-expression
150 | char FatalConditionHandler::altStackMem[sigStackSize] = {};
| ^~~~~~~~~~~~
make[2]: *** [_deps/catch2-build/src/CMakeFiles/Catch2.dir/build.make:454: _deps/catch2-build/src/CMakeFiles/Catch2.dir/catch2/internal/catch_fatal_condition_handler.cpp.o] Error 1
make[1]: *** [CMakeFiles/Makefile2:957: _deps/catch2-build/src/CMakeFiles/Catch2.dir/all] Error 2
make: *** [Makefile:146: all] Error 2

@matthias-samwald
Copy link
Contributor

@nomisto , any ideas?

@nomisto
Copy link
Contributor

nomisto commented Mar 23, 2024

Can you try deleting everything after Line 44 in CMakeLists.txt and recompile again?

SAFRAN/CMakeLists.txt

Lines 45 to 58 in 69d2a7a

FetchContent_Declare(
Catch2
GIT_REPOSITORY https://github.com/catchorg/Catch2.git
GIT_TAG v3.0.0-preview3
)
FetchContent_MakeAvailable(Catch2)
add_executable(tests tests/test.cpp)
target_link_libraries(tests PRIVATE Catch2::Catch2WithMain lsafran)
list(APPEND CMAKE_MODULE_PATH ${catch2_SOURCE_DIR}/extras)
include(CTest)
include(Catch)
catch_discover_tests(tests)

Starting with including "FetchContent_Declare(
Catch2
...
"

@friguzzi
Copy link
Author

Compilatio now works, but when I launch it, I get:

wn18rr$ safran applynoisy config.properties
ACTION = applynoisy
PATH_TRAINING = train.txt
PATH_TEST = test.txt
PATH_VALID = valid.txt
PATH_RULES = rules
PATH_OUTPUT = predictions
WORKER_THREADS = -1
DISCRIMINATION_BOUND = 1000
UNSEEN_NEGATIVE_EXAMPLES = 5
TOP_K_OUTPUT = 10
REFLEXIV_TOKEN = me_myself_i
ONLY_UNCONNECTED = 0
TRIAL = 0

Reading trainingset...
Trainingset read and indexed in 290 ms
Reading rules...
Rules read in 2337 ms
Reading testset...
Testset read in 70 ms
Reading validationset...
Validationset read in 67 ms
Applying rules...
Relation 0/11 _hypernym
Segmentation fault (core dumped)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants