[Bug 273285] www/node18: fails to build (on core2duo t7800)?

From: <bugzilla-noreply_at_freebsd.org>
Date: Tue, 22 Aug 2023 12:41:35 UTC
https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=273285

            Bug ID: 273285
           Summary: www/node18: fails to build (on core2duo t7800)?
           Product: Ports & Packages
           Version: Latest
          Hardware: amd64
                OS: Any
            Status: New
          Severity: Affects Only Me
          Priority: ---
         Component: Individual Port(s)
          Assignee: sunpoet@FreeBSD.org
          Reporter: vsasjason@gmail.com
             Flags: maintainer-feedback?(sunpoet@FreeBSD.org)
          Assignee: sunpoet@FreeBSD.org

Created attachment 244280
  --> https://bugs.freebsd.org/bugzilla/attachment.cgi?id=244280&action=edit
poudriere build log

I have the following CPU:
[7] CPU: Intel(R) Core(TM)2 Duo CPU     T7800  @ 2.60GHz (2593.50-MHz K8-class
CPU)
[7]   Origin="GenuineIntel"  Id=0x6fb  Family=0x6  Model=0xf  Stepping=11
[7]  
Features=0xbfebfbff<FPU,VME,DE,PSE,TSC,MSR,PAE,MCE,CX8,APIC,SEP,MTRR,PGE,MCA,CMOV,PAT,PSE36,CLFLUSH,DTS,ACPI,MMX,FXSR,SSE,SSE2,SS,HTT,TM,PBE>
[7]   Features2=0xe3bd<SSE3,DTES64,MON,DS_CPL,VMX,EST,TM2,SSSE3,CX16,xTPR,PDCM>
[7]   AMD Features=0x20100800<SYSCALL,NX,LM>
[7]   AMD Features2=0x1<LAHF>
[7]   VT-x: HLT,PAUSE
[7]   TSC: P-state invariant, performance statistics

Building aom fails in poudriere on popcnt, which I believe is a part of SSE4.2
while this CPU doesn't even have those instructions:

