NetBSD Problem Report #53828

From www@NetBSD.org  Wed Jan  2 17:16:54 2019
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 431E17A110
	for <gnats-bugs@gnats.NetBSD.org>; Wed,  2 Jan 2019 17:16:54 +0000 (UTC)
Message-Id: <20190102171653.61F717A276@mollari.NetBSD.org>
Date: Wed,  2 Jan 2019 17:16:53 +0000 (UTC)
From: scole_mail@gmx.com
Reply-To: scole_mail@gmx.com
To: gnats-bugs@NetBSD.org
Subject: www/firefox version 64.0 doesn't build on i386
X-Send-Pr-Version: www-1.0

>Number:         53828
>Notify-List:    fhajny@NetBSD.org
>Category:       pkg
>Synopsis:       www/firefox version 64.0 doesn't build on i386
>Confidential:   no
>Severity:       non-critical
>Priority:       low
>Responsible:    ryoon
>State:          open
>Class:          sw-bug
>Submitter-Id:   net
>Arrival-Date:   Wed Jan 02 17:20:00 +0000 2019
>Last-Modified:  Thu Jan 03 15:55:00 +0000 2019
>Originator:     scole_mail
>Release:        pkgsrc-2018Q4
>Organization:
none
>Environment:
NetBSD dstar 8.0_STABLE NetBSD 8.0_STABLE (GENERIC) #0: Fri Nov 30 13:53:15 PST 2018  scole@dstar:/home/scole/nbsd/cvs/8_0/obj/sys/arch/i386/compile/GENERIC i386
>Description:
firefox 64.0 doesn't build on i386.  It is pulling in .../lang/nodejs as a tool dependency and that will fail compilation.  It seems like nodejs is looking for an BSD i386 assembly opensslconf.h that doesn't exist:

  cc -o /usr/pkgsrc/lang/nodejs/work/node-v10.14.2/out/Release/obj.target/openssl/deps/openssl/openssl/ssl/bio_ssl.o ../deps/openssl/openssl/ssl/bio_ssl.c '-DOPENSSL_NO_HW' '-DDSO_DLFCN' '-DHAVE_DLFCN_H' '-DNDEBUG' '-DOPENSSL_THREADS' '-DOPENSSL_NO_DYNAMIC_ENGINE' '-DOPENSSL_PIC' '-DOPENSSL_BN_ASM_PART_WORDS' '-DOPENSSL_IA32_SSE2' '-DOPENSSL_BN_ASM_MONT' '-DOPENSSL_BN_ASM_GF2m' '-DSHA1_ASM' '-DSHA256_ASM' '-DSHA512_ASM' '-DRC4_ASM' '-DMD5_ASM' '-DRMD160_ASM' '-DAES_ASM' '-DVPAES_ASM' '-DWHIRLPOOL_ASM' '-DGHASH_ASM' '-DECP_NISTZ256_ASM' '-DPADLOCK_ASM' '-DPOLY1305_ASM' '-DOPENSSLDIR="/etc/ssl"' '-DENGINESDIR="/dev/null"' '-DTERMIOS' -I/usr/pkg/include -I../deps/openssl/openssl -I../deps/openssl/openssl/include -I../deps/openssl/openssl/crypto -I../deps/openssl/openssl/crypto/include -I../deps/openssl/openssl/crypto/modes -I../deps/openssl/config -I../deps/openssl/config/archs/linux-elf/asm -I../deps/openssl/config/archs/linux-elf/asm/include -I../deps/openssl/config/archs/linux-elf/as
 m/crypto -I../deps/openssl/config/archs/linux-elf/asm/crypto/include/internal  -pthread -Wall -Wextra -Wno-unused-parameter -m32 -Wall -O3 -pthread -DL_ENDIAN -fomit-frame-pointer -Wno-missing-field-initializers -Wno-old-style-declaration -O3 -fno-omit-frame-pointer  -MMD -MF /usr/pkgsrc/lang/nodejs/work/node-v10.14.2/out/Release/.deps//usr/pkgsrc/lang/nodejs/work/node-v10.14.2/out/Release/obj.target/openssl/deps/openssl/openssl/ssl/bio_ssl.o.d.raw -I/usr/include -I/usr/pkg/include -O2 -D_FORTIFY_SOURCE=2 -pthread -I/usr/include -I/usr/pkg/include -c
