-
Notifications
You must be signed in to change notification settings - Fork 19
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
Fix libnereon build on msys2 #421
Comments
You install ninja so cmake uses ninja generator by default. There is build.ninja file that is essentially a makefile.
it will select correct build system that matches configure step You can also do
in order to get Makefile and not build.ninja |
There is a problem here: https://github.com/riboseinc/libnereon/blob/master/src/CMakeLists.txt LIBNEREON_LIBRARY is not defined as CMake target at all. Unix and MacOS versions of cmake somehow manage to create correct build sequence, but MSYS version fails. So the fix is required at libneron source. |
Then there is an issue with RTLD_NEXT flag which is a bedrock of retrace technology. It is not POSIX and MSYS compilation with default settings considers it undefined Probably
can help but it needs to be tested as well |
If msys (=unix) environment is used for compilation it is essentially cygwin that does not support GNU extensions to dlsysm If mingw (=windows) environment is used for compilation, there is a package that pretends that it implements RTLD_NEXT -- https://packages.msys2.org/base/mingw-w64-dlfcn. So the only approach I see is to use mingw and adopt queue.h (I think it can be just dropped in). I have to say that I am not MSYS expert so that all may be wrong. |
Sounds like we can probably create a separate GitHub Action workflow for mingw to test this out, too. |
I do not know, can make assumptions only. |
This commit re-uses build logic from libnereon's GHA scripts. Related: #421
This commit re-uses build logic from libnereon's GHA scripts. Related: #421
This commit re-uses build logic from libnereon's GHA scripts. Related: #421
This commit re-uses build logic from libnereon's GHA scripts. Related: #421
This commit re-uses build logic from libnereon's GHA scripts. Related: #421 The link [1] was used in helping with the build issue (with libucl): aclocal-1.16: error: aclocal: file '/a/_temp/msys64/usr/share/aclocal/xsize.m4' does not exist [1] kwhat/jnativehook#89
This commit re-uses build logic from libnereon's GHA scripts. Related: #421
The link [1] was used in helping with the build issue (with libucl): aclocal-1.16: error: aclocal: file '/a/_temp/msys64/usr/share/aclocal/xsize.m4' does not exist [1] kwhat/jnativehook#89 Related: #421
The link [1] was used in helping with the build issue (with libucl): aclocal-1.16: error: aclocal: file '/a/_temp/msys64/usr/share/aclocal/xsize.m4' does not exist [1] kwhat/jnativehook#89 Related: #421
The links [1][2] were used in helping with the build issue (with libucl): aclocal-1.16: error: aclocal: file '/a/_temp/msys64/usr/share/aclocal/xsize.m4' does not exist [1] kwhat/jnativehook#89 [2] avast/yaracpp#12 Related: #421
This commit re-uses build logic from libnereon's GHA scripts. Related: #421
The links [1][2] were used in helping with the build issue (with libucl): aclocal-1.16: error: aclocal: file '/a/_temp/msys64/usr/share/aclocal/xsize.m4' does not exist [1] kwhat/jnativehook#89 [2] avast/yaracpp#12 Related: #421
The links [1][2] were used in helping with the build issue (with libucl): aclocal-1.16: error: aclocal: file '/a/_temp/msys64/usr/share/aclocal/xsize.m4' does not exist However, setting ACLOCAL_PATH in the GitHub Action YAML would not work as it would later get overridden to: /mingw64/share/aclocal:/usr/share/aclocal [1] kwhat/jnativehook#89 [2] avast/yaracpp#12 Related: #421
The links [1][2] were used in helping with the build issue (with libucl): aclocal-1.16: error: aclocal: file '/a/_temp/msys64/usr/share/aclocal/xsize.m4' does not exist However, setting ACLOCAL_PATH in the GitHub Action YAML would not work as it would later get overridden to: /mingw64/share/aclocal:/usr/share/aclocal [1] kwhat/jnativehook#89 [2] avast/yaracpp#12 Related: #421
Libnereon build fixed is here: |
I made some tests locally. Mingw build fails fast because Windows SDK doeds not have Queue.h |
Thanks @maxirmx ! This is good progress. I'll merge whatever we have now and figure the rest later. |
https://github.com/riboseinc/retrace/runs/4656054619?check_suite_focus=true#step:5:384
Makefile
has not been generated at all.The text was updated successfully, but these errors were encountered: