Hi Pieter, On Sun, Nov 19, 2017 at 11:35:26PM +0100, PiBa-NL wrote: > Was using this: make clean build reinstall NO_CHECKSUM=yes WITH_DEBUG=yes > STRIP= > > So it would have debug symbols if problems would arise.. > The "WITH_DEBUG=yes" strips the -O2 away and makes it a -g and thus > 'changing' the way the compiler works.
OK, that makes sense. > Without this flags it indeed builds without issue. But any future gdb > session wouldn't have symbols.. I'll see how to deal with this specific case then (ie possibly by removing the test when building without optimization, since a lot of other errors are not caught either in this case). > Not sure if it still matters but for the record my cc -v output: > root@:/usr/ports/net/haproxy-devel # cc -v > FreeBSD clang version 4.0.0 (tags/RELEASE_400/final 297347) (based on LLVM > 4.0.0) > Target: x86_64-unknown-freebsd11.1 > Thread model: posix > InstalledDir: /usr/bin Thanks. I can reproduce the same issue with clang 3.8 so I'll be able to find a working solution. Willy

