bugzilla-daemon at freedesktop.org
2017-Jun-07 20:19 UTC
[Nouveau] [Bug 101335] New: build failure: nouveau_screen.c:105:8: error: implicit declaration of function ‘nouveau_drm_new’;
https://bugs.freedesktop.org/show_bug.cgi?id=101335
Bug ID: 101335
Summary: build failure: nouveau_screen.c:105:8: error:
implicit declaration of function ‘nouveau_drm_new’;
Product: Mesa
Version: git
Hardware: x86 (IA32)
OS: Linux (All)
Status: NEW
Severity: major
Priority: medium
Component: Drivers/DRI/nouveau
Assignee: nouveau at lists.freedesktop.org
Reporter: David.Ronis at McGill.CA
QA Contact: nouveau at lists.freedesktop.org
I'm trying to build the git master on an 32 bit machine. The build dies
with:
CC nouveau_surface.lo
nouveau_screen.c: In function ‘nouveau_init_screen2’:
nouveau_screen.c:105:8: error: implicit declaration of function
‘nouveau_drm_new’; did you mean ‘nouveau_bo_new’?
[-Werror=implicit-function-declaration]
ret = nouveau_drm_new(dri_screen->fd, &screen->drm);
^~~~~~~~~~~~~~~
nouveau_bo_new
nouveau_screen.c:111:8: error: implicit declaration of function
‘nouveau_device_new’; did you mean ‘nouveau_device_del’?
[-Werror=implicit-function-declaration]
ret = nouveau_device_new(&screen->drm->client, NV_DEVICE,
^~~~~~~~~~~~~~~~~~
nouveau_device_del
nouveau_screen.c:111:39: error: dereferencing pointer to incomplete type
‘struct nouveau_drm’
ret = nouveau_device_new(&screen->drm->client, NV_DEVICE,
^~
CC nouveau_texture.lo
nouveau_screen.c: In function ‘nouveau_destroy_screen’:
nouveau_screen.c:230:2: error: implicit declaration of function
‘nouveau_drm_del’; did you mean ‘nouveau_bo_ref’?
[-Werror=implicit-function-declaration]
nouveau_drm_del(&screen->drm);
^~~~~~~~~~~~~~~
nouveau_bo_ref
cc1: some warnings being treated as errors
--
You are receiving this mail because:
You are the QA Contact for the bug.
You are the assignee for the bug.
-------------- next part --------------
An HTML attachment was scrubbed...
URL:
<https://lists.freedesktop.org/archives/nouveau/attachments/20170607/2d0ba639/attachment-0001.html>
bugzilla-daemon at freedesktop.org
2017-Jun-07 20:27 UTC
[Nouveau] [Bug 101335] build failure: nouveau_screen.c:105:8: error: implicit declaration of function ‘nouveau_drm_new’;
https://bugs.freedesktop.org/show_bug.cgi?id=101335 --- Comment #1 from Karol Herbst <karolherbst at gmail.com> --- (In reply to David Ronis from comment #0)> I'm trying to build the git master on an 32 bit machine. The build dies > with: > > CC nouveau_surface.lo > nouveau_screen.c: In function ‘nouveau_init_screen2’: > nouveau_screen.c:105:8: error: implicit declaration of function > ‘nouveau_drm_new’; did you mean ‘nouveau_bo_new’? > [-Werror=implicit-function-declaration] > ret = nouveau_drm_new(dri_screen->fd, &screen->drm); > ^~~~~~~~~~~~~~~ > nouveau_bo_new > nouveau_screen.c:111:8: error: implicit declaration of function > ‘nouveau_device_new’; did you mean ‘nouveau_device_del’? > [-Werror=implicit-function-declaration] > ret = nouveau_device_new(&screen->drm->client, NV_DEVICE, > ^~~~~~~~~~~~~~~~~~ > nouveau_device_del > nouveau_screen.c:111:39: error: dereferencing pointer to incomplete type > ‘struct nouveau_drm’ > ret = nouveau_device_new(&screen->drm->client, NV_DEVICE, > ^~ > CC nouveau_texture.lo > nouveau_screen.c: In function ‘nouveau_destroy_screen’: > nouveau_screen.c:230:2: error: implicit declaration of function > ‘nouveau_drm_del’; did you mean ‘nouveau_bo_ref’? > [-Werror=implicit-function-declaration] > nouveau_drm_del(&screen->drm); > ^~~~~~~~~~~~~~~ > nouveau_bo_ref > cc1: some warnings being treated as errorsyou need to build against drm-next kernel tree or a different tree the module is actually based on. Check for the last drm-next commit in the tree. -- You are receiving this mail because: You are the assignee for the bug. You are the QA Contact for the bug. -------------- next part -------------- An HTML attachment was scrubbed... URL: <https://lists.freedesktop.org/archives/nouveau/attachments/20170607/57825342/attachment.html>
bugzilla-daemon at freedesktop.org
2017-Jun-07 20:36 UTC
[Nouveau] [Bug 101335] build failure: nouveau_screen.c:105:8: error: implicit declaration of function ‘nouveau_drm_new’;
https://bugs.freedesktop.org/show_bug.cgi?id=101335 --- Comment #2 from Pierre Moreau <pierre.morrow at free.fr> --- (In reply to Karol Herbst from comment #1)> you need to build against drm-next kernel tree or a different tree the > module is actually based on. Check for the last drm-next commit in the tree.Ben’s tree is currently built against v4.12-rc3 from Linus’ tree, rather than a version of drm-next. However, I think that David is building Mesa here, rather than the kernel. It seems like you do not have the proper version of libdrm. -- You are receiving this mail because: You are the assignee for the bug. You are the QA Contact for the bug. -------------- next part -------------- An HTML attachment was scrubbed... URL: <https://lists.freedesktop.org/archives/nouveau/attachments/20170607/1836cdcd/attachment.html>
bugzilla-daemon at freedesktop.org
2017-Jun-07 21:06 UTC
[Nouveau] [Bug 101335] build failure: nouveau_screen.c:105:8: error: implicit declaration of function ‘nouveau_drm_new’;
https://bugs.freedesktop.org/show_bug.cgi?id=101335 --- Comment #3 from Karol Herbst <karolherbst at gmail.com> --- (In reply to Pierre Moreau from comment #2)> (In reply to Karol Herbst from comment #1) > > you need to build against drm-next kernel tree or a different tree the > > module is actually based on. Check for the last drm-next commit in the tree. > > Ben’s tree is currently built against v4.12-rc3 from Linus’ tree, rather > than a version of drm-next. > > However, I think that David is building Mesa here, rather than the kernel. > It seems like you do not have the proper version of libdrm.ohhhh, right. I got confused, cause I hit a simliar issue rebasing my trees :/ -- You are receiving this mail because: You are the QA Contact for the bug. You are the assignee for the bug. -------------- next part -------------- An HTML attachment was scrubbed... URL: <https://lists.freedesktop.org/archives/nouveau/attachments/20170607/c7f6f2e1/attachment.html>
bugzilla-daemon at freedesktop.org
2017-Jun-09 17:55 UTC
[Nouveau] [Bug 101335] build failure: nouveau_screen.c:105:8: error: implicit declaration of function ‘nouveau_drm_new’;
https://bugs.freedesktop.org/show_bug.cgi?id=101335
--- Comment #4 from David Ronis <David.Ronis at McGill.CA> ---
Thanks for the replies. I am trying to build mesa (git/master) and have
rebuilt <span class="hiddenSpellError" pre="rebuilt
">drm (also the
git/master).
Here are the configure flags I use:
drm "--with-kernel-source=/<span class="hiddenSpellError"
pre="">usr/src/<span class="hiddenSpellError"
pre="">linux --without-udev"
and
mesa " --<span class="hiddenSpellError"
pre="">enable-gbm --enable-opengl
--<span class="hiddenSpellError" pre="">enable-gles1
--enable-gles2
--with-gallium-drivers=nouveau --disable-glamor --<span
class="hiddenSpellError"
pre="">disable-gallium-llvm"
An additional oddity. I've tried building on two machines and i686 and an
x86_64. The build fails on the <span class="hiddenSpellError"
pre="the ">i686
but succeeds on the x86_64.
--
You are receiving this mail because:
You are the QA Contact for the bug.
You are the assignee for the bug.
-------------- next part --------------
An HTML attachment was scrubbed...
URL:
<https://lists.freedesktop.org/archives/nouveau/attachments/20170609/0d15d0ef/attachment.html>
bugzilla-daemon at freedesktop.org
2017-Jun-12 20:18 UTC
[Nouveau] [Bug 101335] build failure: nouveau_screen.c:105:8: error: implicit declaration of function ‘nouveau_drm_new’;
https://bugs.freedesktop.org/show_bug.cgi?id=101335
David Ronis <David.Ronis at McGill.CA> changed:
What |Removed |Added
----------------------------------------------------------------------------
Resolution|--- |FIXED
Status|NEW |RESOLVED
--- Comment #5 from David Ronis <David.Ronis at McGill.CA> ---
Problem solved. It turns out that an older or <span
class="hiddenSpellError"
pre="or ">slackware pagage of <span
class="hiddenSpellError" pre="of ">drm
installed its include files in /usr/include/drm nor /usr/include/libdrm,
something that wasn't fixed when calling pkg-config --cflags drm which is
now
libdrm).
I manually removed any drm installed files, ran make uninstall, and
rebuilt/installed with no problems.
--
You are receiving this mail because:
You are the assignee for the bug.
You are the QA Contact for the bug.
-------------- next part --------------
An HTML attachment was scrubbed...
URL:
<https://lists.freedesktop.org/archives/nouveau/attachments/20170612/f282fa2c/attachment.html>
Apparently Analagous Threads
- [Bug 97900] New: [regression] nouveau_screen.c:230:2: error: implicit declaration of function ‘nouveau_drm_del’
- [Bug 101199] New: nouveau_screen.c: undefined reference to `nouveau_drm_del'
- [mesa 1/9] nouveau: bump required libdrm version to 2.4.66
- [mesa v3 1/9] nouveau: bump required libdrm version to 2.4.66
- [mesa v2 1/9] nouveau: bump required libdrm version to 2.4.66