Skip to contentSkip to conversation

New: Compile error in pipe-loader files (pipe_r300.c pipe_r600.c pipe_radeonsi.c egl_pipe.c)

Bug 77305 [email protected] 1 participant 9 messages Apr 11, 2014 – Apr 13, 2014

lore
Share & tools
lore
#0 lore raw

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

          Priority: medium
            Bug ID: 77305
          Assignee: [email protected]
           Summary: Compile error in pipe-loader files (pipe_r300.c
                    pipe_r600.c pipe_radeonsi.c egl_pipe.c)
          Severity: normal
    Classification: Unclassified
                OS: Linux (All)
          Reporter: [email protected]
          Hardware: x86-64 (AMD64)
            Status: NEW
           Version: git
         Component: Drivers/Gallium/r600
           Product: Mesa

Created attachment 97213
--> https://bugs.freedesktop.org/attachment.cgi?id=97213&action=edit
patch for build failure

When building the latest mesa code today from git (227049098b59bca88883a750602fdad41949c996), I was unable to build due to an error that looks like a missing radeon_winsys.h include after the following
commit: 3b0b44f7def0acb4f7a7aef086c0bece321418a6.

Example of error:
pipe_r300.c: In function 'create_screen':
pipe_r300.c:13:38: error: dereferencing pointer to incomplete type

    return sws ? debug_screen_wrap(sws->screen) : NULL;
                                      ^

I've attached a patch that fixes the build issue for me.

I build mesa with the following options:

  ./autogen.sh --prefix=/usr \
    --sysconfdir=/etc \
    --with-dri-driverdir=/usr/lib/xorg/modules/dri \
    --with-gallium-drivers=r300,r600,radeonsi,nouveau,svga,swrast \
    --with-dri-drivers=i915,i965,r200,radeon,nouveau,swrast \
    --with-egl-platforms=drm,x11,wayland \
    --with-llvm-shared-libs \
    --enable-gallium-egl --enable-shared-glapi \
    --enable-gallium-llvm \
    --enable-glx-tls \
    --enable-gles1 \
    --enable-gles2 \
    --enable-egl \
    --enable-dri \
    --enable-glx \
    --enable-xa \
    --enable-osmesa \
    --enable-gbm \
    --enable-texture-float \
    --enable-vdpau \
    --enable-opencl \
    --enable-opencl-icd
Signature · 2 lines
You are receiving this mail because:
You are the assignee for the bug.

_______________________________________________
dri-devel mailing list
[email protected]
http://lists.freedesktop.org/mailman/listinfo/dri-devel

#1 lore raw

[Bug 77305] Compile error in pipe-loader files (pipe_r300.c pipe_r600.c pipe_radeonsi.c egl_pipe.c)

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

Tom Stellard <[email protected]> changed:

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

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

--- Comment #1 from Tom Stellard <[email protected]> --- Committed the patch as ac3435a47c616286c5a5ee16148f829493c2127, thanks!

Signature · 2 lines
You are receiving this mail because:
You are the assignee for the bug.

_______________________________________________
dri-devel mailing list
[email protected]
http://lists.freedesktop.org/mailman/listinfo/dri-devel

#2 lore raw

[Bug 77305] Compile error in pipe-loader files (pipe_r300.c pipe_r600.c pipe_radeonsi.c egl_pipe.c)

In reply to [email protected]

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

--- Comment #2 from Simone Scanzoni <[email protected]> --- Created attachment 97248
--> https://bugs.freedesktop.org/attachment.cgi?id=97248&action=edit
patch for build failure with r600 and radeonsi

The bug isn't fixed upstream for r600 and radeonsi.

The attached patch solves the problem fixing these:

egl_pipe.c: In function 'pipe_r600_create_screen':
egl_pipe.c:153:4: error: implicit declaration of function 'radeon_drm_winsys_create' [-Werror=implicit-function-declaration] egl_pipe.c:154:36: error: dereferencing pointer to incomplete type

egl_pipe.c: In function 'pipe_radeonsi_create_screen':
egl_pipe.c:168:4: error: implicit declaration of function 'radeon_drm_winsys_create' [-Werror=implicit-function-declaration] egl_pipe.c:169:36: error: dereferencing pointer to incomplete type

Signature · 2 lines
You are receiving this mail because:
You are the assignee for the bug.

_______________________________________________
dri-devel mailing list
[email protected]
http://lists.freedesktop.org/mailman/listinfo/dri-devel

#3 lore raw

[Bug 77305] Compile error in pipe-loader files (pipe_r300.c pipe_r600.c pipe_radeonsi.c egl_pipe.c)

In reply to [email protected]

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

Laurent carlier <[email protected]> changed:

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

                 CC|                            |[email protected]
                   |                            |m

--- Comment #3 from Laurent carlier <[email protected]> --- *** Bug 77358 has been marked as a duplicate of this bug. ***

Signature · 2 lines
You are receiving this mail because:
You are the assignee for the bug.

_______________________________________________
dri-devel mailing list
[email protected]
http://lists.freedesktop.org/mailman/listinfo/dri-devel

