Skip site navigation (1)Skip section navigation (2)
Date:      Sat, 30 Sep 2023 23:33:45 GMT
From:      Po-Chuan Hsieh <sunpoet@FreeBSD.org>
To:        ports-committers@FreeBSD.org, dev-commits-ports-all@FreeBSD.org, dev-commits-ports-main@FreeBSD.org
Subject:   git: 204c0a1aad55 - main - databases/tiledb: Fix build on i386
Message-ID:  <202309302333.38UNXjBD008742@gitrepo.freebsd.org>

next in thread | raw e-mail | index | archive | help
The branch main has been updated by sunpoet:

URL: https://cgit.FreeBSD.org/ports/commit/?id=204c0a1aad55dee9e4e0c34e975d40f6f6e51b02

commit 204c0a1aad55dee9e4e0c34e975d40f6f6e51b02
Author:     Po-Chuan Hsieh <sunpoet@FreeBSD.org>
AuthorDate: 2023-09-30 23:29:51 +0000
Commit:     Po-Chuan Hsieh <sunpoet@FreeBSD.org>
CommitDate: 2023-09-30 23:29:51 +0000

    databases/tiledb: Fix build on i386
    
    /wrkdirs/usr/ports/databases/tiledb/work/TileDB-2.17.1/tiledb/../tiledb/sm/array_schema/enumeration.h:281:50: error: non-constant-expression cannot be narrowed from type 'uint64_t' (aka 'unsigned long long') to 'size_type' (aka 'unsigned int') in initializer list [-Wc++11-narrowing]
        return {static_cast<uint8_t*>(data_.data()), data_.size()};
                                                     ^~~~~~~~~~~~
    /wrkdirs/usr/ports/databases/tiledb/work/TileDB-2.17.1/tiledb/../tiledb/sm/array_schema/enumeration.h:281:50: note: insert an explicit cast to silence this issue
        return {static_cast<uint8_t*>(data_.data()), data_.size()};
                                                     ^~~~~~~~~~~~
                                                     static_cast<size_type>( )
    /wrkdirs/usr/ports/databases/tiledb/work/TileDB-2.17.1/tiledb/../tiledb/sm/array_schema/enumeration.h:291:53: error: non-constant-expression cannot be narrowed from type 'uint64_t' (aka 'unsigned long long') to 'size_type' (aka 'unsigned int') in initializer list [-Wc++11-narrowing]
        return {static_cast<uint8_t*>(offsets_.data()), offsets_.size()};
                                                        ^~~~~~~~~~~~~~~
    /wrkdirs/usr/ports/databases/tiledb/work/TileDB-2.17.1/tiledb/../tiledb/sm/array_schema/enumeration.h:291:53: note: insert an explicit cast to silence this issue
        return {static_cast<uint8_t*>(offsets_.data()), offsets_.size()};
                                                        ^~~~~~~~~~~~~~~
                                                        static_cast<size_type>( )
    2 errors generated.
    
    Reference:      https://pkg-status.freebsd.org/beefy17/data/main-i386-default/pe4b8bfc7570d_sf7a5903de2/logs/tiledb-2.17.1.log
                    https://pkg-status.freebsd.org/beefy15/data/132i386-default/e4b8bfc7570d/logs/tiledb-2.17.1.log
---
 databases/tiledb/Makefile | 1 +
 1 file changed, 1 insertion(+)

diff --git a/databases/tiledb/Makefile b/databases/tiledb/Makefile
index d57bd451e3ee..e221fa074636 100644
--- a/databases/tiledb/Makefile
+++ b/databases/tiledb/Makefile
@@ -27,6 +27,7 @@ RUN_DEPENDS=	capnproto080>=0.8.0:devel/capnproto080 \
 USES=		cmake compiler:c++17-lang localbase:ldflags pkgconfig ssl
 
 CFLAGS+=	-DSPDLOG_FMT_EXTERNAL=1
+CFLAGS_i386+=	-Wno-c++11-narrowing
 CMAKE_ARGS=	-DCATCH_INCLUDE_DIR=${LOCALBASE}/include/catch2 \
 		-Dlibmagic_DICTIONARY=/usr/share/misc/magic.mgc
 CMAKE_OFF=	TILEDB_ABSEIL \



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