NetBSD Problem Report #29882

From www@netbsd.org  Mon Apr  4 19:01:16 2005
Return-Path: <www@netbsd.org>
Received: by narn.netbsd.org (Postfix, from userid 31301)
	id 7912F63B11F; Mon,  4 Apr 2005 19:01:16 +0000 (UTC)
Message-Id: <20050404190116.7912F63B11F@narn.netbsd.org>
Date: Mon,  4 Apr 2005 19:01:16 +0000 (UTC)
From: dhop@nwlink.com
Reply-To: dhop@nwlink.com
To: gnats-bugs@netbsd.org
Subject: build.sh -x script does not produce XFree86 binary on Alpha
X-Send-Pr-Version: www-1.0

>Number:         29882
>Category:       xsrc
>Synopsis:       build.sh -x script does not produce XFree86 binary on Alpha
>Confidential:   no
>Severity:       non-critical
>Priority:       low
>Responsible:    xsrc-manager
>State:          closed
>Class:          sw-bug
>Submitter-Id:   net
>Arrival-Date:   Mon Apr 04 19:02:00 +0000 2005
>Closed-Date:    Sun Dec 04 21:56:20 +0000 2016
>Last-Modified:  Sun Dec 04 21:56:20 +0000 2016
>Originator:     David Hopper
>Release:        NetBSD 3.99.1
>Organization:
>Environment:
System: NetBSD scarab 3.99.1 NetBSD 3.99.1 (SCARAB-$Revision: 1.190.1 $) #2: Thu Mar 31 10:14:20 PST 2005 bard@scarab:/usr/src/sys/arch/alpha/compile/SCARAB alpha
>Description:
   Using the build.sh script to build XFree86 4.5.0 on Alpha results in XdecNetBSD and XalphaNetBSD, but no XFree86 server binary.  Doing a complete 'make World && make install' in /usr/xsrc, however, does build and install the XFree86 server binary, fully functional on at least this PWS 600au and Alphastation 255.
   This patch enables the XFree86 binary on Alpha within src/x11 tree, for those with aftermarket PCI cards.  Any issues with cards or Alpha models should be dealt with in separate PRs.

>How-To-Repeat:

>Fix:
   This patch is a quick one, and untested as yet.  I am not certain if it is equivalent to a 'make World'.
   It will be important to test cross-compiling results with this.

--- src/x11/Xserver/Makefile.common.orig        2005-04-01 12:39:08.000000000 -0800
+++ src/x11/Xserver/Makefile.common     2005-04-01 12:44:07.000000000 -0800
@@ -44,7 +44,8 @@
 # XFree86 servers all need XFONT as well.
 .if ${MACHINE} == "i386" || ${MACHINE} == "amd64" || \
     ${MACHINE} == "macppc" || ${MACHINE} == "cats" || \
-    ${MACHINE} == "sgimips" || ${MACHINE} == "sparc64"
+    ${MACHINE} == "sgimips" || ${MACHINE} == "sparc64" || \
+    ${MACHINE} == "alpha"
XSERVER_NEEDS_XFONT=   yes
XSERVER_NEEDS_MIEXT=   yes
XSERVER_XFREE86=       yes

>Release-Note:

>Audit-Trail:

Responsible-Changed-From-To: xsrc-manager->tron
Responsible-Changed-By: tron@netbsd.org
Responsible-Changed-When: Mon, 04 Apr 2005 19:52:47 +0000
Responsible-Changed-Why:
I'll handle this PR.


State-Changed-From-To: open->analyzed
State-Changed-By: tron@netbsd.org
State-Changed-When: Tue, 05 Apr 2005 13:34:35 +0000
State-Changed-Why:
The suggested changes cause various build failures (which might not have
been noticed during a "xsrc" build because "make -k" is used). More
work is necessary.


Responsible-Changed-From-To: tron->xsrc-manager
Responsible-Changed-By: tron@netbsd.org
Responsible-Changed-When: Fri, 08 Apr 2005 21:08:46 +0000
Responsible-Changed-Why:
I'm out of ideas and need full access to a NetBSD-alpha system to examine
differences between the native and reachover build on that platform.


