Gentoo Archives: gentoo-embedded

From: Haitao Zhang <pandaswarm@×××××.com>
To: Walter Dnes <gentoo-embedded@l.g.o>, Gentoo embedded <gentoo-embedded@l.g.o>
Subject: Re: [gentoo-embedded] Weird error messages uclibc-ng with Pale Moon
Date: Thu, 09 Mar 2017 06:04:38
Message-Id: 20170309060431.5111890.38131.12616@gmail.com
In Reply to: [gentoo-embedded] Weird error messages uclibc-ng with Pale Moon by Walter Dnes
1 Sent from my BlackBerry Passport.
2   Original Message  
3 From: Walter Dnes
4 Sent: Thursday, March 9, 2017 02:56
5 To: Gentoo embedded
6 Reply To: gentoo-embedded@l.g.o
7 Subject: [gentoo-embedded] Weird error messages uclibc-ng with Pale Moon
8
9 I managed to build Pale Moon on uclibc-ng, but it's flaky and freezes
10 soon after starting. My first attempts to start it were greeted with...
11
12
13 XPCOMGlueLoad error for file /home/waltdnes/pm/palemoon/libplc4.so:
14 File not found
15 Couldn't load XPCOM.
16
17 A bit of Google searching found the suggestion to export LD_LIBRARY_PATH
18 first, e.g...
19
20 LD_LIBRARY_PATH=/home/waltdnes/pm/palemoon /home/waltdnes/pm/palemoon/palemoon
21
22 That gets further; Pale Moon starts up, but freezes soon thereafter..
23 Here are the error messages from the xterm where it was launched from...
24
25
26
27 /home/waltdnes/pm/palemoon/palemoon: '/usr/lib/libc.so' is not an ELF file
28 /home/waltdnes/pm/palemoon/palemoon: '/usr/lib/libc.so' is not an ELF file
29 *************************
30 A coding exception was thrown and uncaught in a Task.
31
32 Full message: TypeError: Stat.xstat is not a function
33 Full stack:
34 stat@resource://gre/modules/osfile/osfile_unix_back.jsm:630:19
35 stat@resource://gre/modules/osfile/osfile_unix_front.jsm:934:36
36 stat@resource://gre/modules/osfile/osfile_async_worker.js:187:1
37 worker.dispatch@resource://gre/modules/osfile/osfile_async_worker.js:31:26
38 anonymous/AbstractWorker.prototype.handleMessage@resource://gre/modules/workers/PromiseWorker.js:122:16
39 @resource://gre/modules/osfile/osfile_async_worker.js:46:43
40
41 *************************
42
43 Notes...
44
45 1) The part between the two "*************************" is repeated 5 or
46 6 times before Pale Moon freezes.
47
48 2) /usr/lib/libc.so is not an ELF file, because it's a *TEXT FILE*!!!
49
50 [UCLIBC][root][/] cat /usr/lib/libc.so
51 /* GNU ld script
52 * Use the shared library, but some functions are only in
53 * the static library, so try that secondarily. */
54 OUTPUT_FORMAT("elf32-i386", "elf32-i386",
55 "elf32-i386")
56 GROUP ( /usr/lib/uclibc_nonshared.a libpthread_nonshared.a
57 /lib/libc.so.0 AS_NEEDED ( /lib/ld-uClibc.so.0 ) )
58
59
60 3) The build process to compile Pale Moon had initially failed early on,
61 because it couldn't find /lib/libc.so.6, so I made one. It's actually a
62 symlink pointing to libuClibc-0.1.0.22.so, the same file that
63 /lib/libc.so.0 points to.
64
65 --
66 Walter Dnes <waltdnes@××××××××.org>