NetBSD Problem Report #41536

From www@NetBSD.org  Thu Jun  4 11:25:44 2009
Return-Path: <www@NetBSD.org>
Received: from mail.netbsd.org (mail.netbsd.org [204.152.190.11])
	by www.NetBSD.org (Postfix) with ESMTP id 59E1663B88A
	for <gnats-bugs@gnats.netbsd.org>; Thu,  4 Jun 2009 11:25:44 +0000 (UTC)
Message-Id: <20090604112544.2057463B11D@www.NetBSD.org>
Date: Thu,  4 Jun 2009 11:25:44 +0000 (UTC)
From: ahoka@NetBSD.org
Reply-To: ahoka@NetBSD.org
To: gnats-bugs@NetBSD.org
Subject: Can't compile usr.sbin/crash during NetBSD/amd64 buitd with MKPIE, USE_SSP and USE_FORT enabled
X-Send-Pr-Version: www-1.0

>Number:         41536
>Category:       port-amd64
>Synopsis:       Can't compile usr.sbin/crash during NetBSD/amd64 buitd with MKPIE, USE_SSP and USE_FORT enabled
>Confidential:   no
>Severity:       non-critical
>Priority:       medium
>Responsible:    port-amd64-maintainer
>State:          closed
>Class:          sw-bug
>Submitter-Id:   net
>Arrival-Date:   Thu Jun 04 11:30:00 +0000 2009
>Closed-Date:    Sun Jun 07 01:03:07 +0000 2009
>Last-Modified:  Sun Jun 07 01:03:07 +0000 2009
>Originator:     Adam Hoka
>Release:        NetBSD 5.99.12
>Organization:
>Environment:
NetBSD hermiod.mshome.net 5.99.12 NetBSD 5.99.12 (GENERIC) #0: Sat May 30 07:53:01 UTC 2009  builds@b6.netbsd.org:/home/builds/ab/HEAD/amd64/200905300000Z-obj/home/builds/ab/HEAD/src/sys/arch/amd64/compile/GENERIC amd64

>Description:
dependall ===> usr.sbin/crash
#   compile  crash/unsupported.o
/usr/build/tools/bin/x86_64--netbsd-gcc -O2 -fPIC -DPIC  -fstack-protector -Wstack-protector --param ssp-buffer-size=1 -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 -Wsign-compare -std=gnu99  -Werror  -mcmodel=kernel  -nostdinc -isystem /usr/build/obj/usr/src/destdir.amd64/usr/include   -D_FORTIFY_SOURCE=2 -c    /usr/src/usr.sbin/crash/unsupported.c
/usr/src/usr.sbin/crash/unsupported.c:1: sorry, unimplemented: code model kernel not supported in PIC mode
/usr/src/usr.sbin/crash/unsupported.c:1: error: code model 'kernel' not supported in the 64 bit mode


Clean build from sources of 2009-06-04.

>How-To-Repeat:
MKPIE=yes
USE_SSP=yes
USE_FORT=yes

./build.sh distribution
>Fix:

>Release-Note:

>Audit-Trail:
From: Antti Kantee <pooka@cs.hut.fi>
To: gnats-bugs@netbsd.org
Cc: 
Subject: Re: port-amd64/41536
Date: Thu, 4 Jun 2009 14:54:45 +0300

 You need to leave -mcmodel=kernel out, see bsd.klinks.mk.

 I introduced HARDKERNEL and SOFTKERNEL cpp macros to the source code.
 Maybe we should extend the concept to the make subsystem and do
 "if defined(HARDKERNEL)" before the mcmodel line?

From: christos@zoulas.com (Christos Zoulas)
To: gnats-bugs@NetBSD.org, port-amd64-maintainer@netbsd.org, 
	gnats-admin@netbsd.org, netbsd-bugs@netbsd.org
Cc: 
Subject: Re: port-amd64/41536: Can't compile usr.sbin/crash during NetBSD/amd64 buitd with MKPIE, USE_SSP and USE_FORT enabled
Date: Thu, 4 Jun 2009 08:19:59 -0400

 On Jun 4, 11:30am, ahoka@NetBSD.org (ahoka@NetBSD.org) wrote:
 -- Subject: port-amd64/41536: Can't compile usr.sbin/crash during NetBSD/amd6

 | >Number:         41536
 | >Category:       port-amd64
 | >Synopsis:       Can't compile usr.sbin/crash during NetBSD/amd64 buitd with MKPIE, USE_SSP and USE_FORT enabled
 | >Confidential:   no
 | >Severity:       non-critical
 | >Priority:       medium
 | >Responsible:    port-amd64-maintainer
 | >State:          open
 | >Class:          sw-bug
 | >Submitter-Id:   net
 | >Arrival-Date:   Thu Jun 04 11:30:00 +0000 2009
 | >Originator:     Adam Hoka
 | >Release:        NetBSD 5.99.12
 | >Organization:
 | >Environment:
 | NetBSD hermiod.mshome.net 5.99.12 NetBSD 5.99.12 (GENERIC) #0: Sat May 30 07:53:01 UTC 2009  builds@b6.netbsd.org:/home/builds/ab/HEAD/amd64/200905300000Z-obj/home/builds/ab/HEAD/src/sys/arch/amd64/compile/GENERIC amd64
 | 
 | >Description:
 | dependall ===> usr.sbin/crash
 | #   compile  crash/unsupported.o
 | /usr/build/tools/bin/x86_64--netbsd-gcc -O2 -fPIC -DPIC  -fstack-protector -Wstack-protector --param ssp-buffer-size=1 -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 -Wsign-compare -std=gnu99  -Werror  -mcmodel=kernel  -nostdinc -isystem /usr/build/obj/usr/src/destdir.amd64/usr/include   -D_FORTIFY_SOURCE=2 -c    /usr/src/usr.sbin/crash/unsupported.c
 | /usr/src/usr.sbin/crash/unsupported.c:1: sorry, unimplemented: code model kernel not supported in PIC mode
 | /usr/src/usr.sbin/crash/unsupported.c:1: error: code model 'kernel' not supported in the 64 bit mode
 | 
 | 
 | Clean build from sources of 2009-06-04.

 Fixed.

 christos

State-Changed-From-To: open->closed
State-Changed-By: dholland@NetBSD.org
State-Changed-When: Sun, 07 Jun 2009 01:03:07 +0000
State-Changed-Why:
christos says fixed.


>Unformatted:

NetBSD Home
NetBSD PR Database Search

(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-2007 The NetBSD Foundation, Inc. ALL RIGHTS RESERVED.