<html><head><meta http-equiv="Content-Type" content="text/html; charset=utf-8"></head><body style="word-wrap: break-word; -webkit-nbsp-mode: space; line-break: after-white-space;" class="">I tried to build jemalloc without +universal on my M1 Mac on Big Sur and did not encounter any errors.  When I tried to build it with +universal, I saw the same error as in the log file attached to the trac case.  <div class=""><br class=""></div><div class="">The clang messages suggest that an express cast will solve the compile problem:</div><div class=""><br class=""></div><blockquote style="margin: 0 0 0 40px; border: none; padding: 0px;" class="">include/jemalloc/internal/rtree.h:118:3: error: constant expression evaluates to -12 which cannot be narrowed to type 'unsigned int' [-Wc++11-narrowing]<br class="">        {RTREE_NSB, RTREE_NHIB + RTREE_NSB}<br class="">         ^~~~~~~~~<br class="">include/jemalloc/internal/rtree.h:22:19: note: expanded from macro 'RTREE_NSB'<br class="">#define RTREE_NSB (LG_VADDR - RTREE_NLIB)<br class="">                  ^~~~~~~~~~~~~~~~~~~~~~~<br class="">include/jemalloc/internal/rtree.h:118:3: note: insert an explicit cast to silence this issue<br class="">        {RTREE_NSB, RTREE_NHIB + RTREE_NSB}<br class="">         ^~~~~~~~~<br class="">         static_cast<unsigned int>( )<br class=""><div class=""> </div></blockquote><div class=""><div>However, given the nature of the error (converting a negative int to a unsigned int), while a cast might get the code to compile, there is probably an underlying problem that needs to be fixed for this code to actually work properly.</div><div><br class=""><blockquote type="cite" class=""><div class="">On Aug 22, 2022, at 18:57, Ken Cunningham <<a href="mailto:ken.cunningham.webuse@gmail.com" class="">ken.cunningham.webuse@gmail.com</a>> wrote:</div><br class="Apple-interchange-newline"><div class=""><meta http-equiv="Content-Type" content="text/html; charset=utf-8" class=""><div style="word-wrap: break-word; -webkit-nbsp-mode: space; line-break: after-white-space;" class=""><div style="margin: 0px; font-stretch: normal; font-size: 11px; line-height: normal; font-family: Menlo;" class=""><span style="font-variant-ligatures: no-common-ligatures" class="">it builds OK universal on Monterey Intel:</span></div><div style="margin: 0px; font-stretch: normal; font-size: 11px; line-height: normal; font-family: Menlo;" class=""><span style="font-variant-ligatures: no-common-ligatures" class=""><br class=""></span></div><div style="margin: 0px; font-stretch: normal; font-size: 11px; line-height: normal; font-family: Menlo;" class=""><span style="font-variant-ligatures: no-common-ligatures" class="">% port -v installed jemalloc</span></div><div style="margin: 0px; font-stretch: normal; font-size: 11px; line-height: normal; font-family: Menlo;" class=""><span style="font-variant-ligatures: no-common-ligatures" class="">The following ports are currently installed:</span></div><div style="margin: 0px; font-stretch: normal; font-size: 11px; line-height: normal; font-family: Menlo;" class=""><span style="font-variant-ligatures: no-common-ligatures" class="">  jemalloc @5.3.0_2+universal (active) requested_variants='+universal' platform='darwin 21' archs='arm64 x86_64' date='2022-08-22T17:31:05-0700’</span></div><div style="margin: 0px; font-stretch: normal; font-size: 11px; line-height: normal; font-family: Menlo;" class=""><span style="font-variant-ligatures: no-common-ligatures" class=""><br class=""></span></div><div style="margin: 0px; font-stretch: normal; font-size: 11px; line-height: normal; font-family: Menlo;" class=""><span style="font-variant-ligatures: no-common-ligatures" class=""><br class=""></span></div><div style="margin: 0px; font-stretch: normal; font-size: 11px; line-height: normal; font-family: Menlo;" class=""><span style="font-variant-ligatures: no-common-ligatures" class="">There are many combinations and permutations that can make strange things happen.</span></div><div style="margin: 0px; font-stretch: normal; font-size: 11px; line-height: normal; font-family: Menlo;" class=""><span style="font-variant-ligatures: no-common-ligatures" class=""><br class=""></span></div><div style="margin: 0px; font-stretch: normal; font-size: 11px; line-height: normal; font-family: Menlo;" class=""><span style="font-variant-ligatures: no-common-ligatures" class="">If someone else reproduces your universal build failure on an arm Mac, perhaps we can sort it out. Usually we do.</span></div><div style="margin: 0px; font-stretch: normal; font-size: 11px; line-height: normal; font-family: Menlo;" class=""><span style="font-variant-ligatures: no-common-ligatures" class=""><br class=""></span></div><div style="margin: 0px; font-stretch: normal; font-size: 11px; line-height: normal; font-family: Menlo;" class=""><span style="font-variant-ligatures: no-common-ligatures" class="">I don’t have an arm Mac, though, so will defer to someone who does.</span></div></div></div></blockquote></div><br class=""></div></body></html>