Skip site navigation (1)Skip section navigation (2)
Date:      Sun, 20 Sep 2015 03:02:48 +0000
From:      bugzilla-noreply@freebsd.org
To:        freebsd-ports-bugs@FreeBSD.org
Subject:   [Bug 203219] databases/memcached Builds on i386, fails on amd64 with assert tautology error
Message-ID:  <bug-203219-13@https.bugs.freebsd.org/bugzilla/>

next in thread | raw e-mail | index | archive | help
https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=203219

            Bug ID: 203219
           Summary: databases/memcached Builds on i386, fails on amd64
                    with assert tautology error
           Product: Ports & Packages
           Version: Latest
          Hardware: Any
                OS: Any
            Status: New
          Severity: Affects Some People
          Priority: ---
         Component: Individual Port(s)
          Assignee: swills@FreeBSD.org
          Reporter: phil@green-nexus.etowns.org
          Assignee: swills@FreeBSD.org
             Flags: maintainer-feedback?(swills@FreeBSD.org)

(In reply to Steve Wills from comment #9 Bug 202590 which was "Fixed" and
closed)

I've built memcached successfully on FreeBSD10.2Stable i386, but not on amd64.
Both using ccache. With the exception of -march the settings and scripts are 
identical. Compiler used is clang 3.4.1 
# cc -v
FreeBSD clang version 3.4.1 (tags/RELEASE_34/dot1-final 208032) 20140512


The kernel,world,distribution were rebuilt/installed yesterday, ports today. 
Updated /usr/ports and commenced a FULL ports rebuild.

After the amd64 failure, the ccache was cleared as a precaution.  Retry
resulted in:

make -DBATCH -DUSE_CORE2 package
===>  Building for memcached-1.4.24_2
/usr/bin/make  all-recursive
Making all in doc
/usr/bin/make  all-am
/usr/local/libexec/ccache/cc -DHAVE_CONFIG_H -I.   -I/usr/local/include -O2
-pipe -g0 -ggdb0 -DSTRIP_FBSDID -march=core-avx-i  -I/usr/local/include
-fno-strict-aliasing -std=c99  -m64 -O2 -pipe -g0 -ggdb0 -DSTRIP_FBSDID
-march=core-avx-i  -I/usr/local/include -fno-strict-aliasing -std=c99 -Wall
-Werror -pedantic -Wmissing-prototypes -Wmissing-declarations -Wredundant-decls
-MT memcached_debug-items.o -MD -MP -MF .deps/memcached_debug-items.Tpo -c -o
memcached_debug-items.o `test -f 'items.c' || echo './'`items.c
items.c:1141:28: error: comparison of constant 256 with expression of type
'uint8_t' (aka 'unsigned char') is always true
[-Werror,-Wtautological-constant-out-of-range-compare]
    assert(it->slabs_clsid < LARGEST_ID);
           ~~~~~~~~~~~~~~~ ^ ~~~~~~~~~~
/usr/include/assert.h:54:21: note: expanded from macro 'assert'
#define assert(e)       ((e) ? (void)0 : __assert(__func__, __FILE__, \
                          ^
1 error generated.
*** Error code 1

FYI: 717 packages are successfully built on i386, and memcached-1.4.24.txz
 was last successfully built on Jul 22 23:32

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



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?bug-203219-13>