Skip site navigation (1)Skip section navigation (2)
Date:      Mon, 06 Mar 2017 07:16:21 +0000
From:      bugzilla-noreply@freebsd.org
To:        freebsd-ports-bugs@FreeBSD.org
Subject:   [Bug 217575] databases/leveldb: fails to build on armv6
Message-ID:  <bug-217575-13@https.bugs.freebsd.org/bugzilla/>

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

            Bug ID: 217575
           Summary: databases/leveldb: fails to build on armv6
           Product: Ports & Packages
           Version: Latest
          Hardware: arm
                OS: Any
            Status: New
          Severity: Affects Many People
          Priority: ---
         Component: Individual Port(s)
          Assignee: sunpoet@FreeBSD.org
          Reporter: mikael.urankar@gmail.com
                CC: freebsd-arm@FreeBSD.org
          Assignee: sunpoet@FreeBSD.org
                CC: freebsd-arm@FreeBSD.org
             Flags: maintainer-feedback?(sunpoet@FreeBSD.org)

Created attachment 180555
  --> https://bugs.freebsd.org/bugzilla/attachment.cgi?id=3D180555&action=
=3Dedit
patch

Hi,

error message:

/nxb-bin/usr/bin/c++ -O2 -pipe -O2 -munaligned-access -fno-builtin-sincos
-fno-builtin-sin -fno-builtin-cos -fno-builtin-sincosf -fno-builtin-sinf
-fno-builtin-cosf -fno-builtin-sincosl -fno-builtin-sinl -fno-builtin-cosl
-mcpu=3Dcortex-a15 -isystem /usr/local/include -fno-strict-aliasing  -isyst=
em
/usr/local/include -I. -I./include -std=3Dc++0x  -D_REENTRANT -DOS_FREEBSD
-DLEVELDB_PLATFORM_POSIX -DLEVELDB_ATOMIC_PRESENT -DSNAPPY -O2 -DNDEBUG -fP=
IC
-msse4.2 -DLEVELDB_PLATFORM_POSIX_SSE -c port/port_posix_sse.cc -o
out-shared/port/port_posix_sse.o
c++: warning: argument unused during compilation: '-msse4.2'
[-Wunused-command-line-argument]
port/port_posix_sse.cc:58:3: error: use of undeclared identifier '__get_cpu=
id'
  __get_cpuid(1, &eax, &ebx, &ecx, &edx);
  ^
port/port_posix_sse.cc:97:7: error: use of undeclared identifier '_mm_crc32=
_u8'


in $WRKSRC/build_detect_platform:227, c++ doesn't treat warning as error and
the test will pass for armv6:
c++ -x c++ - -o $CXXOUTPUT -msse4.2:
c++: warning: argument unused during compilation: '-msse4.2'
echo $?
0

The attached patch fixes the issue

--=20
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-217575-13>