[torqueusers] Building torque 2.4.3 failed in SLES-11

Brian O'Connor briano at sgi.com
Tue Dec 22 16:41:34 MST 2009


This happened for me on Centos 5.3 (but not on Centos 5.4)

You will have noticed :) at the end of the configure step

------
configure: WARNING: This compilation has strict compiler options enabled that cause
the build to fail if any compiler warnings are emitted.  If this build fails
because of a harmless warning, please report the problem to torqueusers at supercluster.org
and run configure again with --disable-gcc-warnings.
------

I coped out and used "--disable-gcc-warnings"

Seems to be running fine, but I have not seriously tested it yet.

Brian O'Connor
-----------------------------------------------------------------------
SGI Consulting
Email: briano at sgi.com, Mobile +61 417 746 452
Phone: +61 3 9963 1900, Fax:  +61 3 9963 1902
357 Camberwell Road, Camberwell, Victoria, 3124
AUSTRALIA
http://www.sgi.com/support/services
----------------------------------------------------------------------- 

> -----Original Message-----
> From: torqueusers-bounces at supercluster.org 
> [mailto:torqueusers-bounces at supercluster.org] On Behalf Of 
> Albino A. Aveleda
> Sent: Wednesday, 23 December 2009 12:14 AM
> To: torqueusers
> Subject: [torqueusers] Building torque 2.4.3 failed in SLES-11
> 
> Dear All,
> 
>  
> 
> I compiled the torque-2.3.8 with these options below without 
> problems in SLES-11.
> 
>  
> 
> # ./configure --prefix=/usr/local/torque --enable-server 
> --enable-mom --enable-clients --enable-docs \
> 
>    --with-tcl --enable-gui --enable-syslog --enable-tcl-qstat 
> --with-server-home=/var/spool/torque \
> 
>    --with-rcp=/usr/bin/rcp
> # rpmbuild -bb torque.spec
> 
>  
> 
> But when I tried to compile the torque-2.4.3 in the same 
> machine I had this error.
> 
>  
> 
> if gcc -DHAVE_CONFIG_H -I. -I. -I../../src/include  
> -I../../src/include  -DPBS_SERVER_HOME=\"/var/spool/torque\" 
> -DPBS_ENVIRON=\"/var/spool/torque/pbs_environment\" -O2 -g 
> -m64 -fmessage-length=0 -D_FORTIFY_SOURCE=2 -fstack-protector 
> -funwind-tables -fasynchronous-unwind-tables 
> -D_LARGEFILE64_SOURCE -W -Wall -Wno-unused-parameter 
> -Wno-long-long -pedantic -Werror -MT req_locate.o -MD -MP -MF 
> ".deps/req_locate.Tpo" -c -o req_locate.o req_locate.c; \
>         then mv -f ".deps/req_locate.Tpo" 
> ".deps/req_locate.Po"; else rm -f ".deps/req_locate.Tpo"; exit 1; fi
> cc1: warnings being treated as errors
> req_jobobit.c: In function âon_job_exitâ:
> req_jobobit.c:912: error: ignoring return value of âlinkâ, 
> declared with attribute warn_unused_result
> req_jobobit.c:929: error: ignoring return value of âlinkâ, 
> declared with attribute warn_unused_result
> req_jobobit.c:1215: error: ignoring return value of âlinkâ, 
> declared with attribute warn_unused_result
> req_jobobit.c:1232: error: ignoring return value of âlinkâ, 
> declared with attribute warn_unused_result
> make[2]: *** [req_jobobit.o] Error 1
> make[2]: *** Waiting for unfinished jobs....
> make[2]: Leaving directory 
> `/usr/src/packages/BUILD/torque-2.4.3/src/server'
> make[1]: *** [all-recursive] Error 1
> make[1]: Leaving directory `/usr/src/packages/BUILD/torque-2.4.3/src'
> make: *** [all-recursive] Error 1
> error: Bad exit status from /var/tmp/rpm-tmp.17836 (%build)
> 
> 
> RPM build errors:
>     Bad exit status from /var/tmp/rpm-tmp.17836 (%build)
> 
> 
>  
> 
> How do I fix this?
> 
>  
> 
> Have a Merry Christimas. 
> 
>  
> 
> Best regards,
> 
> Bibo
> 
>  
> 
> 


More information about the torqueusers mailing list