[torqueusers] help! torque-2.2.1 will not build
Geoff Zelenka
gzelenka at vt.edu
Tue Nov 6 18:19:11 MST 2007
I just got this compiled.
In src/resmom/linux/cpuset/cpuset.c you need to add, in addition to
the other changes in this thread:
#include <pwd.h> //for struct passwd
#define PBS_MOM //for struct task
#include "../mom_mach.h" //for mom_func.h
#include <mom_func.h>
That should get it it to compile the libmomcpuset.a archive.
Then you need to edit the src/resmom/Makefile:
LDADD = linux/libmommach.a linux/cpuset/libmomcpuset.a $(MOMLIBS) $
(PBS_LIBS) $(momcpalib)
Good luck,
Geoff Zelenka
On Nov 4, 2007, at 1:14 AM, Steven DuChene wrote:
> 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
>
> _______________________________________________
> torqueusers mailing list
> torqueusers at supercluster.org
> http://www.supercluster.org/mailman/listinfo/torqueusers
More information about the torqueusers
mailing list