Page MenuHomePhabricator

EFL Master failing to build
Closed, ResolvedPublic

Description

Hi

I am building EFL with

./autogen.sh --prefix=$INSTALLDIR --libdir=$INSTALLDIR/lib/$(dpkg-architecture -qDEB_HOST_MULTIARCH) --enable-wayland --enable-egl --with-opengl=es --enable-fb --enable-drm --disable-tslib --enable-drm-hw-accel --enable-systemd --enable-gl-drm --enable-elput

My configure output is

------------------------------------------------------------------------
efl 1.20.99.58485
------------------------------------------------------------------------

Configuration...: profile=dev os=linux-gnu
  EFL API Set...: both
  CPU Extensions: i686 (+mmx +sse3)
  System Feature: coroutine=ucontext +inotify +atfile_source +ipv6
  Threads.......: POSIX (+spinlocks +barrier +affinity +setname +__thread)
  Cryptography..: openssl
  X11...........: xlib
  OpenGL........: es (EGL)
  C++11.........: yes
  C#............: no
  JavaScript....: none
  JavaScript flg: 
Eina............: yes (+systemd-journal unwind=yes)
Eo..............: yes (eo-id=)
Eolian..........: yes (+cxx)
Emile...........: yes (crypto=openssl)
Eet.............: yes
Evas............: yes (-lua-old +fontconfig +fribidi -harfbuzz +cserve -tile-rotate dither-mask=big -hyphen)
  Engines.......: buffer=static +fb -gl-cocoa -gl-sdl -software-gdi -software-ddraw +wayland-egl +wayland-shm +drm +gl-drm -eglfs +software-xlib +gl-xlib
  Vg Loaders    : svg=static eet=static
  Image Loaders.: bmp=static eet=static generic=static +gif ico=static jpeg=static -jp2k pmaps=static png=static psd=static tga=static +tiff wbmp=static -webp xpm=static tgv=static dds=static +poppler +spectre +raw +rsvg +xcf
Ecore...........: yes (+systemd-daemon +glib -g-main-loop -libuv)
Ecore_Con.......: yes (+local-sockets +abstract-sockets +systemd-daemon net-control=connman)
Ecore_File......: yes
Ecore_IMF.......: yes (+ibus -scim +xim +wayland)
Ecore_X.........: xlib (-xpresent -gesture +xinput2 -xinput22)
Ecore_SDL.......: no
Ecore_Drm.......: no
Ecore_Drm2......: yes
Ecore_Wayland...: no
Ecore_Wl2.......: yes
IVI-Shell.......: no
Ecore_Buffer....: no ()
Ecore_FB........: yes (-tslib)
Ecore_Audio.....: yes (-alsa +pulseaudio +sndfile -wasapiaudio)
Ecore_Avahi.....: yes (+avahi-client)
Ecore_Evas......: yes (+extn +ews +fb +drm +gl-drm -opengl-cocoa -software-sdl -opengl-sdl +wayland-shm +wayland-egl -software-gdi -software-ddraw +software-x11 +opengl-x11 -vnc_server)
Elput...........: yes (+systemd-logind)
Ector...........: yes
Eeze............: yes (+libmount -tizen)
EPhysics........: yes
Edje............: yes (+physics +multisense -lua-old)
Emotion.........: yes (+v4l2 -xine -gstreamer +gstreamer1 -libvlc generic=static -generic_vlc)
Ethumb..........: yes
Ethumb_Client...: yes
Elua............: yes
Elementary......: yes (+X +FB -SDL -Cocoa -Win32 +Wl2 +DRM +quicklaunch)


Tests...........: make check (inexplicitly enabled)
Examples........: make examples (make install-examples)
Documentation...: make doc
Compilation.....: make (or gmake)
  CPPFLAGS......: 
  CFLAGS........: -Os -fpie
  CXXFLAGS......: -Os -fPIC -DPIC
  LDFLAGS.......:  -fPIC -DPIC -pie -rdynamic
  EFLJS_CXXFLAGS: 
  
Installation....: make install (as root if needed, with 'su' or 'sudo')
  prefix........: /opt
  dbus units....: ${datarootdir}/dbus-1/services
  systemd units.: /usr/lib/systemd/user

