Skip site navigation (1)Skip section navigation (2)
Date:      Fri, 04 Jul 2014 20:09:21 +0200
From:      Hans Petter Selasky <hps@selasky.org>
To:        David Wolfskill <david@catwhisker.org>, stable@freebsd.org,  "current@freebsd.org" <current@freebsd.org>
Subject:   [HEADS-UP] Problem with clang in 9-stable [was: r268244 (stable/9) seems to break "sysctl hw.ncpu"]
Message-ID:  <53B6EDD1.8030506@selasky.org>
In-Reply-To: <20140704174705.GS6056@albert.catwhisker.org>
References:  <20140704123901.GR6056@albert.catwhisker.org> <53B6E218.5070009@selasky.org> <20140704174705.GS6056@albert.catwhisker.org>

next in thread | previous in thread | raw e-mail | index | archive | help
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




Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?53B6EDD1.8030506>