Overview
Features
Download
Documentation
Community
Add-Ons & Services

Problem building - Linux PPC

Please post support and help requests here.

Problem building - Linux PPC

Postby rob » 30 May 2007, 19:38

Hello,

first off thank you for an excellent C++ library!

I am trying to build a project of mine built upon Poco
that builds/runs fine on win32, mac os x 10.4 and linux 2.6 x86.

I have problems building Poco on linux 2.6 ppc with both
poco-1.2.9 and poco-1.3.0, without SSL and Data.
The compiler used is
gcc (GCC) 4.1.2 (Ubuntu 4.1.2-0ubuntu4)

Here't the output trying to build 1.3.0 :
(btw 1.2.9 Foundation builds fine but Net fails)

Code: Select all

Compiling src/DynamicAny.cpp (debug, shared)
g++ -Iinclude -I/home/robz/__SVN/rIPE/lib-src/poco-1.3.0/Foundation/include -I/home/robz/__SVN/rIPE/lib-src/poco-1.3.0/XML/include -I/home/robz/__SVN/rIPE/lib-src/poco-1.3.0/Util/include -I/home/robz/__SVN/rIPE/lib-src/poco-1.3.0/Net/include -I/home/robz/__SVN/rIPE/lib-src/poco-1.3.0/CppUnit/include -I/home/robz/__SVN/rIPE/lib-src/poco-1.3.0/Foundation/include -I/home/robz/__SVN/rIPE/lib-src/poco-1.3.0/XML/include -I/home/robz/__SVN/rIPE/lib-src/poco-1.3.0/Util/include -I/home/robz/__SVN/rIPE/lib-src/poco-1.3.0/Net/include -I/home/robz/__SVN/rIPE/lib-src/poco-1.3.0/CppUnit/include -I/home/robz/__SVN/rIPE/lib-src/poco-1.3.0/Foundation/include -I/home/robz/__SVN/rIPE/lib-src/poco-1.3.0/XML/include -I/home/robz/__SVN/rIPE/lib-src/poco-1.3.0/Util/include -I/home/robz/__SVN/rIPE/lib-src/poco-1.3.0/Net/include -I/home/robz/__SVN/rIPE/lib-src/poco-1.3.0/CppUnit/include -I/home/robz/__SVN/rIPE/lib-src/poco-1.3.0/Foundation/include -I/home/robz/__SVN/rIPE/lib-src/poco-1.3.0/XML/include -I/home/robz/__SVN/rIPE/lib-src/poco-1.3.0/Util/include -I/home/robz/__SVN/rIPE/lib-src/poco-1.3.0/Net/include -I/home/robz/__SVN/rIPE/lib-src/poco-1.3.0/CppUnit/include -I/home/robz/__SVN/rIPE/lib-src/poco-1.3.0/Foundation/include -I/home/robz/__SVN/rIPE/lib-src/poco-1.3.0/XML/include -I/home/robz/__SVN/rIPE/lib-src/poco-1.3.0/Util/include -I/home/robz/__SVN/rIPE/lib-src/poco-1.3.0/Net/include -I/home/robz/__SVN/rIPE/lib-src/poco-1.3.0/CppUnit/include -I/home/robz/__SVN/rIPE/lib-src/poco-1.3.0/Foundation/include -I/home/robz/__SVN/rIPE/lib-src/poco-1.3.0/XML/include -I/home/robz/__SVN/rIPE/lib-src/poco-1.3.0/Util/include -I/home/robz/__SVN/rIPE/lib-src/poco-1.3.0/Net/include -I/home/robz/__SVN/rIPE/lib-src/poco-1.3.0/CppUnit/include -I/home/robz/__SVN/rIPE/lib-src/poco-1.3.0/Foundation/include -I/home/robz/__SVN/rIPE/lib-src/poco-1.3.0/XML/include -I/home/robz/__SVN/rIPE/lib-src/poco-1.3.0/Util/include -I/home/robz/__SVN/rIPE/lib-src/poco-1.3.0/Net/include -I/home/robz/__SVN/rIPE/lib-src/poco-1.3.0/CppUnit/include -I/home/robz/__SVN/rIPE/lib-src/poco-1.3.0/Foundation/include -I/home/robz/__SVN/rIPE/lib-src/poco-1.3.0/XML/include -I/home/robz/__SVN/rIPE/lib-src/poco-1.3.0/Util/include -I/home/robz/__SVN/rIPE/lib-src/poco-1.3.0/Net/include -I/home/robz/__SVN/rIPE/lib-src/poco-1.3.0/CppUnit/include -I/home/robz/__SVN/rIPE/lib-src/poco-1.3.0/Foundation/include -I/home/robz/__SVN/rIPE/lib-src/poco-1.3.0/XML/include -I/home/robz/__SVN/rIPE/lib-src/poco-1.3.0/Util/include -I/home/robz/__SVN/rIPE/lib-src/poco-1.3.0/Net/include -I/home/robz/__SVN/rIPE/lib-src/poco-1.3.0/CppUnit/include -Wall -Wno-sign-compare -DPOCO_BUILD_HOST=b00mb0x  -D_XOPEN_SOURCE=500 -D_REENTRANT -D_THREAD_SAFE -D_FILE_OFFSET_BITS=64 -D_LARGEFILE64_SOURCE  -g -D_DEBUG -fPIC -c src/DynamicAny.cpp -o /home/robz/__SVN/rIPE/lib-src/poco-1.3.0/Foundation/obj/Linux/ppc/debug_shared/DynamicAny.o
include/Poco/DynamicAnyHolder.h: In member function ‘void Poco::DynamicAnyHolder::convertToSmaller(const F&, T&) const [with F = Poco::Int16, T = char]’:
include/Poco/DynamicAnyHolder.h:477:   instantiated from here
include/Poco/DynamicAnyHolder.h:107: error: invalid application of ‘sizeof’ to incomplete type ‘POCO_STATIC_ASSERTION_FAILURE’
include/Poco/DynamicAnyHolder.h: In member function ‘void Poco::DynamicAnyHolder::convertToSmaller(const F&, T&) const [with F = Poco::Int32, T = char]’:
include/Poco/DynamicAnyHolder.h:574:   instantiated from here
include/Poco/DynamicAnyHolder.h:107: error: invalid application of ‘sizeof’ to incomplete type ‘POCO_STATIC_ASSERTION_FAILURE’
include/Poco/DynamicAnyHolder.h: In member function ‘void Poco::DynamicAnyHolder::convertToSmaller(const F&, T&) const [with F = Poco::Int64, T = char]’:
include/Poco/DynamicAnyHolder.h:671:   instantiated from here
include/Poco/DynamicAnyHolder.h:107: error: invalid application of ‘sizeof’ to incomplete type ‘POCO_STATIC_ASSERTION_FAILURE’
include/Poco/DynamicAnyHolder.h: In member function ‘void Poco::DynamicAnyHolder::convertUnsignedToSigned(const F&, T&) const [with F = Poco::UInt8, T = char]’:
include/Poco/DynamicAnyHolder.h:768:   instantiated from here
include/Poco/DynamicAnyHolder.h:159: error: invalid application of ‘sizeof’ to incomplete type ‘POCO_STATIC_ASSERTION_FAILURE’
include/Poco/DynamicAnyHolder.h: In member function ‘void Poco::DynamicAnyHolder::convertUnsignedToSigned(const F&, T&) const [with F = Poco::UInt16, T = char]’:
include/Poco/DynamicAnyHolder.h:865:   instantiated from here
include/Poco/DynamicAnyHolder.h:159: error: invalid application of ‘sizeof’ to incomplete type ‘POCO_STATIC_ASSERTION_FAILURE’
include/Poco/DynamicAnyHolder.h: In member function ‘void Poco::DynamicAnyHolder::convertUnsignedToSigned(const F&, T&) const [with F = Poco::UInt32, T = char]’:
include/Poco/DynamicAnyHolder.h:962:   instantiated from here
include/Poco/DynamicAnyHolder.h:159: error: invalid application of ‘sizeof’ to incomplete type ‘POCO_STATIC_ASSERTION_FAILURE’
include/Poco/DynamicAnyHolder.h: In member function ‘void Poco::DynamicAnyHolder::convertUnsignedToSigned(const F&, T&) const [with F = Poco::UInt64, T = char]’:
include/Poco/DynamicAnyHolder.h:1059:   instantiated from here
include/Poco/DynamicAnyHolder.h:159: error: invalid application of ‘sizeof’ to incomplete type ‘POCO_STATIC_ASSERTION_FAILURE’
include/Poco/DynamicAnyHolder.h: In member function ‘void Poco::DynamicAnyHolder::convertToSmaller(const F&, T&) const [with F = float, T = char]’:
include/Poco/DynamicAnyHolder.h:1254:   instantiated from here
include/Poco/DynamicAnyHolder.h:107: error: invalid application of ‘sizeof’ to incomplete type ‘POCO_STATIC_ASSERTION_FAILURE’
include/Poco/DynamicAnyHolder.h: In member function ‘void Poco::DynamicAnyHolder::convertToSmaller(const F&, T&) const [with F = double, T = char]’:
include/Poco/DynamicAnyHolder.h:1358:   instantiated from here
include/Poco/DynamicAnyHolder.h:107: error: invalid application of ‘sizeof’ to incomplete type ‘POCO_STATIC_ASSERTION_FAILURE’
include/Poco/DynamicAnyHolder.h: In member function ‘void Poco::DynamicAnyHolder::convertSignedToUnsigned(const F&, T&) const [with F = char, T = unsigned char]’:
include/Poco/DynamicAnyHolder.h:1420:   instantiated from here
include/Poco/DynamicAnyHolder.h:140: error: invalid application of ‘sizeof’ to incomplete type ‘POCO_STATIC_ASSERTION_FAILURE’
include/Poco/DynamicAnyHolder.h:143: warning: comparison is always false due to limited range of data type
include/Poco/DynamicAnyHolder.h: In member function ‘void Poco::DynamicAnyHolder::convertSignedToUnsigned(const F&, T&) const [with F = char, T = short unsigned int]’:
include/Poco/DynamicAnyHolder.h:1425:   instantiated from here
include/Poco/DynamicAnyHolder.h:140: error: invalid application of ‘sizeof’ to incomplete type ‘POCO_STATIC_ASSERTION_FAILURE’
include/Poco/DynamicAnyHolder.h:143: warning: comparison is always false due to limited range of data type
include/Poco/DynamicAnyHolder.h: In member function ‘void Poco::DynamicAnyHolder::convertSignedToUnsigned(const F&, T&) const [with F = char, T = unsigned int]’:
include/Poco/DynamicAnyHolder.h:1430:   instantiated from here
include/Poco/DynamicAnyHolder.h:140: error: invalid application of ‘sizeof’ to incomplete type ‘POCO_STATIC_ASSERTION_FAILURE’
include/Poco/DynamicAnyHolder.h:143: warning: comparison is always false due to limited range of data type
include/Poco/DynamicAnyHolder.h: In member function ‘void Poco::DynamicAnyHolder::convertSignedToUnsigned(const F&, T&) const [with F = char, T = long long unsigned int]’:
include/Poco/DynamicAnyHolder.h:1435:   instantiated from here
include/Poco/DynamicAnyHolder.h:140: error: invalid application of ‘sizeof’ to incomplete type ‘POCO_STATIC_ASSERTION_FAILURE’
include/Poco/DynamicAnyHolder.h:143: warning: comparison is always false due to limited range of data type
include/Poco/DynamicAnyHolder.h: In member function ‘void Poco::DynamicAnyHolder::convertToSmaller(const F&, T&) const [with F = long int, T = char]’:
include/Poco/DynamicAnyHolder.h:1670:   instantiated from here
include/Poco/DynamicAnyHolder.h:107: error: invalid application of ‘sizeof’ to incomplete type ‘POCO_STATIC_ASSERTION_FAILURE’
include/Poco/DynamicAnyHolder.h: In member function ‘void Poco::DynamicAnyHolder::convertUnsignedToSigned(const F&, T&) const [with F = long unsigned int, T = char]’:
include/Poco/DynamicAnyHolder.h:1767:   instantiated from here
include/Poco/DynamicAnyHolder.h:159: error: invalid application of ‘sizeof’ to incomplete type ‘POCO_STATIC_ASSERTION_FAILURE’
make[1]: *** [/home/robz/__SVN/rIPE/lib-src/poco-1.3.0/Foundation/obj/Linux/ppc/debug_shared/DynamicAny.o] Error 1
make[1]: Leaving directory `/home/robz/__SVN/rIPE/lib-src/poco-1.3.0/Foundation'
make: *** [Foundation-libexec] Error 2


Just thoug I'd let you know, not sure if Linux PPC / gcc version is supposed to be supported.

cheers,

rob
rob
 
Posts: 2
Joined: 09 Oct 2006, 12:21
Location: Netherlands

Re: Problem building - Linux PPC

Postby guenter » 30 May 2007, 20:07

I have posted a patch on Sourceforge: http://sourceforge.net/tracker/index.php?func=detail&aid=1728465&group_id=132964&atid=725711
guenter
 
Posts: 1119
Joined: 11 Jul 2006, 16:27
Location: Austria

Re: Problem building - Linux PPC

Postby rob » 31 May 2007, 14:20

Thank you very much for your quick reaction.

So the patch does indeed solve all problems with the compilation.
Also no further problems with the Net module that I had with 1.2.9 on PPC.

cheers,

rob
rob
 
Posts: 2
Joined: 09 Oct 2006, 12:21
Location: Netherlands


Return to Support

Who is online

Users browsing this forum: eduquint and 3 guests