Solved [Solved]libdrm didn't build if intel was not disabled

Hi, I have troubles to build libdrm with intel support on FreeBSD , I got this error messages:
Code:
Making all in intel
231 gmake[4] : on entre dans le répertoire « /usr/ports/graphics/libdrm/work/lib    drm-2.4.52/intel »
232   CC       intel_bufmgr.lo
233   CC       intel_bufmgr_fake.lo
234   CC       intel_bufmgr_gem.lo
235   CC       intel_decode.lo
236 intel_bufmgr_gem.c:463:29: error: subscript of pointer to incomplete type 's    truct drm_i915_gem_exec_object2'
237                         bufmgr_gem->exec2_objects[bo_gem->validate_index].fl    ags |=
238                         ~~~~~~~~~~~~~~~~~~~~~~~~~^
239 intel_bufmgr_gem.c:103:9: note: forward declaration of 'struct drm_i915_gem_    exec_object2'
And they have more than 20
Code:
42 intel_bufmgr_gem.c:103:9: note: forward declaration of 'struct drm_i915_gem_    exec_object2'
343         struct drm_i915_gem_exec_object2 *exec2_objects;
344                ^
345 fatal error: too many errors emitted, stopping now [-ferror-limit=]
I build with : WITH_NEW_XORG, WITH_KMS and WITH_GALLIUM
my /etc/make.conf
Code:
  1 SVN=/usr/local/bin/svn
  2 SVN_UPDATE=yes
  3 WITH_NEW_XORG=yes
  4 WITH_KMS=yes
  5 WITH_GALLIUM=yes
  6 WITH_PKNG=yes
  7 #for compiling kernel/FreeBSD
  8 #NO_PROFILE=true
You can see my build log of libdrm in attachment
Code:
uname -a
FreeBSD darkness 10.0-STABLE FreeBSD 10.0-STABLE #3 r267646: Thu Jun 19 21:51:48 CEST 2014     monwarez@darkness:/usr/obj/usr/src/sys/CUSTOM  amd64
 

Attachments

  • libdrm_build_log.txt
    19.4 KB · Views: 270
Re: libdrm didn't build if intel was not disabled [FreeBSD 1

I have followed theses instructions, but I still have the same problem. Maybe is a problem with intel support , when I disable intel support, libdrm can build , but I can't build x11-drivers/xf86-video-intel because
Code:
ld can't resolve -ldrm_intel

I have a laptop with Nvidia optimus, so I can't use directly the Nvidia card.
 
Re: libdrm didn't build if intel was not disabled [FreeBSD 1

I don't know what would cause that, because I have several 10-STABLE systems with the Intel driver. Just tried building it here, and it works.

The files where you get errors, decode.lo and mm.log, have no errors here. So it is likely something in your local configuration. The uname output shows that it is a recent kernel, but was a buildworld/installworld also done?
 
Re: libdrm didn't build if intel was not disabled [FreeBSD 1

Every times I build the kernel , I build world too with the following
Code:
make -j8 buildworld
make -j8 buildkernel KERNCONF=CUSTOM
make installkernel KERNCONF=CUSTOM KODIR=/boot/testing
nextboot -k testing
reboot 
# single mode
mount -u
mount -a -t ufs
swapon -a
adjkerntz -i
cd /usr/src
make installworld
Of course I save old kernel an replace it with testing.
And my kernel configuration was:
Code:
include GENERIC
ident CUSTOM

#disable debugging options
nooptions DDB
nooptions GDB
nooptions DEADLKRES
nooptions INVARIANTS
nooptions INVARIANT_SUPPORT
nooptions WITNESS
nooptions WITNESS_SKIPSPIN
nooptions MALLOC_DEBUG_MAXZONES

device apm
device drm
device i915drm

options GEOM_ELI
device crypto
Edit:
Ok , I build graphics/libdrm with a new installation of FreeBSD on a virtual machine and it's work, so I guess I have problem with my configuration.
Finally I decide to reinstall FreeBSD and now graphics/libdrm build.
Thanks a lot for your advice
 
Back
Top