NetBSD Problem Report #53004

From www@NetBSD.org  Sat Feb 10 18:25:33 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 D4CC37A187
	for <gnats-bugs@gnats.NetBSD.org>; Sat, 10 Feb 2018 18:25:32 +0000 (UTC)
Message-Id: <20180210182531.D8C6C7A26A@mollari.NetBSD.org>
Date: Sat, 10 Feb 2018 18:25:31 +0000 (UTC)
From: venture37@geeklan.co.uk
Reply-To: venture37@geeklan.co.uk
To: gnats-bugs@NetBSD.org
Subject: Building a kernel with macofcons enabled fails
X-Send-Pr-Version: www-1.0

>Number:         53004
>Category:       port-macppc
>Synopsis:       Building a kernel with macofcons enabled fails
>Confidential:   no
>Severity:       serious
>Priority:       medium
>Responsible:    sevan
>State:          closed
>Class:          sw-bug
>Submitter-Id:   net
>Arrival-Date:   Sat Feb 10 18:30:00 +0000 2018
>Closed-Date:    Mon Feb 26 23:15:20 +0000 2018
>Last-Modified:  Mon Feb 26 23:15:20 +0000 2018
>Originator:     Sevan Janiyan
>Release:        NetBSD-HEAD
>Organization:
>Environment:
NetBSD 8.99.12 macppc powerpc
>Description:
due to multiple definitions of cn_tab

#      link  GENERIC/netbsd                                                                                                                            
/usr/src/obj/tooldir.NetBSD-8.99.12-macppc/bin/powerpc--netbsd-ld -Map netbsd.map --cref -N -T netbsd.ldscript -Ttext 0x100000 -e __start -S -o netbsd 
${SYSTEM_OBJ:[@]:Nswapnetbsd.o} ${EXTRA_OBJ} vers.o swapnetbsd.o                                                                                       
ofcons.o:(.data+0x4): multiple definition of `cn_tab'                                                                                                  
cons.o:(.bss+0x0): first defined here 


Removing the inclusion of cons.c from sys/arch/macppc/conf/files.macppc as a test cause more problems.
>How-To-Repeat:
Build a kernel with
macofcons0 at pci? dev ? function ?
included
>Fix:

>Release-Note:

>Audit-Trail:
From: "Sevan Janiyan" <sevan@netbsd.org>
To: gnats-bugs@gnats.NetBSD.org
Cc: 
Subject: PR/53004 CVS commit: src/sys
Date: Mon, 26 Feb 2018 23:09:32 +0000

 Module Name:	src
 Committed By:	sevan
 Date:		Mon Feb 26 23:09:32 UTC 2018

 Modified Files:
 	src/sys/arch/macppc/conf: GENERIC GENERIC_601 MAMBO files.macppc
 	src/sys/dev: DEVNAMES
 Removed Files:
 	src/sys/arch/macppc/dev: ofcons.c

 Log Message:
 Remove support for macofcons(4), it's not actually possible to build a kernel
 with it enabled - See PR port-macppc/53004 and it may have further problems even
 so.
 From <macallan>:
 "There is some early console code that uses OF output but it causes problems
 when we get close to MMU setup - I think it can go, it hasn't been enabled in
 any config in at least a decade as far as I know."


 To generate a diff of this commit:
 cvs rdiff -u -r1.343 -r1.344 src/sys/arch/macppc/conf/GENERIC
 cvs rdiff -u -r1.19 -r1.20 src/sys/arch/macppc/conf/GENERIC_601
 cvs rdiff -u -r1.30 -r1.31 src/sys/arch/macppc/conf/MAMBO
 cvs rdiff -u -r1.106 -r1.107 src/sys/arch/macppc/conf/files.macppc
 cvs rdiff -u -r1.29 -r0 src/sys/arch/macppc/dev/ofcons.c
 cvs rdiff -u -r1.300 -r1.301 src/sys/dev/DEVNAMES

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

Responsible-Changed-From-To: port-macppc-maintainer->sevan
Responsible-Changed-By: sevan@NetBSD.org
Responsible-Changed-When: Mon, 26 Feb 2018 23:15:20 +0000
Responsible-Changed-Why:
Take


State-Changed-From-To: open->closed
State-Changed-By: sevan@NetBSD.org
State-Changed-When: Mon, 26 Feb 2018 23:15:20 +0000
State-Changed-Why:
macofcons(4) has been removed.


>Unformatted:

NetBSD Home
NetBSD PR Database Search

(Contact us) $NetBSD: query-full-pr,v 1.43 2018/01/16 07:36:43 maya Exp $
$NetBSD: gnats_config.sh,v 1.9 2014/08/02 14:16:04 spz Exp $
Copyright © 1994-2017 The NetBSD Foundation, Inc. ALL RIGHTS RESERVED.