Skip to content

Instantly share code, notes, and snippets.

@AkechiShiro
Created January 19, 2021 01:06
Show Gist options
  • Save AkechiShiro/8b2c2eaf2f3da5a735b4cfa2c977e635 to your computer and use it in GitHub Desktop.
Save AkechiShiro/8b2c2eaf2f3da5a735b4cfa2c977e635 to your computer and use it in GitHub Desktop.
Wayfire 0.6.0 build fails on Archlinux

Log

aura >>= Building wayfire...
==> Making package: wayfire 0.6.0-1 (mar. 19 janv. 2021 02:01:38)
==> Checking runtime dependencies...
==> Checking buildtime dependencies...
==> Retrieving sources...
  -> Downloading wayfire-0.6.0.tar.xz...
  % Total    % Received % Xferd  Average Speed   Time    Time     Time  Current
                                 Dload  Upload   Total   Spent    Left  Speed
100   644  100   644    0     0   1861      0 --:--:-- --:--:-- --:--:--  1861
100  684k  100  684k    0     0   585k      0  0:00:01  0:00:01 --:--:-- 1661k
==> Validating source files with sha256sums...
    wayfire-0.6.0.tar.xz ... Passed
==> Extracting sources...
  -> Extracting wayfire-0.6.0.tar.xz with bsdtar
==> Starting build()...
+ exec meson setup --prefix /usr --libexecdir lib --sbindir bin --buildtype plain --auto-features enabled --wrap-mode nodownload -D b_lto=true -D b_pie=true wayfire-0.6.0 build
The Meson build system
Version: 0.56.2
Source dir: /tmp/wayfire-4818373818371141845/wayfire/src/wayfire-0.6.0
Build dir: /tmp/wayfire-4818373818371141845/wayfire/src/build
Build type: native build
Project name: wayfire
Project version: 0.6.0
Using 'CFLAGS' from environment with value: '-march=native -O2 -pipe -fno-plt -fcommon'
Using 'LDFLAGS' from environment with value: '-Wl,-O1,--sort-common,--as-needed,-z,relro,-z,now'
Using 'CPPFLAGS' from environment with value: '-D_FORTIFY_SOURCE=2'
C compiler for the host machine: cc (gcc 10.2.0 "cc (GCC) 10.2.0")
C linker for the host machine: cc ld.bfd 2.35.1
Using 'CXXFLAGS' from environment with value: '-march=native -O2 -pipe -fno-plt'
Using 'LDFLAGS' from environment with value: '-Wl,-O1,--sort-common,--as-needed,-z,relro,-z,now'
Using 'CPPFLAGS' from environment with value: '-D_FORTIFY_SOURCE=2'
C++ compiler for the host machine: c++ (gcc 10.2.0 "c++ (GCC) 10.2.0")
C++ linker for the host machine: c++ ld.bfd 2.35.1
Using 'CFLAGS' from environment with value: '-march=native -O2 -pipe -fno-plt -fcommon'
Using 'LDFLAGS' from environment with value: '-Wl,-O1,--sort-common,--as-needed,-z,relro,-z,now'
Using 'CPPFLAGS' from environment with value: '-D_FORTIFY_SOURCE=2'
Using 'CXXFLAGS' from environment with value: '-march=native -O2 -pipe -fno-plt'
Using 'LDFLAGS' from environment with value: '-Wl,-O1,--sort-common,--as-needed,-z,relro,-z,now'
Using 'CPPFLAGS' from environment with value: '-D_FORTIFY_SOURCE=2'
Host machine cpu family: x86_64
Host machine cpu: x86_64
Found pkg-config: /bin/pkg-config (1.7.3)
Run-time dependency wayland-server found: YES 1.18.0
Run-time dependency wayland-client found: YES 1.18.0
Run-time dependency wayland-cursor found: YES 1.18.0
Run-time dependency wayland-protocols found: YES 1.20
Run-time dependency cairo found: YES 1.17.4
Run-time dependency libdrm found: YES 2.4.104
Run-time dependency egl found: YES 1.5
Run-time dependency glesv2 found: YES 3.2
Run-time dependency glm found: YES 0.9.9.8
Run-time dependency libinput found: YES 1.16.4
Run-time dependency pixman-1 found: YES 0.40.0
Run-time dependency threads found: YES
Run-time dependency xkbcommon found: YES 1.0.3
WARNING: Project targeting '>=0.50.0' but tried to use feature introduced in '0.53.0': Fallback without variable name.
Run-time dependency wlroots found: YES 0.12.0
Run-time dependency wf-config found: YES 0.6.0

|Executing subproject wf-utils method meson 
|
|Project name: wf-utils
|Project version: 0.4.0
|C++ compiler for the host machine: c++ (gcc 10.2.0 "c++ (GCC) 10.2.0")
|C++ linker for the host machine: c++ ld.bfd 2.35.1
|Program doxygen found: YES (/bin/doxygen)
|Configuring Doxyfile using configuration
|Build targets in project: 2
|Subproject wf-utils finished.


|Executing subproject wf-touch method meson 
|
|Project name: wf-touch
|Project version: 0.0
|C++ compiler for the host machine: c++ (gcc 10.2.0 "c++ (GCC) 10.2.0")
|C++ linker for the host machine: c++ ld.bfd 2.35.1
|Dependency glm found: YES 0.9.9.8 (cached)
|Build targets in project: 6
|Subproject wf-touch finished.

