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

Dockerfile doesn't work because of missing CXX20 #17

Open
flip111 opened this issue Sep 29, 2022 · 5 comments
Open

Dockerfile doesn't work because of missing CXX20 #17

flip111 opened this issue Sep 29, 2022 · 5 comments

Comments

@flip111
Copy link

flip111 commented Sep 29, 2022

See log file. Relevant part

CMake Error in src/CMakeLists.txt:
  Target "regex_perf" requires the language dialect "CXX20" (with compiler
  extensions), but CMake does not know the compile flags to use to enable it.

docker_build.txt

@flip111
Copy link
Author

flip111 commented Sep 29, 2022

When i changed the Dockerfile to build from ubuntu:22.10 this error doesn't show up

@flip111
Copy link
Author

flip111 commented Sep 29, 2022

This is the next error

/a/vendor/yara/build-aux/ylwrap: line 176: yacc: command not found
make[4]: *** [Makefile:987: grammar.c] Error 127
make[3]: *** [Makefile:1202: all-recursive] Error 1
make[2]: *** [vendor/CMakeFiles/libyara.dir/build.make:86: yara-stamp/libyara-build] Error 2
make[1]: *** [CMakeFiles/Makefile2:301: vendor/CMakeFiles/libyara.dir/all] Error 2
make: *** [Makefile:91: all] Error 2

@flip111
Copy link
Author

flip111 commented Sep 29, 2022

after adding yacc to apt-get this one is next

/usr/bin/ld: cannot find -lboost_regex: No such file or directory
collect2: error: ld returned 1 exit status
make[2]: *** [src/CMakeFiles/regex_perf.dir/build.make:257: src/regex_perf] Error 1
make[1]: *** [CMakeFiles/Makefile2:327: src/CMakeFiles/regex_perf.dir/all] Error 2
make: *** [Makefile:91: all] Error 2
The command '/bin/sh -c make' returned a non-zero code: 2

@flip111
Copy link
Author

flip111 commented Sep 30, 2022

Fixed with adding libboost-regex-dev to apt-get.

next problem

Making all in libyara
  LEX      lexer.c
/a/vendor/yara/build-aux/missing: line 81: flex: command not found
WARNING: 'flex' is missing on your system.
         You should only need it if you modified a '.l' file.
         You may want to install the Fast Lexical Analyzer package:
         <https://github.com/westes/flex>
make[4]: *** [Makefile:984: lexer.c] Error 127
make[3]: *** [Makefile:1202: all-recursive] Error 1
make[2]: *** [vendor/CMakeFiles/libyara.dir/build.make:86: yara-stamp/libyara-build] Error 2
make[1]: *** [CMakeFiles/Makefile2:301: vendor/CMakeFiles/libyara.dir/all] Error 2
make: *** [Makefile:91: all] Error 2
The command '/bin/sh -c make' returned a non-zero code: 2

@flip111
Copy link
Author

flip111 commented Oct 1, 2022

After adding flex to apt-get everything worked

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

1 participant