Tuesday, 10 April 2018

[gccsdk] leveldb fails to build

Hi Theo

The resolution for leveldb not building is to add a lie to the build_detect_platform.p file at autobuilder/libraries/db/leveldb to include port/port_posix_sse.cc as below. In leveldb1.20 this is now needed

JB



--- build_detect_platform.orig  2018-04-09 22:58:02.775136374 +0100
+++ build_detect_platform       2018-04-09 23:32:19.802746920 +0100
@@ -171,6 +171,13 @@
         PLATFORM_LIBS="-lpthread"
         PORT_FILE=port/port_posix.cc
         ;;
+    RISC_OS)
+       PLATFORM=OS_RISCOS
+       COMMON_FLAGS="$MEMCMP_FLAG -D_REENTRANT -DOS_LINUX -DOS_RISCOS -DLEVELDB_PLATFORM_POSIX"
+        PORT_FILE=port/port_posix.cc
+        PORT_SSE_FILE=port/port_posix_sse.cc
+        CROSS_COMPILE=true
+        ;;
     *)
         echo "Unknown platform!" >&2
         exit 1





On 09/04/2018 20:29, Theo Markettos wrote:
On Mon, Apr 09, 2018 at 08:18:04PM +0100, John Ballance wrote:  
Hi    Thanks Theo    Build confirmed    I then tried building QT5, which used to build. Fails at first fence,  autoconf v1.11 expected.. I have v1.15 in my distribution.    Quick patch to resolve that (apt-get wouldn't seem to let me at 1.11) and  past that stage  
  I'm afraid, as you've discovered, that changing OS underneath the  autobuilder is not to be undertaken lightly, for all these kinds of reasons.   We don't have the manpower to chase moving targets of different platforms  (or indeed, fix many of the hundreds of packages to build at all - though  the Jenkins setup helps know what the problems are).    We're happy to accept patches of course!    
Attempt to build libraries/db/leveldb not happy.  Of course I may have a  silly here, but would appreciate a sanity check.. I used to jenkins build  gccsdk and otter weekly. Otter has been failing for a while but not as early  as this ..  
  Hmm, our Jenkins build from July worked:  https://ci.riscos.info/job/packages/job/leveldb/12/  I've just started a new build.    Please post questions about packages to the list not to me directly.  Alan is mostly looking after them these days and he may have more insights.    Theo  

--
Stop press! Just announced -

Jan 2018: Which? rates us No.1 for satisfied energy customers, and No.1 for Home Phone, Broadband, and mobile

For full details of see https://www.utilitywarehouse.co.uk/reviews?exref=095761

Intrigued? Call me

John Ballance C.Eng MIET - jwb@macpcrepair.co.uk - 07976 295923

No comments:

Post a Comment