Summary: | loader.c:71:19: fatal error: dlfcn.h: No such file or directory | ||
---|---|---|---|
Product: | Mesa | Reporter: | Vinson Lee <vlee> |
Component: | Other | Assignee: | mesa-dev |
Status: | RESOLVED FIXED | QA Contact: | |
Severity: | blocker | ||
Priority: | medium | CC: | alexandre.f.demers, brianp, emil.l.velikov, eric, keithp, mike |
Version: | git | Keywords: | regression |
Hardware: | x86-64 (AMD64) | ||
OS: | Linux (All) | ||
Whiteboard: | |||
i915 platform: | i915 features: | ||
Attachments: | loader: include dlfcn.h when building with HAVE_LIBUDEV |
Description
Vinson Lee
2014-01-27 18:36:38 UTC
Why is DRI code being built for a windows target? Sounds like scons's windows build is wrong. > Why is DRI code being built for a windows target? Sounds like scons's windows build is wrong. Yes, it appears that there is no point to build loader for windows. However egl-static was supposed to buil on Windows and it is now hardcoded to depend on loader: Linking build/windows-x86-debug/gallium/targets/egl-static/libEGL.dll ... build/windows-x86-debug/gallium/targets/egl-static/egl.o: In function `create_drm_screen': /home/jfonseca/projects/opengl/mesa/src/gallium/targets/egl-static/egl.c:64: undefined reference to `_loader_get_driver_for_fd' build/windows-x86-debug/gallium/targets/egl-static/egl.o: In function `loader_init': /home/jfonseca/projects/opengl/mesa/src/gallium/targets/egl-static/egl.c:99: undefined reference to `_loader_set_logger' collect2: ld returned 1 exit status scons: *** [build/windows-x86-debug/gallium/targets/egl-static/libEGL.dll] Error 1 Not sure what to do here. I suspect I'll have to revert http://cgit.freedesktop.org/mesa/mesa/commit/?id=a9800242244098fddcd2b963d8f5ccda5dea8290 and a few more until the cross-platform portability of loader is addressed. Emil, if you could into this it would be appreciated. To repro all you need is cross-mingw compilers installed, and do scons platform=windows toolchain=crossmingw Created attachment 92914 [details] [review] loader: include dlfcn.h when building with HAVE_LIBUDEV (In reply to comment #1) > Why is DRI code being built for a windows target? Sounds like scons's > windows build is wrong. I don't think DRI is betting build here, I'm assuming egl-static is causing the problem. (In reply to comment #2) > I suspect I'll have to revert > http://cgit.freedesktop.org/mesa/mesa/commit/ > ?id=a9800242244098fddcd2b963d8f5ccda5dea8290 and a few more until the > cross-platform portability of loader is addressed. > > Emil, if you could into this it would be appreciated. To repro all you need > is cross-mingw compilers installed, and do > > scons platform=windows toolchain=crossmingw I do not have the cross compilation chain although the fix seems trivial. Wrap the headers in HAVE_LIBUDEV, similar to the code that depends on them. (In reply to comment #3) > I do not have the cross compilation chain although the fix seems trivial. > Wrap the headers in HAVE_LIBUDEV, similar to the code that depends on them. Thanks. Pushed. |
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.