#4 lore raw

[Bug 77305] Compile error in pipe-loader files (pipe_r300.c pipe_r600.c pipe_radeonsi.c egl_pipe.c)

In reply to [email protected]

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

Laurent carlier <[email protected]> changed:

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

             Status|RESOLVED                    |REOPENED
         Resolution|FIXED                       |---
Signature · 2 lines
You are receiving this mail because:
You are the assignee for the bug.

_______________________________________________
dri-devel mailing list
[email protected]
http://lists.freedesktop.org/mailman/listinfo/dri-devel

#5 lore raw

[Bug 77305] Compile error in pipe-loader files (pipe_r300.c pipe_r600.c pipe_radeonsi.c egl_pipe.c)

In reply to [email protected]

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

--- Comment #4 from Knut Andre Tidemann <[email protected]> --- I think 9d36a8d4d27230dd91d4c4002a781edeec22d044 broke it again if you do not build with R300 as well.

It works fine here when I build with R300.

The attached patch fixes the issue when R300 is not built.

Signature · 2 lines
You are receiving this mail because:
You are the assignee for the bug.

_______________________________________________
dri-devel mailing list
[email protected]
http://lists.freedesktop.org/mailman/listinfo/dri-devel

#6 lore raw

[Bug 77305] Compile error in pipe-loader files (pipe_r300.c pipe_r600.c pipe_radeonsi.c egl_pipe.c)

In reply to [email protected]

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

--- Comment #5 from Simone Scanzoni <[email protected]> --- (In reply to comment #4)

Quoted 6 lines

I think 9d36a8d4d27230dd91d4c4002a781edeec22d044 broke it again if you do not build with R300 as well.

It works fine here when I build with R300.

The attached patch fixes the issue when R300 is not built.

You are probably right.
My wording wasn't exact, the patch I attached fixes the build failure when building only r600 or radeonsi, or both.

Signature · 2 lines
You are receiving this mail because:
You are the assignee for the bug.

_______________________________________________
dri-devel mailing list
[email protected]
http://lists.freedesktop.org/mailman/listinfo/dri-devel

author Tested-by Alexandre Demers
#7 lore raw

[Bug 77305] Compile error in pipe-loader files (pipe_r300.c pipe_r600.c pipe_radeonsi.c egl_pipe.c)

In reply to [email protected]

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

--- Comment #6 from Alexandre Demers <[email protected]> --- (In reply to comment #2)

Quoted 12 lines

Created attachment 97248 [details] [review]
patch for build failure with r600 and radeonsi

The bug isn't fixed upstream for r600 and radeonsi.

The attached patch solves the problem fixing these:

egl_pipe.c: In function 'pipe_r600_create_screen':
egl_pipe.c:153:4: error: implicit declaration of function 'radeon_drm_winsys_create' [-Werror=implicit-function-declaration] egl_pipe.c:154:36: error: dereferencing pointer to incomplete type

Quoted 4 lines

egl_pipe.c: In function 'pipe_radeonsi_create_screen':
egl_pipe.c:168:4: error: implicit declaration of function 'radeon_drm_winsys_create' [-Werror=implicit-function-declaration] egl_pipe.c:169:36: error: dereferencing pointer to incomplete type

Your patch was applied and tested on 857f3a68ea7370d1db2ef5faca181a36ada7d49d and I confirm this fixes the build.

Tested-by Alexandre Demers
Signature · 2 lines
You are receiving this mail because:
You are the assignee for the bug.

_______________________________________________
dri-devel mailing list
[email protected]
http://lists.freedesktop.org/mailman/listinfo/dri-devel

#8 lore raw

[Bug 77305] Compile error in pipe-loader files (pipe_r300.c pipe_r600.c pipe_radeonsi.c egl_pipe.c)

In reply to [email protected]

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

Marek Olšák <[email protected]> changed:

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

             Status|REOPENED                    |RESOLVED
         Resolution|---                         |FIXED

--- Comment #7 from Marek Olšák <[email protected]> --- (In reply to comment #2)

Quoted 12 lines

Created attachment 97248 [details] [review]
patch for build failure with r600 and radeonsi

The bug isn't fixed upstream for r600 and radeonsi.

The attached patch solves the problem fixing these:

egl_pipe.c: In function 'pipe_r600_create_screen':
egl_pipe.c:153:4: error: implicit declaration of function 'radeon_drm_winsys_create' [-Werror=implicit-function-declaration] egl_pipe.c:154:36: error: dereferencing pointer to incomplete type

Quoted 4 lines

egl_pipe.c: In function 'pipe_radeonsi_create_screen':
egl_pipe.c:168:4: error: implicit declaration of function 'radeon_drm_winsys_create' [-Werror=implicit-function-declaration] egl_pipe.c:169:36: error: dereferencing pointer to incomplete type

I pushed your patch. Closing.

Signature · 2 lines
You are receiving this mail because:
You are the assignee for the bug.

_______________________________________________
dri-devel mailing list
[email protected]
http://lists.freedesktop.org/mailman/listinfo/dri-devel