Found CMake: /bin/cmake (3.19.3)
Run-time dependency libinotify found: NO (tried pkgconfig and cmake)
Run-time dependency libjpeg found: YES 2.0.6
Run-time dependency libpng found: YES 1.6.37
Library execinfo found: NO
Program git found: YES (/bin/git)
Compiler for C++ supports link arguments -lc++fs: NO 
Compiler for C++ supports link arguments -lc++experimental: NO 
Compiler for C++ supports link arguments -lstdc++fs: YES 
Check usable header "GLES3/gl32.h" with dependency glesv2: YES 
Fetching value of define "WLR_HAS_XWAYLAND" with dependency wlroots: 1 
Fetching value of define "WLR_HAS_X11_BACKEND" with dependency wlroots: 1 
Run-time dependency xcb found: YES 1.14
Configuring config.h using configuration
Program wayland-scanner found: YES (/bin/wayland-scanner)
Program addr2line found: YES (/bin/addr2line)
Message: 
----------------
wayfire 0.6.0

system wfconfig: true
 system wlroots: true
       xwayland: true
    x11-backend: true
        imageio: true
         gles32: true
----------------

Build targets in project: 36
WARNING: Project specifies a minimum meson_version '>=0.50.0' but uses features which were added in newer versions:
 * 0.53.0: {'Fallback without variable name'}

wayfire 0.6.0

  Subprojects
    wf-touch: YES
    wf-utils: YES

Found ninja-1.10.2 at /bin/ninja
ninja: Entering directory `build'
[75/200] Compiling C++ object src/wayfire.p/main.cpp.o
FAILED: src/wayfire.p/main.cpp.o 
c++ -Isrc/wayfire.p -Isrc -I../wayfire-0.6.0/src -I. -I../wayfire-0.6.0 -I../wayfire-0.6.0/src/api -Isubprojects/wf-utils -I../wayfire-0.6.0/subprojects/wf-utils -Isubprojects/wf-touch -I../wayfire-0.6.0/subprojects/wf-touch -I/usr/include/libdrm -I/usr/include/pixman-1 -I/usr/include/uuid -I/usr/include/libevdev-1.0/ -I/usr/include/libxml2 -I/usr/include/libpng16 -flto -fdiagnostics-color=always -pipe -D_FILE_OFFSET_BITS=64 -Wall -Winvalid-pch -Wnon-virtual-dtor -Wextra -std=c++17 '-DWAYFIRE_VERSION="0.6.0-177fb87 (" __DATE__ ", branch '"'"'master'"'"')"' -DWLR_USE_UNSTABLE -Wno-unused-parameter -DWF_USE_CONFIG_H -march=native -O2 -fno-plt -D_FORTIFY_SOURCE=2 -fPIE -DHAS_ADDR2LINE=1 -MD -MQ src/wayfire.p/main.cpp.o -MF src/wayfire.p/main.cpp.o.d -o src/wayfire.p/main.cpp.o -c ../wayfire-0.6.0/src/main.cpp
../wayfire-0.6.0/src/main.cpp: In functionint main(int, char**)’:
../wayfire-0.6.0/src/main.cpp:336:80: error: too many arguments to functionwlr_backend* wlr_backend_autocreate(wl_display*)’
  336 |     core.backend  = wlr_backend_autocreate(core.display, add_egl_depth_renderer);
      |                                                                                ^
In file included from /usr/include/wlr/render/gles2.h:13,
                 from ../wayfire-0.6.0/src/api/wayfire/nonstd/wlroots-full.hpp:27,
                 from ../wayfire-0.6.0/src/core/core-impl.hpp:6,
                 from ../wayfire-0.6.0/src/main.cpp:18:
/usr/include/wlr/backend.h:35:21: note: declared here
   35 | struct wlr_backend *wlr_backend_autocreate(struct wl_display *display);
      |                     ^~~~~~~~~~~~~~~~~~~~~~
In file included from ../wayfire-0.6.0/src/main.cpp:11:
../wayfire-0.6.0/src/debug-func.hpp: In functionstd::string read_output(std::string)’:
../wayfire-0.6.0/src/debug-func.hpp:84:10: warning: ignoring return value ofchar* fgets(char*, int, FILE*)’ declared with attributewarn_unused_result’ [-Wunused-result]
   84 |     fgets(buffer, MAX_FUNCTION_NAME, file);
      |     ~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
../wayfire-0.6.0/src/main.cpp: In functionint handle_config_updated(int, uint32_t, void*)’:
../wayfire-0.6.0/src/main.cpp:41:9: warning: ignoring return value ofssize_t read(int, void*, size_t)’ declared with attributewarn_unused_result’ [-Wunused-result]
   41 |     read(fd, buf, INOT_BUF_SIZE);
      |     ~~~~^~~~~~~~~~~~~~~~~~~~~~~~
[84/200] Linking target subprojects/wf-touch/test/gesture_test
ninja: build stopped: subcommand failed.
==> ERROR: A failure occurred in build().
    Aborting...
aura >>= There was a makepkg failure.
aura >>= Would you like to continue anyway? [Y/n] n
aura >>= Building failed.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment