NetBSD Problem Report #53558

From www@NetBSD.org  Mon Aug 27 15:40:55 2018
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 "mail.NetBSD.org CA" (not verified))
	by mollari.NetBSD.org (Postfix) with ESMTPS id 0AAF57A174
	for <gnats-bugs@gnats.NetBSD.org>; Mon, 27 Aug 2018 15:40:55 +0000 (UTC)
Message-Id: <20180827154053.650D87A264@mollari.NetBSD.org>
Date: Mon, 27 Aug 2018 15:40:53 +0000 (UTC)
From: scole_mail@gmx.com
Reply-To: scole_mail@gmx.com
To: gnats-bugs@NetBSD.org
Subject: www/firefox 61.0 fails build on i386
X-Send-Pr-Version: www-1.0

>Number:         53558
>Category:       pkg
>Synopsis:       www/firefox 61.0 fails build on i386
>Confidential:   no
>Severity:       serious
>Priority:       medium
>Responsible:    ryoon
>State:          open
>Class:          sw-bug
>Submitter-Id:   net
>Arrival-Date:   Mon Aug 27 15:45:00 +0000 2018
>Last-Modified:  Mon Sep 17 12:24:29 +0000 2018
>Originator:     scole_mail
>Release:        pkgsrc-2018Q2
>Organization:
none
>Environment:
NetBSD dstar 8.0_STABLE NetBSD 8.0_STABLE (GENERIC) #1: Sun Aug 26 12:25:32 PDT 2018  scole@dstar:/home/scole/nbsd/cvs/8_0/obj/sys/arch/i386/compile/GENERIC i386
>Description:
firefox doesn't build for me on 8.0/i386/pkgsrc-2018Q2.

It seems to issues related to math libraries.

gmake[3]: Entering directory '/usr/pkgsrc/www/firefox/work/build/gfx/harfbuzz/src'
/usr/pkgsrc/www/firefox/work/.cwrapper/bin/c++ -o hb-blob.o -c -I/usr/pkgsrc/www/firefox/work/build/dist/stl_wrappers -I/usr/pkgsrc/www/firefox/work/build/dist/system_wrappers -include /usr/pkgsrc/www/firefox/work/firefox-61.0/config/gcc_hidden.h -DNDEBUG=1 -DTRIMMED=1 '-DPACKAGE_VERSION="moz"' '-DPACKAGE_BUGREPORT="http://bugzilla.mozilla.org/"' -DHAVE_OT=1 -DHB_NO_MT -DHB_NO_UNICODE_FUNCS -UDEBUG -DSTATIC_EXPORTABLE_JS_API -DMOZ_HAS_MOZGLUE -DMOZILLA_INTERNAL_API -DIMPL_LIBXUL -I/usr/pkgsrc/www/firefox/work/firefox-61.0/gfx/harfbuzz/src -I/usr/pkgsrc/www/firefox/work/build/gfx/harfbuzz/src -I/usr/pkgsrc/www/firefox/work/build/dist/include -I/usr/pkg/include/nspr -I/usr/pkg/include/nss -I/usr/pkg/include/nspr -I/usr/X11R7/include/pixman-1 -fPIC -DPIC -DMOZILLA_CLIENT -include /usr/pkgsrc/www/firefox/work/build/mozilla-config.h -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/pkg/include/glib/
 glib-2.0 -I/usr/pkg/include/glib/gio-unix-2.0 -I/usr/pkg/lib/glib-2.0/include -I/usr/pkg/include/ffmpeg3 -I/usr/X11R7/include/freetype2 -U_FORTIFY_SOURCE -D_FORTIFY_SOURCE=2 -Wall -Wempty-body -Wignored-qualifiers -Woverloaded-virtual -Wpointer-arith -Wsign-compare -Wtype-limits -Wunreachable-code -Wwrite-strings -Wno-invalid-offsetof -Wduplicated-cond -Wno-error=maybe-uninitialized -Wno-error=deprecated-declarations -Wno-error=array-bounds -Wno-error=free-nonheap-object -Wformat -fno-sized-deallocation -O2 -I/usr/pkg/include/nspr -D_FORTIFY_SOURCE=2 -I/usr/pkg/include -I/usr/include -I/usr/pkg/include/nss/nss -I/usr/X11R7/include -I/usr/X11R7/include/libdrm -I/usr/pkg/include/glib/glib-2.0 -I/usr/pkg/include/glib/gio-unix-2.0 -I/usr/pkg/lib/glib-2.0/include -I/usr/pkg/include/ffmpeg3 -I/usr/X11R7/include/freetype2 -march=i586 -mstackrealign -U_FORTIFY_SOURCE -D_FORTIFY_SOURCE=2 -fno-exceptions -fno-strict-aliasing -Dunix -fno-rtti -ffunction-sections -fdata-sections -fno-exceptions
  -fno-math-errno -pthread -pipe -I/usr/pkg/include -O2 -fomit-frame-pointer -I/usr/pkg/include/glib/glib-2.0 -I/usr/pkg/lib/glib-2.0/include -I/usr/pkg/include  -MD -MP -MF .deps/hb-blob.o.pp   /usr/pkgsrc/www/firefox/work/firefox-61.0/gfx/harfbuzz/src/hb-blob.cc
