NetBSD Problem Report #51350

From www@NetBSD.org  Wed Jul 20 21:39:45 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 7D2E47A474
	for <gnats-bugs@gnats.NetBSD.org>; Wed, 20 Jul 2016 21:39:45 +0000 (UTC)
Message-Id: <20160720213944.89D1A7AAB7@mollari.NetBSD.org>
Date: Wed, 20 Jul 2016 21:39:44 +0000 (UTC)
From: ball@cyberspace.org
Reply-To: ball@cyberspace.org
To: gnats-bugs@NetBSD.org
Subject: www/firefox from pkgsrc 2016Q2 fails to build on NetBSD/i386 6.1.5
X-Send-Pr-Version: www-1.0

>Number:         51350
>Category:       pkg
>Synopsis:       www/firefox from pkgsrc 2016Q2 fails to build on NetBSD/i386 6.1.5
>Confidential:   no
>Severity:       non-critical
>Priority:       medium
>Responsible:    maya
>State:          closed
>Class:          sw-bug
>Submitter-Id:   net
>Arrival-Date:   Wed Jul 20 21:40:00 +0000 2016
>Closed-Date:    Tue Sep 06 04:51:23 +0000 2016
>Last-Modified:  Tue Sep 06 04:51:23 +0000 2016
>Originator:     Andrew Ball
>Release:        NetBSD/i386 6.1.5 and pkgsrc 2016Q2
>Organization:
>Environment:
NetBSD mwo-c9kdw31 6.1.5 NetBSD 6.1.5 (GENERIC) i386
>Description:
When I attempt to build www/firefox on NetBSD/i386 6.1.5 from pkgsrc 2016Q2, the build fails with...

/usr/pkgsrc/www/firefox/work/firefox-47.0/gfx/skia/skia/src/core/SkScaleToSides.h:52:61:
error: 'nexttowardf' was not declared in this scope
newMaxRadius = nexttowardf(newMaxRadius, 0.0);

A full transcript of the build attempt may be found at http://grex.org/~ball/firefox.log and I am happy to help with further testing.
>How-To-Repeat:
cd /usr/pkgsrc/www/firefox
make fetch-list|sh
make

>Fix:
Unknown.

>Release-Note:

>Audit-Trail:
From: Matthew Mondor <mm_lists@pulsar-zone.net>
To: gnats-bugs@NetBSD.org
Cc: 
Subject: Re: pkg/51350: www/firefox from pkgsrc 2016Q2 fails to build on
 NetBSD/i386 6.1.5
Date: Wed, 20 Jul 2016 18:05:40 -0400

 A comment if it may be useful:

 This bug appears similar to an older
 https://gcc.gnu.org/bugzilla/show_bug.cgi?id=54757 although this time
 the function it's looking for would be the float version of
 nexttoward(3), nexttowardf(3).  NetBSD 6's libm appears to indeed be
 lacking this function.  I believe that NetBSD-6 and NetBSD-7 lack this
 function but that -current recently has it (at least according to the
 manual pages HTTP gateway).

 It would be possible have a patch to include a version for this
 function if it's missing (and also ask Mozilla upstream to fix it
 officially), or to backport those libm changes to NetBSD-7 and
 NetBSD-6...

 -- 
 Matt

From: Joerg Sonnenberger <joerg@bec.de>
To: gnats-bugs@NetBSD.org
Cc: pkg-manager@netbsd.org, gnats-admin@netbsd.org, pkgsrc-bugs@netbsd.org,
	ball@cyberspace.org
Subject: Re: pkg/51350: www/firefox from pkgsrc 2016Q2 fails to build on
 NetBSD/i386 6.1.5
Date: Thu, 21 Jul 2016 02:50:31 +0200

 On Wed, Jul 20, 2016 at 10:10:01PM +0000, Matthew Mondor wrote:
 >  This bug appears similar to an older
 >  https://gcc.gnu.org/bugzilla/show_bug.cgi?id=54757 although this time
 >  the function it's looking for would be the float version of
 >  nexttoward(3), nexttowardf(3).  NetBSD 6's libm appears to indeed be
 >  lacking this function.  I believe that NetBSD-6 and NetBSD-7 lack this
 >  function but that -current recently has it (at least according to the
 >  manual pages HTTP gateway).

 The functions like many other C99 math functions appeared before
 netbsd-7.

 Joerg

From: Matthew Mondor <mm_lists@pulsar-zone.net>
To: gnats-bugs@NetBSD.org
Cc: 
Subject: Re: pkg/51350: www/firefox from pkgsrc 2016Q2 fails to build on
 NetBSD/i386 6.1.5
