NetBSD Problem Report #56339

From www@netbsd.org  Fri Jul 30 13:09:18 2021
Return-Path: <www@netbsd.org>
Received: from mail.netbsd.org (mail.netbsd.org [199.233.217.200])
	(using TLSv1.3 with cipher TLS_AES_256_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 06BF51A921F
	for <gnats-bugs@gnats.NetBSD.org>; Fri, 30 Jul 2021 13:09:18 +0000 (UTC)
Message-Id: <20210730130916.78E7E1A923A@mollari.NetBSD.org>
Date: Fri, 30 Jul 2021 13:09:16 +0000 (UTC)
From: nia@pkgsrc.org
Reply-To: nia@pkgsrc.org
To: gnats-bugs@NetBSD.org
Subject: audio/flac fails to build i386 asm on NetBSD with MKPIE
X-Send-Pr-Version: www-1.0

>Number:         56339
>Category:       pkg
>Synopsis:       audio/flac fails to build i386 asm on NetBSD with MKPIE
>Confidential:   no
>Severity:       serious
>Priority:       medium
>Responsible:    pkg-manager
>State:          open
>Class:          sw-bug
>Submitter-Id:   net
>Arrival-Date:   Fri Jul 30 13:10:00 +0000 2021
>Originator:     nia
>Release:        current
>Organization:
The NetBSD Foundation
>Environment:
NetBSD 9.2 i386
>Description:
=> Bootstrap dependency digest>=20010302: found digest-20190127
===> Skipping vulnerability checks.
WARNING: No /var/db/pkg/pkg-vulnerabilities file found.
WARNING: To fix run: `/usr/sbin/pkg_admin -K /var/db/pkg fetch-pkg-vulnerabilities'.
===> Building for flac-1.3.3
/usr/pkg/bin/gmake  all-recursive
gmake[1]: Entering directory '/tmp/work/audio/flac/work/flac-1.3.3'
Making all in doc
gmake[2]: Entering directory '/tmp/work/audio/flac/work/flac-1.3.3/doc'
Making all in .
gmake[3]: Entering directory '/tmp/work/audio/flac/work/flac-1.3.3/doc'
gmake[3]: Nothing to be done for 'all-am'.
gmake[3]: Leaving directory '/tmp/work/audio/flac/work/flac-1.3.3/doc'
Making all in html
gmake[3]: Entering directory '/tmp/work/audio/flac/work/flac-1.3.3/doc/html'
Making all in images
gmake[4]: Entering directory '/tmp/work/audio/flac/work/flac-1.3.3/doc/html/images'
gmake[4]: Nothing to be done for 'all'.
gmake[4]: Leaving directory '/tmp/work/audio/flac/work/flac-1.3.3/doc/html/images'
gmake[4]: Entering directory '/tmp/work/audio/flac/work/flac-1.3.3/doc/html'
gmake[4]: Nothing to be done for 'all-am'.
gmake[4]: Leaving directory '/tmp/work/audio/flac/work/flac-1.3.3/doc/html'
gmake[3]: Leaving directory '/tmp/work/audio/flac/work/flac-1.3.3/doc/html'
gmake[2]: Leaving directory '/tmp/work/audio/flac/work/flac-1.3.3/doc'
Making all in include
gmake[2]: Entering directory '/tmp/work/audio/flac/work/flac-1.3.3/include'
Making all in FLAC
gmake[3]: Entering directory '/tmp/work/audio/flac/work/flac-1.3.3/include/FLAC'
gmake[3]: Nothing to be done for 'all'.
gmake[3]: Leaving directory '/tmp/work/audio/flac/work/flac-1.3.3/include/FLAC'
Making all in FLAC++
gmake[3]: Entering directory '/tmp/work/audio/flac/work/flac-1.3.3/include/FLAC++'
gmake[3]: Nothing to be done for 'all'.
gmake[3]: Leaving directory '/tmp/work/audio/flac/work/flac-1.3.3/include/FLAC++'
Making all in share
gmake[3]: Entering directory '/tmp/work/audio/flac/work/flac-1.3.3/include/share'
Making all in grabbag
gmake[4]: Entering directory '/tmp/work/audio/flac/work/flac-1.3.3/include/share/grabbag'
gmake[4]: Nothing to be done for 'all'.
gmake[4]: Leaving directory '/tmp/work/audio/flac/work/flac-1.3.3/include/share/grabbag'
gmake[4]: Entering directory '/tmp/work/audio/flac/work/flac-1.3.3/include/share'
gmake[4]: Nothing to be done for 'all-am'.
gmake[4]: Leaving directory '/tmp/work/audio/flac/work/flac-1.3.3/include/share'
gmake[3]: Leaving directory '/tmp/work/audio/flac/work/flac-1.3.3/include/share'
Making all in test_libs_common
gmake[3]: Entering directory '/tmp/work/audio/flac/work/flac-1.3.3/include/test_libs_common'
gmake[3]: Nothing to be done for 'all'.
gmake[3]: Leaving directory '/tmp/work/audio/flac/work/flac-1.3.3/include/test_libs_common'
gmake[3]: Entering directory '/tmp/work/audio/flac/work/flac-1.3.3/include'
gmake[3]: Nothing to be done for 'all-am'.
gmake[3]: Leaving directory '/tmp/work/audio/flac/work/flac-1.3.3/include'
gmake[2]: Leaving directory '/tmp/work/audio/flac/work/flac-1.3.3/include'
Making all in m4
gmake[2]: Entering directory '/tmp/work/audio/flac/work/flac-1.3.3/m4'
gmake[2]: Nothing to be done for 'all'.
gmake[2]: Leaving directory '/tmp/work/audio/flac/work/flac-1.3.3/m4'
Making all in man
gmake[2]: Entering directory '/tmp/work/audio/flac/work/flac-1.3.3/man'
gmake[2]: Nothing to be done for 'all'.
gmake[2]: Leaving directory '/tmp/work/audio/flac/work/flac-1.3.3/man'
Making all in src
gmake[2]: Entering directory '/tmp/work/audio/flac/work/flac-1.3.3/src'
Making all in libFLAC
gmake[3]: Entering directory '/tmp/work/audio/flac/work/flac-1.3.3/src/libFLAC'
Making all in ia32
gmake[4]: Entering directory '/tmp/work/audio/flac/work/flac-1.3.3/src/libFLAC/ia32'
/bin/sh ../../../libtool --tag=CC --mode=compile sh ../../../strip_non_asm_libtool_args.sh nasm -f elf -d OBJ_FORMAT_elf -i./ cpu_asm.nasm -o cpu_asm.lo
/bin/sh ../../../libtool --tag=CC --mode=compile sh ../../../strip_non_asm_libtool_args.sh nasm -f elf -d OBJ_FORMAT_elf -i./ fixed_asm.nasm -o fixed_asm.lo
libtool: compile:  sh ../../../strip_non_asm_libtool_args.sh nasm -f elf -d OBJ_FORMAT_elf -i./ fixed_asm.nasm  -fPIC -DPIC -o .libs/fixed_asm.o
 nasm -f elf -d OBJ_FORMAT_elf -i./ fixed_asm.nasm -o .libs/fixed_asm.o
libtool: compile:  sh ../../../strip_non_asm_libtool_args.sh nasm -f elf -d OBJ_FORMAT_elf -i./ cpu_asm.nasm  -fPIC -DPIC -o .libs/cpu_asm.o
 nasm -f elf -d OBJ_FORMAT_elf -i./ cpu_asm.nasm -o .libs/cpu_asm.o
libtool: compile:  sh ../../../strip_non_asm_libtool_args.sh nasm -f elf -d OBJ_FORMAT_elf -i./ fixed_asm.nasm -pie -o fixed_asm.o >/dev/null 2>&1
libtool: compile:  sh ../../../strip_non_asm_libtool_args.sh nasm -f elf -d OBJ_FORMAT_elf -i./ cpu_asm.nasm -pie -o cpu_asm.o >/dev/null 2>&1
gmake[4]: *** [Makefile:642: fixed_asm.lo] Error 1
gmake[4]: *** Waiting for unfinished jobs....
gmake[4]: *** [Makefile:642: cpu_asm.lo] Error 1
gmake[4]: Leaving directory '/tmp/work/audio/flac/work/flac-1.3.3/src/libFLAC/ia32'
gmake[3]: *** [Makefile:794: all-recursive] Error 1
gmake[3]: Leaving directory '/tmp/work/audio/flac/work/flac-1.3.3/src/libFLAC'
gmake[2]: *** [Makefile:433: all-recursive] Error 1
gmake[2]: Leaving directory '/tmp/work/audio/flac/work/flac-1.3.3/src'
gmake[1]: *** [Makefile:494: all-recursive] Error 1
gmake[1]: Leaving directory '/tmp/work/audio/flac/work/flac-1.3.3'
gmake: *** [Makefile:426: all] Error 2
*** Error code 2

Stop.
make[1]: stopped in /usr/pkgsrc/audio/flac
*** Error code 1

Stop.
make: stopped in /usr/pkgsrc/audio/flac

>How-To-Repeat:

>Fix:
Likely ASM needs to be disabled with

CONFIGURE_ARGS+= --disable-asm-optimizations

as on other platforms.

i386 asm is not very PIE compatible.

NetBSD Home
NetBSD PR Database Search

(Contact us) $NetBSD: query-full-pr,v 1.46 2020/01/03 16:35:01 leot Exp $
$NetBSD: gnats_config.sh,v 1.9 2014/08/02 14:16:04 spz Exp $
Copyright © 1994-2020 The NetBSD Foundation, Inc. ALL RIGHTS RESERVED.