[MacPorts] #62192: clucene @2.3.3.4_2: build fails with clang-9.0: error: constant expression evaluates to 18446744073709551615 which cannot be narrowed to type 'int64_t'

MacPorts noreply at macports.org
Sun Jan 31 21:41:33 UTC 2021


#62192: clucene @2.3.3.4_2: build fails with clang-9.0: error: constant expression
evaluates to 18446744073709551615 which cannot be narrowed to type
'int64_t'
--------------------+-----------------------------
 Reporter:  kencu   |      Owner:  dinh.viet.hoa@…
     Type:  defect  |     Status:  assigned
 Priority:  Normal  |  Milestone:
Component:  ports   |    Version:
 Keywords:          |       Port:  clucene
--------------------+-----------------------------
 {{{
 :info:build
 /opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_release_tarballs_ports_devel_clucene/clucene/work
 /clucene-
 core-2.3.3.4/src/core/CLucene/queryParser/QueryParserTokenManager.cpp:18:65:
 error: constant expression evaluates to 18446744073709551615 which cannot
 be narrowed to type 'int64_t' (aka 'long long') [-Wc++11-narrowing]
 :info:build const int64_t QueryParserTokenManager::jjbitVec2[]={0x0L,
 0x0L, _ILONGLONG(0xffffffffffffffff), _ILONGLONG(0xffffffffffffffff)};
 :info:build
 ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
 :info:build
 /opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_release_tarballs_ports_devel_clucene/clucene/work
 /clucene-core-2.3.3.4/src/shared/CLucene/_clucene-config.h:57:23: note:
 expanded from macro '_ILONGLONG'
 :info:build #define _ILONGLONG(x) x ## LL
 :info:build                       ^~~~~~~
 :info:build <scratch space>:140:1: note: expanded from here
 :info:build 0xffffffffffffffffLL
 }}}

 succeeds with clang-5.0

-- 
Ticket URL: <https://trac.macports.org/ticket/62192>
MacPorts <https://www.macports.org/>
Ports system for macOS


More information about the macports-tickets mailing list