From nickyperian at gmail.com Tue Jun 4 12:28:40 2019 From: nickyperian at gmail.com (Nicky Perian) Date: Tue, 4 Jun 2019 14:28:40 -0500 Subject: [opensource-dev] LL_TESTS:BOOL=ON Message-ID: This is a Kokua viewer question but, should apply to other third party viewers and to LL's viewer-release once Linux is re-implemented. Note: all tests pass on MacOs and VS2013. Kokua's branch with no rlv is used as it is closest to viewer-release code. My approach is to use skip(..) to bypass tests that do not work on a linux build then once the viewer builds go back an attack each skipped test one by one. Test: Building CXX object llcorehttp/CMakeFiles/INTEGRATION_TEST_llcorehttp.dir/tests/test_allocator.cpp.o Faiis with: home/bill/kokua-sl-np-sandbox/indra/llcorehttp/tests/test_allocator.cpp: In function ?void* operator new(std::size_t)?: /home/bill/kokua-sl-np-sandbox/indra/llcorehttp/tests/test_allocator.cpp:51:47: error: declaration of ?void* operator new(std::size_t) throw (std::bad_alloc)? has a different exception specifier #define THROW_BAD_ALLOC() throw(std::bad_alloc) ^ /home/bill/kokua-sl-np-sandbox/indra/llcorehttp/tests/test_allocator.cpp:155:39: note: in expansion of macro ?THROW_BAD_ALLOC? void * operator new(std::size_t size) THROW_BAD_ALLOC() ^ In file included from /home/bill/kokua-sl-np-sandbox/indra/llcorehttp/tests/test_allocator.cpp:27:0: /home/bill/kokua-sl-np-sandbox/indra/llcorehttp/tests/test_allocator.h:40:8: error: from previous declaration ?void* operator new(std::size_t)? void * operator new(std::size_t size) throw (std::bad_alloc); ^ /home/bill/kokua-sl-np-sandbox/indra/llcorehttp/tests/test_allocator.cpp:51:47: error: declaration of ?void* operator new [](std::size_t) throw (std::bad_alloc)? has a different exception specifier #define THROW_BAD_ALLOC() throw(std::bad_alloc) ^ /home/bill/kokua-sl-np-sandbox/indra/llcorehttp/tests/test_allocator.cpp:161:41: note: in expansion of macro ?THROW_BAD_ALLOC? void * operator new[](std::size_t size) THROW_BAD_ALLOC() ^ In file included from /home/bill/kokua-sl-np-sandbox/indra/llcorehttp/tests/test_allocator.cpp:27:0: /home/bill/kokua-sl-np-sandbox/indra/llcorehttp/tests/test_allocator.h:41:8: error: from previous declaration ?void* operator new [](std::size_t)? void * operator new[](std::size_t size) throw (std::bad_alloc); ^ The code for this test is the same as what is in viewer-release. Distribution: gcc (Ubuntu 5.5.0-12ubuntu1~16.04) 5.5.0 20171010 My thought was that MARCO expansion had changed with -c++11 or between gcc-4.6 and 5.5. Bottom line is, I need help. Nicky -------------- next part -------------- An HTML attachment was scrubbed... URL: http://lists.secondlife.com/pipermail/opensource-dev/attachments/20190604/29b87678/attachment.htm From cinder at alchemyviewer.org Tue Jun 4 12:56:56 2019 From: cinder at alchemyviewer.org (Cinder Roxley) Date: Tue, 4 Jun 2019 12:56:56 -0700 Subject: [opensource-dev] LL_TESTS:BOOL=ON In-Reply-To: References: Message-ID: Short answer, in C++11, dynamic exception specifications have been deprecated. http://www.open-std.org/jtc1/sc22/wg21/docs/papers/2010/n3051.html On June 4, 2019 at 2:28:57 PM, Nicky Perian (nickyperian at gmail.com) wrote: This is a Kokua viewer question but, should apply to other third party viewers and to LL's viewer-release once Linux is re-implemented. Note: all tests pass on MacOs and VS2013. Kokua's branch with no rlv is used as it is closest to viewer-release code. My approach is to use skip(..) to bypass tests that do not work on a linux build then once the viewer builds go back an attack each skipped test one by one. Test: Building CXX object llcorehttp/CMakeFiles/INTEGRATION_TEST_llcorehttp.dir/tests/test_allocator.cpp.o Faiis with: home/bill/kokua-sl-np-sandbox/indra/llcorehttp/tests/test_allocator.cpp: In function ?void* operator new(std::size_t)?: /home/bill/kokua-sl-np-sandbox/indra/llcorehttp/tests/test_allocator.cpp:51:47: error: declaration of ?void* operator new(std::size_t) throw (std::bad_alloc)? has a different exception specifier #define THROW_BAD_ALLOC() throw(std::bad_alloc) ^ /home/bill/kokua-sl-np-sandbox/indra/llcorehttp/tests/test_allocator.cpp:155:39: note: in expansion of macro ?THROW_BAD_ALLOC? void * operator new(std::size_t size) THROW_BAD_ALLOC() ^ In file included from /home/bill/kokua-sl-np-sandbox/indra/llcorehttp/tests/test_allocator.cpp:27:0: /home/bill/kokua-sl-np-sandbox/indra/llcorehttp/tests/test_allocator.h:40:8: error: from previous declaration ?void* operator new(std::size_t)? void * operator new(std::size_t size) throw (std::bad_alloc); ^ /home/bill/kokua-sl-np-sandbox/indra/llcorehttp/tests/test_allocator.cpp:51:47: error: declaration of ?void* operator new [](std::size_t) throw (std::bad_alloc)? has a different exception specifier #define THROW_BAD_ALLOC() throw(std::bad_alloc) ^ /home/bill/kokua-sl-np-sandbox/indra/llcorehttp/tests/test_allocator.cpp:161:41: note: in expansion of macro ?THROW_BAD_ALLOC? void * operator new[](std::size_t size) THROW_BAD_ALLOC() ^ In file included from /home/bill/kokua-sl-np-sandbox/indra/llcorehttp/tests/test_allocator.cpp:27:0: /home/bill/kokua-sl-np-sandbox/indra/llcorehttp/tests/test_allocator.h:41:8: error: from previous declaration ?void* operator new [](std::size_t)? void * operator new[](std::size_t size) throw (std::bad_alloc); ^ The code for this test is the same as what is in viewer-release. Distribution: gcc (Ubuntu 5.5.0-12ubuntu1~16.04) 5.5.0 20171010 My thought was that MARCO expansion had changed with -c++11 or between gcc-4.6 and 5.5. Bottom line is, I need help. Nicky _______________________________________________ Policies and (un)subscribe information available here: http://wiki.secondlife.com/wiki/OpenSource-Dev Please read the policies before posting to keep unmoderated posting privileges -------------- next part -------------- An HTML attachment was scrubbed... URL: http://lists.secondlife.com/pipermail/opensource-dev/attachments/20190604/00192025/attachment.htm