c++ -o
/wrkdirs/usr/ports/www/node18/work/node-v18.17.1/out/Release/obj.target/simdutf/deps/simdutf/simdutf.o
../deps/simdutf/simdutf.cpp '-DV8_DEPRECATION_WARNINGS'
'-DV8_IMMINENT_DEPRECATION_WARNINGS' '-D_GLIBCXX_USE_CXX11_ABI=1'
'-DNODE_OPENSSL_CONF_NAME=nodejs_conf' '-DNODE_OPENSSL_CERT_STORE'
'-DICU_NO_USER_DATA_OVERRIDE' '-D__STDC_FORMAT_MACROS' -I../deps/simdutf 
-pthread -Wall -Wextra -Wno-unused-parameter -m64 -O3 -fno-omit-frame-pointer
-fno-rtti -fno-exceptions -std=gnu++17 -MMD -MF
/wrkdirs/usr/ports/www/node18/work/node-v18.17.1/out/Release/.deps//wrkdirs/usr/ports/www/node18/work/node-v18.17.1/out/Release/obj.target/simdutf/deps/simdutf/simdutf.o.d.raw
-isystem /usr/local/include -O3 -pipe -march=native -fstack-protector-strong
-isystem /usr/local/include -fno-strict-aliasing  -isystem /usr/local/include 
-c
../deps/simdutf/simdutf.cpp:22595:30: warning: unused function
'utf32_length_from_utf8' [-Wunused-function]
simdutf_really_inline size_t utf32_length_from_utf8(const char* in, size_t
size) {
                             ^
../deps/simdutf/simdutf.cpp:28050:30: warning: unused function
'utf32_length_from_utf8' [-Wunused-function]
simdutf_really_inline size_t utf32_length_from_utf8(const char* in, size_t
size) {
                             ^
../deps/simdutf/simdutf.cpp:15946:22: error: always_inline function
'_mm_popcnt_u64' requires target feature 'popcnt', but would be inlined into
function 'process_block_utf8_to_utf16' that is compiled without support for
'popcnt'
      int64_t nout = _mm_popcnt_u64(mprocessed);
                     ^
../deps/simdutf/simdutf.cpp:16032:20: error: always_inline function
'_mm_popcnt_u64' requires target feature 'popcnt', but would be inlined into
function 'process_block_utf8_to_utf16' that is compiled without support for
'popcnt'
    int64_t nout = _mm_popcnt_u64(mprocessed);
                   ^
../deps/simdutf/simdutf.cpp:16079:16: error: always_inline function
'_mm_popcnt_u32' requires target feature 'popcnt', but would be inlined into
function 'process_block_utf8_to_utf16' that is compiled without support for
'popcnt'
    int nout = _mm_popcnt_u32(uint32_t(leading));
               ^
../deps/simdutf/simdutf.cpp:15946:22: error: always_inline function
'_mm_popcnt_u64' requires target feature 'popcnt', but would be inlined into
function 'process_block_utf8_to_utf16' that is compiled without support for
'popcnt'
      int64_t nout = _mm_popcnt_u64(mprocessed);
                     ^
../deps/simdutf/simdutf.cpp:16032:20: error: always_inline function
'_mm_popcnt_u64' requires target feature 'popcnt', but would be inlined into
function 'process_block_utf8_to_utf16' that is compiled without support for
'popcnt'
    int64_t nout = _mm_popcnt_u64(mprocessed);
                   ^
../deps/simdutf/simdutf.cpp:16083:20: error: always_inline function
'_mm_popcnt_u64' requires target feature 'popcnt', but would be inlined into
function 'process_block_utf8_to_utf16' that is compiled without support for
'popcnt'
    int nout = int(_mm_popcnt_u64(_pdep_u64(0xFFFFFFFF, leading)));
                   ^
../deps/simdutf/simdutf.cpp:15946:22: error: always_inline function
'_mm_popcnt_u64' requires target feature 'popcnt', but would be inlined into
function 'process_block_utf8_to_utf16' that is compiled without support for
'popcnt'
      int64_t nout = _mm_popcnt_u64(mprocessed);
                     ^
../deps/simdutf/simdutf.cpp:16032:20: error: always_inline function
'_mm_popcnt_u64' requires target feature 'popcnt', but would be inlined into
function 'process_block_utf8_to_utf16' that is compiled without support for
'popcnt'
    int64_t nout = _mm_popcnt_u64(mprocessed);
                   ^
../deps/simdutf/simdutf.cpp:16079:16: error: always_inline function
'_mm_popcnt_u32' requires target feature 'popcnt', but would be inlined into
function 'process_block_utf8_to_utf16' that is compiled without support for
'popcnt'
    int nout = _mm_popcnt_u32(uint32_t(leading));
               ^
../deps/simdutf/simdutf.cpp:15946:22: error: always_inline function
'_mm_popcnt_u64' requires target feature 'popcnt', but would be inlined into
function 'process_block_utf8_to_utf16' that is compiled without support for
'popcnt'
      int64_t nout = _mm_popcnt_u64(mprocessed);
                     ^
../deps/simdutf/simdutf.cpp:16032:20: error: always_inline function
'_mm_popcnt_u64' requires target feature 'popcnt', but would be inlined into
function 'process_block_utf8_to_utf16' that is compiled without support for
'popcnt'
    int64_t nout = _mm_popcnt_u64(mprocessed);
                   ^
../deps/simdutf/simdutf.cpp:16083:20: error: always_inline function
'_mm_popcnt_u64' requires target feature 'popcnt', but would be inlined into
function 'process_block_utf8_to_utf16' that is compiled without support for
'popcnt'
    int nout = int(_mm_popcnt_u64(_pdep_u64(0xFFFFFFFF, leading)));
                   ^
../deps/simdutf/simdutf.cpp:18007:22: error: always_inline function
'_mm_popcnt_u32' requires target feature 'popcnt', but would be inlined into
function 'utf16_to_utf8_avx512i' that is compiled without support for 'popcnt'
      outbuf += 31 + _mm_popcnt_u32(_cvtmask32_u32(is234byte));
                     ^
../deps/simdutf/simdutf.cpp:18112:22: error: always_inline function
'_mm_popcnt_u64' requires target feature 'popcnt', but would be inlined into
function 'utf16_to_utf8_avx512i' that is compiled without support for 'popcnt'
    uint64_t advlo = _mm_popcnt_u64(wantlo_uint64);
                     ^
../deps/simdutf/simdutf.cpp:18113:22: error: always_inline function
'_mm_popcnt_u64' requires target feature 'popcnt', but would be inlined into
function 'utf16_to_utf8_avx512i' that is compiled without support for 'popcnt'
    uint64_t advhi = _mm_popcnt_u64(wanthi_uint64);
                     ^
../deps/simdutf/simdutf.cpp:18007:22: error: always_inline function
'_mm_popcnt_u32' requires target feature 'popcnt', but would be inlined into
function 'utf16_to_utf8_avx512i' that is compiled without support for 'popcnt'
      outbuf += 31 + _mm_popcnt_u32(_cvtmask32_u32(is234byte));
                     ^
../deps/simdutf/simdutf.cpp:18112:22: error: always_inline function
'_mm_popcnt_u64' requires target feature 'popcnt', but would be inlined into
function 'utf16_to_utf8_avx512i' that is compiled without support for 'popcnt'
    uint64_t advlo = _mm_popcnt_u64(wantlo_uint64);
                     ^
../deps/simdutf/simdutf.cpp:18113:22: error: always_inline function
'_mm_popcnt_u64' requires target feature 'popcnt', but would be inlined into
function 'utf16_to_utf8_avx512i' that is compiled without support for 'popcnt'
    uint64_t advhi = _mm_popcnt_u64(wanthi_uint64);
                     ^
2 warnings and 18 errors generated.
gmake[2]: *** [deps/simdutf/simdutf.target.mk:87:
/wrkdirs/usr/ports/www/node18/work/node-v18.17.1/out/Release/obj.target/simdutf/deps/simdutf/simdutf.o]
Error 1
rm f67def9c7a65bd3ce465e258ddd7aba2f1eaf9ff.intermediate
gmake[1]: *** [Makefile:134: node] Error 2
gmake[1]: Leaving directory '/wrkdirs/usr/ports/www/node18/work/node-v18.17.1'
*** Error code 1

Stop.
make: stopped in /usr/ports/www/node18

Attaching full poudriere build log as well.

-- 
You are receiving this mail because:
You are the assignee for the bug.