OS/2, eCS & ArcaOS - Technical > Programming

AVX enabled Firefox

(1/3) > >>

Dave Yeo:
Finally got around to trying to build Firefox with -march=sandybridge. While the build works fine with -march=i686 or pentium-m, it dies with -march=sandybridge, doesn't seem to like the GCC basic_string<char>. Error log attached if anyone has any ideas.

Dave Yeo:
OTOH, building a Phenom II (-march=amdfam10) succeeds. Previously when building the AVX Firefox, packaging failed while creating startup.cache. I thought due to a sigill but never actually checked. Well, the AMD build's packaging also failed, after re-enabling the startup.cache, so I figured swap in a working xpcshell.exe. Still failed. Seems to actually run out of memory.

--- Code: ---make[3]: Entering directory `Y:/work/cc45-git/mozilla/obj-fb/browser/installer'
OMNIJAR_NAME=omni.ja \
NO_PKG_FILES="core bsdecho js js-config jscpucfg nsinstall viewer TestGtkEmbed elf-dynstr-gc mangle* maptsv* mfc* msdump* msmap* nm2tsv* nsinstall* res/samples res/throbber shlibsign* certutil* pk12util* BadCertServer* OCSPStaplingServer* GenerateOCSPResponse* chrome/chrome.rdf chrome/app-chrome.manifest chrome/overlayinfo components/compreg.dat components/xpti.dat content_unit_tests necko_unit_tests *.dSYM " \
Y:/work/cc45-git/mozilla/obj-fb/_virtualenv/bin/python Y:/work/cc45-git/mozilla/toolkit/mozapps/installer/packager.py -DMOZ_APP_NAME=firefox -DPREF_DIR=defaults/preferences -DMOZ_NATIVE_NSPR=1 -DMOZ_NATIVE_NSS=1 -DJAREXT= -DMOZ_CHILD_PROCESS_NAME=plugin-container.exe -DDLL_PREFIX= -DDLL_SUFFIX=.dll -DBIN_SUFFIX=.exe -DDIR_MACOS= -DDIR_RESOURCES= -DBINPATH=bin -DRESPATH=bin -DLPROJ_ROOT=en -DMOZ_ICU_VERSION=56 -DMOZ_NATIVE_ICU -DMOZ_SHARED_ICU -DMOZ_ICU_DBG_SUFFIX= -DX_DISPLAY_MISSING=1 -DMOZ_ENABLE_PROFILER_SPS=1 -DMOZILLA_VERSION='"45.9.0"' -DMOZILLA_VERSION_U=45.9.0 -DMOZILLA_UAVERSION='"45.0"' -DOS2=1 -DXP_OS2=1 -DOS2EMX_PLAIN_CHAR=1 -DMOZ_OS2_HIGH_MEMORY=1 -DD_INO=d_ino -DMOZ_DEBUG_SYMBOLS=1 -DSTDC_HEADERS=1 -DHAVE_DIRENT_H=1 -DHAVE_GETOPT_H=1 -DHAVE_SYS_BITYPES_H=1 -DHAVE_MEMORY_H=1 -DHAVE_UNISTD_H=1 -DHAVE_NL_TYPES_H=1 -DHAVE_MALLOC_H=1 -DHAVE_IO_H=1 -DHAVE_CPUID_H=1 -DHAVE_SYS_QUEUE_H=1 -DHAVE_SYS_TYPES_H=1 -DHAVE_NETINET_IN_H=1 -DHAVE_SIN_LEN=1 -DHAVE_SCONN_LEN=1 -DHAVE_SA_LEN=1 -DHAVE_LIBCX=1 -DNO_X11=1 -DHAVE_PTHREAD_H=1 -DHAVE_GMTIME_R=1 -DHAVE_LOCALTIME_R=1 -DHAVE_ARC4RANDOM=1 -DHAVE_CLOCK_MONOTONIC=1 -DHAVE_LANGINFO_CODESET=1 -DVA_COPY=va_copy -DHAVE_VA_COPY=1 -DHAVE_THREAD_TLS_KEYWORD=1 -DHAVE_I18N_LC_MESSAGES=1 -DHAVE_LOCALECONV=1 -DMALLOC_H='<malloc.h>' -DHAVE_ALLOCA_H=1 -DHAVE_STRNDUP=1 -DHAVE_POSIX_MEMALIGN=1 -DHAVE_MEMALIGN=1 -DHAVE_MALLOC_H=1 -DMALLOC_USABLE_SIZE_CONST_PTR=const -DHAVE_VALLOC=1 -DHAVE_VALLOC=1 -DTARGET_XPCOM_ABI='"x86-gcc3"' -DRELEASE_BUILD=1 -DMOZ_UPDATE_CHANNEL=default -DMOZ_PHOENIX=1 -DMOZ_BUILD_APP=browser -DMOZ_PDF_PRINTING=1 -DNS_PRINTING=1 -DNS_PRINT_PREVIEW=1 -DMOZ_OFFICIAL_BRANDING=1 -DMOZ_DISTRIBUTION_ID='"org.mozilla"' -DACCESSIBILITY=1 -DMOZ_SAMPLE_TYPE_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ERVICES_SYNC=1 -DMOZ_SERVICES_CLOUDSYNC=1 -DMOZ_JSDOWNLOADS=1 -DMOZ_MACBUNDLE_ID=org.mozilla.firefox -DMOZ_B2G_VERSION='"1.0.0"' -DMOZ_B2G_OS_NAME='""' -DMOZ_APP_UA_NAME='""' -DMOZ_APP_UA_VERSION='"45.9.0"' -DFIREFOX_VERSION=45.9.0 -DMOZILLA_OFFICIAL=1 -DMOZ_TELEMETRY_DISPLAY_REV=2 -DMOZ_DATA_REPORTING=1 -DMOZ_DLL_SUFFIX='".dll"' -DA11Y_LOG=1 -DEXPOSE_INTL_API=1 -DENABLE_INTL_API=1 -DMOZ_STATIC_JS=1 -DNO_NSPR_10_SUPPORT=1 -DAB_CD=en-US \
--format omni \
--removals Y:/work/cc45-git/mozilla/browser/installer/removed-files.in \
\
\
\
\
--optimizejars \
\
Y:/work/cc45-git/mozilla/browser/installer/package-manifest.in ../../dist ../../dist/firefox \

Executing Y:/work/cc45-git/mozilla/obj-fb/dist/bin/xpcshell.exe -g Y:/work/cc45-git/mozilla/obj-fb/dist/bin/ -a Y:/work/cc45-git/mozilla/obj-fb/dist/bin/ -f Y:/work/cc45-git/mozilla/toolkit/mozapps/installer/precompile_cache.js -e precompile_startupcache("resource://gre/");
out of memory: 0x0000000020000000 bytes requested
Creating 00EC_01.TRP

--- End code ---

With the trp showing a INT 3 triggered by the OOM handler.
I'll rerun the build with the startup.cache disabled, then, since I seemed to have forgot to renable it, try a Pentium M build and see if it does the OOM thing. SM has always had the startup.cache enabled.

Dariusz Piatkowski:
Dave!


--- Quote from: Dave Yeo on February 21, 2021, 06:02:28 am ---OTOH, building a Phenom II (-march=amdfam10) succeeds...
--- End quote ---

I'm here to test that...just let me know where to pick it up from...  ;)

Dave Yeo:
I'm going to have to rebuild it with the startup cache disabled. I think the OOM error may be misleading and xpcshell is failing due to xul.dll being built for the Phenom.
If I run the Firefox binary. it dies pretty quick here, as expected.
Then figure out the best place to upload.

Dave Yeo:
Hi Dariusz, this should be it, https://drive.google.com/file/d/1dV1S9yYyyV6LAfOTqNcCDlu42kDzkpgG/view?usp=drivesdk
Let me know it it works.

Navigation

[0] Message Index

[#] Next page

Go to full version