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

Error in config with slurm #7

Closed
Mosseridan opened this issue Jul 9, 2018 · 6 comments
Closed

Error in config with slurm #7

Mosseridan opened this issue Jul 9, 2018 · 6 comments

Comments

@Mosseridan
Copy link

Hello.
I am getting a "configure: error: slurm is not in specified location!" while running "../configure -with-slurm=/usr".

Here is the full config.log:
config.log
Andere is the part of the config.log concerning slurm:

configure:12089: checking for slurm installation
configure:12116: gcc -o conftest -g -O2   conftest.c -L/usr/lib64 -lslurm -lpthread -lcrypto  >&5
conftest.c:26:20: error: expected declaration specifiers or '...' before numeric constant
 slurm_get_rem_time(0);
                    ^
configure:12116: $? = 1
configure: failed program was:
| /* confdefs.h */
| #define PACKAGE_NAME "Your One Get Remaining Time library"
| #define PACKAGE_TARNAME "libyogrt"
| #define PACKAGE_VERSION "1.21"
| #define PACKAGE_STRING "Your One Get Remaining Time library 1.21"
| #define PACKAGE_BUGREPORT "https://github.com/LLNL/libyogrt/issues"
| #define PACKAGE_URL "https://github.com/LLNL/libyogrt"
| #define PACKAGE "libyogrt"
| #define VERSION "1.21"
| #define STDC_HEADERS 1
| #define HAVE_SYS_TYPES_H 1
| #define HAVE_SYS_STAT_H 1
| #define HAVE_STDLIB_H 1
| #define HAVE_STRING_H 1
| #define HAVE_MEMORY_H 1
| #define HAVE_STRINGS_H 1
| #define HAVE_INTTYPES_H 1
| #define HAVE_STDINT_H 1
| #define HAVE_UNISTD_H 1
| #define HAVE_DLFCN_H 1
| #define LT_OBJDIR ".libs/"
| #define LIBYOGRT_LT_CURRENT /**/
| #define LIBYOGRT_LT_REVISION /**/
| #define LIBYOGRT_LT_AGE /**/
| /* end confdefs.h.  */
| slurm_get_rem_time(0);
| int
| main ()
| {
| 
|   ;
|   return 0;
| }
configure:12116: gcc -o conftest -g -O2   conftest.c -L/usr/lib -lslurm -lpthread -lcrypto  >&5
conftest.c:26:20: error: expected declaration specifiers or '...' before numeric constant
 slurm_get_rem_time(0);
                    ^
configure:12116: $? = 1
configure: failed program was:
| /* confdefs.h */
| #define PACKAGE_NAME "Your One Get Remaining Time library"
| #define PACKAGE_TARNAME "libyogrt"
| #define PACKAGE_VERSION "1.21"
| #define PACKAGE_STRING "Your One Get Remaining Time library 1.21"
| #define PACKAGE_BUGREPORT "https://github.com/LLNL/libyogrt/issues"
| #define PACKAGE_URL "https://github.com/LLNL/libyogrt"
| #define PACKAGE "libyogrt"
| #define VERSION "1.21"
| #define STDC_HEADERS 1
| #define HAVE_SYS_TYPES_H 1
| #define HAVE_SYS_STAT_H 1
| #define HAVE_STDLIB_H 1
| #define HAVE_STRING_H 1
| #define HAVE_MEMORY_H 1
| #define HAVE_STRINGS_H 1
| #define HAVE_INTTYPES_H 1
| #define HAVE_STDINT_H 1
| #define HAVE_UNISTD_H 1
| #define HAVE_DLFCN_H 1
| #define LT_OBJDIR ".libs/"
| #define LIBYOGRT_LT_CURRENT /**/
| #define LIBYOGRT_LT_REVISION /**/
| #define LIBYOGRT_LT_AGE /**/
| /* end confdefs.h.  */
| slurm_get_rem_time(0);
| int
| main ()
| {
| 
|   ;
|   return 0;
| }
configure:12130: result: 
configure:12145: error: slurm is not in specified location!

How could I fix this error?
thank you.

@jennfshr
Copy link

I also am having this same configure failure trying to install this version. What do you suggest?

@morrone
Copy link
Member

morrone commented Aug 23, 2018

Ah, yes, it looks like the AC_LANG_PROGRAM was being used incorrectly. That is now fixed on the master branch. Our macros are pretty dated...I may decide to overhaul them. Either way, 1.23 should have this fixed when I tag it.

@morrone
Copy link
Member

morrone commented Aug 23, 2018

1.23 with the fix has been released. If that doesn't meet your needs, let me know.

@morrone morrone closed this as completed Aug 23, 2018
@jennfshr
Copy link

jennfshr commented Aug 24, 2018 via email

@morrone
Copy link
Member

morrone commented Aug 24, 2018

@jennfshr , I didn't remove any tests from the repository.

Oh, perhaps "make dist" isn't packaging the tests in the tar ball? Yes it looks like that is the case. It has been that way for over a decade. :) I will add in an EXTRA_DIST to include those.

@jennfshr
Copy link

jennfshr commented Aug 24, 2018 via email

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