[torqueusers] Torque 2.3.6 on PPC64

Gabe Turner gabe at msi.umn.edu
Thu Mar 5 16:25:50 MST 2009


This may have already been covered in the past, though I couldn't find
anything via the archives, so I apologize if it's a rehash.

While builfing Torque 2.3.6 on SLES10.2 on PPC64, I get a warning from gcc:

if gcc -DHAVE_CONFIG_H -I. -I. -I../../src/include  -I../../src/include   -O2 -g -m64 -fmessage-length=0 -D_FORTIFY_SOURCE=2 -D_LARGEFILE64_SOURCE -W -Wall -Wno-unused-parameter -Wno-long-long -pedantic -Werror -MT qrerun.o -MD -MP -MF ".deps/qrerun.Tpo" -c -o qrerun.o qrerun.c; \
then mv -f ".deps/qrerun.Tpo" ".deps/qrerun.Po"; else rm -f ".deps/qrerun.Tpo"; exit 1; fi
if gcc -DHAVE_CONFIG_H -I. -I. -I../../src/include  -I../../src/include   -O2 -g -m64 -fmessage-length=0 -D_FORTIFY_SOURCE=2 -D_LARGEFILE64_SOURCE -W -Wall -Wno-unused-parameter -Wno-long-long -pedantic -Werror -MT qrls.o -MD -MP -MF ".deps/qrls.Tpo" -c -o qrls.o qrls.c; \
then mv -f ".deps/qrls.Tpo" ".deps/qrls.Po"; else rm -f ".deps/qrls.Tpo"; exit 1; fi
cc1: warnings being treated as errors
qrerun.c: In function ‘main’:
qrerun.c:131: warning: comparison is always true due to limited range of data type
make[2]: *** [qrerun.o] Error 1
make[2]: *** Waiting for unfinished jobs....
make[2]: Leaving directory `/usr/src/packages/BUILD/torque-2.3.6/src/cmds'
make[1]: *** [all-recursive] Error 1
make[1]: Leaving directory `/usr/src/packages/BUILD/torque-2.3.6/src'
make: *** [all-recursive] Error 1

The relevant line in qrerun.c:

      while ((c = (char) getopt(argc, argv, GETOPT_ARGS)) != EOF)

If I configure with --disable-gcc-warnings, it builds (though, I haven't tested
the functionality yet).  Has anyone else encountered this?  I'm just curious if
it can be ignored on this architecture, or if this is a known-issue.

TIA,

Gabe

-- 
Gabe Turner                                             gabe at msi.umn.edu
UNIX System Administrator,
University of Minnesota
Supercomputing Institute                          http://www.msi.umn.edu


More information about the torqueusers mailing list