NetBSD Problem Report #53099

From john@tim.nextvr.com  Wed Mar 14 23:25:46 2018
Return-Path: <john@tim.nextvr.com>
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 E794C7A1D2
	for <gnats-bugs@gnats.NetBSD.org>; Wed, 14 Mar 2018 23:25:46 +0000 (UTC)
Message-Id: <201803142325.w2ENPhCs027797@tim.nextvr.com>
Date: Wed, 14 Mar 2018 23:25:43 GMT
From: john@ziaspace.com
Reply-To: john@ziaspace.com
To: gnats-bugs@NetBSD.org
Subject: graphics/MesaLib fails to build
X-Send-Pr-Version: 3.95

>Number:         53099
>Category:       pkg
>Synopsis:       graphics/MesaLib fails to build
>Confidential:   no
>Severity:       serious
>Priority:       medium
>Responsible:    pkg-manager
>State:          closed
>Class:          sw-bug
>Submitter-Id:   net
>Arrival-Date:   Wed Mar 14 23:30:00 +0000 2018
>Closed-Date:    Wed Jun 20 01:37:47 +0000 2018
>Last-Modified:  Wed Jun 20 01:37:47 +0000 2018
>Originator:     john@ziaspace.com
>Release:        NetBSD 7.1_STABLE
>Organization:

>Environment:


System: NetBSD tim.nextvr.com 7.1_STABLE NetBSD 7.1_STABLE (TIM) #0: Fri Oct 20 05:19:22 UTC 2017 john@tim.nextvr.com:/usr/obj-amd64/sys/arch/amd64/compile/TIM amd64
Architecture: x86_64
Machine: amd64
>Description:

Running pkg_rolling-replace on a netbsd-7 system with pkgsrc from today, 
graphics/MesaLib fails here:

checking for LIBDEVQ... no
Please specify at least one package name on the command line.
--print-errors: not found
checking for GLPROTO... yes
configure: error: Direct rendering requires libdrm >= 2.4.60
*** Error code 1

Stop.
make[2]: stopped in /usr/pkgsrc/graphics/MesaLib

Trying to install x11/libdrm manually fails with:

  CCLD     kms-universal-planes
  CCLD     kms-steal-crtc
Making all in modeprint
  CC       modeprint.o
modeprint.c: In function 'printProperty':
modeprint.c:129:4: warning: format '%lld' expects argument of type 'long long int', but argument 2 has type '__u64' [-Wformat=]
    printf("\t\t%lld = %s\n", props->enums[j].value, props->enums[j].name);
    ^
modeprint.c:129:4: warning: format '%lld' expects argument of type 'long long int', but argument 2 has type '__u64' [-Wformat=]
  CCLD     modeprint
modeprint.o: In function `main':
modeprint.c:(.text.startup+0x200): undefined reference to `drmModeGetConnectorCurrent'
Makefile:433: recipe for target 'modeprint' failed
gmake[3]: *** [modeprint] Error 1
Makefile:706: recipe for target 'all-recursive' failed
gmake[2]: *** [all-recursive] Error 1
Makefile:855: recipe for target 'all-recursive' failed
gmake[1]: *** [all-recursive] Error 1
Makefile:614: recipe for target 'all' failed
gmake: *** [all] Error 2
*** Error code 2

Stop.
make[1]: stopped in /usr/pkgsrc/x11/libdrm
*** Error code 1


>How-To-Repeat:

>Fix:

One fix is to manually install 

>Release-Note:

>Audit-Trail:
From: scole_mail <scole_mail@gmx.com>
To: gnats-bugs@NetBSD.org
Cc: 
Subject: Re: pkg/53099: graphics/MesaLib fails to build
Date: Thu, 15 Mar 2018 08:46:54 -0700

 I have the same issue and got it to at least build by doing

  cd .../pkgsrc/graphics/MesaLib
  env PKG_DEFAULT_OPTIONS="-dri -llvm" bmake

 I'm using i386 netbsd-7 and am not sure what options I really should be
 using, but this is what glxinfo says:

 scole@dstar:/usr/pkgsrc/graphics/MesaLib> glxinfo |grep render
 direct rendering: Yes
     GLX_MESA_multithread_makecurrent, GLX_MESA_query_renderer, 
     GLX_MESA_query_renderer, GLX_OML_swap_method, GLX_SGIS_multisample, 
 OpenGL renderer string: Gallium 0.4 on softpipe
     GL_ARB_conditional_render_inverted, GL_ARB_conservative_depth, 
     GL_MESA_ycbcr_texture, GL_NV_blend_square, GL_NV_conditional_render, 

From: coypu@sdf.org
To: gnats-bugs@NetBSD.org
Cc: 
Subject: Re: pkg/53099: graphics/MesaLib fails to build
Date: Sat, 31 Mar 2018 11:53:05 +0000

 this is somewhat of a red herring. yes, mesalib itself does not build,
 but this isn't new. what's new is that builtin mesalib isn't considered
 sufficient.

From: coypu@sdf.org
To: gnats-bugs@netbsd.org
Cc: 
Subject: Re: pkg/53099: graphics/MesaLib fails to build
Date: Sat, 31 Mar 2018 17:27:31 +0000

 bah, the 'non-native mesalib pulled in' is caused by me trying to fix
 the mesalib build by making all pkgconfig files visible. so I've
 reverted that.

State-Changed-From-To: open->feedback
State-Changed-By: dholland@NetBSD.org
State-Changed-When: Sat, 28 Apr 2018 09:34:09 +0000
State-Changed-Why:
Is this still happening? The cause was supposed to have been reverted.


State-Changed-From-To: feedback->open
State-Changed-By: maya@NetBSD.org
State-Changed-When: Wed, 20 Jun 2018 01:30:06 +0000
State-Changed-Why:
Definitely still broken, should disable llvm+dri options...


State-Changed-From-To: open->closed
State-Changed-By: maya@NetBSD.org
State-Changed-When: Wed, 20 Jun 2018 01:37:47 +0000
State-Changed-Why:
Fixed as best as possible - it isn't feasible to make pkgsrc mesa work (after doing a lot to try to work around problems).


>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.