NetBSD Problem Report #56423

From beceeh@shaw.ca  Wed Sep 29 16:31:33 2021
Return-Path: <beceeh@shaw.ca>
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 75D001A921F
	for <gnats-bugs@gnats.NetBSD.org>; Wed, 29 Sep 2021 16:31:33 +0000 (UTC)
Message-Id: <20210929162759.6583036DC0@katy.localdomain>
Date: Wed, 29 Sep 2021 09:27:59 -0700 (PDT)
From: Bch <beceeh@shaw.ca>
Reply-To: brad.harder@gmail.com
To: gnats-bugs@netbsd.org
Cc: brad.harder@gmail.com
Subject: latest cmake fails to link
X-Send-Pr-Version: 3.95

>Number:         56423
>Category:       pkg
>Synopsis:       latest cmake fails to link (PIE related)
>Confidential:   no
>Severity:       serious
>Priority:       high
>Responsible:    pkg-manager
>State:          closed
>Class:          sw-bug
>Submitter-Id:   net
>Arrival-Date:   Wed Sep 29 16:35:00 +0000 2021
>Closed-Date:    Sun Nov 21 19:52:21 +0000 2021
>Last-Modified:  Sun Nov 21 19:52:21 +0000 2021
>Originator:     bch
>Release:        NetBSD 9.99.89
>Organization:
	method logic digital
>Environment:
System: NetBSD katy 9.99.89 NetBSD 9.99.89 (GENERIC) #200: Tue Sep 28 11:48:03 PDT 2021 root@katy:/usr/obj/sys/arch/amd64/compile/GENERIC amd64
Architecture: x86_64
Machine: amd64
>Description:

# cd /usr/pkgsrc/devel/cmake
# make

[..]
ld: /usr/pkgsrc/devel/cmake/work/.buildlink/lib/librhash.a(rhash.o): relocation R_X86_64_32 against `.rodata.rhash_file.str1.1' can not be used when making a PIE object; recompile with -fPIE
ld: /usr/pkgsrc/devel/cmake/work/.buildlink/lib/librhash.a(hex.o): relocation R_X86_64_32S against `.LC0' can not be used when making a PIE object; recompile with -fPIE
ld: /usr/pkgsrc/devel/cmake/work/.buildlink/lib/librhash.a(plug_openssl.o): relocation R_X86_64_32 against symbol `rhash_openssl_hash_info' can not be used when making a PIE object; recompile with -fPIE
ld: /usr/pkgsrc/devel/cmake/work/.buildlink/lib/librhash.a(crc32.o): relocation R_X86_64_32 against `.text.calculate_crc32c_sse42' can not be used when making a PIE object; recompile with -fPIE
ld: /usr/pkgsrc/devel/cmake/work/.buildlink/lib/librhash.a(sha256.o): relocation R_X86_64_32 against `.rodata.rhash_k256' can not be used when making a PIE object; recompile with -fPIE
ld: /usr/pkgsrc/devel/cmake/work/.buildlink/lib/librhash.a(sha512.o): relocation R_X86_64_32 against `.rodata.rhash_k512' can not be used when making a PIE object; recompile with -fPIE
ld: /usr/pkgsrc/devel/cmake/work/.buildlink/lib/librhash.a(sha3.o): relocation R_X86_64_32S against `.rodata.keccak_round_constants' can not be used when making a PIE object; recompile with -fPIE
ld: /usr/pkgsrc/devel/cmake/work/.buildlink/lib/librhash.a(gost12.o): relocation R_X86_64_32S against `.rodata.TR' can not be used when making a PIE object; recompile with -fPIE
ld: /usr/pkgsrc/devel/cmake/work/.buildlink/lib/librhash.a(gost94.o): relocation R_X86_64_32 against symbol `rhash_gost94_sbox_cryptpro' can not be used when making a PIE object; recompile with -fPIE
ld: /usr/pkgsrc/devel/cmake/work/.buildlink/lib/librhash.a(snefru.o): relocation R_X86_64_32 against `.rodata.rhash_snefru_sbox' can not be used when making a PIE object; recompile with -fPIE
ld: /usr/pkgsrc/devel/cmake/work/.buildlink/lib/librhash.a(tiger.o): relocation R_X86_64_32S against symbol `rhash_tiger_sboxes' can not be used when making a PIE object; recompile with -fPIE
ld: /usr/pkgsrc/devel/cmake/work/.buildlink/lib/librhash.a(torrent.o): relocation R_X86_64_32 against `.rodata.bt_final.str1.1' can not be used when making a PIE object; recompile with -fPIE
ld: /usr/pkgsrc/devel/cmake/work/.buildlink/lib/librhash.a(whirlpool.o): relocation R_X86_64_32S against `.rodata.rc.0' can not be used when making a PIE object; recompile with -fPIE
make: *** [Makefile:2: cmake] Error 1
[...]

>How-To-Repeat:
	# cd /usr/pkgsrc/devel/cmake
        # make
>Fix:

>Release-Note:

>Audit-Trail:

From: nia <nia@NetBSD.org>
To: gnats-bugs@netbsd.org
Cc: 
Subject: Re: pkg/56423: latest cmake fails to link
Date: Wed, 29 Sep 2021 16:37:56 +0000

 On Wed, Sep 29, 2021 at 04:35:00PM +0000, Bch wrote:
 > # cd /usr/pkgsrc/devel/cmake
 > # make
 > 
 > [..]
 > ld: /usr/pkgsrc/devel/cmake/work/.buildlink/lib/librhash.a(rhash.o): relocation R_X86_64_32 against `.rodata.rhash_file.str1.1' can not be used when making a PIE object; recompile with -fPIE

 You need to rebuild misc/rhash, non-PIE static libraries
 and PIE objects cannot be mixed.

From: "John Klos" <jklos@netbsd.org>
To: gnats-bugs@gnats.NetBSD.org
Cc: 
Subject: PR/56423 CVS commit: pkgsrc
Date: Sat, 2 Oct 2021 20:54:57 +0000

 Module Name:	pkgsrc
 Committed By:	jklos
 Date:		Sat Oct  2 20:54:57 UTC 2021

 Modified Files:
 	pkgsrc/devel/cmake: Makefile
 	pkgsrc/misc/rhash: Makefile

 Log Message:
 Bump PKGREVISION of misc/rhash and require newer version in devel/cmake.
 Fixes PR/56423.


 To generate a diff of this commit:
 cvs rdiff -u -r1.183 -r1.184 pkgsrc/devel/cmake/Makefile
 cvs rdiff -u -r1.16 -r1.17 pkgsrc/misc/rhash/Makefile

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

State-Changed-From-To: open->feedback
State-Changed-By: dholland@NetBSD.org
State-Changed-When: Fri, 22 Oct 2021 05:42:15 +0000
State-Changed-Why:
fixed?


State-Changed-From-To: feedback->closed
State-Changed-By: dholland@NetBSD.org
State-Changed-When: Sun, 21 Nov 2021 19:52:21 +0000
State-Changed-Why:
Confirmed fixed, thanks.


>Unformatted:

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.