Skip to contentSkip to conversation

New: build failure: nouveau_screen.c:105:8: error: implicit declaration of function ‘nouveau_drm_new’ ;

Bug 101335 [email protected] 1 participant 6 messages Jun 7, 2017 – Jun 12, 2017 1 message not in the archive

lore
Share & tools
lore
#0 lore raw

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: [email protected]
Reporter: [email protected]
QA Contact: [email protected]

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

Signature · 3 lines
You are receiving this mail because:
You are the QA Contact for the bug.
You are the assignee for the bug.

_______________________________________________
Nouveau mailing list
[email protected]
https://lists.freedesktop.org/mailman/listinfo/nouveau

#2 lore raw

[Bug 101335] build failure: nouveau_screen.c:105:8: error: implicit declaration of function ‘nouveau_drm_new’ ;

In reply to a message not in the archive

https://bugs.freedesktop.org/show_bug.cgi?id=101335

--- Comment #1 from Karol Herbst <[email protected]> --- (In reply to David Ronis from comment #0)

Quoted 21 lines

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,
                                       ^~
Quoted 9 lines

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.

Signature · 3 lines
You are receiving this mail because:
You are the assignee for the bug.
You are the QA Contact for the bug.

_______________________________________________
Nouveau mailing list
[email protected]
https://lists.freedesktop.org/mailman/listinfo/nouveau

#3 lore raw

[Bug 101335] build failure: nouveau_screen.c:105:8: error: implicit declaration of function ‘nouveau_drm_new’ ;

In reply to a message not in the archive

https://bugs.freedesktop.org/show_bug.cgi?id=101335

--- Comment #2 from Pierre Moreau <[email protected]> --- (In reply to Karol Herbst from comment #1)

Quoted 2 lines

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.

Signature · 3 lines
You are receiving this mail because:
You are the assignee for the bug.
You are the QA Contact for the bug.

_______________________________________________
Nouveau mailing list
[email protected]
https://lists.freedesktop.org/mailman/listinfo/nouveau

#4 lore raw

[Bug 101335] build failure: nouveau_screen.c:105:8: error: implicit declaration of function ‘nouveau_drm_new’ ;

In reply to a message not in the archive

https://bugs.freedesktop.org/show_bug.cgi?id=101335

--- Comment #3 from Karol Herbst <[email protected]> --- (In reply to Pierre Moreau from comment #2)

Quoted 9 lines

(In reply to Karol Herbst from comment #1)

Quoted 2 lines

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 :/

Signature · 3 lines
You are receiving this mail because:
You are the QA Contact for the bug.
You are the assignee for the bug.

_______________________________________________
Nouveau mailing list
[email protected]
https://lists.freedesktop.org/mailman/listinfo/nouveau

#5 lore raw

[Bug 101335] build failure: nouveau_screen.c:105:8: error: implicit declaration of function ‘nouveau_drm_new’ ;

In reply to a message not in the archive

https://bugs.freedesktop.org/show_bug.cgi?id=101335

--- Comment #4 from David Ronis <[email protected]> --- 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.

Signature · 3 lines
You are receiving this mail because:
You are the QA Contact for the bug.
You are the assignee for the bug.

_______________________________________________
Nouveau mailing list
[email protected]
https://lists.freedesktop.org/mailman/listinfo/nouveau

#6 lore raw

[Bug 101335] build failure: nouveau_screen.c:105:8: error: implicit declaration of function ‘nouveau_drm_new’ ;

In reply to a message not in the archive

https://bugs.freedesktop.org/show_bug.cgi?id=101335

David Ronis <[email protected]> changed:

What |Removed |Added
----------------------------------------------------------------------------

         Resolution|---                         |FIXED
             Status|NEW                         |RESOLVED

--- Comment #5 from David Ronis <[email protected]> --- 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.

Signature · 3 lines
You are receiving this mail because:
You are the assignee for the bug.
You are the QA Contact for the bug.

_______________________________________________
Nouveau mailing list
[email protected]
https://lists.freedesktop.org/mailman/listinfo/nouveau