mirror of
https://git.freebsd.org/ports.git
synced 2025-05-25 15:36:35 -04:00
Remove "-march=native" as a barrier to building on arm.
However, the builds still fail, but much farther along in the process. So, this fix is necessary, but insufficient. TODO: confirm the exact way rocksdb-lite fails on armv7 (I haven't run that combination yet). Approved by: portmgr (tier-2 blanket)
This commit is contained in:
parent
2a3f43cb6b
commit
8c16acd767
Notes:
svn2git
2021-03-31 03:12:20 +00:00
svn path=/head/; revision=457353
2 changed files with 9 additions and 7 deletions
|
@ -7,4 +7,6 @@ COMMENT= Persistent key-value store for fast storage environments (lite version)
|
||||||
LITE= yes
|
LITE= yes
|
||||||
MASTERDIR= ${.CURDIR}/../rocksdb
|
MASTERDIR= ${.CURDIR}/../rocksdb
|
||||||
|
|
||||||
|
BROKEN_armv6= does not build: db/compaction_job.cc:714:52: error: implicit conversion loses integer precision: 'uint64_t' (aka 'unsigned long long') to 'const size_t' (aka 'const unsigned int')
|
||||||
|
|
||||||
.include "${MASTERDIR}/Makefile"
|
.include "${MASTERDIR}/Makefile"
|
||||||
|
|
|
@ -14,17 +14,14 @@ LICENSE_COMB= dual
|
||||||
LICENSE_FILE_APACHE20= ${WRKSRC}/LICENSE.Apache
|
LICENSE_FILE_APACHE20= ${WRKSRC}/LICENSE.Apache
|
||||||
LICENSE_FILE_GPLv2= ${WRKSRC}/COPYING
|
LICENSE_FILE_GPLv2= ${WRKSRC}/COPYING
|
||||||
|
|
||||||
BROKEN_DragonFly= does not build on DragonFly BSD using GCC with -Werror
|
|
||||||
BROKEN_aarch64= does not build: the clang compiler does not support -march=native
|
|
||||||
BROKEN_armv6= does not build: the clang compiler does not support -march=native
|
|
||||||
BROKEN_armv7= does not build: /nxb-bin/usr/bin/ld: undefined reference to symbol `__gnu_Unwind_Find_exidx@@FBSD_1.4' (try adding -lc) #'`
|
|
||||||
BROKEN_powerpc64= does not build: the clang compiler does not support -march=native
|
|
||||||
BROKEN_sparc64= cannot build: uses unknown compiler flags
|
|
||||||
|
|
||||||
BUILD_DEPENDS= bash:shells/bash
|
BUILD_DEPENDS= bash:shells/bash
|
||||||
LIB_DEPENDS= libgflags.so:devel/gflags \
|
LIB_DEPENDS= libgflags.so:devel/gflags \
|
||||||
libsnappy.so:archivers/snappy
|
libsnappy.so:archivers/snappy
|
||||||
|
|
||||||
|
BROKEN_DragonFly= does not build on DragonFly BSD using GCC with -Werror
|
||||||
|
BROKEN_armv6?= does not build: db/c.cc:2281:44: implicit conversion loses integer precision: 'uint64_t' (aka 'unsigned long long') to 'size_t' (aka 'unsigned int')
|
||||||
|
BROKEN_armv7?= does not build: /nxb-bin/usr/bin/ld: undefined reference to symbol `__gnu_Unwind_Find_exidx@@FBSD_1.4' (try adding -lc) #'`
|
||||||
|
|
||||||
OPTIONS_DEFINE= DEBUG LZ4 ZSTD
|
OPTIONS_DEFINE= DEBUG LZ4 ZSTD
|
||||||
OPTIONS_DEFAULT=LZ4
|
OPTIONS_DEFAULT=LZ4
|
||||||
|
|
||||||
|
@ -79,6 +76,9 @@ CFLAGS+= -D_GLIBCXX_USE_C99
|
||||||
post-patch:
|
post-patch:
|
||||||
@${REINPLACE_CMD} -e '/^dummy :=/d; /^all: / s| $$(TESTS)||' ${WRKSRC}/Makefile
|
@${REINPLACE_CMD} -e '/^dummy :=/d; /^all: / s| $$(TESTS)||' ${WRKSRC}/Makefile
|
||||||
@${REINPLACE_CMD} -e 's| -fno-builtin-memcmp||; s| -ltcmalloc||' ${WRKSRC}/build_tools/build_detect_platform
|
@${REINPLACE_CMD} -e 's| -fno-builtin-memcmp||; s| -ltcmalloc||' ${WRKSRC}/build_tools/build_detect_platform
|
||||||
|
.if ${ARCH} != amd64 && ${ARCH} != i386
|
||||||
|
@${REINPLACE_CMD} -e 's| -march=native||' ${WRKSRC}/build_tools/build_detect_platform
|
||||||
|
.endif
|
||||||
@${REINPLACE_CMD} -e 's|#include "gtest/gtest.h"|#include "gtest.h"|' ${WRKSRC}/third-party/gtest-1.7.0/fused-src/gtest/gtest-all.cc
|
@${REINPLACE_CMD} -e 's|#include "gtest/gtest.h"|#include "gtest.h"|' ${WRKSRC}/third-party/gtest-1.7.0/fused-src/gtest/gtest-all.cc
|
||||||
.if defined(WITHOUT_PROFILE)
|
.if defined(WITHOUT_PROFILE)
|
||||||
@${REINPLACE_CMD} -e '/pg = / s| -pg||' ${WRKSRC}/Makefile
|
@${REINPLACE_CMD} -e '/pg = / s| -pg||' ${WRKSRC}/Makefile
|
||||||
|
|
Loading…
Add table
Reference in a new issue