[Pkg-ace-devel] Bug#358898: FTBFS on AMD64: cast loses precision

Martin Michlmayr tbm at cyrius.com
Sat Mar 25 01:05:17 UTC 2006


Package: ace
Version: 5.4.7-8
Severity: important

Your package fails to build on AMD64 (and possible Alpha):
 error: cast from 'const ACE_TCHAR*' to 'int' loses precision


> Automatic build of ace_5.4.7-8 on em64t by sbuild/amd64 1.106
...
> g++ -W -Wall -Wpointer-arith -O3 -pipe   -D_REENTRANT -DACE_HAS_AIO_CALLS -D_GNU_SOURCE -DACE_HAS_CUSTOM_EXPORT_MACROS=0 -DACE_HAS_SYS_SIGLIST=1 -DACE_GPERF=\"gperf-ace\"   -I/build/tbm/ace-5.4.7/ACE_wrappers -I/build/tbm/ace-5.4.7/ACE_wrappers/TAO -DACE_NDEBUG -DACE_USE_RCSID=0 -I/usr/kerberos/include -DACE_HAS_EXCEPTIONS -DACE_COMPILE_TIMEPROBES    -I../../.. -I../.. -I.. -DCIAO_CLIENT_BUILD_DLL  -c -fPIC -o .shobj/Client_init.o Client_init.cpp
> /build/tbm/ace-5.4.7/ACE_wrappers/ace/CDR_Stream.inl: In member function 'bool ACE_OutputCDR::write_float(float)':
> /build/tbm/ace-5.4.7/ACE_wrappers/ace/CDR_Stream.inl:232: warning: dereferencing type-punned pointer will break strict-aliasing rules
> /build/tbm/ace-5.4.7/ACE_wrappers/ace/CDR_Stream.inl: In member function 'bool ACE_InputCDR::skip_double()':
> /build/tbm/ace-5.4.7/ACE_wrappers/ace/CDR_Stream.inl:950: warning: dereferencing type-punned pointer will break strict-aliasing rules
> /build/tbm/ace-5.4.7/ACE_wrappers/ace/Env_Value_T.h: In function 'void ACE_Convert(const ACE_TCHAR*, T&) [with T = int]':
> /build/tbm/ace-5.4.7/ACE_wrappers/ace/Env_Value_T.inl:43:   instantiated from 'void ACE_Env_Value<T>::fetch_value() [with T = int]'
> /build/tbm/ace-5.4.7/ACE_wrappers/ace/Env_Value_T.inl:21:   instantiated from 'ACE_Env_Value<T>::ACE_Env_Value(const ACE_TCHAR*, const T&) [with T = int]'
> Client_init.cpp:53:   instantiated from here
> /build/tbm/ace-5.4.7/ACE_wrappers/ace/Env_Value_T.h:98: error: cast from 'const ACE_TCHAR*' to 'int' loses precision
> make[3]: *** [.shobj/Client_init.o] Error 1

-- 
Martin Michlmayr
http://www.cyrius.com/




More information about the Pkg-ace-devel mailing list