[torqueusers] help! torque-2.2.1 will not build
Steven DuChene
sduchene at sgi.com
Sat Nov 3 23:14:46 MDT 2007
Garrick Staples wrote:
>
>
> No, that's good. At least cpuset code is being compiled now. Once that compiles, the original linking problem will work.
>
> Index: src/resmom/linux/cpuset/cpuset.c
> ===================================================================
> --- src/resmom/linux/cpuset/cpuset.c (revision 1610)
> +++ src/resmom/linux/cpuset/cpuset.c (working copy)
> @@ -4,6 +4,7 @@
> #include <cpuset.h>
> #include <sys/stat.h>
> #include <dirent.h>
> +#include <stdio.h>
>
> #include "libpbs.h"
> #include "attribute.h"
> @@ -36,7 +37,7 @@
>
> if (cpuset_query(torque_set, "/torque") == -1)
> {
> - sprintf (log_buffer, "Torque cpuset /dev/cpuset%s does not exist, creating it now.\n", torque_set);
> + sprintf (log_buffer, "Torque cpuset %s does not exist, creating it now.\n",dir_path);
> log_err(-1,id,log_buffer);
>
> cpu_map_size = cpuset_cpus_nbits();
>
>
> ------------------------------------------------------------------------
>
> _
Applied the patch supplied above, did a ./configure; make clean; make and got the following error:
Making all in linux
make[3]: Entering directory `/usr/local/src/torque-2.2.1/src/resmom/linux'
Making all in cpuset
make[4]: Entering directory
`/usr/local/src/torque-2.2.1/src/resmom/linux/cpuset'
if gcc -DHAVE_CONFIG_H -I. -I. -I../../../../src/include
-I../../../../src/include -g -O2 -D_LARGEFILE64_SOURCE -W -Wall
-Wno-unused-parameter -Wno-long-long -pedantic -Werror -MT cpuset.o -MD
-MP -MF ".deps/cpuset.Tpo" -c -o cpuset.o cpuset.c; \
then mv -f ".deps/cpuset.Tpo" ".deps/cpuset.Po"; else rm -f
".deps/cpuset.Tpo"; exit 1; fi
cc1: warnings being treated as errors
cpuset.c: In function âinitialize_root_cpusetâ:
cpuset.c:93: warning: implicit declaration of function
âfind_free_cpuset_spaceâ
make[4]: *** [cpuset.o] Error 1
make[4]: Leaving directory
`/usr/local/src/torque-2.2.1/src/resmom/linux/cpuset'
make[3]: *** [all-recursive] Error 1
make[3]: Leaving directory `/usr/local/src/torque-2.2.1/src/resmom/linux'
make[2]: *** [all-recursive] Error 1
make[2]: Leaving directory `/usr/local/src/torque-2.2.1/src/resmom'
make[1]: *** [all-recursive] Error 1
make[1]: Leaving directory `/usr/local/src/torque-2.2.1/src'
make: *** [all-recursive] Error 1
More information about the torqueusers
mailing list