Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 677958 - www-client/firefox-65.0.1 build failed with "final link failed: memory exhausted"
Summary: www-client/firefox-65.0.1 build failed with "final link failed: memory exhaus...
Status: RESOLVED NEEDINFO
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: All Linux
: Normal normal
Assignee: Mozilla Gentoo Team
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2019-02-14 06:35 UTC by ad PC
Modified: 2019-02-14 18:34 UTC (History)
0 users

See Also:
Package list:
Runtime testing required: ---


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description ad PC 2019-02-14 06:35:06 UTC
...
194:36.72 /usr/bin/x86_64-pc-linux-gnu-g++ -U_FORTIFY_SOURCE -D_FORTIFY_SOURCE=2 -fstack-protector-strong -Wall -Wempty-body -Wignored-qualifiers -Woverloaded-virtual -Wpointer-arith -Wsign-compare -Wtype-limits -Wunreachable-code -Wwrite-strings -Wno-invalid-offsetof -Wc++1z-compat -Wduplicated-cond -Wimplicit-fallthrough -Wno-error=maybe-uninitialized -Wno-error=deprecated-declarations -Wno-error=array-bounds -Wno-error=free-nonheap-object -Wno-error=multistatement-macros -Wno-error=class-memaccess -Wformat -Wformat-security -Wformat-overflow=2 -fno-sized-deallocation -march=native -pipe -g -fno-delete-null-pointer-checks -fno-lifetime-dse -fno-schedule-insns -fno-schedule-insns2 -U_FORTIFY_SOURCE -D_FORTIFY_SOURCE=2 -fstack-protector-strong -fno-exceptions -fno-strict-aliasing -fno-rtti -ffunction-sections -fdata-sections -fno-exceptions -fno-math-errno -pthread -pipe -freorder-blocks -O2 -fomit-frame-pointer -funwind-tables  -fPIC -shared -Wl,-z,defs -Wl,--gc-sections -Wl,-h,libxul.so -o libxul.so /var/tmp/portage/www-client/firefox-65.0.1/work/firefox-65.0.1/ff/toolkit/library/libxul_so.list   -lpthread -Wl,-O1 -Wl,--as-needed -Wl,-rpath=/usr/lib64/firefox,--enable-new-dtags -Wl,--compress-debug-sections=zlib -fuse-ld=bfd -Wl,-z,noexecstack -Wl,-z,text -Wl,-z,relro -Wl,-z,nocopyreloc -Wl,-Bsymbolic-functions /var/tmp/portage/www-client/firefox-65.0.1/work/firefox-65.0.1/toolkit/library/StaticXULComponents.ld -Wl,-rpath-link,/var/tmp/portage/www-client/firefox-65.0.1/work/firefox-65.0.1/ff/dist/bin -Wl,-rpath-link,/usr/lib   -fdiagnostics-color ../../js/src/build/libjs_static.a /var/tmp/portage/www-client/firefox-65.0.1/work/firefox-65.0.1/ff/x86_64-unknown-linux-gnu/release/libgkrust.a ../../security/sandbox/linux/libmozsandbox.so ../../config/external/lgpllibs/liblgpllibs.so ../../widget/gtk/mozgtk/stub/libmozgtk_stub.so -Wl,--version-script,symverscript  -ldl  -licui18n -licuuc -licudata -lrt -lm -lX11 -lX11-xcb -lxcb -lXcomposite -lXcursor -lXdamage -lXext -lXfixes -lXi -lXrender -lpthread -ldl -lc -L/usr/lib64/../lib64 -lffi -lplds4 -lplc4 -lnspr4 -lz -lssl3 -lsmime3 -lnss3 -lnssutil3 -lsqlite3 -lfreetype -lfontconfig -L/usr/lib64 -lgraphite2 -lharfbuzz -ljpeg -lpng -lwebpdemux -lwebp -L/usr/lib -levent -lvpx -lpixman-1 -ldbus-glib-1 -ldbus-1 -lgobject-2.0 -lglib-2.0 -lpangocairo-1.0 -lpango-1.0 -latk-1.0 -lcairo-gobject -lcairo -lgdk_pixbuf-2.0 -lgio-2.0 -lstartup-notification-1 -lxcb-shm -lpangoft2-1.0 -lXt -lgthread-2.0
195:20.85 /usr/lib/gcc/x86_64-pc-linux-gnu/8.2.0/../../../../x86_64-pc-linux-gnu/bin/ld.bfd: final link failed: memory exhausted
195:20.86 collect2: error: ld returned 1 exit status
195:20.86 gmake[4]: *** [/var/tmp/portage/www-client/firefox-65.0.1/work/firefox-65.0.1/config/rules.mk:712: libxul.so] Error 1
195:20.86 gmake[4]: Leaving directory '/var/tmp/portage/www-client/firefox-65.0.1/work/firefox-65.0.1/ff/toolkit/library'
195:20.86 gmake[3]: *** [/var/tmp/portage/www-client/firefox-65.0.1/work/firefox-65.0.1/config/recurse.mk:74: toolkit/library/target] Error 2
195:20.86 gmake[3]: Leaving directory '/var/tmp/portage/www-client/firefox-65.0.1/work/firefox-65.0.1/ff'
195:20.86 gmake[2]: *** [/var/tmp/portage/www-client/firefox-65.0.1/work/firefox-65.0.1/config/recurse.mk:34: compile] Error 2
195:20.86 gmake[2]: Leaving directory '/var/tmp/portage/www-client/firefox-65.0.1/work/firefox-65.0.1/ff'
195:20.86 gmake[1]: *** [/var/tmp/portage/www-client/firefox-65.0.1/work/firefox-65.0.1/config/rules.mk:431: default] Error 2
195:20.86 gmake[1]: Leaving directory '/var/tmp/portage/www-client/firefox-65.0.1/work/firefox-65.0.1/ff'
195:20.86 gmake: *** [client.mk:125: build] Error 2


Reproducible: Always




The build fails on a system with 8 GB memory. This seems to be odd.
Comment 1 Thomas Deutschmann (RETIRED) gentoo-dev 2019-02-14 18:34:18 UTC
So what do you expect us to do here? You don't provide build.log, you don't provide system details (emerge --info). I can tell you I am able to build latest firefox with just 6GB RAM. :)