* [Bug 101335] New: build failure: nouveau_screen.c:105:8: error: implicit declaration of function ‘nouveau_drm_new’;
@ 2017-06-07 20:19 bugzilla-daemon-CC+yJ3UmIYqDUpFQwHEjaQ
[not found] ` <bug-101335-8800-V0hAGp6uBxMKqLRl/0Ahz6D7qz1kEfGD2LY78lusg7I@public.gmane.org/>
0 siblings, 1 reply; 6+ messages in thread
From: bugzilla-daemon-CC+yJ3UmIYqDUpFQwHEjaQ @ 2017-06-07 20:19 UTC (permalink / raw)
To: nouveau-PD4FTy7X32lNgt0PjOBp9y5qC8QIuHrW
[-- Attachment #1.1: Type: text/plain, Size: 2115 bytes --]
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-PD4FTy7X32lNgt0PjOBp9y5qC8QIuHrW@public.gmane.org
Reporter: David.Ronis-BAnzPxqWUM23NexWsGEg3A@public.gmane.org
QA Contact: nouveau-PD4FTy7X32lNgt0PjOBp9y5qC8QIuHrW@public.gmane.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.
[-- Attachment #1.2: Type: text/html, Size: 3490 bytes --]
[-- Attachment #2: Type: text/plain, Size: 154 bytes --]
_______________________________________________
Nouveau mailing list
Nouveau@lists.freedesktop.org
https://lists.freedesktop.org/mailman/listinfo/nouveau
^ permalink raw reply [flat|nested] 6+ messages in thread
* [Bug 101335] build failure: nouveau_screen.c:105:8: error: implicit declaration of function ‘nouveau_drm_new’;
[not found] ` <bug-101335-8800-V0hAGp6uBxMKqLRl/0Ahz6D7qz1kEfGD2LY78lusg7I@public.gmane.org/>
@ 2017-06-07 20:27 ` bugzilla-daemon-CC+yJ3UmIYqDUpFQwHEjaQ
2017-06-07 20:36 ` bugzilla-daemon-CC+yJ3UmIYqDUpFQwHEjaQ
` (3 subsequent siblings)
4 siblings, 0 replies; 6+ messages in thread
From: bugzilla-daemon-CC+yJ3UmIYqDUpFQwHEjaQ @ 2017-06-07 20:27 UTC (permalink / raw)
To: nouveau-PD4FTy7X32lNgt0PjOBp9y5qC8QIuHrW
[-- Attachment #1.1: Type: text/plain, Size: 1820 bytes --]
https://bugs.freedesktop.org/show_bug.cgi?id=101335
--- Comment #1 from Karol Herbst <karolherbst-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org> ---
(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 errors
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.
--
You are receiving this mail because:
You are the assignee for the bug.
You are the QA Contact for the bug.
[-- Attachment #1.2: Type: text/html, Size: 2893 bytes --]
[-- Attachment #2: Type: text/plain, Size: 154 bytes --]
_______________________________________________
Nouveau mailing list
Nouveau@lists.freedesktop.org
https://lists.freedesktop.org/mailman/listinfo/nouveau
^ permalink raw reply [flat|nested] 6+ messages in thread
* [Bug 101335] build failure: nouveau_screen.c:105:8: error: implicit declaration of function ‘nouveau_drm_new’;
[not found] ` <bug-101335-8800-V0hAGp6uBxMKqLRl/0Ahz6D7qz1kEfGD2LY78lusg7I@public.gmane.org/>
2017-06-07 20:27 ` [Bug 101335] " bugzilla-daemon-CC+yJ3UmIYqDUpFQwHEjaQ
@ 2017-06-07 20:36 ` bugzilla-daemon-CC+yJ3UmIYqDUpFQwHEjaQ
2017-06-07 21:06 ` bugzilla-daemon-CC+yJ3UmIYqDUpFQwHEjaQ
` (2 subsequent siblings)
4 siblings, 0 replies; 6+ messages in thread
From: bugzilla-daemon-CC+yJ3UmIYqDUpFQwHEjaQ @ 2017-06-07 20:36 UTC (permalink / raw)
To: nouveau-PD4FTy7X32lNgt0PjOBp9y5qC8QIuHrW
[-- Attachment #1.1: Type: text/plain, Size: 700 bytes --]
https://bugs.freedesktop.org/show_bug.cgi?id=101335
--- Comment #2 from Pierre Moreau <pierre.morrow-GANU6spQydw@public.gmane.org> ---
(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.
[-- Attachment #1.2: Type: text/html, Size: 1662 bytes --]
[-- Attachment #2: Type: text/plain, Size: 154 bytes --]
_______________________________________________
Nouveau mailing list
Nouveau@lists.freedesktop.org
https://lists.freedesktop.org/mailman/listinfo/nouveau
^ permalink raw reply [flat|nested] 6+ messages in thread
* [Bug 101335] build failure: nouveau_screen.c:105:8: error: implicit declaration of function ‘nouveau_drm_new’;
[not found] ` <bug-101335-8800-V0hAGp6uBxMKqLRl/0Ahz6D7qz1kEfGD2LY78lusg7I@public.gmane.org/>
2017-06-07 20:27 ` [Bug 101335] " bugzilla-daemon-CC+yJ3UmIYqDUpFQwHEjaQ
2017-06-07 20:36 ` bugzilla-daemon-CC+yJ3UmIYqDUpFQwHEjaQ
@ 2017-06-07 21:06 ` bugzilla-daemon-CC+yJ3UmIYqDUpFQwHEjaQ
2017-06-09 17:55 ` bugzilla-daemon-CC+yJ3UmIYqDUpFQwHEjaQ
2017-06-12 20:18 ` bugzilla-daemon-CC+yJ3UmIYqDUpFQwHEjaQ
4 siblings, 0 replies; 6+ messages in thread
From: bugzilla-daemon-CC+yJ3UmIYqDUpFQwHEjaQ @ 2017-06-07 21:06 UTC (permalink / raw)
To: nouveau-PD4FTy7X32lNgt0PjOBp9y5qC8QIuHrW
[-- Attachment #1.1: Type: text/plain, Size: 853 bytes --]
https://bugs.freedesktop.org/show_bug.cgi?id=101335
--- Comment #3 from Karol Herbst <karolherbst-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org> ---
(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.
[-- Attachment #1.2: Type: text/html, Size: 1872 bytes --]
[-- Attachment #2: Type: text/plain, Size: 154 bytes --]
_______________________________________________
Nouveau mailing list
Nouveau@lists.freedesktop.org
https://lists.freedesktop.org/mailman/listinfo/nouveau
^ permalink raw reply [flat|nested] 6+ messages in thread
* [Bug 101335] build failure: nouveau_screen.c:105:8: error: implicit declaration of function ‘nouveau_drm_new’;
[not found] ` <bug-101335-8800-V0hAGp6uBxMKqLRl/0Ahz6D7qz1kEfGD2LY78lusg7I@public.gmane.org/>
` (2 preceding siblings ...)
2017-06-07 21:06 ` bugzilla-daemon-CC+yJ3UmIYqDUpFQwHEjaQ
@ 2017-06-09 17:55 ` bugzilla-daemon-CC+yJ3UmIYqDUpFQwHEjaQ
2017-06-12 20:18 ` bugzilla-daemon-CC+yJ3UmIYqDUpFQwHEjaQ
4 siblings, 0 replies; 6+ messages in thread
From: bugzilla-daemon-CC+yJ3UmIYqDUpFQwHEjaQ @ 2017-06-09 17:55 UTC (permalink / raw)
To: nouveau-PD4FTy7X32lNgt0PjOBp9y5qC8QIuHrW
[-- Attachment #1.1: Type: text/plain, Size: 1055 bytes --]
https://bugs.freedesktop.org/show_bug.cgi?id=101335
--- Comment #4 from David Ronis <David.Ronis-BAnzPxqWUM23NexWsGEg3A@public.gmane.org> ---
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.
[-- Attachment #1.2: Type: text/html, Size: 2134 bytes --]
[-- Attachment #2: Type: text/plain, Size: 154 bytes --]
_______________________________________________
Nouveau mailing list
Nouveau@lists.freedesktop.org
https://lists.freedesktop.org/mailman/listinfo/nouveau
^ permalink raw reply [flat|nested] 6+ messages in thread
* [Bug 101335] build failure: nouveau_screen.c:105:8: error: implicit declaration of function ‘nouveau_drm_new’;
[not found] ` <bug-101335-8800-V0hAGp6uBxMKqLRl/0Ahz6D7qz1kEfGD2LY78lusg7I@public.gmane.org/>
` (3 preceding siblings ...)
2017-06-09 17:55 ` bugzilla-daemon-CC+yJ3UmIYqDUpFQwHEjaQ
@ 2017-06-12 20:18 ` bugzilla-daemon-CC+yJ3UmIYqDUpFQwHEjaQ
4 siblings, 0 replies; 6+ messages in thread
From: bugzilla-daemon-CC+yJ3UmIYqDUpFQwHEjaQ @ 2017-06-12 20:18 UTC (permalink / raw)
To: nouveau-PD4FTy7X32lNgt0PjOBp9y5qC8QIuHrW
[-- Attachment #1.1: Type: text/plain, Size: 1018 bytes --]
https://bugs.freedesktop.org/show_bug.cgi?id=101335
David Ronis <David.Ronis-BAnzPxqWUM23NexWsGEg3A@public.gmane.org> changed:
What |Removed |Added
----------------------------------------------------------------------------
Resolution|--- |FIXED
Status|NEW |RESOLVED
--- Comment #5 from David Ronis <David.Ronis-BAnzPxqWUM23NexWsGEg3A@public.gmane.org> ---
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.
[-- Attachment #1.2: Type: text/html, Size: 2687 bytes --]
[-- Attachment #2: Type: text/plain, Size: 154 bytes --]
_______________________________________________
Nouveau mailing list
Nouveau@lists.freedesktop.org
https://lists.freedesktop.org/mailman/listinfo/nouveau
^ permalink raw reply [flat|nested] 6+ messages in thread
end of thread, other threads:[~2017-06-12 20:18 UTC | newest]
Thread overview: 6+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2017-06-07 20:19 [Bug 101335] New: build failure: nouveau_screen.c:105:8: error: implicit declaration of function ‘nouveau_drm_new’; bugzilla-daemon-CC+yJ3UmIYqDUpFQwHEjaQ
[not found] ` <bug-101335-8800-V0hAGp6uBxMKqLRl/0Ahz6D7qz1kEfGD2LY78lusg7I@public.gmane.org/>
2017-06-07 20:27 ` [Bug 101335] " bugzilla-daemon-CC+yJ3UmIYqDUpFQwHEjaQ
2017-06-07 20:36 ` bugzilla-daemon-CC+yJ3UmIYqDUpFQwHEjaQ
2017-06-07 21:06 ` bugzilla-daemon-CC+yJ3UmIYqDUpFQwHEjaQ
2017-06-09 17:55 ` bugzilla-daemon-CC+yJ3UmIYqDUpFQwHEjaQ
2017-06-12 20:18 ` bugzilla-daemon-CC+yJ3UmIYqDUpFQwHEjaQ
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.