[HEADS-UP] Problem with clang in 9-stable [was: r268244 (stable/9) seems to break "sysctl hw.ncpu"]
Hans Petter Selasky
hps at selasky.org
Fri Jul 4 18:09:09 UTC 2014
Hi,
Can you try to reproduce this:
Checkout 9-stable's src/sbin/sysctl only.
cd /usr/9-stable/src/sbin/sysctl
env CC=clang make clean all
./sysctl -n hw.ncpu
Then:
env CC=gcc make clean all
./sysctl -n hw.ncpu
clang --version
FreeBSD clang version 3.2 (tags/RELEASE_32/final 170710) 20121221
Target: x86_64-unknown-freebsd9.1
Thread model: posix
gcc --version
gcc (GCC) 4.2.1 20070831 patched [FreeBSD]
Copyright (C) 2007 Free Software Foundation, Inc.
....
When compiling the code with clang, no output is happening. When
compiling with gcc, the FreeBSD 9-stable sysctl operates correctly. How
do we proceed?
Can more people check this and reproduce?
When compiling the -10 and -11 version of sysctl with clang and gcc,
everything is fine!
Thank you!
--HPS
More information about the freebsd-stable
mailing list