[torquedev] Compile error in 2.4-fixes on Ubuntu 9.10

Chris Samuel csamuel at vpac.org
Sun Nov 22 00:24:20 MST 2009


----- "Chris Samuel" <csamuel at vpac.org> wrote:

> There is a similar issue for fread() on trunk when you
> do --enable-cpuset

This issue is also in 2.3-fixes, fails with:

if gcc -DHAVE_CONFIG_H -I. -I. -I../../../src/include  -I../../../src/include -DPBS_MOM -DDEMUX=\"/usr/local/sbin/pbs_demux\"   -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:157: error: ignoring return value of ‘fread’, declared with attribute warn_unused_result
cpuset.c:183: error: ignoring return value of ‘fread’, declared with attribute warn_unused_result
cpuset.c: In function ‘create_jobset’:
cpuset.c:294: error: ignoring return value of ‘fread’, declared with attribute warn_unused_result
cpuset.c:378: error: ignoring return value of ‘fread’, declared with attribute warn_unused_result
make[3]: *** [cpuset.o] Error 1

-- 
Christopher Samuel - (03) 9925 4751 - Systems Manager
 The Victorian Partnership for Advanced Computing
 P.O. Box 201, Carlton South, VIC 3053, Australia
VPAC is a not-for-profit Registered Research Agency


More information about the torquedev mailing list