and the error I am getting is

  CC       lib/ecore_wl2/lib_ecore_wl2_libecore_wl2_la-ecore_wl2_subsurf.lo
  CC       lib/ecore_wl2/lib_ecore_wl2_libecore_wl2_la-ecore_wl2_dnd.lo
  CC       lib/ecore_wl2/lib_ecore_wl2_libecore_wl2_la-ecore_wl2_window.lo
  CC       lib/ecore_wl2/lib_ecore_wl2_libecore_wl2_la-ecore_wl2_input.lo
modules/ecore_evas/engines/wayland/ecore_evas_wayland_common.c: In function ‘_ecore_evas_wl_common_cb_window_configure’:
modules/ecore_evas/engines/wayland/ecore_evas_wayland_common.c:568:43: warning: variable ‘state_change’ set but not used [-Wunused-but-set-variable]
    Eina_Bool active, prev_max, prev_full, state_change = EINA_FALSE;
                                           ^~~~~~~~~~~~
modules/ecore_evas/engines/wayland/ecore_evas_wayland_common.c:566:37: warning: variable ‘pfh’ set but not used [-Wunused-but-set-variable]
    int nw = 0, nh = 0, fw, fh, pfw, pfh, sw, sh, contentw, contenth;
                                     ^~~
modules/ecore_evas/engines/wayland/ecore_evas_wayland_common.c:566:32: warning: variable ‘pfw’ set but not used [-Wunused-but-set-variable]
    int nw = 0, nh = 0, fw, fh, pfw, pfh, sw, sh, contentw, contenth;
                                ^~~
  CC       lib/ecore_wl2/lib_ecore_wl2_libecore_wl2_la-ecore_wl2_output.lo
  CC       lib/ecore_wl2/lib_ecore_wl2_libecore_wl2_la-ecore_wl2_display.lo
  CC       lib/ecore_wl2/lib_ecore_wl2_libecore_wl2_la-ecore_wl2.lo
  CC       lib/ecore_wl2/lib_ecore_wl2_libecore_wl2_la-ecore_wl2_buffer.lo
  CC       lib/ecore_wl2/lib_ecore_wl2_libecore_wl2_la-ecore_wl2_surface.lo
  CC       lib/ecore_wl2/lib_ecore_wl2_libecore_wl2_la-efl-aux-hints-protocol.lo
  CC       modules/ecore_evas/engines/x/modules_ecore_evas_engines_x_module_la-ecore_evas_x.lo
  CC       lib/ecore_x/lib_ecore_x_libecore_x_la-ecore_x.lo
lib/ecore_wl2/ecore_wl2_buffer.c:20:27: fatal error: linux/dma-buf.h: No such file or directory
 #include <linux/dma-buf.h>
                           ^
compilation terminated.

I am not sure what commit caused this, but this started happening recently.
I have linux-libc-dev installed, which has /usr/include/linux/dma-buf.h

Herald closed this task as Invalid. · View Herald TranscriptApr 26 2018, 5:02 PM
Herald added a project: Restricted Project. · View Herald Transcript

The Enlightenment ticket system is currently receiving high amounts of spam tickets. This ticket has been closed as spam because it lacks both a project and an assignee. If this ticket is not spam, please reopen it after adding these items.

n3rdopolis reopened this task as Open.Apr 26 2018, 5:30 PM
n3rdopolis edited projects, added efl; removed Restricted Project.
raster added a subscriber: raster.Apr 26 2018, 9:46 PM

you're compiling for linux i assume because you have the wayland support enabled... and that header is provided by the kernel includes:

 1:44PM ~ ▶ pacman -Qo /usr/include/linux/dma-buf.h
/usr/include/linux/dma-buf.h is owned by linux-api-headers 4.14.8-1

so... ok - maybe we should check and error at configure time, but this header SHOULD be coming from your kernel supplied api headers.

hang on, that is odd, I did not realize the file is not there on my chroot

apt-file search /usr/include/linux/dma-buf.h
linux-libc-dev: /usr/include/linux/dma-buf.h
ls -l /usr/include/linux/dma-buf.h
ls: cannot access '/usr/include/linux/dma-buf.h': No such file or directory

...Let me add debian-backports...

Yeah, Never mind I think It's a Debian issue

bu5hm4n closed this task as Resolved.Jun 10 2018, 12:14 PM
bu5hm4n claimed this task.
bu5hm4n added a subscriber: bu5hm4n.

Reopen if things are coming back