In file included from /usr/pkgsrc/www/firefox/work/build/dist/system_wrappers/cmath:3:0,
                 from /usr/pkgsrc/www/firefox/work/build/dist/stl_wrappers/cmath:44,
                 from /usr/pkg/gcc6/include/c++/math.h:36,
                 from /usr/pkgsrc/www/firefox/work/build/dist/system_wrappers/math.h:3,
                 from /usr/pkgsrc/www/firefox/work/firefox-61.0/gfx/harfbuzz/src/hb-private.hh:45,
                 from /usr/pkgsrc/www/firefox/work/firefox-61.0/gfx/harfbuzz/src/hb-blob.cc:32:
/usr/pkg/gcc6/include/c++/cmath:1105:11: error: '::acosh' has not been declared
   using ::acosh;
           ^~~~~
/usr/pkg/gcc6/include/c++/cmath:1109:11: error: '::asinh' has not been declared
   using ::asinh;
           ^~~~~
/usr/pkg/gcc6/include/c++/cmath:1113:11: error: '::atanh' has not been declared
   using ::atanh;
           ^~~~~
/usr/pkg/gcc6/include/c++/cmath:1117:11: error: '::cbrt' has not been declared
   using ::cbrt;
           ^~~~
/usr/pkg/gcc6/include/c++/cmath:1121:11: error: '::copysign' has not been declared
   using ::copysign;
           ^~~~~~~~
/usr/pkg/gcc6/include/c++/cmath:1125:11: error: '::erf' has not been declared
   using ::erf;
           ^~~
/usr/pkg/gcc6/include/c++/cmath:1129:11: error: '::erfc' has not been declared
   using ::erfc;
           ^~~~
/usr/pkg/gcc6/include/c++/cmath:1137:11: error: '::expm1' has not been declared
   using ::expm1;
           ^~~~~
/usr/pkg/gcc6/include/c++/cmath:1157:11: error: '::hypot' has not been declared
   using ::hypot;
           ^~~~~
/usr/pkg/gcc6/include/c++/cmath:1161:11: error: '::ilogb' has not been declared
   using ::ilogb;
           ^~~~~
/usr/pkg/gcc6/include/c++/cmath:1165:11: error: '::lgamma' has not been declared
   using ::lgamma;
           ^~~~~~
/usr/pkg/gcc6/include/c++/cmath:1177:11: error: '::log1p' has not been declared
   using ::log1p;
           ^~~~~
/usr/pkg/gcc6/include/c++/cmath:1185:11: error: '::logb' has not been declared
   using ::logb;
           ^~~~
/usr/pkg/gcc6/include/c++/cmath:1205:11: error: '::nextafter' has not been declared
   using ::nextafter;
           ^~~~~~~~~
/usr/pkg/gcc6/include/c++/cmath:1213:11: error: '::remainder' has not been declared
   using ::remainder;
           ^~~~~~~~~
/usr/pkg/gcc6/include/c++/cmath:1221:11: error: '::rint' has not been declared
   using ::rint;
           ^~~~
/usr/pkg/gcc6/include/c++/cmath:1229:11: error: '::scalbln' has not been declared
   using ::scalbln;
           ^~~~~~~
/usr/pkg/gcc6/include/c++/cmath:1233:11: error: '::scalbn' has not been declared
   using ::scalbn;
           ^~~~~~
