NetBSD Problem Report #56794
From he@smistad.uninett.no Wed Apr 13 16:25:49 2022
Return-Path: <he@smistad.uninett.no>
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 7437E1A921F
for <gnats-bugs@gnats.NetBSD.org>; Wed, 13 Apr 2022 16:25:49 +0000 (UTC)
Message-Id: <20220413162543.27C6E44013C@smistad.uninett.no>
Date: Wed, 13 Apr 2022 18:25:43 +0200 (CEST)
From: he@NetBSD.org
Reply-To: he@NetBSD.org
To: gnats-bugs@NetBSD.org
Subject: cmake 3.22.3nb1 on aarch64 gives "text relocations"
X-Send-Pr-Version: 3.95
>Number: 56794
>Category: pkg
>Synopsis: cmake 3.22.3nb1 on aarch64 gives "text relocations"
>Confidential: no
>Severity: serious
>Priority: medium
>Responsible: pkg-manager
>State: open
>Class: sw-bug
>Submitter-Id: net
>Arrival-Date: Wed Apr 13 16:30:00 +0000 2022
>Last-Modified: Sun Apr 24 21:35:01 +0000 2022
>Originator: Havard Eidnes
>Release: NetBSD 9.0
>Organization:
I try...
>Environment:
System: NetBSD arm64 9.0 NetBSD 9.0 (GENERIC64) #0: Fri Feb 14 00:06:28 UTC 2020 mkrepro@mkrepro.NetBSD.org:/usr/src/sys/arch/evbarm/compile/GENERIC64 evbarm
Architecture: aarch64
Machine: evbarm
>Description:
Building cmake 3.22.3nb1 (pkgsrc-current devel/cmake) on my
emulated aarch64 system results in two build errors which
needs to be worked around by "paxctl +am <file>". One of the
errors is:
Install the project...
bin/cmake: text relocations
bin/cmake: Cannot write-enable text segment: Permission denied
gmake: *** [Makefile:130: install] Error 1
Subsequently, on use of the installed cmake, I get
/usr/pkg/bin/cmake: text relocations
on each invocation.
I would have perhaps expected to see things like this with
programs with integrated assembly, written for i386, but am
surprised to see this for aarch64 with a program which
hopefully (!) doesn't stoop to the needless depths of doing
custom assembly code. I may be wrong, though.
>How-To-Repeat:
Build pkgsrc-current's cmake, watch the build bomb, twice,
requiring manual "paxctl +am <file>" each time, and still see
the annoying messages in the build log for programs which use
cmake.
>Fix:
Sorry, do not know.
>Audit-Trail:
From: Joerg Sonnenberger <joerg@bec.de>
To: gnats-bugs@netbsd.org
Cc: pkg-manager@netbsd.org, gnats-admin@netbsd.org, pkgsrc-bugs@netbsd.org
Subject: Re: pkg/56794: cmake 3.22.3nb1 on aarch64 gives "text relocations"
Date: Wed, 13 Apr 2022 22:29:07 +0200
Am Wed, Apr 13, 2022 at 04:30:00PM +0000 schrieb he@NetBSD.org:
> >Number: 56794
> >Category: pkg
> >Synopsis: cmake 3.22.3nb1 on aarch64 gives "text relocations"
> >Confidential: no
> >Severity: serious
> >Priority: medium
> >Responsible: pkg-manager
> >State: open
> >Class: sw-bug
> >Submitter-Id: net
> >Arrival-Date: Wed Apr 13 16:30:00 +0000 2022
> >Originator: Havard Eidnes
> >Release: NetBSD 9.0
> >Organization:
> I try...
> >Environment:
> System: NetBSD arm64 9.0 NetBSD 9.0 (GENERIC64) #0: Fri Feb 14 00:06:28 UTC 2020 mkrepro@mkrepro.NetBSD.org:/usr/src/sys/arch/evbarm/compile/GENERIC64 evbarm
> Architecture: aarch64
> Machine: evbarm
> >Description:
> Building cmake 3.22.3nb1 (pkgsrc-current devel/cmake) on my
> emulated aarch64 system results in two build errors which
> needs to be worked around by "paxctl +am <file>". One of the
> errors is:
Try to disable PIE?
Joerg
From: David Holland <dholland-pbugs@netbsd.org>
To: gnats-bugs@netbsd.org
Cc:
Subject: Re: pkg/56794: cmake 3.22.3nb1 on aarch64 gives "text relocations"
Date: Thu, 21 Apr 2022 02:37:08 +0000
Not sent to gnats.
------
From: Havard Eidnes <he@NetBSD.org>
To: gnats-admin@netbsd.org
cc: pkgsrc-bugs@netbsd.org
Subject: Re: pkg/56794: cmake 3.22.3nb1 on aarch64 gives "text relocations"
Date: Fri, 15 Apr 2022 00:36:44 +0200 (CEST)
Hm,
somewhat annoyingly, this problem does not appear to be
reproducible.
I just did a "make clean" followed by "make replace" of cmake,
and it went without issue, and the "text relocations" message
from cmake on startup are also now gone.
Oh, well.
- H?vard
From: David Holland <dholland-pbugs@netbsd.org>
To: gnats-bugs@netbsd.org
Cc:
Subject: Re: pkg/56794: cmake 3.22.3nb1 on aarch64 gives "text relocations"
Date: Sun, 24 Apr 2022 21:33:52 +0000
On Thu, Apr 21, 2022 at 02:40:01AM +0000, David Holland wrote:
> somewhat annoyingly, this problem does not appear to be
> reproducible.
>
> I just did a "make clean" followed by "make replace" of cmake,
> and it went without issue, and the "text relocations" message
> from cmake on startup are also now gone.
Maybe it depends on whether cmake is already installed?
(Want to try hunting this down, or just let it go and close the PR?)
--
David A. Holland
dholland@netbsd.org
(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.