You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@qpid.apache.org by Robbie Gemmell <ro...@gmail.com> on 2013/04/23 12:08:38 UTC
[C++] build failure on RHEL5
Hi all,
I am no longer able to compile the trunk C++ tree on my RHEL5 box, with
some warnings being treated as errors and causing the build to stop. If it
matters, this is still the Automake build as I don't have cmake installed
on this box yet. It does work with cmake on a Ubuntu 12.04 box.
I recalled there being some changes to the file in question late last week,
via QPID-4748 / http://svn.apache.org/r1469661 so I tried reverting back to
just before that commit and the build was then able to complete
successfully.
Is there a way we can make this old RHEL5 box happy again? :)
Robbie
g++ -DHAVE_CONFIG_H -I. -I. -I. -I../include -I../include -I. -I= -Werror
-pedantic -Wall -Wextra -Wno-shadow -Wpointer-arith -Wcast-qual
-Wcast-align -Wno-long-long -Wvolatile-register-var -Winvalid-pch
-Wno-system-headers -Woverloaded-virtual -g -O2 -MT qpid/sys/posix/Time.lo
-MD -MP -MF qpid/sys/posix/.deps/Time.Tpo -c qpid/sys/posix/Time.cpp -fPIC
-DPIC -o qpid/sys/posix/.libs/Time.o
cc1plus: warnings being treated as errors
qpid/sys/posix/Time.cpp: In function 'std::istream&
qpid::sys::operator>>(std::istream&, qpid::sys::Duration&)':
qpid/sys/posix/Time.cpp:96: warning: passing 'double' for argument 1 to
'qpid::sys::Duration::Duration(int64_t)'
qpid/sys/posix/Time.cpp:101: warning: passing 'double' for argument 1 to
'qpid::sys::Duration::Duration(int64_t)'
qpid/sys/posix/Time.cpp:102: warning: passing 'double' for argument 1 to
'qpid::sys::Duration::Duration(int64_t)'
qpid/sys/posix/Time.cpp:103: warning: passing 'double' for argument 1 to
'qpid::sys::Duration::Duration(int64_t)'
qpid/sys/posix/Time.cpp:104: warning: passing 'double' for argument 1 to
'qpid::sys::Duration::Duration(int64_t)'
depbase=`echo qpid/sys/posix/Thread.lo | sed
's|[^/]*$|.deps/&|;s|\.lo$||'`; \
if /bin/sh ../libtool --tag=CXX --mode=compile g++ -DHAVE_CONFIG_H
-I. -I. -I. -I../include -I../include -I. -I= -Werror -pedantic -Wall
-Wextra -Wno-shadow -Wpointer-arith -Wcast-qual -Wcast-align -Wno-long-long
-Wvolatile-register-var -Winvalid-pch -Wno-system-headers
-Woverloaded-virtual -g -O2 -MT qpid/sys/posix/Thread.lo -MD -MP -MF
"$depbase.Tpo" -c -o qpid/sys/posix/Thread.lo qpid/sys/posix/Thread.cpp; \
then mv -f "$depbase.Tpo" "$depbase.Plo"; else rm -f
"$depbase.Tpo"; exit 1; fi
make[3]: *** [qpid/sys/posix/Time.lo] Error 1
make[3]: *** Waiting for unfinished jobs....
g++ -DHAVE_CONFIG_H -I. -I. -I. -I../include -I../include -I. -I= -Werror
-pedantic -Wall -Wextra -Wno-shadow -Wpointer-arith -Wcast-qual
-Wcast-align -Wno-long-long -Wvolatile-register-var -Winvalid-pch
-Wno-system-headers -Woverloaded-virtual -g -O2 -MT
qpid/sys/posix/Thread.lo -MD -MP -MF qpid/sys/posix/.deps/Thread.Tpo -c
qpid/sys/posix/Thread.cpp -fPIC -DPIC -o qpid/sys/posix/.libs/Thread.o
make[3]: Leaving directory `/home/gemmellr/workspace/qpid/qpid/cpp/src'
make[2]: *** [all-recursive] Error 1
make[2]: Leaving directory `/home/gemmellr/workspace/qpid/qpid/cpp/src'
make[1]: *** [all] Error 2
make[1]: Leaving directory `/home/gemmellr/workspace/qpid/qpid/cpp/src'
make: *** [all-recursive] Error 1
Re: [C++] build failure on RHEL5
Posted by Oleksandr Rudyy <or...@gmail.com>.
Hi,
The cmake build fails with the same error:
[ 22%] Building CXX object src/CMakeFiles/qpidcommon.dir/
qpid/sys/posix/Time.o
cc1plus: warnings being treated as errors
/home/f391718/workspace/qpid/qpid/cpp/src/qpid/sys/posix/Time.cpp: In
function ‘std::istream& qpid::sys::operator>>(std::istream&,
qpid::sys::Duration&)’:
/home/f391718/workspace/qpid/qpid/cpp/src/qpid/sys/posix/Time.cpp:96:
warning: passing ‘double’ for argument 1 to
‘qpid::sys::Duration::Duration(int64_t)’
/home/f391718/workspace/qpid/qpid/cpp/src/qpid/sys/posix/Time.cpp:101:
warning: passing ‘double’ for argument 1 to
‘qpid::sys::Duration::Duration(int64_t)’
/home/f391718/workspace/qpid/qpid/cpp/src/qpid/sys/posix/Time.cpp:102:
warning: passing ‘double’ for argument 1 to
‘qpid::sys::Duration::Duration(int64_t)’
/home/f391718/workspace/qpid/qpid/cpp/src/qpid/sys/posix/Time.cpp:103:
warning: passing ‘double’ for argument 1 to
‘qpid::sys::Duration::Duration(int64_t)’
/home/f391718/workspace/qpid/qpid/cpp/src/qpid/sys/posix/Time.cpp:104:
warning: passing ‘double’ for argument 1 to
‘qpid::sys::Duration::Duration(int64_t)’
make[2]: *** [src/CMakeFiles/qpidcommon.dir/qpid/sys/posix/Time.o] Error 1
make[1]: *** [src/CMakeFiles/qpidcommon.dir/all] Error 2
make: *** [all] Error 2
$ cmake --version
cmake version 2.8.4
$ cat /etc/redhat-release
Red Hat Enterprise Linux Server release 5.3 (Tikanga)
$ gcc --version
gcc (GCC) 4.1.2 20080704 (Red Hat 4.1.2-44)
Copyright (C) 2006 Free Software Foundation, Inc.
This is free software; see the source for copying conditions. There is NO
warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
Kind Regards,
Alex
On 23 April 2013 11:08, Robbie Gemmell <ro...@gmail.com> wrote:
> Hi all,
>
> I am no longer able to compile the trunk C++ tree on my RHEL5 box, with
> some warnings being treated as errors and causing the build to stop. If it
> matters, this is still the Automake build as I don't have cmake installed
> on this box yet. It does work with cmake on a Ubuntu 12.04 box.
>
> I recalled there being some changes to the file in question late last week,
> via QPID-4748 / http://svn.apache.org/r1469661 so I tried reverting back
> to
> just before that commit and the build was then able to complete
> successfully.
>
> Is there a way we can make this old RHEL5 box happy again? :)
>
> Robbie
>
>
> g++ -DHAVE_CONFIG_H -I. -I. -I. -I../include -I../include -I. -I= -Werror
> -pedantic -Wall -Wextra -Wno-shadow -Wpointer-arith -Wcast-qual
> -Wcast-align -Wno-long-long -Wvolatile-register-var -Winvalid-pch
> -Wno-system-headers -Woverloaded-virtual -g -O2 -MT qpid/sys/posix/Time.lo
> -MD -MP -MF qpid/sys/posix/.deps/Time.Tpo -c qpid/sys/posix/Time.cpp -fPIC
> -DPIC -o qpid/sys/posix/.libs/Time.o
> cc1plus: warnings being treated as errors
> qpid/sys/posix/Time.cpp: In function 'std::istream&
> qpid::sys::operator>>(std::istream&, qpid::sys::Duration&)':
> qpid/sys/posix/Time.cpp:96: warning: passing 'double' for argument 1 to
> 'qpid::sys::Duration::Duration(int64_t)'
> qpid/sys/posix/Time.cpp:101: warning: passing 'double' for argument 1 to
> 'qpid::sys::Duration::Duration(int64_t)'
> qpid/sys/posix/Time.cpp:102: warning: passing 'double' for argument 1 to
> 'qpid::sys::Duration::Duration(int64_t)'
> qpid/sys/posix/Time.cpp:103: warning: passing 'double' for argument 1 to
> 'qpid::sys::Duration::Duration(int64_t)'
> qpid/sys/posix/Time.cpp:104: warning: passing 'double' for argument 1 to
> 'qpid::sys::Duration::Duration(int64_t)'
> depbase=`echo qpid/sys/posix/Thread.lo | sed
> 's|[^/]*$|.deps/&|;s|\.lo$||'`; \
> if /bin/sh ../libtool --tag=CXX --mode=compile g++ -DHAVE_CONFIG_H
> -I. -I. -I. -I../include -I../include -I. -I= -Werror -pedantic -Wall
> -Wextra -Wno-shadow -Wpointer-arith -Wcast-qual -Wcast-align -Wno-long-long
> -Wvolatile-register-var -Winvalid-pch -Wno-system-headers
> -Woverloaded-virtual -g -O2 -MT qpid/sys/posix/Thread.lo -MD -MP -MF
> "$depbase.Tpo" -c -o qpid/sys/posix/Thread.lo qpid/sys/posix/Thread.cpp; \
> then mv -f "$depbase.Tpo" "$depbase.Plo"; else rm -f
> "$depbase.Tpo"; exit 1; fi
> make[3]: *** [qpid/sys/posix/Time.lo] Error 1
> make[3]: *** Waiting for unfinished jobs....
> g++ -DHAVE_CONFIG_H -I. -I. -I. -I../include -I../include -I. -I= -Werror
> -pedantic -Wall -Wextra -Wno-shadow -Wpointer-arith -Wcast-qual
> -Wcast-align -Wno-long-long -Wvolatile-register-var -Winvalid-pch
> -Wno-system-headers -Woverloaded-virtual -g -O2 -MT
> qpid/sys/posix/Thread.lo -MD -MP -MF qpid/sys/posix/.deps/Thread.Tpo -c
> qpid/sys/posix/Thread.cpp -fPIC -DPIC -o qpid/sys/posix/.libs/Thread.o
> make[3]: Leaving directory `/home/gemmellr/workspace/qpid/qpid/cpp/src'
> make[2]: *** [all-recursive] Error 1
> make[2]: Leaving directory `/home/gemmellr/workspace/qpid/qpid/cpp/src'
> make[1]: *** [all] Error 2
> make[1]: Leaving directory `/home/gemmellr/workspace/qpid/qpid/cpp/src'
> make: *** [all-recursive] Error 1
>
Re: [C++] build failure on RHEL5
Posted by Robbie Gemmell <ro...@gmail.com>.
Thanks Alan, all working again now :)
Nitpick: the original commit had a JIRA reference so it seems like the
update commit should have had [the same] one as well rather than NO-JIRA.
Robbie
On 23 April 2013 17:07, Alan Conway <ac...@redhat.com> wrote:
> On 04/23/2013 06:08 AM, Robbie Gemmell wrote:
>
>> Hi all,
>>
>> I am no longer able to compile the trunk C++ tree on my RHEL5 box, with
>> some warnings being treated as errors and causing the build to stop. If it
>> matters, this is still the Automake build as I don't have cmake installed
>> on this box yet. It does work with cmake on a Ubuntu 12.04 box.
>>
>>
> My bad, will fix today.
>
>
> I recalled there being some changes to the file in question late last
>> week,
>> via QPID-4748 / http://svn.apache.org/r1469661 so I tried reverting back
>> to
>> just before that commit and the build was then able to complete
>> successfully.
>>
>> Is there a way we can make this old RHEL5 box happy again? :)
>>
>> Robbie
>>
>>
>> g++ -DHAVE_CONFIG_H -I. -I. -I. -I../include -I../include -I. -I=
>> -Werror
>> -pedantic -Wall -Wextra -Wno-shadow -Wpointer-arith -Wcast-qual
>> -Wcast-align -Wno-long-long -Wvolatile-register-var -Winvalid-pch
>> -Wno-system-headers -Woverloaded-virtual -g -O2 -MT qpid/sys/posix/Time.lo
>> -MD -MP -MF qpid/sys/posix/.deps/Time.Tpo -c qpid/sys/posix/Time.cpp
>> -fPIC
>> -DPIC -o qpid/sys/posix/.libs/Time.o
>> cc1plus: warnings being treated as errors
>> qpid/sys/posix/Time.cpp: In function 'std::istream&
>> qpid::sys::operator>>(std::**istream&, qpid::sys::Duration&)':
>> qpid/sys/posix/Time.cpp:96: warning: passing 'double' for argument 1 to
>> 'qpid::sys::Duration::**Duration(int64_t)'
>> qpid/sys/posix/Time.cpp:101: warning: passing 'double' for argument 1 to
>> 'qpid::sys::Duration::**Duration(int64_t)'
>> qpid/sys/posix/Time.cpp:102: warning: passing 'double' for argument 1 to
>> 'qpid::sys::Duration::**Duration(int64_t)'
>> qpid/sys/posix/Time.cpp:103: warning: passing 'double' for argument 1 to
>> 'qpid::sys::Duration::**Duration(int64_t)'
>> qpid/sys/posix/Time.cpp:104: warning: passing 'double' for argument 1 to
>> 'qpid::sys::Duration::**Duration(int64_t)'
>> depbase=`echo qpid/sys/posix/Thread.lo | sed
>> 's|[^/]*$|.deps/&|;s|\.lo$||'`**; \
>> if /bin/sh ../libtool --tag=CXX --mode=compile g++
>> -DHAVE_CONFIG_H
>> -I. -I. -I. -I../include -I../include -I. -I= -Werror -pedantic -Wall
>> -Wextra -Wno-shadow -Wpointer-arith -Wcast-qual -Wcast-align
>> -Wno-long-long
>> -Wvolatile-register-var -Winvalid-pch -Wno-system-headers
>> -Woverloaded-virtual -g -O2 -MT qpid/sys/posix/Thread.lo -MD -MP -MF
>> "$depbase.Tpo" -c -o qpid/sys/posix/Thread.lo qpid/sys/posix/Thread.cpp; \
>> then mv -f "$depbase.Tpo" "$depbase.Plo"; else rm -f
>> "$depbase.Tpo"; exit 1; fi
>> make[3]: *** [qpid/sys/posix/Time.lo] Error 1
>> make[3]: *** Waiting for unfinished jobs....
>> g++ -DHAVE_CONFIG_H -I. -I. -I. -I../include -I../include -I. -I=
>> -Werror
>> -pedantic -Wall -Wextra -Wno-shadow -Wpointer-arith -Wcast-qual
>> -Wcast-align -Wno-long-long -Wvolatile-register-var -Winvalid-pch
>> -Wno-system-headers -Woverloaded-virtual -g -O2 -MT
>> qpid/sys/posix/Thread.lo -MD -MP -MF qpid/sys/posix/.deps/Thread.**Tpo -c
>> qpid/sys/posix/Thread.cpp -fPIC -DPIC -o qpid/sys/posix/.libs/Thread.o
>> make[3]: Leaving directory `/home/gemmellr/workspace/**qpid/qpid/cpp/src'
>> make[2]: *** [all-recursive] Error 1
>> make[2]: Leaving directory `/home/gemmellr/workspace/**qpid/qpid/cpp/src'
>> make[1]: *** [all] Error 2
>> make[1]: Leaving directory `/home/gemmellr/workspace/**qpid/qpid/cpp/src'
>> make: *** [all-recursive] Error 1
>>
>>
Re: [C++] build failure on RHEL5
Posted by Alan Conway <ac...@redhat.com>.
On 04/23/2013 06:08 AM, Robbie Gemmell wrote:
> Hi all,
>
> I am no longer able to compile the trunk C++ tree on my RHEL5 box, with
> some warnings being treated as errors and causing the build to stop. If it
> matters, this is still the Automake build as I don't have cmake installed
> on this box yet. It does work with cmake on a Ubuntu 12.04 box.
>
My bad, will fix today.
> I recalled there being some changes to the file in question late last week,
> via QPID-4748 / http://svn.apache.org/r1469661 so I tried reverting back to
> just before that commit and the build was then able to complete
> successfully.
>
> Is there a way we can make this old RHEL5 box happy again? :)
>
> Robbie
>
>
> g++ -DHAVE_CONFIG_H -I. -I. -I. -I../include -I../include -I. -I= -Werror
> -pedantic -Wall -Wextra -Wno-shadow -Wpointer-arith -Wcast-qual
> -Wcast-align -Wno-long-long -Wvolatile-register-var -Winvalid-pch
> -Wno-system-headers -Woverloaded-virtual -g -O2 -MT qpid/sys/posix/Time.lo
> -MD -MP -MF qpid/sys/posix/.deps/Time.Tpo -c qpid/sys/posix/Time.cpp -fPIC
> -DPIC -o qpid/sys/posix/.libs/Time.o
> cc1plus: warnings being treated as errors
> qpid/sys/posix/Time.cpp: In function 'std::istream&
> qpid::sys::operator>>(std::istream&, qpid::sys::Duration&)':
> qpid/sys/posix/Time.cpp:96: warning: passing 'double' for argument 1 to
> 'qpid::sys::Duration::Duration(int64_t)'
> qpid/sys/posix/Time.cpp:101: warning: passing 'double' for argument 1 to
> 'qpid::sys::Duration::Duration(int64_t)'
> qpid/sys/posix/Time.cpp:102: warning: passing 'double' for argument 1 to
> 'qpid::sys::Duration::Duration(int64_t)'
> qpid/sys/posix/Time.cpp:103: warning: passing 'double' for argument 1 to
> 'qpid::sys::Duration::Duration(int64_t)'
> qpid/sys/posix/Time.cpp:104: warning: passing 'double' for argument 1 to
> 'qpid::sys::Duration::Duration(int64_t)'
> depbase=`echo qpid/sys/posix/Thread.lo | sed
> 's|[^/]*$|.deps/&|;s|\.lo$||'`; \
> if /bin/sh ../libtool --tag=CXX --mode=compile g++ -DHAVE_CONFIG_H
> -I. -I. -I. -I../include -I../include -I. -I= -Werror -pedantic -Wall
> -Wextra -Wno-shadow -Wpointer-arith -Wcast-qual -Wcast-align -Wno-long-long
> -Wvolatile-register-var -Winvalid-pch -Wno-system-headers
> -Woverloaded-virtual -g -O2 -MT qpid/sys/posix/Thread.lo -MD -MP -MF
> "$depbase.Tpo" -c -o qpid/sys/posix/Thread.lo qpid/sys/posix/Thread.cpp; \
> then mv -f "$depbase.Tpo" "$depbase.Plo"; else rm -f
> "$depbase.Tpo"; exit 1; fi
> make[3]: *** [qpid/sys/posix/Time.lo] Error 1
> make[3]: *** Waiting for unfinished jobs....
> g++ -DHAVE_CONFIG_H -I. -I. -I. -I../include -I../include -I. -I= -Werror
> -pedantic -Wall -Wextra -Wno-shadow -Wpointer-arith -Wcast-qual
> -Wcast-align -Wno-long-long -Wvolatile-register-var -Winvalid-pch
> -Wno-system-headers -Woverloaded-virtual -g -O2 -MT
> qpid/sys/posix/Thread.lo -MD -MP -MF qpid/sys/posix/.deps/Thread.Tpo -c
> qpid/sys/posix/Thread.cpp -fPIC -DPIC -o qpid/sys/posix/.libs/Thread.o
> make[3]: Leaving directory `/home/gemmellr/workspace/qpid/qpid/cpp/src'
> make[2]: *** [all-recursive] Error 1
> make[2]: Leaving directory `/home/gemmellr/workspace/qpid/qpid/cpp/src'
> make[1]: *** [all] Error 2
> make[1]: Leaving directory `/home/gemmellr/workspace/qpid/qpid/cpp/src'
> make: *** [all-recursive] Error 1
>
---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@qpid.apache.org
For additional commands, e-mail: dev-help@qpid.apache.org