/usr/pkgsrc/www/firefox/work/firefox-61.0/config/rules.mk:1030: recipe for target 'hb-blob.o' failed
gmake[3]: *** [hb-blob.o] Error 1
gmake[3]: Leaving directory '/usr/pkgsrc/www/firefox/work/build/gfx/harfbuzz/src'
/usr/pkgsrc/www/firefox/work/firefox-61.0/config/recurse.mk:73: recipe for target 'gfx/harfbuzz/src/target' failed
gmake[2]: *** [gfx/harfbuzz/src/target] Error 2
gmake[2]: Leaving directory '/usr/pkgsrc/www/firefox/work/build'
/usr/pkgsrc/www/firefox/work/firefox-61.0/config/recurse.mk:32: recipe for target 'compile' failed
gmake[1]: *** [compile] Error 2
gmake[1]: Leaving directory '/usr/pkgsrc/www/firefox/work/build'
/usr/pkgsrc/www/firefox/work/firefox-61.0/config/rules.mk:418: recipe for target 'all' failed
gmake: *** [all] Error 2
*** Error code 2

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

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

>How-To-Repeat:
cd .../pkgsrc/www/firefox && bmake install

>Fix:

>Release-Note:

>Audit-Trail:
From: Ryo ONODERA <ryo@tetera.org>
To: gnats-bugs@NetBSD.org
Cc: 
Subject: Re: pkg/53558: www/firefox 61.0 fails build on i386
Date: Thu, 06 Sep 2018 01:04:40 +0900 (JST)

 Hi,

 I cannot reproduce your problem under NetBSD/i386 8.0_STABLE
 of 2018-08-30.

 Anyway could you try www/firefox-62.0?

 Thank you.

 --
 Ryo ONODERA // ryo@tetera.org
 PGP fingerprint = 82A2 DC91 76E0 A10A 8ABB  FD1B F404 27FA C7D1 15F3

From: scole_mail <scole_mail@gmx.com>
To: gnats-bugs@NetBSD.org
Cc: 
Subject: Re: pkg/53558: www/firefox 61.0 fails build on i386
Date: Wed, 05 Sep 2018 18:38:22 -0700

 Ryo ONODERA <ryo@tetera.org> writes:
 >  
 >  I cannot reproduce your problem under NetBSD/i386 8.0_STABLE
 >  of 2018-08-30.
 >  
 >  Anyway could you try www/firefox-62.0?
 >  

 I'm using pkgsrc-2018Q2 and I didn't see firefox-62.0 available.

 I didn't want to rebuild everything with current, so I updated
 pkgsrc/devel/nss and pkgsrc/www/firefox to current (3.39 and 62.0
 respectively) and with the patch below everything seems to build and run
 fine.  The patch was necessary because pkgsrc-2018Q2 apparently does not
 have a python37 package.

 Feel free to close the PR if you don't want to investigate further.

 Thank you

 Summary of changes:  (A/? = New, R/D = Removed, M = Modified)
 =============================================================
 M mozilla-common.mk

 Apply patch with "cd .../pkgsrc/www/firefox ; patch -s -p0 < .../patchfile"

 Index: mozilla-common.mk
 ===================================================================
 RCS file: /cvsroot/pkgsrc/www/firefox/mozilla-common.mk,v
 retrieving revision 1.114
 diff -b -u -r1.114 mozilla-common.mk
 --- mozilla-common.mk   5 Sep 2018 15:29:58 -0000       1.114
 +++ mozilla-common.mk   6 Sep 2018 01:23:32 -0000
 @@ -13,8 +13,10 @@
  TOOL_DEPENDS+=         python${PYTHON_VERSION_DEFAULT}-[0-9]*:../../lang/python${PYTHON_VERSION_DEFAULT}
  ALL_ENV+=      PYTHON3=${LOCALBASE}/bin/python${PYTHON_VERSION_DEFAULT:S/3/3./}
  .else
 -TOOL_DEPENDS+=         python37-[0-9]*:../../lang/python37
 -ALL_ENV+=      PYTHON3=${LOCALBASE}/bin/python3.7
 +#TOOL_DEPENDS+=                python37-[0-9]*:../../lang/python37
 +#ALL_ENV+=     PYTHON3=${LOCALBASE}/bin/python3.7
 +TOOL_DEPENDS+=         python36-[0-9]*:../../lang/python36
 +ALL_ENV+=      PYTHON3=${LOCALBASE}/bin/python3.6
  .endif

  HAS_CONFIGURE=         yes

