Bug 111688 - compilation fails with --disable-glamor
Summary: compilation fails with --disable-glamor
Alias: None
Product: xorg
Classification: Unclassified
Component: Driver/Radeon (show other bugs)
Version: git
Hardware: x86-64 (AMD64) Linux (All)
: not set not set
Assignee: xf86-video-ati maintainers
QA Contact: Xorg Project Team
Depends on:
Reported: 2019-09-14 18:33 UTC by Dq8CokMHloQZw
Modified: 2019-11-19 08:02 UTC (History)
0 users

See Also:
i915 platform:
i915 features:


Description Dq8CokMHloQZw 2019-09-14 18:33:27 UTC
I'm trying to compile latest xf86-video-ati git aka
commit c7ed12cb2ea76999351d7cb87877224bdc0664f0 (HEAD -> makepkg, origin/master, origin/HEAD, master)
Date:   Thu Jul 18 18:14:48 2019 +0200

like this:

  export CFLAGS=${CFLAGS/-fno-plt}
  export CXXFLAGS=${CXXFLAGS/-fno-plt}
  export LDFLAGS=${LDFLAGS/,-z,now}


  ./configure --prefix=/usr \
      --enable-option-checking \
      --enable-debug \

I encounter this error:

  CC       radeon_kms.lo
  CC       radeon_present.lo
radeon_dri2.c: In function ‘radeon_dri2_exchange_buffers’:
radeon_dri2.c:732:19: warning: unused variable ‘info’ [-Wunused-variable]
  732 |     RADEONInfoPtr info = RADEONPTR(xf86ScreenToScrn(screen));
      |                   ^~~~
  CC       radeon_sync.lo
  CC       radeon_vbo.lo
  CC       drmmode_display.lo
  CC       radeon_bo_helper.lo
  CCLD     ati_drv.la
radeon_present.c: In function ‘radeon_present_check_flip’:
radeon_present.c:283:21: error: dereferencing pointer to incomplete type ‘struct radeon_pixmap’
  283 |     if (priv && priv->fb_failed)
      |                     ^~
make[2]: *** [Makefile:689: radeon_present.lo] Error 1
make[2]: *** Waiting for unfinished jobs....
make[2]: Leaving directory '/home/user/build/1packages/4used/xf86-video-ati-git/makepkg_pacman/xf86-video-ati/src/xf86-video-ati/src'
make[1]: *** [Makefile:461: all-recursive] Error 1
make[1]: Leaving directory '/home/user/build/1packages/4used/xf86-video-ati-git/makepkg_pacman/xf86-video-ati/src/xf86-video-ati'
make: *** [Makefile:393: all] Error 2

Note: it works with --enable-glamor but I hit other non-compilation issues like:
coredump/crash: https://bugs.freedesktop.org/show_bug.cgi?id=74096
white screen if xfwm4 vsync is not off: https://bugs.freedesktop.org/show_bug.cgi?id=111687
Comment 1 Martin Peres 2019-11-19 08:02:34 UTC
-- GitLab Migration Automatic Message --

This bug has been migrated to freedesktop.org's GitLab instance and has been closed from further activity.

You can subscribe and participate further through the new bug through this link to our GitLab instance: https://gitlab.freedesktop.org/xorg/driver/xf86-video-ati/issues/186.

Use of freedesktop.org services, including Bugzilla, is subject to our Code of Conduct. How we collect and use information is described in our Privacy Policy.