NetBSD Problem Report #39192
From www@NetBSD.org Tue Jul 22 21:06:35 2008
Return-Path: <www@NetBSD.org>
Received: from mail.netbsd.org (mail.netbsd.org [204.152.190.11])
by narn.NetBSD.org (Postfix) with ESMTP id C0EEA63B977
for <gnats-bugs@gnats.netbsd.org>; Tue, 22 Jul 2008 21:06:35 +0000 (UTC)
Message-Id: <20080722210635.8BEF663B907@narn.NetBSD.org>
Date: Tue, 22 Jul 2008 21:06:35 +0000 (UTC)
From: sainio@t-online.de
Reply-To: sainio@t-online.de
To: gnats-bugs@NetBSD.org
Subject: build.sh fails on -m hpcmips
X-Send-Pr-Version: www-1.0
>Number: 39192
>Category: port-mips
>Synopsis: build.sh fails on -m hpcmips
>Confidential: no
>Severity: serious
>Priority: medium
>Responsible: port-mips-maintainer
>State: closed
>Class: sw-bug
>Submitter-Id: net
>Arrival-Date: Tue Jul 22 21:10:00 +0000 2008
>Closed-Date: Mon Nov 21 08:55:30 +0000 2016
>Last-Modified: Mon Nov 21 08:55:30 +0000 2016
>Originator: Risto Sainio
>Release: -current == 4.99.70
>Organization:
>Environment:
cross-compiling:
===> build.sh started: Tue Jul 22 21:55:00 CEST 2008
===> NetBSD version: 4.99.70
===> MACHINE: hpcmips
===> MACHINE_ARCH: mipsel
===> Build platform: NetBSD 4.0 i386
===> HOST_SH: /bin/sh
===> TOOLDIR path: /usr/src_current/../tooldir_current
===> DESTDIR path: /usr/src_current/../destdir_current
===> RELEASEDIR path: /usr/src_current/../releasedir_current
===> makewrapper: /usr/src_current/../tooldir_current/bin/nbmake-hpcmips
===> Updated /usr/src_current/../tooldir_current/bin/nbmake-hpcmips
build ===> . (with: NOPOSTINSTALL=1)
Build started at: Tue Jul 22 21:55:01 CEST 2008
>Description:
running ./build.sh -m hpcmips -a mipsel -T ../tooldir_current -D ../destdir_current -R ../releasedir_current -O ../objdir_current -x -u buildir_current -R ../releasedir_current -O ../objdir_current -x distribution fails after a while with
# compile libc/mcount.o
/usr/src_current/../tooldir_current/bin/mipsel--netbsd-gcc -O2 -Wall -Wstrict-prototypes -Wmissing-prototypes -Wpointer-arith -Wno-sign-compare -Wno-traditional -Wa,--fatal-warnings -Wreturn-type -Wswitch -Wshadow -Wcast-qual -Wwrite-strings -Wextra -Wno-unused-parameter -std=gnu99 -Werror -D_LIBC -DLIBC_SCCS -DSYSLIBC_SCCS -D_REENTRANT -DHESIOD -DINET6 -DNLS -DYP -I/usr/src_current/lib/libc/include -I/usr/src_current/lib/libc -I/usr/src_current/sys -I/usr/src_current/lib/libc/compat/stdlib -I/usr/src_current/lib/libc/compat/../stdlib -D__HAVE_ASM_ATOMIC_CAS_UP -I/usr/src_current/lib/libc/../../common/lib/libc/quad -I/usr/src_current/lib/libc/../../common/lib/libc/string -I/usr/src_current/lib/libc/../../common/lib/libc/arch/mips/string -D__DBINTERFACE_PRIVATE -DI18NMODULE_MAJOR=4 -DCITRUS -I/usr/src_current/libexec/ld.elf_so -I/usr/src_current/lib/libc/dlfcn -I/usr/src_current/lib/libc/gdtoa -DNO_FENV_H -I/usr/src_current/lib/libc/arch/mips/gdtoa -DCITRUS_ICONV -DWITH_RU
NE -I/usr/src_current/lib/libc -DPOSIX_MISTAKE -DCOMPAT__RES -DUSE_POLL -DPORTMAP -DWIDE_DOUBLE -DALL_STATE -DUSG_COMPAT -D_FORTIFY_SOURCE=2 -nostdinc -isystem /usr/src_current/../destdir_current/usr/include -c /usr/src_current/lib/libc/../../common/lib/libc/gmon/mcount.c -o mcount.o
/var/tmp//cc2FaM6a.s: Assembler messages:
/var/tmp//cc2FaM6a.s:9: Warning: No .cprestore pseudo-op used in PIC code
/var/tmp//cc2FaM6a.s:219: Error: 1 warnings, treating warnings as errors
>How-To-Repeat:
>Fix:
I compiled mcount.c without "-Wa,--fatal-warnings" == ugly work-around
>Release-Note:
>Audit-Trail:
From: "Jared D. McNeill" <jmcneill@invisible.ca>
To: gnats-bugs@NetBSD.org
Cc: port-mips-maintainer@netbsd.org, gnats-admin@netbsd.org,
netbsd-bugs@netbsd.org
Subject: Re: port-mips/39192: build.sh fails on -m hpcmips
Date: Tue, 22 Jul 2008 18:35:04 -0400 (EDT)
On Tue, 22 Jul 2008, sainio@t-online.de wrote:
>> Synopsis: build.sh fails on -m hpcmips
I see the same error with -m sgimips, by the way.
Cheers,
Jared
State-Changed-From-To: open->analyzed
State-Changed-By: lukem@NetBSD.org
State-Changed-When: Tue, 29 Jul 2008 14:23:33 +0000
State-Changed-Why:
A workaround has been committed to libc/gmon/Makefile.inc.
A more correct fix should be implemented at some time
From: Luke Mewburn <lukem@netbsd.org>
To: gnats-bugs@gnats.NetBSD.org
Cc:
Subject: PR/39192 CVS commit: src/lib/libc/gmon
Date: Tue, 29 Jul 2008 14:20:12 +0000 (UTC)
Module Name: src
Committed By: lukem
Date: Tue Jul 29 14:20:12 UTC 2008
Modified Files:
src/lib/libc/gmon: Makefile.inc
Log Message:
Disable assembler warnings on mipseb and mipsel for mcount.c
Workaround for PR#39192
To generate a diff of this commit:
cvs rdiff -r1.7 -r1.8 src/lib/libc/gmon/Makefile.inc
Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.
From: Luke Mewburn <lukem@netbsd.org>
To: gnats-bugs@gnats.NetBSD.org
Cc:
Subject: PR/39192 CVS commit: src/doc
Date: Tue, 29 Jul 2008 14:24:06 +0000 (UTC)
Module Name: src
Committed By: lukem
Date: Tue Jul 29 14:24:06 UTC 2008
Modified Files:
src/doc: HACKS
Log Message:
document workaround for PR#39192
To generate a diff of this commit:
cvs rdiff -r1.105 -r1.106 src/doc/HACKS
Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.
From: coypu@SDF.ORG
To: gnats-bugs@netbsd.org
Cc:
Subject: Re: port-mips/39192: build.sh fails on -m hpcmips
Date: Mon, 21 Nov 2016 07:10:18 +0000
Hi,
I think this might be happening:
GCC does not emit .cprestore for leaf function.
binutils blindly warns of a lack of .cprestore in PIC code, not
checking if it's a leaf function.
State-Changed-From-To: analyzed->closed
State-Changed-By: maya@NetBSD.org
State-Changed-When: Mon, 21 Nov 2016 08:55:30 +0000
State-Changed-Why:
Already a HACKS entry, having it as a PR too doesn't add muvh.
>Unformatted:
(Contact us)
$NetBSD: query-full-pr,v 1.39 2013/11/01 18:47:49 spz Exp $
$NetBSD: gnats_config.sh,v 1.8 2006/05/07 09:23:38 tsutsui Exp $
Copyright © 1994-2014
The NetBSD Foundation, Inc. ALL RIGHTS RESERVED.