[torqueusers] torque 2.4.8: make rpm fails with --enable-cpuset

torqueusers at calcua.ua.ac.be torqueusers at calcua.ua.ac.be
Wed Jul 14 09:03:04 MDT 2010


Hello,

Building torque-2.4.8 with the option --enable-cpuset works fine when 
using configure/make, but trying to create rpms with 'make rpm' results in 
an error.

With configure/make, the lines in the building process in which cpuset.o 
appears are

   if gcc -DHAVE_CONFIG_H -I. -I. -I../../../src/include
   -I../../../src/include -DPBS_MOM
   -DDEMUX=\"/usr/local/torque/sbin/pbs_demux\"   -g -O2
   -D_LARGEFILE64_SOURCE -W -Wall -Wno-unused-parameter -Wno-long-long
   -pedantic -Werror -DGEOMETRY_REQUESTS -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
   rm -f libmommach.a
   ar cru libmommach.a mom_mach.o mom_start.o pe_input.o cpuset.o
   ranlib libmommach.a

With 'make rpm', the building process shows

   if gcc -DHAVE_CONFIG_H -I. -I. -I../../../src/include
   -I../../../src/include -DPBS_MOM
   -DDEMUX=\"/usr/local/torque/sbin/pbs_demux\"   -O2 -g -pipe -Wall
   -Wp,-D_FORTIFY_SOURCE=2 -fexceptions -fstack-protector
   --param=ssp-buffer-size=4 -m64 -mtune=generic -D_LARGEFILE64_SOURCE -W
   -Wall -Wno-unused-parameter -Wno-long-long -pedantic -Werror
   -DGEOMETRY_REQUESTS -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:433: warning: ignoring return value of 'fwrite', declared with
     attribute warn_unused_result
   cpuset.c:483: warning: ignoring return value of 'fwrite', declared with
     attribute warn_unused_result
   cpuset.c: In function 'init_jobset':
   cpuset.c:624: warning: ignoring return value of 'fwrite', declared with
     attribute warn_unused_result
   cpuset.c: In function 'create_vnodesets':
   cpuset.c:688: warning: ignoring return value of 'fwrite', declared with
     attribute warn_unused_result
   cpuset.c:708: warning: ignoring return value of 'fwrite', declared with
     attribute warn_unused_result
   cpuset.c: In function 'add_cpus_to_jobset':
   cpuset.c:764: warning: ignoring return value of 'fwrite', declared with
     attribute warn_unused_result
   cpuset.c: In function 'move_to_jobset':
   cpuset.c:838: warning: ignoring return value of 'fwrite', declared with
     attribute warn_unused_result
   cpuset.c: In function 'move_to_taskset':
   cpuset.c:878: warning: ignoring return value of 'fwrite', declared with
     attribute warn_unused_result
   make[4]: *** [cpuset.o] Error 1
   make[4]: *** Waiting for unfinished jobs....

I don't know what causes this behavior.  Anyone?

-- Regards,

Franky Backeljauw


More information about the torqueusers mailing list