[Bug 210857] benchmarks/iozone: 'CACHE_LINE_SIZE' macro redefined (overriding machine/param.h ) (armv6 -mcpu=cortex-a7 for/on rpi2)

bugzilla-noreply at freebsd.org bugzilla-noreply at freebsd.org
Mon Jul 18 05:07:02 UTC 2016


https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=210857

--- Comment #1 from Mark Millard <markmi at dsl-only.net> ---
(In reply to Mark Millard from comment #0)

The line number in FreeBSD's param.h is possibly machine-type specific.

# grep CACHE_LINE_SIZE /usr/include/machine/param.h
 * CACHE_LINE_SIZE is the compile-time maximum cache line size for an
#define CACHE_LINE_SIZE         (1 << CACHE_LINE_SHIFT)

(Both amd64 and armv6 show this grep result.)

If /usr/include/machine/param.h is (indirectly) included by the header file
handling then there is likely a CACHE_LINE_SIZE macro definition present in
FreeBSD based compiles for those architectures that have cache lines.

I've been using the system clang 3.8.0 from 11.0 (-STABLE these days). Other
compilers or compiler vintages may not necessarily report the redefinition by
default.

My /etc/make.conf has just:

WANT_QT_VERBOSE_CONFIGURE=1
#
DEFAULT_VERSIONS+=perl5=5.22
WRKDIRPREFIX=/usr/obj/portswork
WITH_DEBUG=
WITH_DEBUG_FILES=
MALLOC_PRODUCTION=

-- 
You are receiving this mail because:
You are the assignee for the bug.


More information about the freebsd-ports-bugs mailing list