[HEADS-UP] Problem with clang in 9-stable [was: r268244 (stable/9) seems to break "sysctl hw.ncpu"]

From: Hans Petter Selasky <hps_at_selasky.org>
Date: Fri, 04 Jul 2014 20:09:21 +0200
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
Received on Fri Jul 04 2014 - 16:09:09 UTC

This archive was generated by hypermail 2.4.0 : Wed May 19 2021 - 11:40:50 UTC