In file included from ../deps/openssl/openssl/include/../../config/opensslconf.h:9:0,
                 from ../deps/openssl/openssl/include/openssl/opensslconf.h:1,
                 from ../deps/openssl/openssl/include/openssl/e_os2.h:13,
                 from ../deps/openssl/openssl/include/openssl/crypto.h:22,
                 from ../deps/openssl/openssl/ssl/bio_ssl.c:14:
../deps/openssl/openssl/include/../../config/./opensslconf_asm.h:112:62: fatal error: ./archs/BSD-x86/asm/include/openssl/opensslconf.h: No such file or directory
compilation terminated.
gmake[1]: *** [deps/openssl/openssl.target.mk:804: /usr/pkgsrc/lang/nodejs/work/node-v10.14.2/out/Release/obj.target/openssl/deps/openssl/openssl/ssl/bio_ssl.o] Error 1
rm efc2c5cce04a810e8ce35e955c6805eadadea2a0.intermediate 523fbd2ef271a08bc4faae8badc3e5917bee51ef.intermediate
gmake: *** [Makefile:99: node] Error 2
*** Error code 2

Stop.
bmake[2]: stopped in /usr/pkgsrc/lang/nodejs
*** Error code 1

Stop.
bmake[1]: stopped in /usr/pkgsrc/lang/nodejs
*** Error code 1

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


I don't believe pkgsrc-2018Q3/firefox 62.03 the dependency on nodejs. I tried disabling nodejs by modifying www/firefox/mozilla-common.mk to

 .if ${MACHINE_ARCH} == "sparc64" || ${MACHINE_ARCH} == "i386"
 CONFIGURE_ARGS+=        --disable-nodejs
 .else
 TOOL_DEPENDS+=          nodejs-[0-9]*:../../lang/nodejs
 .endif

but that also failed compilation with an error about nodejs being needed.

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

>Release-Note:

>Audit-Trail:

Responsible-Changed-From-To: pkg-manager->ryoon
Responsible-Changed-By: bsiegert@NetBSD.org
Responsible-Changed-When: Wed, 02 Jan 2019 18:23:46 +0000
Responsible-Changed-Why:
Over to Firefox maintainer.

Or feel free to hand over to fhajny if you would like him to fix
nodejs :)


From: "David H. Gutteridge" <david@gutteridge.ca>
To: gnats-bugs@netbsd.org
Cc: 
Subject: Re: pkg/53828 (www/firefox version 64.0 doesn't build on i386)
Date: Wed, 02 Jan 2019 20:07:41 -0500

 This is effectively a duplicate of PR pkg/53758.

From: Izumi Tsutsui <tsutsui@ceres.dti.ne.jp>
To: gnats-bugs@NetBSD.org
Cc: tsutsui@ceres.dti.ne.jp
Subject: Re: pkg/53828: www/firefox version 64.0 doesn't build on i386
Date: Thu, 3 Jan 2019 10:42:19 +0900

 See patches I posted in PR pkg/53758:
  https://mail-index.netbsd.org/pkgsrc-bugs/2018/12/08/msg065531.html
  https://mail-index.netbsd.org/pkgsrc-bugs/2018/12/24/msg065613.html

 ---
 Izumi Tsutsui

From: scole_mail <scole_mail@gmx.com>
To: gnats-bugs@NetBSD.org
Cc: 
Subject: Re: pkg/53828: www/firefox version 64.0 doesn't build on i386
Date: Thu, 03 Jan 2019 07:51:18 -0800

 Those patches allowed firefox to build and run fine for me.

 nodejs also did build and install, although there there was a core file
 generated during the build at
    .../pkgsrc/lang/nodejs/work/node-v10.14.2/node.core
 But it didn't seem to affect firefox.

 Thank you very much for the patches.  If you want to close this PR as a
 duplicate it is fine with me.

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