NetBSD Problem Report #51401

From www@NetBSD.org  Tue Aug  9 10:37:53 2016
Return-Path: <www@NetBSD.org>
Received: from mail.netbsd.org (mail.netbsd.org [199.233.217.200])
	(using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits))
	(Client CN "mail.netbsd.org", Issuer "Postmaster NetBSD.org" (verified OK))
	by mollari.NetBSD.org (Postfix) with ESMTPS id 13E807A1B7
	for <gnats-bugs@gnats.NetBSD.org>; Tue,  9 Aug 2016 10:37:53 +0000 (UTC)
Message-Id: <20160809103751.885097A2A9@mollari.NetBSD.org>
Date: Tue,  9 Aug 2016 10:37:51 +0000 (UTC)
From: raphael@gracetech.at
Reply-To: raphael@gracetech.at
To: gnats-bugs@NetBSD.org
Subject: pkgsrc-2016Q2/www/firefox does not build on NetBSD7.0.1/arm7hf (raspberrypi2)
X-Send-Pr-Version: www-1.0

>Number:         51401
>Category:       lib
>Synopsis:       NetBSD7.0.1/arm7hf (raspberrypi2) lacks nexttowardf
>Confidential:   no
>Severity:       non-critical
>Priority:       medium
>Responsible:    lib-bug-people
>State:          open
>Class:          sw-bug
>Submitter-Id:   net
>Arrival-Date:   Tue Aug 09 10:40:00 +0000 2016
>Last-Modified:  Thu Nov 10 06:47:42 +0000 2016
>Originator:     Raphael Langerhorst
>Release:        NetBSD7.0.1/arm7hf, pkgsrc-2016Q2 (
>Organization:
GRACETECH
>Environment:
NetBSD namuna 7.0.1 NetBSD 7.0.1 (RPI2.201605221355Z) evbarm
>Description:
I have bootstrapped the raspberrypi with the arm7hf image of NetBSD7.0.1,
downloaded pkgsrc-2016Q2 and built www/firefox (47) from source with default options.

Note that when building with MAKE_JOBS=4 (raspberrypi2 has 4 cores) the build is likely to break (gcc gets killed) due to insufficient memory(!), these huge files may take up to 400/500 MB of RAM during compilation (and rpi2 has 1GB "only"). I have not looked into the problem as I am not familiar with this package. The following output is with MAKE_JOBS= 1 and started from clean source.

If you need me to cooperate with test environment or to try something on this architecture, please feel free to contact me, in case you do not have this type of hardware available.

This build was running for something close to 20h before breaking,
and it was JUST the firefox package (dependencies were already installed).

The following output occurs:

/usr/pkgsrc/www/firefox/work/build/_virtualenv/bin/python /usr/pkgsrc/www/firefox/work/firefox-47.0/config/expandlibs_exec.py --uselist --  c++ -o plugin-container -DPNG_NO_ASSEMBLER_CODE -I/usr/pkg/include -I/usr/include -I/usr/pkg/include/nspr -I/usr/pkg/include/nss/nss -I/usr/X11R7/include -I/usr/X11R7/include/libdrm -I/usr/X11R7/include/freetype2 -I/usr/pkg/include/ffmpeg3 -Wall -Wc++11-compat -Wempty-body -Wignored-qualifiers -Woverloaded-virtual -Wpointer-arith -Wsign-compare -Wtype-limits -Wwrite-strings -Wunreachable-code -Wno-invalid-offsetof -Wno-error=maybe-uninitialized -Wno-error=deprecated-declarations -Wno-error=array-bounds -O2 -I/usr/pkg/include -I/usr/include -I/usr/pkg/include/nspr -I/usr/pkg/include/nss/nss -I/usr/X11R7/include -I/usr/X11R7/include/libdrm -I/usr/X11R7/include/freetype2 -I/usr/pkg/include/ffmpeg3 -fno-exceptions -fno-strict-aliasing -Dunix -fno-rtti -fno-exceptions -fno-math-errno -std=gnu++0x -pthread -pipe  -O2 -fomit-frame-pointer  GMPLoader.o M
 ozillaRuntimeMain.o   -lpthread -Wl,-R/usr/pkg/lib/firefox -Wl,-R/usr/pkg/lib -L/usr/pkg/lib -L/usr/lib -Wl,-R/usr/lib -L/usr/pkg/lib/nspr -Wl,-R/usr/pkg/lib/nspr -L/usr/pkg/lib/nss -Wl,-R/usr/pkg/lib/nss -L/usr/X11R7/lib -Wl,-R/usr/X11R7/lib -L/usr/pkg/lib/ffmpeg3 -Wl,-R/usr/pkg/lib/ffmpeg3 -L/usr/pkg/lib/pulseaudio -Wl,-R/usr/pkg/lib/pulseaudio -Wl,-z,noexecstack -Wl,-z,text -Wl,--build-id  -rdynamic -Wl,-rpath-link,/usr/pkgsrc/www/firefox/work/build/dist/bin -Wl,-rpath-link,/usr/pkg/lib   ../../mozglue/build/libmozglue.a ../../memory/fallible/libfallible.a ../../config/external/nspr/libnspr.a -pie ../../toolkit/library/libxul.so   -Wl,-R/usr/pkg/lib/nspr -L/usr/pkg/lib/nspr -lplds4 -lplc4 -lnspr4 -pthread -Wl,--export-dynamic
Executing: c++ -o plugin-container -DPNG_NO_ASSEMBLER_CODE -I/usr/pkg/include -I/usr/include -I/usr/pkg/include/nspr -I/usr/pkg/include/nss/nss -I/usr/X11R7/include -I/usr/X11R7/include/libdrm -I/usr/X11R7/include/freetype2 -I/usr/pkg/include/ffmpeg3 -Wall -Wc++11-compat -Wempty-body -Wignored-qualifiers -Woverloaded-virtual -Wpointer-arith -Wsign-compare -Wtype-limits -Wwrite-strings -Wunreachable-code -Wno-invalid-offsetof -Wno-error=maybe-uninitialized -Wno-error=deprecated-declarations -Wno-error=array-bounds -O2 -I/usr/pkg/include -I/usr/include -I/usr/pkg/include/nspr -I/usr/pkg/include/nss/nss -I/usr/X11R7/include -I/usr/X11R7/include/libdrm -I/usr/X11R7/include/freetype2 -I/usr/pkg/include/ffmpeg3 -fno-exceptions -fno-strict-aliasing -Dunix -fno-rtti -fno-exceptions -fno-math-errno -std=gnu++0x -pthread -pipe -O2 -fomit-frame-pointer /usr/pkgsrc/www/firefox/work/build/ipc/app/tmpYCnaWW.list -lpthread -Wl,-R/usr/pkg/lib/firefox -Wl,-R/usr/pkg/lib -L/usr/pkg/lib -L/usr/lib -Wl,
 -R/usr/lib -L/usr/pkg/lib/nspr -Wl,-R/usr/pkg/lib/nspr -L/usr/pkg/lib/nss -Wl,-R/usr/pkg/lib/nss -L/usr/X11R7/lib -Wl,-R/usr/X11R7/lib -L/usr/pkg/lib/ffmpeg3 -Wl,-R/usr/pkg/lib/ffmpeg3 -L/usr/pkg/lib/pulseaudio -Wl,-R/usr/pkg/lib/pulseaudio -Wl,-z,noexecstack -Wl,-z,text -Wl,--build-id -rdynamic -Wl,-rpath-link,/usr/pkgsrc/www/firefox/work/build/dist/bin -Wl,-rpath-link,/usr/pkg/lib -pie ../../toolkit/library/libxul.so -Wl,-R/usr/pkg/lib/nspr -L/usr/pkg/lib/nspr -lplds4 -lplc4 -lnspr4 -pthread -Wl,--export-dynamic
/usr/pkgsrc/www/firefox/work/build/ipc/app/tmpYCnaWW.list:
    INPUT("GMPLoader.o")
    INPUT("MozillaRuntimeMain.o")
    INPUT("../../mozglue/build/arm.o")
    INPUT("../../mozglue/build/dummy.o")
    INPUT("../../memory/mozalloc/Unified_cpp_memory_mozalloc0.o")
    INPUT("../../mozglue/misc/StackWalk.o")
    INPUT("../../mozglue/misc/TimeStamp.o")
    INPUT("../../mozglue/misc/TimeStamp_posix.o")
    INPUT("../../mfbt/Compression.o")
    INPUT("../../mfbt/Decimal.o")
    INPUT("../../mfbt/Unified_cpp_mfbt0.o")
    INPUT("../../memory/fallible/fallible.o")

../../toolkit/library/libxul.so: undefined reference to `nexttowardf'
gmake[3]: *** [/usr/pkgsrc/www/firefox/work/firefox-47.0/config/rules.mk:676: plugin-container] Error 1
gmake[3]: Leaving directory '/usr/pkgsrc/www/firefox/work/build/ipc/app'
gmake[2]: *** [/usr/pkgsrc/www/firefox/work/firefox-47.0/config/recurse.mk:71: ipc/app/target] Error 2
gmake[2]: Leaving directory '/usr/pkgsrc/www/firefox/work/build'
gmake[1]: *** [/usr/pkgsrc/www/firefox/work/firefox-47.0/config/recurse.mk:33: compile] Error 2
gmake[1]: Leaving directory '/usr/pkgsrc/www/firefox/work/build'
gmake: *** [/usr/pkgsrc/www/firefox/work/firefox-47.0/config/rules.mk:557: 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
    65330.33 real     56795.83 user      5697.29 sys
namuna# 

>How-To-Repeat:
cd /usr/pkgsrc/www/firefox && make package install clean
>Fix:

>Release-Note:

>Audit-Trail:

Responsible-Changed-From-To: pkg-manager->ryoon
Responsible-Changed-By: hauke@NetBSD.org
Responsible-Changed-When: Tue, 09 Aug 2016 19:36:16 +0000
Responsible-Changed-Why:
Over to maintainer.


Responsible-Changed-From-To: ryoon->lib-bug-people
Responsible-Changed-By: maya@NetBSD.org
Responsible-Changed-When: Sun, 04 Sep 2016 20:31:16 +0000
Responsible-Changed-Why:
ryoon patched the only use of nexttowardf in firefox.
it should build now. now remains the issue that arm does
not have the function - it is available on amd64.


>Unformatted:

NetBSD Home
NetBSD PR Database Search

(Contact us) $NetBSD: query-full-pr,v 1.39 2013/11/01 18:47:49 spz Exp $
$NetBSD: gnats_config.sh,v 1.8 2006/05/07 09:23:38 tsutsui Exp $
Copyright © 1994-2014 The NetBSD Foundation, Inc. ALL RIGHTS RESERVED.