NetBSD Problem Report #53696

From www@NetBSD.org  Fri Nov  2 10:20:47 2018
Return-Path: <www@NetBSD.org>
Received: from mail.netbsd.org (mail.netbsd.org [199.233.217.200])
	(using TLSv1.2 with cipher ECDHE-RSA-AES256-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 DAC0B7A1BC
	for <gnats-bugs@gnats.NetBSD.org>; Fri,  2 Nov 2018 10:20:47 +0000 (UTC)
Message-Id: <20181102102046.422197A264@mollari.NetBSD.org>
Date: Fri,  2 Nov 2018 10:20:46 +0000 (UTC)
From: artturi.alm@gmail.com
Reply-To: artturi.alm@gmail.com
To: gnats-bugs@NetBSD.org
Subject: git meta pkg: dangerously unsupported relocations, C compiler cannot create executables
X-Send-Pr-Version: www-1.0

>Number:         53696
>Category:       port-arm
>Synopsis:       git meta pkg: dangerously unsupported relocations, C compiler cannot create executables
>Confidential:   no
>Severity:       serious
>Priority:       medium
>Responsible:    port-arm-maintainer
>State:          closed
>Class:          sw-bug
>Submitter-Id:   net
>Arrival-Date:   Fri Nov 02 10:25:00 +0000 2018
>Closed-Date:    Sat Apr 17 23:08:01 +0000 2021
>Last-Modified:  Sat Apr 17 23:08:01 +0000 2021
>Originator:     Artturi Alm
>Release:        8.99.25
>Organization:
>Environment:
NetBSD arm64 8.99.25 NetBSD 8.99.25 (GENERIC64) #0: Tue Oct 30 16:41:53 UTC 2018  mkrepro@mkrepro.NetBSD.org:/usr/src/sys/arch/evbarm/compile/GENERIC64 evbarm
>Description:
besides changing the root passwd,
all i did on a fresh arm64(pine a64+) image from
  http://www.invisible.ca/arm/
is in the "How to repeat the problem".

.work.log:
  http://ix.io/1qHC

messages i saw before the failure, and config.log:
  http://ix.io/1qHC

possibly the relevant part from config.log:

configure:3384: checking whether the C compiler works
configure:3406: gcc -O2 -fomit-frame-pointer -D_FORTIFY_SOURCE=2 -I/usr/pkg/include -I/usr/include -I/usr/X11R7/include -I/usr/X11R7/include/freetype2 -I/usr/pkg/include -I/usr/include -I/usr/X11R7/include -I/usr/X11R7/include/freetype2 -L/usr/pkg/lib -L/usr/lib -Wl,-R/usr/lib -L/usr/X11R7/lib -Wl,-R/usr/X11R7/lib -Wl,-R/usr/pkg/lib conftest.c  >&5
/usr/lib/crt0.o:(.eh_frame+0x20): dangerous relocation: unsupported relocation
/usr/lib/crt0.o:(.eh_frame+0x48): dangerous relocation: unsupported relocation
/usr/lib/crtbegin.o:(.eh_frame+0x1c): dangerous relocation: unsupported relocation
/usr/lib/crtbegin.o:(.eh_frame+0x30): dangerous relocation: unsupported relocation
/var/tmp//cc3DRT8m.o:(.eh_frame+0x1c): dangerous relocation: unsupported relocation
ld: .eh_frame_hdr entry overflow.
ld: .eh_frame_hdr refers to overlapping FDEs.
ld: final link failed: Bad value
configure:3410: $? = 1
configure:3448: result: no
configure: failed program was:
| /* confdefs.h */
| #define PACKAGE_NAME "libXft"
| #define PACKAGE_TARNAME "libXft"
| #define PACKAGE_VERSION "2.3.2"
| #define PACKAGE_STRING "libXft 2.3.2"
| #define PACKAGE_BUGREPORT "https://bugs.freedesktop.org/enter_bug.cgi?product=xorg"
| #define PACKAGE_URL ""
| #define PACKAGE "libXft"
| #define VERSION "2.3.2"
| /* end confdefs.h.  */
| 
| int
| main ()
| {
| 
|   ;
|   return 0;
| }
configure:3453: error: in `/usr/pkgsrc/x11/libXft/work/libXft-2.3.2':
configure:3456: error: C compiler cannot create executables
>How-To-Repeat:
# cd /usr
# cvs -d anoncvs@anoncvs.netbsd.org:/cvsroot checkout -P pkgsrc
# cd /usr/pkgsrc/devel/git
# make install
>Fix:

>Release-Note:

>Audit-Trail:

State-Changed-From-To: open->closed
State-Changed-By: maya@NetBSD.org
State-Changed-When: Sat, 17 Apr 2021 23:08:01 +0000
State-Changed-Why:
This entire bug looks like you tested -current in a time it was exceptionally broken. Bad relocations in /usr/lib/crt0.o is a problem that won't stay broken for several years, also the precise package is not failing in bulk builds. Assuming it was fixed in the meantime.


>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.