Created attachment 189841 [details] src/scale.c (compressed, preprocessed) /bin/sh ../libtool --tag=CC --mode=compile cc -DHAVE_CONFIG_H -I. -I.. -I../include/ -O2 -pipe -fstack-protector -fno-strict-aliasing -Wall -Wextra -Wpedantic -Wformat=2 -Wsign-conversion -Wuninitialized -Wstrict-overflow -Wshadow -Wdouble-promotion -Wswitch-default -O2 -pipe -fstack-protector -fno-strict-aliasing -MT libsixel_la-scale.lo -MD -MP -MF .deps/libsixel_la-scale.Tpo -c -o libsixel_la-scale.lo `test -f 'scale.c' || echo './'`scale.c libtool: compile: cc -DHAVE_CONFIG_H -I. -I.. -I../include/ -O2 -pipe -fstack-protector -fno-strict-aliasing -Wall -Wextra -Wpedantic -Wformat=2 -Wsign-conversion -Wuninitialized -Wstrict-overflow -Wshadow -Wdouble-promotion -Wswitch-default -O2 -pipe -fstack-protector -fno-strict-aliasing -MT libsixel_la-scale.lo -MD -MP -MF .deps/libsixel_la-scale.Tpo -c scale.c -fPIC -DPIC -o .libs/libsixel_la-scale.o Bad flavor while matching min/max UNREACHABLE executed at /usr/local/poudriere/jails/head-amd64/usr/src/contrib/llvm/lib/Analysis/ValueTracking.cpp:4217! cc: error: unable to execute command: Abort trap (core dumped) cc: error: clang frontend command failed due to signal (use -v to see invocation) FreeBSD clang version 6.0.0 (branches/release_60 321788) (based on LLVM 6.0.0) Target: x86_64-unknown-freebsd12.0 Thread model: posix InstalledDir: /usr/bin http://beefy12.nyi.freebsd.org/data/head-amd64-default/p459147_s328035/logs/libsixel-1.7.2_1,1.log http://beefy11.nyi.freebsd.org/data/head-i386-default/p459147_s328035/logs/libsixel-1.7.2_1,1.log http://beefy8.nyi.freebsd.org/data/head-armv6-default/p459021_s327977/logs/libsixel-1.7.2_1,1.log
Created attachment 189842 [details] command line args (for clang 6.0)
This seems to be fallout of https://bugs.llvm.org/show_bug.cgi?id=35717, I'm investigating whether https://reviews.llvm.org/rL322016 helps.
A commit references this bug: Author: dim Date: Thu Jan 18 21:44:07 UTC 2018 New revision: 328145 URL: https://svnweb.freebsd.org/changeset/base/328145 Log: Pull in r322016 from upstream llvm trunk (by Sanjay Patel): [ValueTracking] remove overzealous assert The test is derived from a failing fuzz test: https://bugs.chromium.org/p/oss-fuzz/issues/detail?id=5008 Credit to @rksimon for pointing out the problem. This should fix "Bad flavor while matching min/max" errors when building the graphics/libsixel and science/kst2 ports. Reported by: jbeich PR: 225268, 225269 Changes: head/contrib/llvm/lib/Analysis/ValueTracking.cpp
I confirm, builds fine now. http://beefy12.nyi.freebsd.org/data/head-amd64-default/p459491_s328183/logs/libsixel-1.7.2_1,1.log http://beefy11.nyi.freebsd.org/data/head-i386-default/p459491_s328183/logs/libsixel-1.7.2_1,1.log