any1 / neatvnc

A liberally licensed VNC server library with a clean interface
ISC License
119 stars 29 forks source link

aarch64 fails: unrecognized command line option '-mfpu=neon' #7

Closed colemickens closed 4 years ago

colemickens commented 4 years ago

Hi. I package this in https://github.com/colemickens/nixpkgs-wayland

This fails to build on an aarch64 machine (specifically a Packet.com c2.large.arm machine).

$ nix-build build.nix -A neatvnc

these derivations will be built:
  /nix/store/z5zx9babnnhgy284nnpdfh4qdjn4ah7y-neatvnc-ad0ff6b27c2cec987c94d9ae870604bc36fb7b10.drv
building '/nix/store/z5zx9babnnhgy284nnpdfh4qdjn4ah7y-neatvnc-ad0ff6b27c2cec987c94d9ae870604bc36fb7b10.drv'...
unpacking sources
unpacking source archive /nix/store/sm0pwpqr4ryyn35dy9ls51h9dsgzx0xz-source
source root is source
patching sources
updateAutotoolsGnuConfigScriptsPhase
configuring
meson flags: --buildtype=plain         --libdir=/nix/store/09h11n8h86b5nq2f6fbndccx7f2p9lzl-neatvnc-ad0ff6b27c2cec987c94d9ae870604bc36fb7b10/lib --libexecdir=/nix/store/09h11n8h86b5nq2f6fbndccx7f2p9lzl-neatvnc-ad0ff6b27c2cec987c94d9ae870604bc36fb7b10/libexec         --bindir=/nix/store/09h11n8h86b5nq2f6fbndccx7f2p9lzl-neatvnc-ad0ff6b27c2cec987c94d9ae870604bc36fb7b10/bin --sbindir=/nix/store/09h11n8h86b5nq2f6fbndccx7f2p9lzl-neatvnc-ad0ff6b27c2cec987c94d9ae870604bc36fb7b10/sbin         --includedir=/nix/store/09h11n8h86b5nq2f6fbndccx7f2p9lzl-neatvnc-ad0ff6b27c2cec987c94d9ae870604bc36fb7b10/include         --mandir=/nix/store/09h11n8h86b5nq2f6fbndccx7f2p9lzl-neatvnc-ad0ff6b27c2cec987c94d9ae870604bc36fb7b10/share/man --infodir=/nix/store/09h11n8h86b5nq2f6fbndccx7f2p9lzl-neatvnc-ad0ff6b27c2cec987c94d9ae870604bc36fb7b10/share/info         --localedir=/nix/store/09h11n8h86b5nq2f6fbndccx7f2p9lzl-neatvnc-ad0ff6b27c2cec987c94d9ae870604bc36fb7b10/share/locale         -Dauto_features=enabled         -Dwrap_mode=nodownload         --prefix=/nix/store/09h11n8h86b5nq2f6fbndccx7f2p9lzl-neatvnc-ad0ff6b27c2cec987c94d9ae870604bc36fb7b10  
The Meson build system
Version: 0.52.1
Source dir: /build/source
Build dir: /build/source/build
Build type: native build
Project name: neatvnc
Project version: 0.0.0
C compiler for the host machine: /nix/store/np5k8v2cgia67485c4b1hh7j1q5v3rk2-gcc-wrapper-9.2.0/bin/cc (gcc 9.2.0 "gcc (GCC) 9.2.0")
C linker for the host machine: GNU ld.bfd 2.31.1
Host machine cpu family: aarch64
Host machine cpu: aarch64
Library m found: YES
Found pkg-config: /nix/store/9b6949br8zh7rdvwga934g80f72yylwi-pkg-config-0.29.2/bin/pkg-config (0.29.2)
Run-time dependency pixman-1 found: YES 0.38.4
Run-time dependency libuv found: YES 1.34.0
Dependency libturbojpeg skipped: feature tight-encoding disabled
Configuring config.h using configuration
Build targets in project: 1
Found ninja-1.9.0 at /nix/store/mp9mh7z8c7k0v3216s9bfjvg5sm3xdiy-ninja-1.9.0/bin/ninja
building
build flags: -j32 -l32
[1/10] Compiling C object 'neatvnc@sha/src_util.c.o'.iz.c.o'.
FAILED: neatvnc@sha/src_util.c.o 
/nix/store/np5k8v2cgia67485c4b1hh7j1q5v3rk2-gcc-wrapper-9.2.0/bin/cc -Ineatvnc@sha -I. -I.. -I../include -I../contrib/miniz -I/nix/store/42cdi793riwrgrm0jwblpnf16zmhlkfa-pixman-0.38.4/include/pixman-1 -I/nix/store/3w5pjqs2609np41qf722vfrp9cfc00xc-libuv-1.34.0/include -fdiagnostics-color=always -pipe -D_FILE_OFFSET_BITS=64 -std=gnu11 -D_GNU_SOURCE -fvisibility=hidden -mfpu=neon -fPIC -MD -MQ 'neatvnc@sha/src_util.c.o' -MF 'neatvnc@sha/src_util.c.o.d' -o 'neatvnc@sha/src_util.c.o' -c ../src/util.c
gcc: error: unrecognized command line option '-mfpu=neon'
[2/10] Compiling C object 'neatvnc@sha/src_vec.c.o'.
FAILED: neatvnc@sha/src_vec.c.o 
/nix/store/np5k8v2cgia67485c4b1hh7j1q5v3rk2-gcc-wrapper-9.2.0/bin/cc -Ineatvnc@sha -I. -I.. -I../include -I../contrib/miniz -I/nix/store/42cdi793riwrgrm0jwblpnf16zmhlkfa-pixman-0.38.4/include/pixman-1 -I/nix/store/3w5pjqs2609np41qf722vfrp9cfc00xc-libuv-1.34.0/include -fdiagnostics-color=always -pipe -D_FILE_OFFSET_BITS=64 -std=gnu11 -D_GNU_SOURCE -fvisibility=hidden -mfpu=neon -fPIC -MD -MQ 'neatvnc@sha/src_vec.c.o' -MF 'neatvnc@sha/src_vec.c.o.d' -o 'neatvnc@sha/src_vec.c.o' -c ../src/vec.c
gcc: error: unrecognized command line option '-mfpu=neon'
[3/10] Compiling C object 'neatvnc@sha/src_server.c.o'.
FAILED: neatvnc@sha/src_server.c.o 
/nix/store/np5k8v2cgia67485c4b1hh7j1q5v3rk2-gcc-wrapper-9.2.0/bin/cc -Ineatvnc@sha -I. -I.. -I../include -I../contrib/miniz -I/nix/store/42cdi793riwrgrm0jwblpnf16zmhlkfa-pixman-0.38.4/include/pixman-1 -I/nix/store/3w5pjqs2609np41qf722vfrp9cfc00xc-libuv-1.34.0/include -fdiagnostics-color=always -pipe -D_FILE_OFFSET_BITS=64 -std=gnu11 -D_GNU_SOURCE -fvisibility=hidden -mfpu=neon -fPIC -MD -MQ 'neatvnc@sha/src_server.c.o' -MF 'neatvnc@sha/src_server.c.o.d' -o 'neatvnc@sha/src_server.c.o' -c ../src/server.c
gcc: error: unrecognized command line option '-mfpu=neon'
[4/10] Compiling C object 'neatvnc@sha/src_raw-encoding.c.o'.
FAILED: neatvnc@sha/src_raw-encoding.c.o 
/nix/store/np5k8v2cgia67485c4b1hh7j1q5v3rk2-gcc-wrapper-9.2.0/bin/cc -Ineatvnc@sha -I. -I.. -I../include -I../contrib/miniz -I/nix/store/42cdi793riwrgrm0jwblpnf16zmhlkfa-pixman-0.38.4/include/pixman-1 -I/nix/store/3w5pjqs2609np41qf722vfrp9cfc00xc-libuv-1.34.0/include -fdiagnostics-color=always -pipe -D_FILE_OFFSET_BITS=64 -std=gnu11 -D_GNU_SOURCE -fvisibility=hidden -mfpu=neon -fPIC -MD -MQ 'neatvnc@sha/src_raw-encoding.c.o' -MF 'neatvnc@sha/src_raw-encoding.c.o.d' -o 'neatvnc@sha/src_raw-encoding.c.o' -c ../src/raw-encoding.c
gcc: error: unrecognized command line option '-mfpu=neon'
[5/10] Compiling C object 'neatvnc@sha/src_zrle.c.o'.
FAILED: neatvnc@sha/src_zrle.c.o 
/nix/store/np5k8v2cgia67485c4b1hh7j1q5v3rk2-gcc-wrapper-9.2.0/bin/cc -Ineatvnc@sha -I. -I.. -I../include -I../contrib/miniz -I/nix/store/42cdi793riwrgrm0jwblpnf16zmhlkfa-pixman-0.38.4/include/pixman-1 -I/nix/store/3w5pjqs2609np41qf722vfrp9cfc00xc-libuv-1.34.0/include -fdiagnostics-color=always -pipe -D_FILE_OFFSET_BITS=64 -std=gnu11 -D_GNU_SOURCE -fvisibility=hidden -mfpu=neon -fPIC -MD -MQ 'neatvnc@sha/src_zrle.c.o' -MF 'neatvnc@sha/src_zrle.c.o.d' -o 'neatvnc@sha/src_zrle.c.o' -c ../src/zrle.c
gcc: error: unrecognized command line option '-mfpu=neon'
[6/10] Compiling C object 'neatvnc@sha/src_pixels.c.o'.
FAILED: neatvnc@sha/src_pixels.c.o 
/nix/store/np5k8v2cgia67485c4b1hh7j1q5v3rk2-gcc-wrapper-9.2.0/bin/cc -Ineatvnc@sha -I. -I.. -I../include -I../contrib/miniz -I/nix/store/42cdi793riwrgrm0jwblpnf16zmhlkfa-pixman-0.38.4/include/pixman-1 -I/nix/store/3w5pjqs2609np41qf722vfrp9cfc00xc-libuv-1.34.0/include -fdiagnostics-color=always -pipe -D_FILE_OFFSET_BITS=64 -std=gnu11 -D_GNU_SOURCE -fvisibility=hidden -mfpu=neon -fPIC -MD -MQ 'neatvnc@sha/src_pixels.c.o' -MF 'neatvnc@sha/src_pixels.c.o.d' -o 'neatvnc@sha/src_pixels.c.o' -c ../src/pixels.c
gcc: error: unrecognized command line option '-mfpu=neon'
[7/10] Compiling C object 'neatvnc@sha/src_damage.c.o'.
FAILED: neatvnc@sha/src_damage.c.o 
/nix/store/np5k8v2cgia67485c4b1hh7j1q5v3rk2-gcc-wrapper-9.2.0/bin/cc -Ineatvnc@sha -I. -I.. -I../include -I../contrib/miniz -I/nix/store/42cdi793riwrgrm0jwblpnf16zmhlkfa-pixman-0.38.4/include/pixman-1 -I/nix/store/3w5pjqs2609np41qf722vfrp9cfc00xc-libuv-1.34.0/include -fdiagnostics-color=always -pipe -D_FILE_OFFSET_BITS=64 -std=gnu11 -D_GNU_SOURCE -fvisibility=hidden -mfpu=neon -fPIC -MD -MQ 'neatvnc@sha/src_damage.c.o' -MF 'neatvnc@sha/src_damage.c.o.d' -o 'neatvnc@sha/src_damage.c.o' -c ../src/damage.c
gcc: error: unrecognized command line option '-mfpu=neon'
[8/10] Compiling C object 'neatvnc@sha/contrib_miniz_miniz.c.o'.
FAILED: neatvnc@sha/contrib_miniz_miniz.c.o 
/nix/store/np5k8v2cgia67485c4b1hh7j1q5v3rk2-gcc-wrapper-9.2.0/bin/cc -Ineatvnc@sha -I. -I.. -I../include -I../contrib/miniz -I/nix/store/42cdi793riwrgrm0jwblpnf16zmhlkfa-pixman-0.38.4/include/pixman-1 -I/nix/store/3w5pjqs2609np41qf722vfrp9cfc00xc-libuv-1.34.0/include -fdiagnostics-color=always -pipe -D_FILE_OFFSET_BITS=64 -std=gnu11 -D_GNU_SOURCE -fvisibility=hidden -mfpu=neon -fPIC -MD -MQ 'neatvnc@sha/contrib_miniz_miniz.c.o' -MF 'neatvnc@sha/contrib_miniz_miniz.c.o.d' -o 'neatvnc@sha/contrib_miniz_miniz.c.o' -c ../contrib/miniz/miniz.c
gcc: error: unrecognized command line option '-mfpu=neon'
[9/10] Compiling C object 'neatvnc@sha/src_fb.c.o'.
FAILED: neatvnc@sha/src_fb.c.o 
/nix/store/np5k8v2cgia67485c4b1hh7j1q5v3rk2-gcc-wrapper-9.2.0/bin/cc -Ineatvnc@sha -I. -I.. -I../include -I../contrib/miniz -I/nix/store/42cdi793riwrgrm0jwblpnf16zmhlkfa-pixman-0.38.4/include/pixman-1 -I/nix/store/3w5pjqs2609np41qf722vfrp9cfc00xc-libuv-1.34.0/include -fdiagnostics-color=always -pipe -D_FILE_OFFSET_BITS=64 -std=gnu11 -D_GNU_SOURCE -fvisibility=hidden -mfpu=neon -fPIC -MD -MQ 'neatvnc@sha/src_fb.c.o' -MF 'neatvnc@sha/src_fb.c.o.d' -o 'neatvnc@sha/src_fb.c.o' -c ../src/fb.c
gcc: error: unrecognized command line option '-mfpu=neon'
ninja: build stopped: subcommand failed.
builder for '/nix/store/z5zx9babnnhgy284nnpdfh4qdjn4ah7y-neatvnc-ad0ff6b27c2cec987c94d9ae870604bc36fb7b10.drv' failed with exit code 1
error: build of '/nix/store/z5zx9babnnhgy284nnpdfh4qdjn4ah7y-neatvnc-ad0ff6b27c2cec987c94d9ae870604bc36fb7b10.drv' failed

It seems it doesn't like what you've done in the meson.build in the aarch64 case. I might just patch it out for now to get wayvnc available.

any1 commented 4 years ago

Apparently, neon is mandatory on aarch64, so the flag does not exist for it. I'll just take it out.