NetBSD Problem Report #57130

From mlelstv@arnold.localdomain  Thu Dec 22 11:13:18 2022
Return-Path: <mlelstv@arnold.localdomain>
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 1A7FB1A921F
	for <gnats-bugs@gnats.NetBSD.org>; Thu, 22 Dec 2022 11:13:18 +0000 (UTC)
Message-Id: <20221222111312.8D5B2BC15D@arnold.localdomain>
Date: Thu, 22 Dec 2022 12:13:12 +0100 (CET)
From: mlelstv@netbsd.org
Reply-To: mlelstv@netbsd.org
To: gnats-bugs@NetBSD.org
Subject: amanda-common build fails with gcc-10
X-Send-Pr-Version: 3.95

>Number:         57130
>Category:       pkg
>Synopsis:       amanda-common build fails with gcc-10
>Confidential:   no
>Severity:       serious
>Priority:       medium
>Responsible:    pkg-manager
>State:          open
>Class:          sw-bug
>Submitter-Id:   net
>Arrival-Date:   Thu Dec 22 11:15:00 +0000 2022
>Last-Modified:  Fri Apr 21 18:45:01 +0000 2023
>Originator:     Michael van Elst
>Release:        NetBSD 10.99.1
>Organization:

>Environment:


System: NetBSD slowpoke 10.99.1 NetBSD 10.99.1 (SLOWPOKE) #19: Sat Dec 17 19:26:
04 UTC 2022 mlelstv@slowpoke:/scratch2/obj.amd64/scratch/netbsd-current/src/sys/
arch/amd64/compile/SLOWPOKE amd64
Architecture: x86_64
Machine: amd64
>Description:

sysutils/amanda-common fails with:

ld: ./.libs/libamanda.so: undefined reference to `__builtin_ia32_crc32hi'
ld: ./.libs/libamanda.so: undefined reference to `__builtin_ia32_crc32si'
ld: ./.libs/libamanda.so: undefined reference to `__builtin_ia32_crc32qi'
ld: ./.libs/libamanda.so: undefined reference to `__builtin_ia32_crc32di'

The source assumes that the builtin functions are always available on x86.
The compiler however only supports this when enabled with e.g. -msse4.2.

The configure script on the other hand only sets this option when the
output of 'cc -v --help' shows the availability of this option. gcc-10
does not produce that output.

>How-To-Repeat:
Build amanda-common on NetBSD-10 or -current.
>Fix:
Quick fix is to augment compiler options for x86.

>Audit-Trail:
From: "Nia Alarie" <nia@netbsd.org>
To: gnats-bugs@gnats.NetBSD.org
Cc: 
Subject: PR/57130 CVS commit: pkgsrc/sysutils/amanda-common
Date: Fri, 14 Apr 2023 22:58:24 +0000

 Module Name:	pkgsrc
 Committed By:	nia
 Date:		Fri Apr 14 22:58:24 UTC 2023

 Modified Files:
 	pkgsrc/sysutils/amanda-common: Makefile.common distinfo
 Added Files:
 	pkgsrc/sysutils/amanda-common/patches: patch-config_amanda_libs.m4

 Log Message:
 amanda-common: Configure fixes

 The configure script creates massive amounts of spam when using NetBSD's
 sh due to the non-standard test(1) args.

 For some reason, the test for compiler flag -msse4.2 is failing, even
 though it's present in the cc -v --help output (is cwrappers doing
 something strange?). For now, commit a workaround. The package is actually
 doing runtime detection of SSE4.2 properly, but expects compiler support
 for -msse4.2 to be provided on x86.

 PR 57130


 To generate a diff of this commit:
 cvs rdiff -u -r1.45 -r1.46 pkgsrc/sysutils/amanda-common/Makefile.common
 cvs rdiff -u -r1.25 -r1.26 pkgsrc/sysutils/amanda-common/distinfo
 cvs rdiff -u -r0 -r1.1 \
     pkgsrc/sysutils/amanda-common/patches/patch-config_amanda_libs.m4

 Please note that diffs are not public domain; they are subject to the
 copyright notices on the relevant files.

From: "Benny Siegert" <bsiegert@netbsd.org>
To: gnats-bugs@gnats.NetBSD.org
Cc: 
Subject: PR/57130 CVS commit: [pkgsrc-2023Q1] pkgsrc/sysutils/amanda-common
Date: Fri, 21 Apr 2023 18:40:52 +0000

 Module Name:	pkgsrc
 Committed By:	bsiegert
 Date:		Fri Apr 21 18:40:51 UTC 2023

 Modified Files:
 	pkgsrc/sysutils/amanda-common [pkgsrc-2023Q1]: Makefile.common distinfo
 Added Files:
 	pkgsrc/sysutils/amanda-common/patches [pkgsrc-2023Q1]:
 	    patch-config_amanda_libs.m4

 Log Message:
 Pullup ticket #6755 - requested by nia
 sysutils/amanda-common

 Revisions pulled up:
 - sysutils/amanda-common/Makefile.common                        1.46
 - sysutils/amanda-common/distinfo                               1.26
 - sysutils/amanda-common/patches/patch-config_amanda_libs.m4    1.1

 ---
    Module Name:	pkgsrc
    Committed By:	nia
    Date:		Fri Apr 14 22:58:24 UTC 2023

    Modified Files:
    	pkgsrc/sysutils/amanda-common: Makefile.common distinfo
    Added Files:
    	pkgsrc/sysutils/amanda-common/patches: patch-config_amanda_libs.m4

    Log Message:
    amanda-common: Configure fixes

    The configure script creates massive amounts of spam when using NetBSD's
    sh due to the non-standard test(1) args.

    For some reason, the test for compiler flag -msse4.2 is failing, even
    though it's present in the cc -v --help output (is cwrappers doing
    something strange?). For now, commit a workaround. The package is actually
    doing runtime detection of SSE4.2 properly, but expects compiler support
    for -msse4.2 to be provided on x86.

    PR 57130


 To generate a diff of this commit:
 cvs rdiff -u -r1.45 -r1.45.28.1 pkgsrc/sysutils/amanda-common/Makefile.common
 cvs rdiff -u -r1.25 -r1.25.12.1 pkgsrc/sysutils/amanda-common/distinfo
 cvs rdiff -u -r0 -r1.1.2.2 \
     pkgsrc/sysutils/amanda-common/patches/patch-config_amanda_libs.m4

 Please note that diffs are not public domain; they are subject to the
 copyright notices on the relevant files.

>Unformatted:

NetBSD Home
NetBSD PR Database Search

(Contact us) $NetBSD: query-full-pr,v 1.47 2022/09/11 19:34:41 kim Exp $
$NetBSD: gnats_config.sh,v 1.9 2014/08/02 14:16:04 spz Exp $
Copyright © 1994-2023 The NetBSD Foundation, Inc. ALL RIGHTS RESERVED.