NetBSD Problem Report #53828

From  Wed Jan  2 17:16:54 2019
Return-Path: <>
Received: from ( [])
	(using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits))
	(Client CN "", Issuer " CA" (not verified))
	by (Postfix) with ESMTPS id 431E17A110
	for <>; Wed,  2 Jan 2019 17:16:54 +0000 (UTC)
Message-Id: <>
Date: Wed,  2 Jan 2019 17:16:53 +0000 (UTC)
Subject: www/firefox version 64.0 doesn't build on i386
X-Send-Pr-Version: www-1.0

>Number:         53828
>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
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
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/ ../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/ -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/ /usr/pkgsrc/lang/nodejs/work/node-v10.14.2/out/Release/] Error 1
rm efc2c5cce04a810e8ce35e955c6805eadadea2a0.intermediate 523fbd2ef271a08bc4faae8badc3e5917bee51ef.intermediate
gmake: *** [Makefile:99: node] Error 2
*** Error code 2

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

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

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/ to

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

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

cd .../pkgsrc/www/firefox && bmake



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

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

From: "David H. Gutteridge" <>
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 <>
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:

 Izumi Tsutsui

From: scole_mail <>
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
 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.


NetBSD Home
NetBSD PR Database Search

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