Date: Wed, 20 Jul 2016 23:23:41 -0400

 On Thu, 21 Jul 2016 00:55:01 +0000 (UTC)
 Joerg Sonnenberger <joerg@bec.de> wrote:

 >  The functions like many other C99 math functions appeared before
 >  netbsd-7.

 $ uname -r
 6.1_STABLE
 $

 $ apropos nexttowardf
 apropos: No relevant results obtained.
 Please make sure that you spelled all the terms correctly or try using better keywords.
 $

 $ apropos nexttoward
 nextafter (3)   next representable floating-point number
 ...value of y is returned. The three functions differ only in the type of the return value and x . The nexttoward function is equivalent to the nextafter family of functions with two exceptions: The second parameter has a type long...
 perltoc (1)     perl documentation table of contents
 ...longjmp", "lseek", "lrint", "lround", "malloc", "mblen", "mbstowcs", "mbtowc", "memchr", "memcmp", "memcpy", "memmove", "memset", "mkdir", "mkfifo", "mktime", "modf", "nan", "nearbyint", "nextafter", "nexttoward", "nice", "offsetof", "open", "opendir", "pathconf", "pause", "perror", "pipe", "pow", "printf", "putc", "putchar", "puts", "qsort", "raise", "rand", "read", "readdir", "realloc...
 $

 $ nm /usr/lib/libm.so | grep -i next
 000000000000a500 T nextafter
 000000000000a460 T nextafterf
 0000000000014e50 T nextafterl
 0000000000014cc0 T nexttoward
 $

 $ nm /usr/lib/libm.so | grep -i nexttowardf
 $ 

 $ grep -ri nexttowardf /usr/include/
 /usr/include/g++/tr1_impl/cmath:#undef nexttowardf
 /usr/include/g++/tr1_impl/cmath:  using ::nexttowardf;
 /usr/include/g++/tr1_impl/cmath:  { return __builtin_nexttowardf(__x, __y); }
 $ 

 http://netbsd.gw.com/cgi-bin/man-cgi?nexttowardf+3+NetBSD-6.1.5
 The manual page was not found. Try apropos or select a different architecture.

 http://netbsd.gw.com/cgi-bin/man-cgi?nexttowardf+3+NetBSD-7.0.1
 The manual page was not found. Try apropos or select a different architecture.

 http://netbsd.gw.com/cgi-bin/man-cgi?nexttowardf+3+NetBSD-current
 NEXTAFTER(3)            NetBSD Library Functions Manual           NEXTAFTER(3)
 [...]

 -- 
 Matt

From: Matthew Mondor <mm_lists@pulsar-zone.net>
To: gnats-bugs@NetBSD.org
Cc: 
Subject: Re: pkg/51350: www/firefox from pkgsrc 2016Q2 fails to build on
 NetBSD/i386 6.1.5
Date: Wed, 20 Jul 2016 23:50:46 -0400

 On Thu, 21 Jul 2016 03:25:01 +0000 (UTC)
 Matthew Mondor <mm_lists@pulsar-zone.net> wrote:

 >  http://netbsd.gw.com/cgi-bin/man-cgi?nexttowardf+3+NetBSD-current
 >  NEXTAFTER(3)            NetBSD Library Functions Manual           NEXTAFTER

 http://cvsweb.netbsd.org/bsdweb.cgi/src/include/math.h.diff?r1=1.58&r2=1.59&only_with_tag=MAIN

 -- 
 Matt

From: Matthew Mondor <mm_lists@pulsar-zone.net>
To: gnats-bugs@NetBSD.org
Cc: 
Subject: Re: pkg/51350: www/firefox from pkgsrc 2016Q2 fails to build on
 NetBSD/i386 6.1.5
Date: Wed, 20 Jul 2016 23:56:43 -0400

 On Wed, 20 Jul 2016 23:50:46 -0400
 Matthew Mondor <mm_lists@pulsar-zone.net> wrote:

 > On Thu, 21 Jul 2016 03:25:01 +0000 (UTC)
 > Matthew Mondor <mm_lists@pulsar-zone.net> wrote:
 > 
 > >  http://netbsd.gw.com/cgi-bin/man-cgi?nexttowardf+3+NetBSD-current
 > >  NEXTAFTER(3)            NetBSD Library Functions Manual
 > > NEXTAFTER
 > 
 > http://cvsweb.netbsd.org/bsdweb.cgi/src/include/math.h.diff?
 r1=1.58&r2=1.59&only_with_tag=MAIN

 So it would be as part of netbsd-7, although the manual page was not
 updated

 http://cvsweb.netbsd.org/bsdweb.cgi/src/lib/libm/man/nextafter.3.diff?r1=1.4&r2=1.5

 But not in netbsd-6 of course.

 -- 
 Matt

From: coypu@SDF.ORG
To: gnats-bugs@netbsd.org
Cc: 
Subject: Re: pkg/51350
Date: Sat, 20 Aug 2016 17:10:32 +0000

 Hi,
 test for this by gcc48 is done in in work/gcc-4.8.4/libstdc++-v3/configure
 I believe configure is not run, as there is no config.log left in this
 directory after a completed build.

 running ./configure manually I (correctly) get:
 $ grep glibcxx_cv_c99_math_tr1 config.log
 glibcxx_cv_c99_math_tr1=no

Responsible-Changed-From-To: pkg-manager->maya
Responsible-Changed-By: maya@NetBSD.org
Responsible-Changed-When: Sun, 04 Sep 2016 18:58:10 +0000
Responsible-Changed-Why:
Take


State-Changed-From-To: open->feedback
State-Changed-By: maya@NetBSD.org
State-Changed-When: Sun, 04 Sep 2016 18:58:10 +0000
State-Changed-Why:
I can now build firefox on a 6.1.5/amd64 chroot.
please try again:
make sure to delete gcc48 and clean your work dirs.


State-Changed-From-To: feedback->closed
State-Changed-By: maya@NetBSD.org
State-Changed-When: Tue, 06 Sep 2016 04:51:23 +0000
State-Changed-Why:
confirmed fixed


>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.