Comments (9)
no .so have this impl
~/src/firefox-102.9.0/obj-ff-dbg/dist/bin> for SO in *.so; do echo $SO; nm $SO | grep moz_create_arena_with_params; done
libipcclientcerts.so
liblgpllibs.so
libmozavcodec.so
libmozavutil.so
libmozgtk.so
libmozsqlite3.so
libmozwayland.so
libxul.so
w moz_create_arena_with_params
from inari.
In working environment (aarch64 firefox-esr on debian on crostini on chromebook)
files
kenz@penguin:/usr/lib/firefox-esr$ ls *.so | cat
libfreeblpriv3.so
libipcclientcerts.so
liblgpllibs.so
libmozavcodec.so
libmozavutil.so
libmozgtk.so
libmozsandbox.so
libmozsqlite3.so
libmozwayland.so
libnspr4.so
libnss3.so
libnssckbi.so
libnssutil3.so
libplc4.so
libplds4.so
libsmime3.so
libsoftokn3.so
libssl3.so
libxul.so
all files stripped, so couldn't check how moz_create_arena_with_params live.
from inari.
built here, but not linked?
~/src/firefox-102.9.0/obj-ff-dbg/memory> nm ./build/Unified_cpp_memory_build0.o
U calloc
U free
U malloc
U memalign
0000000000000000 T moz_arena_calloc
0000000000000000 T moz_arena_free
0000000000000000 T moz_arena_malloc
0000000000000000 T moz_arena_memalign
0000000000000000 T moz_arena_realloc
0000000000000000 T moz_create_arena_with_params
0000000000000000 T moz_dispose_arena
U realloc
from inari.
diff --git a/build/gecko_templates.mozbuild b/build/gecko_templates.mozbuild
index 51aae5b870..f8d359f35f 100644
--- a/build/gecko_templates.mozbuild
+++ b/build/gecko_templates.mozbuild
@@ -41,7 +41,8 @@ def GeckoBinary(linkage='dependent', mozglue=None):
USE_LIBS += ['mozglue']
DEFINES['MOZ_HAS_MOZGLUE'] = True
if CONFIG['MOZ_GLUE_IN_PROGRAM'] and CONFIG['CC_TYPE'] in ('clang', 'gcc'):
- LDFLAGS += ['-rdynamic']
+ #LDFLAGS += ['-rdynamic']
+ pass
elif mozglue == 'library':
LIBRARY_DEFINES['MOZ_HAS_MOZGLUE'] = True
if not CONFIG['MOZ_GLUE_IN_PROGRAM']:
from inari.
diff --git a/build/gecko_templates.mozbuild b/build/gecko_templates.mozbuild
index 51aae5b870..5f0db3acdf 100644
--- a/build/gecko_templates.mozbuild
+++ b/build/gecko_templates.mozbuild
@@ -41,7 +41,9 @@ def GeckoBinary(linkage='dependent', mozglue=None):
USE_LIBS += ['mozglue']
DEFINES['MOZ_HAS_MOZGLUE'] = True
if CONFIG['MOZ_GLUE_IN_PROGRAM'] and CONFIG['CC_TYPE'] in ('clang', 'gcc'):
- LDFLAGS += ['-rdynamic']
+ #LDFLAGS += ['-rdynamic']
+ LDFLAGS += ['-Wl,--export-all-symbols']
+ pass
elif mozglue == 'library':
LIBRARY_DEFINES['MOZ_HAS_MOZGLUE'] = True
if not CONFIG['MOZ_GLUE_IN_PROGRAM']:
this didn't help
1:46.64 /boot/system/develop/tools/bin/../lib/gcc/x86_64-unknown-haiku/11.2.0/../../../../x86_64-unknown-haiku/bin/ld: unrecognized option '--export-all-symbols'
1:46.64 /boot/system/develop/tools/bin/../lib/gcc/x86_64-unknown-haiku/11.2.0/../../../../x86_64-unknown-haiku/bin/ld: use the --help option for usage information
1:46.64 collect2: error: ld returned 1 exit status
from inari.
currently the option passes -export-dynamic
to the linker. will try.
https://gcc.gnu.org/onlinedocs/gcc-9.1.0/gcc/Link-Options.html#index-rdynamic
from inari.
elfhack is doubtful too.
https://searchfox.org/mozilla-esr102/source/build/unix/elfhack/moz.build
from inari.
This change fixed this!
diff --git a/build/gecko_templates.mozbuild b/build/gecko_templates.mozbuild
index 51aae5b870..b27bc35967 100644
--- a/build/gecko_templates.mozbuild
+++ b/build/gecko_templates.mozbuild
@@ -41,7 +41,9 @@ def GeckoBinary(linkage='dependent', mozglue=None):
USE_LIBS += ['mozglue']
DEFINES['MOZ_HAS_MOZGLUE'] = True
if CONFIG['MOZ_GLUE_IN_PROGRAM'] and CONFIG['CC_TYPE'] in ('clang', 'gcc'):
- LDFLAGS += ['-rdynamic']
+ #LDFLAGS += ['-rdynamic']
+ LDFLAGS += ['-Wl,-export-dynamic']
+ pass
elif mozglue == 'library':
LIBRARY_DEFINES['MOZ_HAS_MOZGLUE'] = True
if not CONFIG['MOZ_GLUE_IN_PROGRAM']:
next failure...
~/src/firefox-102.9.0> ./mach run
0:02.05 /boot/home/src/firefox-102.9.0/obj-ff-dbg/dist/bin/firefox -no-remote -profile /boot/home/src/firefox-102.9.0/obj-ff-dbg/tmp/profile-default
TS_tfopen: path: /boot/home/src/firefox-102.9.0/obj-ff-dbg/dist/bin/dependentlibs.list
dlopen: path: /boot/home/src/firefox-102.9.0/obj-ff-dbg/dist/bin/liblgpllibs.so
dlopen: path: /boot/home/src/firefox-102.9.0/obj-ff-dbg/dist/bin/libmozsqlite3.so
dlopen: path: /boot/home/src/firefox-102.9.0/obj-ff-dbg/dist/bin/libmozgtk.so
dlopen: path: /boot/home/src/firefox-102.9.0/obj-ff-dbg/dist/bin/libmozwayland.so
dlopen: path: /boot/home/src/firefox-102.9.0/obj-ff-dbg/dist/bin/libxul.so
(firefox-default:67528): Gtk-WARNING **: 22:40:28.261: Locale not supported by C library.
Using the fallback 'C' locale.
Error: no DISPLAY environment variable specified
[67528, Unnamed thread 105944250c40] WARNING: XPCOM object nsStringBuffer released from static ctor/dtor: file /boot/home/src/firefox-102.9.0/xpcom/base/nsTraceRefcnt.cpp:206
nsStringStats
=> mAllocCount: 9
=> mReallocCount: 0
=> mFreeCount: 8 -- LEAKED 1 !!!
=> mShareCount: 2
=> mAdoptCount: 0
=> mAdoptFreeCount: 0
=> Process ID: 67528, Thread ID: 293696546944
~/src/firefox-102.9.0>
from inari.
https://firefox-source-docs.mozilla.org/build/buildsystem/defining-binaries.html
helped.
from inari.
Related Issues (20)
- atk build error HOT 3
- Haiku doesn't have syscall.h? HOT 1
- Chromium IPC build failures HOT 3
- libevent build failures HOT 4
- GLContextProviderGLX build error though we're building for wayland-only HOT 3
- WasmSignalHandlers.cpp build failures HOT 1
- firefox binary linker error HOT 2
- security manager build error HOT 3
- libmozavcodec.so link failed HOT 2
- gkrust build failure HOT 1
- xptcall build error? HOT 3
- other linker issues HOT 12
- Undefined symbols pthread_*_np HOT 1
- Firefox couldn't find the application directory. HOT 10
- Firefox couldn't load XPCOM. HOT 30
- debug build fails with LLVM OOM HOT 10
- error: no DISPLAY environment variable specified HOT 18
- git clone gecko-dev HOT 2
- cubeb_oss failed to build HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from inari.