From: Ryo ONODERA <ryo@tetera.org>
To: scole_mail@gmx.com, gnats-bugs@NetBSD.org
Cc: 
Subject: Re: pkg/53558: www/firefox 61.0 fails build on i386
Date: Thu, 06 Sep 2018 11:37:39 +0900 (JST)

 Hi,

 Sorry. I will investigate pkgsrc-2018Q2 branch tonight.

 Thank you.

 From: scole_mail <scole_mail@gmx.com>, Date: Thu,  6 Sep 2018 01:40:01 +0000 (UTC)

 > The following reply was made to PR pkg/53558; it has been noted by GNATS.
 > 
 > From: scole_mail <scole_mail@gmx.com>
 > To: gnats-bugs@NetBSD.org
 > Cc: 
 > Subject: Re: pkg/53558: www/firefox 61.0 fails build on i386
 > Date: Wed, 05 Sep 2018 18:38:22 -0700
 > 
 >  Ryo ONODERA <ryo@tetera.org> writes:
 >  >  
 >  >  I cannot reproduce your problem under NetBSD/i386 8.0_STABLE
 >  >  of 2018-08-30.
 >  >  
 >  >  Anyway could you try www/firefox-62.0?
 >  >  
 >  
 >  I'm using pkgsrc-2018Q2 and I didn't see firefox-62.0 available.
 >  
 >  I didn't want to rebuild everything with current, so I updated
 >  pkgsrc/devel/nss and pkgsrc/www/firefox to current (3.39 and 62.0
 >  respectively) and with the patch below everything seems to build and run
 >  fine.  The patch was necessary because pkgsrc-2018Q2 apparently does not
 >  have a python37 package.
 >  
 >  Feel free to close the PR if you don't want to investigate further.
 >  
 >  Thank you
 >  
 >  Summary of changes:  (A/? = New, R/D = Removed, M = Modified)
 >  =============================================================
 >  M mozilla-common.mk
 >  
 >  Apply patch with "cd .../pkgsrc/www/firefox ; patch -s -p0 < .../patchfile"
 >  
 >  Index: mozilla-common.mk
 >  ===================================================================
 >  RCS file: /cvsroot/pkgsrc/www/firefox/mozilla-common.mk,v
 >  retrieving revision 1.114
 >  diff -b -u -r1.114 mozilla-common.mk
 >  --- mozilla-common.mk   5 Sep 2018 15:29:58 -0000       1.114
 >  +++ mozilla-common.mk   6 Sep 2018 01:23:32 -0000
 >  @@ -13,8 +13,10 @@
 >   TOOL_DEPENDS+=         python${PYTHON_VERSION_DEFAULT}-[0-9]*:../../lang/python${PYTHON_VERSION_DEFAULT}
 >   ALL_ENV+=      PYTHON3=${LOCALBASE}/bin/python${PYTHON_VERSION_DEFAULT:S/3/3./}
 >   .else
 >  -TOOL_DEPENDS+=         python37-[0-9]*:../../lang/python37
 >  -ALL_ENV+=      PYTHON3=${LOCALBASE}/bin/python3.7
 >  +#TOOL_DEPENDS+=                python37-[0-9]*:../../lang/python37
 >  +#ALL_ENV+=     PYTHON3=${LOCALBASE}/bin/python3.7
 >  +TOOL_DEPENDS+=         python36-[0-9]*:../../lang/python36
 >  +ALL_ENV+=      PYTHON3=${LOCALBASE}/bin/python3.6
 >   .endif
 >   
 >   HAS_CONFIGURE=         yes
 >  

 --
 Ryo ONODERA // ryo@tetera.org
 PGP fingerprint = 82A2 DC91 76E0 A10A 8ABB  FD1B F404 27FA C7D1 15F3

Responsible-Changed-From-To: pkg-manager->ryoon
Responsible-Changed-By: bsiegert@NetBSD.org
Responsible-Changed-When: Mon, 17 Sep 2018 12:24:29 +0000
Responsible-Changed-Why:
Over to maintainer.
Ryo, do you want to close this? Or should there be some kind of
fix or pullup for pkgsrc-2018Q2? Q3 is going to be out in a month
or so.


>Unformatted:

NetBSD Home
NetBSD PR Database Search

(Contact us) $NetBSD: query-full-pr,v 1.43 2018/01/16 07:36:43 maya Exp $
$NetBSD: gnats_config.sh,v 1.9 2014/08/02 14:16:04 spz Exp $
Copyright © 1994-2017 The NetBSD Foundation, Inc. ALL RIGHTS RESERVED.