grate-driver / xf86-video-opentegra

X.Org video driver for NVIDIA Tegra
Other
12 stars 9 forks source link

(guess) musl incompatibility #61

Closed okias closed 3 years ago

okias commented 3 years ago
make[3]: Entering directory '/home/pmos/build/src/xf86-video-opentegra-038906aeb104e50fa111d88a9d5def627d1dbca3/src'
  CC       opentegra_drv_la-common_helpers.lo
  CC       opentegra_drv_la-dri2.lo
  CC       opentegra_drv_la-driver.lo
  CC       opentegra_drv_la-drmmode_display.lo
  CC       opentegra_drv_la-vblank.lo
  CC       opentegra_drv_la-drm_plane.lo
  CC       opentegra_drv_la-xv.lo
  CC       exa/opentegra_drv_la-exa.lo
  CC       gpu/opentegra_drv_la-gr3d.lo
In file included from gpu/gr3d.h:30,
                 from gpu/gr3d.c:24:
./tegradrm/opentegra_lib.h:91:56: error: unknown type name 'time_t'; did you mean 'size_t'?
   91 | void drm_tegra_bo_cache_cleanup(struct drm_tegra *drm, time_t time);
      |                                                        ^~~~~~
      |                                                        size_t
make[3]: *** [Makefile:817: gpu/opentegra_drv_la-gr3d.lo] Error 1
make[3]: *** Waiting for unfinished jobs....
In file included from exa/tegra_exa.c:37,
                 from exa/exa.c:24:
exa/mm_fridge.c: In function 'tegra_exa_mm_compress_pixmap':
exa/mm_fridge.c:277:19: warning: unused variable 'compressed_bound' [-Wunused-variable]
  277 |     unsigned long compressed_bound;
      |                   ^~~~~~~~~~~~~~~~
exa/mm_fridge.c: In function 'tegra_exa_mm_decompress_pixmap':
exa/mm_fridge.c:432:23: warning: unused variable 'exa' [-Wunused-variable]
  432 |     struct tegra_exa *exa = tegra->exa;
      |                       ^~~
In file included from exa/tegra_exa.c:41,
                 from exa/exa.c:24:
exa/pixmap.c: In function 'tegra_exa_destroy_freelist_pixmap':
exa/pixmap.c:81:10: warning: variable 'released_data' set but not used [-Wunused-but-set-variable]
   81 |     bool released_data;
      |          ^~~~~~~~~~~~~
make[3]: Leaving directory '/home/pmos/build/src/xf86-video-opentegra-038906aeb104e50fa111d88a9d5def627d1dbca3/src'
make[2]: *** [Makefile:522: all] Error 2
make[2]: Leaving directory '/home/pmos/build/src/xf86-video-opentegra-038906aeb104e50fa111d88a9d5def627d1dbca3/src'
make[1]: *** [Makefile:520: all-recursive] Error 1
make[1]: Leaving directory '/home/pmos/build/src/xf86-video-opentegra-038906aeb104e50fa111d88a9d5def627d1dbca3'
make: *** [Makefile:431: all] Error 2

whole CI log: https://gitlab.com/alpine-mobile/pmaports/-/jobs/1163164694 (fails on both armhf & armv7)

okias commented 3 years ago

Probably missing

#include <time.h>

musl is picky about missing includes, while glibc just complains or include it somewhere anyway.

KaiJan57 commented 3 years ago

I encountered the same errors. The next one to fix is bsd-compat-headers missing in APKBUILD