From nobody@FreeBSD.org  Fri Sep  5 18:31:41 2008
Return-Path: <nobody@FreeBSD.org>
Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34])
	by hub.freebsd.org (Postfix) with ESMTP id 02A491065671
	for <freebsd-gnats-submit@FreeBSD.org>; Fri,  5 Sep 2008 18:31:41 +0000 (UTC)
	(envelope-from nobody@FreeBSD.org)
Received: from www.freebsd.org (www.freebsd.org [IPv6:2001:4f8:fff6::21])
	by mx1.freebsd.org (Postfix) with ESMTP id E50F08FC16
	for <freebsd-gnats-submit@FreeBSD.org>; Fri,  5 Sep 2008 18:31:40 +0000 (UTC)
	(envelope-from nobody@FreeBSD.org)
Received: from www.freebsd.org (localhost [127.0.0.1])
	by www.freebsd.org (8.14.2/8.14.2) with ESMTP id m85IVe6k079775
	for <freebsd-gnats-submit@FreeBSD.org>; Fri, 5 Sep 2008 18:31:40 GMT
	(envelope-from nobody@www.freebsd.org)
Received: (from nobody@localhost)
	by www.freebsd.org (8.14.2/8.14.1/Submit) id m85IVeZh079774;
	Fri, 5 Sep 2008 18:31:40 GMT
	(envelope-from nobody)
Message-Id: <200809051831.m85IVeZh079774@www.freebsd.org>
Date: Fri, 5 Sep 2008 18:31:40 GMT
From: Paul <onemda@gmail.com>
To: freebsd-gnats-submit@FreeBSD.org
Subject: uart module doesn't load on amd64
X-Send-Pr-Version: www-3.1
X-GNATS-Notify:

>Number:         127120
>Category:       kern
>Synopsis:       [uart] uart module doesn't load on amd64
>Confidential:   no
>Severity:       serious
>Priority:       medium
>Responsible:    marcel
>State:          closed
>Quarter:        
>Keywords:       
>Date-Required:  
>Class:          sw-bug
>Submitter-Id:   current-users
>Arrival-Date:   Fri Sep 05 18:40:02 UTC 2008
>Closed-Date:    Sat Nov 22 21:26:52 UTC 2008
>Last-Modified:  Sat Nov 22 21:26:52 UTC 2008
>Originator:     Paul
>Release:        FreeBSD CURRENT
>Organization:
>Environment:
FreeBSD dhcppc2 8.0-CURRENT FreeBSD 8.0-CURRENT #16: Fri Sep  5 08:42:10 UTC 2008     user@dhcppc2:/usr/local/obj/usr/local/src/sys/KERNEL  i386
>Description:
uart module doesnt build on amd64:

uart_dev_quicc.c: In function 'quicc_getc':
uart_dev_quicc.c:221: warning: cast to pointer from integer of different size
uart_dev_quicc.c: In function 'quicc_bus_receive':                               uart_dev_quicc.c:436: warning: cast to pointer from integer of different size    uart_dev_quicc.c: In function 'quicc_bus_transmit':                              uart_dev_quicc.c:480: warning: cast to pointer from integer of different size


On i386 uart module does build but can't be loaded:

link_elf: symbol uart_quicc_class undefined

Because uart_dev_quicc.c is not listed in module Makefile.
>How-To-Repeat:

>Fix:


>Release-Note:
>Audit-Trail:
State-Changed-From-To: open->feedback 
State-Changed-By: vwe 
State-Changed-When: Sun Oct 5 18:21:54 UTC 2008 
State-Changed-Why:  
Paul, 

you've filed some warnings but I don't see a reason for a compiler 
error. As I've rebuild an 8-CURRENT system a few days ago, 
I'm pretty sure there're currently no build errors (for GENERIC kernel). 

Please try to update your current sources (remember -CURRENT is 
a moving target) and try to recompile kernel. For problems 
with -CURRENT, it's best to post a message into current@ instead 
of filing a PR. 

If your problem is still valid, we need to get more information from 
you (not just some compiler warnings). 



Responsible-Changed-From-To: freebsd-bugs->vwe 
Responsible-Changed-By: vwe 
Responsible-Changed-When: Sun Oct 5 18:21:54 UTC 2008 
Responsible-Changed-Why:  
Paul, 

you've filed some warnings but I don't see a reason for a compiler 
error. As I've rebuild an 8-CURRENT system a few days ago, 
I'm pretty sure there're currently no build errors (for GENERIC kernel). 

Please try to update your current sources (remember -CURRENT is 
a moving target) and try to recompile kernel. For problems 
with -CURRENT, it's best to post a message into current@ instead 
of filing a PR. 

If your problem is still valid, we need to get more information from 
you (not just some compiler warnings). 


http://www.freebsd.org/cgi/query-pr.cgi?pr=127120 
Responsible-Changed-From-To: vwe->marcel 
Responsible-Changed-By: vwe 
Responsible-Changed-When: Mon Oct 6 17:30:31 UTC 2008 
Responsible-Changed-Why:  

Over to maintainer. 
Marcel: Paul told me, you're already aware of that problem and have a fix for it. 
Still I think problems like these are better handled in the ML. 
Also filing a PR without willing to give any technical details (even 
when queried for afterwards) is 'suboptimal'. 

http://www.freebsd.org/cgi/query-pr.cgi?pr=127120 
State-Changed-From-To: feedback->closed 
State-Changed-By: marcel 
State-Changed-When: Sat Nov 22 21:25:08 UTC 2008 
State-Changed-Why:  
The problem has been resolved by fixing the code so that it 
can be compiled on amd64 and also to include the QUICC 
backend in the kernel module. 


http://www.freebsd.org/cgi/query-pr.cgi?pr=127120 
>Unformatted:
