[torqueusers] help! torque-2.2.1 will not build

Geoff Zelenka gzelenka at vt.edu
Wed Nov 7 12:28:45 MST 2007

After the changes made earlier in the thread I get this compile error:

make[4]: Entering directory `/home/gzelenka/ClusterResources/test/ 
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  
make[4]: *** [cpuset.o] Error 1
make[4]: Leaving directory `/home/gzelenka/ClusterResources/test/ 
make[3]: *** [all-recursive] Error 1
make[3]: Leaving directory `/home/gzelenka/ClusterResources/test/ 
make[2]: *** [all-recursive] Error 1
make[2]: Leaving directory `/home/gzelenka/ClusterResources/test/ 
make[1]: *** [all-recursive] Error 1
make[1]: Leaving directory `/home/gzelenka/ClusterResources/test/ 
make: *** [all-recursive] Error 1

So I added <mom_func.h> for the find_free_cpuset_space function  
definition.  Which caused me to have to add the other things.

--Geoff Zelenka

On Nov 7, 2007, at 12:56 PM, Garrick Staples wrote:

> On Tue, Nov 06, 2007 at 08:19:11PM -0500, Geoff Zelenka alleged:
>> 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.
> Are you sure?  There aren't really any mom-specific calls in  
> cpuset.c.  It
> does't use struct task or any of that stuff.  I think the only  
> torque-specific
> calls are for logging.
>> Then you need to edit the src/resmom/Makefile:
>> LDADD = linux/libmommach.a linux/cpuset/libmomcpuset.a $(MOMLIBS) $
>> (PBS_LIBS) $(momcpalib)
> The idea is that libmomcpuset.a is linked into linux/libmommach.a in
> src/resmom/linux/Makefile, and then linux/libmommach.a is linked  
> into pbs_mom.
> _______________________________________________
> torqueusers mailing list
> torqueusers at supercluster.org
> http://www.supercluster.org/mailman/listinfo/torqueusers

More information about the torqueusers mailing list