pkgsrc-Bugs archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

pkg/56108: firefox-87.0 build fails by "virtual memory exhausted" on NetBSD/i386



>Number:         56108
>Category:       pkg
>Synopsis:       firefox-87.0 build fails by "virtual memory exhausted" on NetBSD/i386
>Confidential:   no
>Severity:       serious
>Priority:       medium
>Responsible:    pkg-manager
>State:          open
>Class:          sw-bug
>Submitter-Id:   net
>Arrival-Date:   Thu Apr 15 16:45:00 +0000 2021
>Originator:     Izumi Tsutsui
>Release:        NetBSD 9.1
>Organization:
>Environment:
System: NetBSD mirage 9.1 NetBSD 9.1 (GENERIC) #0: Sun Oct 18 19:24:30 UTC 2020 mkrepro%mkrepro.NetBSD.org@localhost:/usr/src/sys/arch/i386/compile/GENERIC i386
Architecture: i386
Machine: i386
>Description:
Building pkgsrc/www/firefox 87.0 on NetBSD/i386 fails to build:
---
  cargo:rerun-if-changed=src/blend.h
  cargo:rerun-if-changed=src/composite.h
  cargo:rerun-if-changed=src/gl_defs.h
  cargo:rerun-if-changed=src/glsl.h
  cargo:rerun-if-changed=src/program.h
  cargo:rerun-if-changed=src/rasterize.h
  cargo:rerun-if-changed=src/swgl_ext.h
  cargo:rerun-if-changed=src/texture.h
  cargo:rerun-if-changed=src/vector_type.h
  cargo:rerun-if-changed=src/gl.cc
  TARGET = Some("i686-unknown-netbsd")
  OPT_LEVEL = Some("2")
  HOST = Some("i686-unknown-netbsd")
  CXX_i686-unknown-netbsd = None
  CXX_i686_unknown_netbsd = Some("/s/obj.i386/pkgsrc/www/firefox/work.i386/.cwrapper/bin/c++")
  CXXFLAGS_i686-unknown-netbsd = None
  CXXFLAGS_i686_unknown_netbsd = Some("-std=gnu++17 -I/s/obj.i386/pkgsrc/www/firefox/work.i386/build/dist/stl_wrappers -I/s/obj.i386/pkgsrc/www/firefox/work.i386/build/dist/system_wrappers -include /s/obj.i386/pkgsrc/www/firefox/work.i386/firefox-87.0/config/gcc_hidden.h -U_FORTIFY_SOURCE -D_FORTIFY_SOURCE=2 -fstack-protector-strong -DNDEBUG=1 -DTRIMMED=1 -I/s/obj.i386/pkgsrc/www/firefox/work.i386/firefox-87.0/toolkit/library/rust -I/s/obj.i386/pkgsrc/www/firefox/work.i386/build/toolkit/library/rust -I/s/obj.i386/pkgsrc/www/firefox/work.i386/build/dist/include -I/usr/pkg/include/nspr -I/usr/pkg/include/nss -I/usr/pkg/include/nspr -I/s/obj.i386/pkgsrc/www/firefox/work.i386/build/dist/include/nss -I/usr/X11R7/include/pixman-1 -I/usr/pkg/include -fPIC -DPIC -DMOZILLA_CLIENT -include /s/obj.i386/pkgsrc/www/firefox/work.i386/build/mozilla-config.h -I/usr/pkg/include -I/usr/include -I/usr/pkg/include/nspr -I/usr/X11R7/include -I/usr/X11R7/include/libdrm -I/usr/pkg/include/glib-2.0!
  -I/usr/pkg/include/gio-unix-2.0 -I/usr/pkg/lib/glib-2.0/include -I/usr/pkg/include/ffmpeg4 -I/usr/X11R7/include/freetype2 -I/usr/pkg/include/harfbuzz -Wall -Wempty-body -Wignored-qualifiers -Wpointer-arith -Wsign-compare -Wtype-limits -Wunreachable-code -Wwrite-strings -Wno-invalid-offsetof -Wduplicated-cond -Wimplicit-fallthrough -Wunused-function -Wunused-variable -Wno-error=maybe-uninitialized -Wno-error=deprecated-declarations -Wno-error=array-bounds -Wno-error=coverage-mismatch -Wno-error=free-nonheap-object -Wformat -Wformat-overflow=2 -Wno-psabi -fno-sized-deallocation -fno-aligned-new -O2 -D_GLIBCXX_INCLUDE_NEXT_C_HEADERS -march=i586 -D_FORTIFY_SOURCE=2 -I/usr/pkg/include -I/usr/include -I/usr/pkg/include/nspr -I/usr/X11R7/include -I/usr/X11R7/include/libdrm -I/usr/pkg/include/glib-2.0 -I/usr/pkg/include/gio-unix-2.0 -I/usr/pkg/lib/glib-2.0/include -I/usr/pkg/include/ffmpeg4 -I/usr/X11R7/include/freetype2 -I/usr/pkg/include/harfbuzz -mstackrealign -march=i586 -fno-!
 exceptions -fno-strict-aliasing -Dunix -fno-rtti -ffunction-se!
 ctions -fdata-sections -fno-exceptions -fno-math-errno -pthread -pipe -O2 -fomit-frame-pointer -funwind-tables -DMOZILLA_CONFIG_H")
  CRATE_CC_NO_DEFAULTS = None
  DEBUG = Some("false")
  CARGO_CFG_TARGET_FEATURE = Some("fxsr,sse,sse2")
  running: "/s/obj.i386/pkgsrc/www/firefox/work.i386/.cwrapper/bin/c++" "-O2" "-ffunction-sections" "-fdata-sections" "-fPIC" "-m32" "-std=gnu++17" "-I/s/obj.i386/pkgsrc/www/firefox/work.i386/build/dist/stl_wrappers" "-I/s/obj.i386/pkgsrc/www/firefox/work.i386/build/dist/system_wrappers" "-include" "/s/obj.i386/pkgsrc/www/firefox/work.i386/firefox-87.0/config/gcc_hidden.h" "-U_FORTIFY_SOURCE" "-D_FORTIFY_SOURCE=2" "-fstack-protector-strong" "-DNDEBUG=1" "-DTRIMMED=1" "-I/s/obj.i386/pkgsrc/www/firefox/work.i386/firefox-87.0/toolkit/library/rust" "-I/s/obj.i386/pkgsrc/www/firefox/work.i386/build/toolkit/library/rust" "-I/s/obj.i386/pkgsrc/www/firefox/work.i386/build/dist/include" "-I/usr/pkg/include/nspr" "-I/usr/pkg/include/nss" "-I/usr/pkg/include/nspr" "-I/s/obj.i386/pkgsrc/www/firefox/work.i386/build/dist/include/nss" "-I/usr/X11R7/include/pixman-1" "-I/usr/pkg/include" "-fPIC" "-DPIC" "-DMOZILLA_CLIENT" "-include" "/s/obj.i386/pkgsrc/www/firefox/work.i386/build/mozilla-co!
 nfig.h" "-I/usr/pkg/include" "-I/usr/include" "-I/usr/pkg/include/nspr" "-I/usr/X11R7/include" "-I/usr/X11R7/include/libdrm" "-I/usr/pkg/include/glib-2.0" "-I/usr/pkg/include/gio-unix-2.0" "-I/usr/pkg/lib/glib-2.0/include" "-I/usr/pkg/include/ffmpeg4" "-I/usr/X11R7/include/freetype2" "-I/usr/pkg/include/harfbuzz" "-Wall" "-Wempty-body" "-Wignored-qualifiers" "-Wpointer-arith" "-Wsign-compare" "-Wtype-limits" "-Wunreachable-code" "-Wwrite-strings" "-Wno-invalid-offsetof" "-Wduplicated-cond" "-Wimplicit-fallthrough" "-Wunused-function" "-Wunused-variable" "-Wno-error=maybe-uninitialized" "-Wno-error=deprecated-declarations" "-Wno-error=array-bounds" "-Wno-error=coverage-mismatch" "-Wno-error=free-nonheap-object" "-Wformat" "-Wformat-overflow=2" "-Wno-psabi" "-fno-sized-deallocation" "-fno-aligned-new" "-O2" "-D_GLIBCXX_INCLUDE_NEXT_C_HEADERS" "-march=i586" "-D_FORTIFY_SOURCE=2" "-I/usr/pkg/include" "-I/usr/include" "-I/usr/pkg/include/nspr" "-I/usr/X11R7/include" "-I/usr/X11R!
 7/include/libdrm" "-I/usr/pkg/include/glib-2.0" "-I/usr/pkg/in!
 clude/gio-unix-2.0" "-I/usr/pkg/lib/glib-2.0/include" "-I/usr/pkg/include/ffmpeg4" "-I/usr/X11R7/include/freetype2" "-I/usr/pkg/include/harfbuzz" "-mstackrealign" "-march=i586" "-fno-exceptions" "-fno-strict-aliasing" "-Dunix" "-fno-rtti" "-ffunction-sections" "-fdata-sections" "-fno-exceptions" "-fno-math-errno" "-pthread" "-pipe" "-O2" "-fomit-frame-pointer" "-funwind-tables" "-DMOZILLA_CONFIG_H" "-I" "/s/obj.i386/pkgsrc/www/firefox/work.i386/firefox-87.0/gfx/wr/webrender/res" "-I" "src" "-I" "/s/obj.i386/pkgsrc/www/firefox/work.i386/build/i686-unknown-netbsd/release/build/swgl-8213e66484becc35/out" "-std=c++17" "-UMOZILLA_CONFIG_H" "-fno-exceptions" "-fno-rtti" "-fno-math-errno" "-D_GLIBCXX_USE_CXX11_ABI=0" "-o" "/s/obj.i386/pkgsrc/www/firefox/work.i386/build/i686-unknown-netbsd/release/build/swgl-8213e66484becc35/out/src/gl.o" "-c" "src/gl.cc"
  cargo:warning=In file included from src/gl.cc:78:0:
  cargo:warning=src/glsl.h:295:41: warning: 'annotate' attribute directive ignored [-Wattributes]
  cargo:warning=   IMPLICIT constexpr bvec2_scalar(bool a) : x(a), y(a) {}
  cargo:warning=                                         ^
  cargo:warning=src/glsl.h:319:42: warning: 'annotate' attribute directive ignored [-Wattributes]
  cargo:warning=   IMPLICIT constexpr bvec2_scalar1(bool a) : x(a) {}
  cargo:warning=                                          ^
  cargo:warning=src/glsl.h:326:24: warning: 'annotate' attribute directive ignored [-Wattributes]
  cargo:warning=   IMPLICIT bvec2(Bool a) : x(a), y(a) {}
  cargo:warning=                        ^
  cargo:warning=src/glsl.h:372:41: warning: 'annotate' attribute directive ignored [-Wattributes]
  cargo:warning=   IMPLICIT constexpr vec2_scalar(float a) : x(a), y(a) {}
  cargo:warning=                                         ^
  cargo:warning=src/glsl.h:373:39: warning: 'annotate' attribute directive ignored [-Wattributes]
  cargo:warning=   IMPLICIT constexpr vec2_scalar(int a) : x(a), y(a) {}
  cargo:warning=                                       ^
  cargo:warning=src/glsl.h:488:34: warning: 'annotate' attribute directive ignored [-Wattributes]
  cargo:warning=   IMPLICIT constexpr vec2(Float a) : x(a), y(a) {}
  cargo:warning=                                  ^
  cargo:warning=src/glsl.h:490:40: warning: 'annotate' attribute directive ignored [-Wattributes]
  cargo:warning=   IMPLICIT constexpr vec2(vec2_scalar s) : x(s.x), y(s.y) {}
  cargo:warning=                                        ^
  cargo:warning=src/glsl.h:838:44: warning: 'annotate' attribute directive ignored [-Wattributes]
  cargo:warning=   IMPLICIT constexpr ivec2_scalar(int32_t a) : x(a), y(a) {}
  cargo:warning=                                            ^
  cargo:warning=src/glsl.h:896:23: warning: 'annotate' attribute directive ignored [-Wattributes]
  cargo:warning=   IMPLICIT ivec2(I32 a) : x(a), y(a) {}
  cargo:warning=                       ^

[snip ~4354 "IMPLICIT" warning lines]

  cargo:warning=                                            ^
  cargo:warning=/s/obj.i386/pkgsrc/www/firefox/work.i386/build/i686-unknown-netbsd/release/build/swgl-8213e66484becc35/out/ps_text_run_DEBUG_OVERDRAW_TEXTURE_2D.h:767:52: warning: 'annotate' attribute directive ignored [-Wattributes]
  cargo:warning= IMPLICIT RectWithEndpoint(RectWithEndpoint_scalar s):p0(s.p0),p1(s.p1){
  cargo:warning=                                                    ^
  cargo:warning=/s/obj.i386/pkgsrc/www/firefox/work.i386/build/i686-unknown-netbsd/release/build/swgl-8213e66484becc35/out/ps_text_run_DEBUG_OVERDRAW_TEXTURE_2D.h:786:36: warning: 'annotate' attribute directive ignored [-Wattributes]
  cargo:warning= IMPLICIT Fragment(Fragment_scalar s):color(s.color){
  cargo:warning=                                    ^
  cargo:warning=virtual memory exhausted: Cannot allocate memory
  exit code: 1

  --- stderr


  error occurred: Command "/s/obj.i386/pkgsrc/www/firefox/work.i386/.cwrapper/bin/c++" "-O2" "-ffunction-sections" "-fdata-sections" "-fPIC" "-m32" "-std=gnu++17" "-I/s/obj.i386/pkgsrc/www/firefox/work.i386/build/dist/stl_wrappers" "-I/s/obj.i386/pkgsrc/www/firefox/work.i386/build/dist/system_wrappers" "-include" "/s/obj.i386/pkgsrc/www/firefox/work.i386/firefox-87.0/config/gcc_hidden.h" "-U_FORTIFY_SOURCE" "-D_FORTIFY_SOURCE=2" "-fstack-protector-strong" "-DNDEBUG=1" "-DTRIMMED=1" "-I/s/obj.i386/pkgsrc/www/firefox/work.i386/firefox-87.0/toolkit/library/rust" "-I/s/obj.i386/pkgsrc/www/firefox/work.i386/build/toolkit/library/rust" "-I/s/obj.i386/pkgsrc/www/firefox/work.i386/build/dist/include" "-I/usr/pkg/include/nspr" "-I/usr/pkg/include/nss" "-I/usr/pkg/include/nspr" "-I/s/obj.i386/pkgsrc/www/firefox/work.i386/build/dist/include/nss" "-I/usr/X11R7/include/pixman-1" "-I/usr/pkg/include" "-fPIC" "-DPIC" "-DMOZILLA_CLIENT" "-include" "/s/obj.i386/pkgsrc/www/firefox/work.i386/b!
 uild/mozilla-config.h" "-I/usr/pkg/include" "-I/usr/include" "-I/usr/pkg/include/nspr" "-I/usr/X11R7/include" "-I/usr/X11R7/include/libdrm" "-I/usr/pkg/include/glib-2.0" "-I/usr/pkg/include/gio-unix-2.0" "-I/usr/pkg/lib/glib-2.0/include" "-I/usr/pkg/include/ffmpeg4" "-I/usr/X11R7/include/freetype2" "-I/usr/pkg/include/harfbuzz" "-Wall" "-Wempty-body" "-Wignored-qualifiers" "-Wpointer-arith" "-Wsign-compare" "-Wtype-limits" "-Wunreachable-code" "-Wwrite-strings" "-Wno-invalid-offsetof" "-Wduplicated-cond" "-Wimplicit-fallthrough" "-Wunused-function" "-Wunused-variable" "-Wno-error=maybe-uninitialized" "-Wno-error=deprecated-declarations" "-Wno-error=array-bounds" "-Wno-error=coverage-mismatch" "-Wno-error=free-nonheap-object" "-Wformat" "-Wformat-overflow=2" "-Wno-psabi" "-fno-sized-deallocation" "-fno-aligned-new" "-O2" "-D_GLIBCXX_INCLUDE_NEXT_C_HEADERS" "-march=i586" "-D_FORTIFY_SOURCE=2" "-I/usr/pkg/include" "-I/usr/include" "-I/usr/pkg/include/nspr" "-I/usr/X11R7/includ!
 e" "-I/usr/X11R7/include/libdrm" "-I/usr/pkg/include/glib-2.0"!
  "-I/usr/pkg/include/gio-unix-2.0" "-I/usr/pkg/lib/glib-2.0/include" "-I/usr/pkg/include/ffmpeg4" "-I/usr/X11R7/include/freetype2" "-I/usr/pkg/include/harfbuzz" "-mstackrealign" "-march=i586" "-fno-exceptions" "-fno-strict-aliasing" "-Dunix" "-fno-rtti" "-ffunction-sections" "-fdata-sections" "-fno-exceptions" "-fno-math-errno" "-pthread" "-pipe" "-O2" "-fomit-frame-pointer" "-funwind-tables" "-DMOZILLA_CONFIG_H" "-I" "/s/obj.i386/pkgsrc/www/firefox/work.i386/firefox-87.0/gfx/wr/webrender/res" "-I" "src" "-I" "/s/obj.i386/pkgsrc/www/firefox/work.i386/build/i686-unknown-netbsd/release/build/swgl-8213e66484becc35/out" "-std=c++17" "-UMOZILLA_CONFIG_H" "-fno-exceptions" "-fno-rtti" "-fno-math-errno" "-D_GLIBCXX_USE_CXX11_ABI=0" "-o" "/s/obj.i386/pkgsrc/www/firefox/work.i386/build/i686-unknown-netbsd/release/build/swgl-8213e66484becc35/out/src/gl.o" "-c" "src/gl.cc" with args "c++" did not execute successfully (status code exit code: 1).


gmake[3]: *** [/s/obj.i386/pkgsrc/www/firefox/work.i386/firefox-87.0/config/makefiles/rust.mk:351: force-cargo-library-build] Error 101
gmake[3]: Leaving directory '/s/obj.i386/pkgsrc/www/firefox/work.i386/build/toolkit/library/rust'
gmake[2]: *** [/s/obj.i386/pkgsrc/www/firefox/work.i386/firefox-87.0/config/recurse.mk:72: toolkit/library/rust/target] Error 2
gmake[2]: Leaving directory '/s/obj.i386/pkgsrc/www/firefox/work.i386/build'
gmake[1]: *** [/s/obj.i386/pkgsrc/www/firefox/work.i386/firefox-87.0/config/recurse.mk:34: compile] Error 2
gmake[1]: Leaving directory '/s/obj.i386/pkgsrc/www/firefox/work.i386/build'
gmake: *** [/s/obj.i386/pkgsrc/www/firefox/work.i386/firefox-87.0/config/rules.mk:355: all] Error 2
*** Error code 2

Stop.
make[1]: stopped in /usr/pkgsrc/www/firefox
*** Error code 1

Stop.
make: stopped in /usr/pkgsrc/www/firefox

---

>How-To-Repeat:
Build pkgsrc/www/firefox 87.0 on NetBSD/i386 9.1.

Note build on the same pkgsrc tree on NetBSD/amd64 9.1 works fine.

>Fix:
No idea.
Now firefox really requires >4GB to build,
or something unexpected recursion?

---
Izumi Tsutsui



Home | Main Index | Thread Index | Old Index