-
Notifications
You must be signed in to change notification settings - Fork 64
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
unknown type name 'siginfo_t' #24
Comments
Hi |
add config in GKlibSystem.cmake: |
Hi, I have same issue, I have attempted to add set(GKlib_COPTIONS "${GKlib_COPTIONS} -D_POSIX_C_SOURCE=199309L") in GKlibSystem.cmake, but I don't know add to which position, so I attempt to add the front and back, but I don't slove the issue. |
This works for me. Note that this refers to a couple of internal variables of my private scripts.
(where And then I make with
|
Hi, I would like to ask if these commands need to be added to the GlibSystem.cmake file?
Thank you very much.
…---- Replied Message ----
| From | Victor ***@***.***> |
| Date | 05/28/2023 22:00 |
| To | ***@***.***> |
| Cc | ***@***.***>***@***.***> |
| Subject | Re: [KarypisLab/GKlib] unknown type name 'siginfo_t' (Issue #24) |
This works for me. Note that this refers to a couple of internal variables of my private scripts.
&& make BUILDDIR=$${builddir} \
CONFIG_FLAGS="\
-DCMAKE_VERBOSE_MAKEFILE=1 \
-D CMAKE_INSTALL_PREFIX=$${installdir} \
-D CMAKE_C_COMPILER=$${CC} \
-D OPENMP=$${ompflag} \
-D CMAKE_C_FLAGS=\"-D_POSIX_C_SOURCE=200809L $${nox86}\" \
-D CMAKE_POSITION_INDEPENDENT_CODE=ON \
" \
config \
And then I make with
&& make V=1 BUILDDIR=$${builddir} \
&& make BUILDDIR=$${builddir} install \
—
Reply to this email directly, view it on GitHub, or unsubscribe.
You are receiving this because you commented.Message ID: ***@***.***>
|
No, these lines are to be executed at the shell level. I have them in a makefile. |
Hi, I used the statement you gave to try to modify the Makefile, but it still seems to be wrong, I can't run the make command after modification, is it that I added the wrong location? |
Those commands are not added anywhere. You can issue them interactively or put them in your own script. You need to substitute some variables, and may the quotes need special treatment. |
1set(GKlib_COPTIONS "${GKlib_COPTIONS} -D_POSIX_C_SOURCE=199309L") It is not work for me. And when I execute this shell, |
Thanks to @longmingg and @VictorEijkhout for the fix. Also, this is related to Issue #13, where @tormentliang describes why this fix is needed. Because there is still some confusion, I'm going to summarize a bit. The important thing is that your compiler sees the flag (1) If you want to use Make as @VictorEijkhout did, then copy their (2) If you are not sure what you are doing, I recommend using CMake here as @longmingg did. Edit the file
but the location matters. For simplicity, put it directly above the line
which is around line 147 in my version of the file. If you add the line earlier, it might get overwritten, and if you add it later, then it will have no effect. |
The simplest method is to add the following information to the cmake command line: Complete cmake command line, like: if use make config, like: |
On my laptop GKlib installs fine, but on two linux clusters (stampede2 & frontera, in case you have access to them) I get:
during compilation. My laptop has clang12, frontera has intel19 & gcc12.
The text was updated successfully, but these errors were encountered: