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

Garrick garrick at usc.edu
Wed Jul 14 13:40:39 MDT 2010


Rpm is adding stricter compiler flags triggering an error.

Remember that little note at the end of configure about warnings?


HPCC/Linux Systems Admin

On Jul 14, 2010, at 8:03 AM, torqueusers at calcua.ua.ac.be wrote:

> 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
> _______________________________________________
> torqueusers mailing list
> torqueusers at supercluster.org
> http://www.supercluster.org/mailman/listinfo/torqueusers


More information about the torqueusers mailing list