From: Matthias Scheler <tron@NetBSD.org>
To: NetBSD GNATS <gnats-bugs@netbsd.org>
Cc: 
Subject: Re: xsrc/29882
Date: Fri, 8 Apr 2005 22:11:15 +0100

 	Hello,

 with the attached patch "src/x11" will build a XFree86 server and modules
 for it. Unfortunately this breaks "XalphaNetBSD":

 : undefined reference to `VidModeGetViewPort'
 /export/home/tron/obj/x11/Xserver/Xext/ext/libext.a(xf86vmode.o)(.text+0x3f44): In function `XFree86VidModeExtensionInit':
 : undefined reference to `VidModeGetViewPort'
 /export/home/tron/obj/x11/Xserver/Xext/ext/libext.a(xf86vmode.o)(.text+0x40e0): In function `XFree86VidModeExtensionInit':
 : undefined reference to `VidModeSetViewPort'
 /export/home/tron/obj/x11/Xserver/Xext/ext/libext.a(xf86vmode.o)(.text+0x40e4): In function `XFree86VidModeExtensionInit':
 : undefined reference to `VidModeSetViewPort'
 /export/home/tron/obj/x11/Xserver/Xext/ext/libext.a(xf86vmode.o)(.text+0x417c):In function `XFree86VidModeExtensionInit':

 I have no idea why this happens. The native build (which I cannot use
 due to lack of a NetBSD-alpha system) uses a single "libext.a" but doesn't
 run into this problem.

 	Kind regards

 -- 
 Matthias Scheler                                  http://scheler.de/~matthias/

 Index: share/mk/bsd.x11.mk
 ===================================================================
 RCS file: /cvsroot/src/share/mk/bsd.x11.mk,v
 retrieving revision 1.49
 diff -u -r1.49 bsd.x11.mk
 --- share/mk/bsd.x11.mk	6 Apr 2005 08:32:11 -0000	1.49
 +++ share/mk/bsd.x11.mk	8 Apr 2005 21:05:56 -0000
 @@ -48,7 +48,6 @@
  			-DDDXOSVERRORF -DDDXTIME

  .if !(${MACHINE} == "acorn32"	|| \
 -    ${MACHINE} == "alpha"	|| \
      ${MACHINE} == "amiga"	|| \
      ${MACHINE} == "pmax"	|| \
      ${MACHINE} == "sparc"	|| \
 @@ -69,7 +68,8 @@
  X11FLAGS.EXTENSION+=	-D__GLX_ALIGN64
  .endif

 -.if ${MACHINE} == "amd64"	|| \
 +.if ${MACHINE} == "alpha"	|| \
 +    ${MACHINE} == "amd64"	|| \
      ${MACHINE} == "cats"	|| \
      ${MACHINE} == "i386"	|| \
      ${MACHINE} == "macppc"	|| \
 Index: x11/Xserver/Makefile.common
 ===================================================================
 RCS file: /cvsroot/src/x11/Xserver/Makefile.common,v
 retrieving revision 1.27
 diff -u -r1.27 Makefile.common
 --- x11/Xserver/Makefile.common	5 Apr 2005 14:04:55 -0000	1.27
 +++ x11/Xserver/Makefile.common	8 Apr 2005 21:06:02 -0000
 @@ -43,7 +43,8 @@
  # XFree86 servers all need XFONT as well.
  .if ${MACHINE} == "i386" || ${MACHINE} == "amd64" || \
      ${MACHINE} == "macppc" || ${MACHINE} == "cats" || \
 -    ${MACHINE} == "sgimips" || ${MACHINE} == "sparc64"
 +    ${MACHINE} == "sgimips" || ${MACHINE} == "sparc64" || \
 +    ${MACHINE} == "alpha"
  XSERVER_NEEDS_XFONT=	yes
  XSERVER_NEEDS_MIEXT=	yes
  XSERVER_XFREE86=	yes
 Index: x11/Xserver/Xserver/XFree86/Makefile
 ===================================================================
 RCS file: /cvsroot/src/x11/Xserver/Xserver/XFree86/Makefile,v
 retrieving revision 1.12
 diff -u -r1.12 Makefile
 --- x11/Xserver/Xserver/XFree86/Makefile	15 Apr 2004 14:53:40 -0000	1.12
 +++ x11/Xserver/Xserver/XFree86/Makefile	8 Apr 2005 21:06:02 -0000
 @@ -40,6 +40,9 @@
  .elif ${MACHINE} == "i386"
  LDADD+=	-li386
  DPADD+=	${LIBI386}
 +.elif ${MACHINE} == "alpha"
 +LDADD+=	-lalpha
 +DPADD+=	${LIBALPHA}
  .endif

  SYMLINKS=	${X11BINDIR}/XFree86 ${X11BINDIR}/X
 Index: x11/Xserver/hw/xfree86/bin/pcitweak/Makefile
 ===================================================================
 RCS file: /cvsroot/src/x11/Xserver/hw/xfree86/bin/pcitweak/Makefile,v
 retrieving revision 1.2
 diff -u -r1.2 Makefile
 --- x11/Xserver/hw/xfree86/bin/pcitweak/Makefile	23 Jan 2004 08:45:02 -0000	1.2
 +++ x11/Xserver/hw/xfree86/bin/pcitweak/Makefile	8 Apr 2005 21:06:03 -0000
 @@ -28,6 +28,9 @@
  .if ${MACHINE} == "i386"
  LDADD+=	-li386
  DPADD+=	${LIBI386}
 +.elif ${MACHINE} == "alpha"
 +LDADD+=	-lalpha
 +DPADD+=	${LIBALPHA}
  .endif

  .if ${MACHINE_ARCH} == "x86_64"
 Index: x11/Xserver/hw/xfree86/bin/scanpci/Makefile
 ===================================================================
 RCS file: /cvsroot/src/x11/Xserver/hw/xfree86/bin/scanpci/Makefile,v
 retrieving revision 1.4
 diff -u -r1.4 Makefile
 --- x11/Xserver/hw/xfree86/bin/scanpci/Makefile	19 Mar 2005 21:41:58 -0000	1.4
 +++ x11/Xserver/hw/xfree86/bin/scanpci/Makefile	8 Apr 2005 21:06:03 -0000
 @@ -39,5 +39,10 @@
  .endif
  .endif

 +.if ${MACHINE} == "alpha"
 +LDADD+= -lalpha
 +DPADD+= ${LIBALPHA}
 +.endif
 +
  .include <bsd.x11.mk>
  .include <bsd.prog.mk>
 Index: x11/Xserver/hw/xfree86/xf86_os/Makefile
 ===================================================================
 RCS file: /cvsroot/src/x11/Xserver/hw/xfree86/xf86_os/Makefile,v
 retrieving revision 1.10
 diff -u -r1.10 Makefile
 --- x11/Xserver/hw/xfree86/xf86_os/Makefile	24 Mar 2005 05:24:20 -0000	1.10
 +++ x11/Xserver/hw/xfree86/xf86_os/Makefile	8 Apr 2005 21:06:03 -0000
 @@ -55,7 +55,15 @@
  .if ${MACHINE} == "cats"
  SRCS.bsd+=      arm_video.c bsdResource.c pm_noop.c agp_noop.c ioperm_noop.c
  .for _FN in ${SRCS.bsd}
 -CPPFLAGS.${_FN}=        -DPCVT_SUPPORT -DWSCONS_SUPPORT -DUSESTDRES -DHAVE_SYSV_IPC
 +CPPFLAGS.${_FN}=	-DPCVT_SUPPORT -DWSCONS_SUPPORT -DUSESTDRES \
 +			-DHAVE_SYSV_IPC
 +.endfor
 +.endif
 +
 +.if ${MACHINE} == "alpha"
 +SRCS.bsd+=      	alpha_video.c bsd_ev56.c
 +.for _FN in ${SRCS.bsd}
 +CPPFLAGS.${_FN}=	-DWSCONS_SUPPORT
  .endfor
  .endif

 @@ -67,7 +75,8 @@
  .endif

  .if ${MACHINE} == "macppc" || ${MACHINE} == "cats" || \
 -    ${MACHINE} == "sgimips" || ${MACHINE} == "sparc64"
 +    ${MACHINE} == "sgimips" || ${MACHINE} == "sparc64" || \
 +    ${MACHINE} == "alpha"
  SRCS.bus+=	netbsdPci.c
  .endif


From: Tyler Retzlaff <rtr@netbsd.org>
To: gnats-bugs@netbsd.org
Cc: 
Subject: Re: xsrc/29882
Date: Sat, 9 Apr 2005 19:28:28 +1000

 I can probably fix the following rubbish, though it might be easier if I had
 the native build log.  Is that sitting somewhere still?

 : undefined reference to `VidModeGetViewPort'

 /export/home/tron/obj/x11/Xserver/Xext/ext/libext.a(xf86vmode.o)(.text+0x3f44):
 In function `XFree86VidModeExtensionInit':
  : undefined reference to `VidModeGetViewPort'

 /export/home/tron/obj/x11/Xserver/Xext/ext/libext.a(xf86vmode.o)(.text+0x40e0):
 In function `XFree86VidModeExtensionInit':
  : undefined reference to `VidModeSetViewPort'

 /export/home/tron/obj/x11/Xserver/Xext/ext/libext.a(xf86vmode.o)(.text+0x40e4):
 In function `XFree86VidModeExtensionInit':
  : undefined reference to `VidModeSetViewPort'

 /export/home/tron/obj/x11/Xserver/Xext/ext/libext.a(xf86vmode.o)(.text+0x417c):In
 function `XFree86VidModeExtensionInit':

 Anyway, I'l try to have a look at it tomorrow.

 -- 

 Tyler R. Retzlaff <rtr@NetBSD.org> http://www.NetBSD.org

From: Matthias Scheler <tron@NetBSD.org>
To: gnats-bugs@NetBSD.org
Cc: 
Subject: Re: xsrc/29882
Date: Sat, 9 Apr 2005 10:35:43 +0100

 On Sat, Apr 09, 2005 at 09:29:01AM +0000, Tyler Retzlaff wrote:
 > The following reply was made to PR xsrc/29882; it has been noted by GNATS.
 > 
 > From: Tyler Retzlaff <rtr@netbsd.org>
 > To: gnats-bugs@netbsd.org
 > Cc: 
 > Subject: Re: xsrc/29882
 > Date: Sat, 9 Apr 2005 19:28:28 +1000
 > 
 >  I can probably fix the following rubbish, though it might be easier if I had
 >  the native build log.  Is that sitting somewhere still?

 Yes, it's here:

 http://www.NetBSD.org/~tron/xsrc-log.tar.gz

 	Kind regards

 -- 
 Matthias Scheler                                  http://scheler.de/~matthias/

From: Reinoud Zandijk <reinoud@NetBSD.org>
Date: Wed, 30 Jan 2008

Has this been fixed in the meantime?


State-Changed-From-To: analyzed->feedback
State-Changed-By: dholland@NetBSD.org
State-Changed-When: Sun, 13 Feb 2011 05:21:36 +0000
State-Changed-Why:
Is this still a problem?


From: matthew green <mrg@eterna.com.au>
To: gnats-bugs@NetBSD.org
Cc: xsrc-manager@netbsd.org, netbsd-bugs@netbsd.org,
    gnats-admin@netbsd.org, dholland@NetBSD.org, dhop@nwlink.com
Subject: re: xsrc/29882 (build.sh -x script does not produce XFree86 binary on Alpha)
Date: Sun, 13 Feb 2011 18:12:30 +1100

 > Synopsis: build.sh -x script does not produce XFree86 binary on Alpha
 >
 > Is this still a problem?

 Xorg xfree86 drivers work on alpha, but we haven't switched alpha
 to xorg yet since we haven't ported Xalpha (the tc server) yet.

 any build with X should have or not have this file for easy checking.


 .mrg.

State-Changed-From-To: feedback->closed
State-Changed-By: mrg@NetBSD.org
State-Changed-When: Sun, 04 Dec 2016 21:56:20 +0000
State-Changed-Why:
netbsd 7.0 shipped with an X server for alpha, and -current
also has modern xorg-server.


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