babl build failure in extensions/CIE.c
This is my first-ever attempt at building babl with meson on a local system. I have no idea what meson or ninja are doing or not doing in comparison to autotools.
I ran the following commands:
- in my source directory: meson <build_dir>
- in my build directory: ninja
The meson output looked similar to what I recall from autotools in regard to what is supported on this system.
$ meson ~/devel/build/babl/
The Meson build system
Version: 0.51.1
Source dir: /home/schumaml/devel/source/babl
Build dir: /home/schumaml/devel/build/babl
Build type: native build
Project name: babl
Project version: 0.1.71
C compiler for the build machine: cc (gcc 8.3.0 "cc (Debian 8.3.0-19) 8.3.0")
C compiler for the host machine: cc (gcc 8.3.0 "cc (Debian 8.3.0-19) 8.3.0")
Build machine cpu family: x86
Build machine cpu: i686
Message: Architecture: i686
Message: Host os: linux
Message: Build os: linux
Compiler for C supports arguments -Ofast: YES
Compiler for C supports arguments -Wdeclaration-after-statement: YES
Compiler for C supports arguments -Winit-self: YES
Compiler for C supports arguments -Wmissing-declarations: YES
Compiler for C supports arguments -Wmissing-prototypes: YES
Compiler for C supports arguments -Wold-style-definition: YES
Compiler for C supports arguments -Wpointer-arith: YES
Compiler for C supports arguments -mmmx: YES
Message: mmx assembly available
Compiler for C supports arguments -msse: YES
Message: sse assembly available
Compiler for C supports arguments -mfpmath=sse: YES
Compiler for C supports arguments -msse2: YES
Message: sse2 assembly available
Compiler for C supports arguments -msse4.1: YES
Message: sse4.1 assembly available
Compiler for C supports arguments -mavx2: YES
Message: avx2 assembly available
Compiler for C supports arguments -mf16c: YES
Message: Can compile half-floating point code (f16c)
Has header "dlfcn.h" : YES
Has header "dl.h" : NO
Checking for function "gettimeofday" : YES
Checking for function "rint" : NO
Checking for function "srandom" : YES
Found pkg-config: /usr/bin/pkg-config (0.29)
Run-time dependency lcms2 found: YES 2.9
Library m found: YES
Run-time dependency threads found: YES
Library dl found: YES
Program env found: YES (/usr/bin/env)
Program git found: YES (/usr/bin/git)
Program rsvg-convert found: NO
Program test found: YES (/usr/bin/test)
Program w3m found: YES (/usr/bin/w3m)
Configuring config.h using configuration
Program python3 found: YES (/usr/bin/python3)
Configuring babl-version.h using configuration
Program ninja found: YES (/usr/bin/ninja)
Program sh found: YES (/bin/sh)
Program tools/xml_insert.sh found: YES (/home/schumaml/devel/source/babl/docs/tools/xml_insert.sh)
Configuring index-static.html using configuration
Build targets in project: 77
Found ninja-1.9.0 at /usr/bin/ninja
ninja seems to work quite fast, but fails in extensions/CIE.c:
$ ninja
[1/158] Compiling C object 'extensions/20ef773@@CIE@sha/CIE.c.o'.
FAILED: extensions/20ef773@@CIE@sha/CIE.c.o
cc -Iextensions/20ef773@@CIE@sha -Iextensions -I../../source/babl/extensions -I. -I../../source/babl/ -Ibabl -I../../source/babl/babl -fdiagnostics-color=always -pipe -D_FILE_OFFSET_BITS=64 -Wall -Winvalid-pch -g -Ofast -Wdeclaration-after-statement -Winit-self -Wmissing-declarations -Wmissing-prototypes -Wold-style-definition -Wpointer-arith -mmmx -msse -mfpmath=sse -fPIC -pthread -MD -MQ 'extensions/20ef773@@CIE@sha/CIE.c.o' -MF 'extensions/20ef773@@CIE@sha/CIE.c.o.d' -o 'extensions/20ef773@@CIE@sha/CIE.c.o' -c ../../source/babl/extensions/CIE.c
In file included from ../../source/babl/extensions/CIE.c:28:
../../source/babl/extensions/CIE.c: In function ‘_cbrtf_ps_sse2’:
/usr/lib/gcc/i686-linux-gnu/8/include/emmintrin.h:1550:1: error: inlining failed in call to always_inline ‘_mm_castsi128_ps’: target specific option mismatch
_mm_castsi128_ps(__m128i __A)
^~~~~~~~~~~~~~~~
../../source/babl/extensions/CIE.c:2251:14: note: called from here
__m128 a = _mm_castsi128_ps (ai);
^~~~~~~~~~~~~~~~~~~~~
In file included from ../../source/babl/extensions/CIE.c:28:
/usr/lib/gcc/i686-linux-gnu/8/include/emmintrin.h:1028:1: error: inlining failed in call to always_inline ‘_mm_add_epi32’: target specific option mismatch
_mm_add_epi32 (__m128i __A, __m128i __B)
^~~~~~~~~~~~~
../../source/babl/extensions/CIE.c:2250:16: note: called from here
__m128i ai = _mm_add_epi32 (_mm_cvtps_epi32 (xi_3), magic);
^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
In file included from ../../source/babl/extensions/CIE.c:28:
/usr/lib/gcc/i686-linux-gnu/8/include/emmintrin.h:812:1: error: inlining failed in call to always_inline ‘_mm_cvtps_epi32’: target specific option mismatch
_mm_cvtps_epi32 (__m128 __A)
^~~~~~~~~~~~~~~
../../source/babl/extensions/CIE.c:2250:16: note: called from here
__m128i ai = _mm_add_epi32 (_mm_cvtps_epi32 (xi_3), magic);
^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
In file included from ../../source/babl/extensions/CIE.c:28:
/usr/lib/gcc/i686-linux-gnu/8/include/emmintrin.h:770:1: error: inlining failed in call to always_inline ‘_mm_cvtepi32_ps’: target specific option mismatch
_mm_cvtepi32_ps (__m128i __A)
^~~~~~~~~~~~~~~
../../source/babl/extensions/CIE.c:2249:17: note: called from here
__m128 xi_3 = _mm_div_ps (_mm_cvtepi32_ps (xi), _mm_set1_ps (3.0f));
^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
In file included from ../../source/babl/extensions/CIE.c:28:
/usr/lib/gcc/i686-linux-gnu/8/include/emmintrin.h:1544:1: error: inlining failed in call to always_inline ‘_mm_castps_si128’: target specific option mismatch
_mm_castps_si128(__m128 __A)
^~~~~~~~~~~~~~~~
../../source/babl/extensions/CIE.c:2248:16: note: called from here
__m128i xi = _mm_castps_si128 (x);
^~~~~~~~~~~~~~~~~~~~
In file included from ../../source/babl/extensions/CIE.c:28:
/usr/lib/gcc/i686-linux-gnu/8/include/emmintrin.h:642:1: error: inlining failed in call to always_inline ‘_mm_set1_epi32’: target specific option mismatch
_mm_set1_epi32 (int __A)
^~~~~~~~~~~~~~
../../source/babl/extensions/CIE.c:2246:25: note: called from here
const __m128i magic = _mm_set1_epi32 (709921077);
^~~~~~~~~~~~~~~~~~~~~~~~~~
In file included from ../../source/babl/extensions/CIE.c:28:
/usr/lib/gcc/i686-linux-gnu/8/include/emmintrin.h:770:1: error: inlining failed in call to always_inline ‘_mm_cvtepi32_ps’: target specific option mismatch
_mm_cvtepi32_ps (__m128i __A)
^~~~~~~~~~~~~~~
../../source/babl/extensions/CIE.c:2249:17: note: called from here
__m128 xi_3 = _mm_div_ps (_mm_cvtepi32_ps (xi), _mm_set1_ps (3.0f));
^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
In file included from ../../source/babl/extensions/CIE.c:28:
/usr/lib/gcc/i686-linux-gnu/8/include/emmintrin.h:1550:1: error: inlining failed in call to always_inline ‘_mm_castsi128_ps’: target specific option mismatch
_mm_castsi128_ps(__m128i __A)
^~~~~~~~~~~~~~~~
../../source/babl/extensions/CIE.c:2251:14: note: called from here
__m128 a = _mm_castsi128_ps (ai);
^~~~~~~~~~~~~~~~~~~~~
In file included from ../../source/babl/extensions/CIE.c:28:
/usr/lib/gcc/i686-linux-gnu/8/include/emmintrin.h:1028:1: error: inlining failed in call to always_inline ‘_mm_add_epi32’: target specific option mismatch
_mm_add_epi32 (__m128i __A, __m128i __B)
^~~~~~~~~~~~~
../../source/babl/extensions/CIE.c:2250:16: note: called from here
__m128i ai = _mm_add_epi32 (_mm_cvtps_epi32 (xi_3), magic);
^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
In file included from ../../source/babl/extensions/CIE.c:28:
/usr/lib/gcc/i686-linux-gnu/8/include/emmintrin.h:812:1: error: inlining failed in call to always_inline ‘_mm_cvtps_epi32’: target specific option mismatch
_mm_cvtps_epi32 (__m128 __A)
^~~~~~~~~~~~~~~
../../source/babl/extensions/CIE.c:2250:16: note: called from here
__m128i ai = _mm_add_epi32 (_mm_cvtps_epi32 (xi_3), magic);
^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
[3/158] Compiling C object 'extensions/20ef773@@gggl@sha/gggl.c.o'.
ninja: build stopped: subcommand failed.