There's a problem if zstd is installed, this happens when it builds
its internal copy:


clang -o thirdparty/zstd/compress/zstd_compress.x11.opt.tools.64.llvm.o -c -g1 
-O2 -ffast-math -DDEBUG_ENABLED -O2 -pipe -pipe -w -DZSTD_STATIC_LINKING_ONLY 
-DFREETYPE_ENABLED -DRECAST_ENABLED -DSVG_ENABLED -DTYPED_METHOD_BIND 
-DTOUCH_ENABLED -DPULSEAUDIO_ENABLED -DX11_ENABLED -DUNIX_ENABLED 
-DOPENGL_ENABLED -DGLES_ENABLED -DGLES_OVER_GL -DPTRCALL_ENABLED 
-DTOOLS_ENABLED -DGDSCRIPT_ENABLED -DMINIZIP_ENABLED -DXML_ENABLED 
-DGLAD_ENABLED -DGLES_OVER_GL -D_REENTRANT -Icore -Icore/math -Ieditor 
-Idrivers -I. -I/usr/X11R6/include -I/usr/local/include 
-I/usr/X11R6/include/freetype2 -I/usr/local/include/libpng16 
-I/usr/local/include/opus -Iplatform/x11 -Ithirdparty/zstd 
-Ithirdparty/zstd/common -Ithirdparty/glad -Ithirdparty/recastnavigation/Recast 
-Ithirdparty/recastnavigation/Recast/Include -Ithirdparty/nanosvg 
thirdparty/zstd/compress/zstd_compress.c
In file included from thirdparty/zstd/compress/zstd_compress.c:29:
thirdparty/zstd/compress/zstd_compress_internal.h:46:5: error: unknown type 
name 'ZSTD_dictMode_e'
    ZSTD_dictMode_e dictMode;
    ^
thirdparty/zstd/compress/zstd_compress_internal.h:449:37: error: unknown type 
name 'ZSTD_dictMode_e'
                                    ZSTD_dictMode_e dictMode,
                                    ^
thirdparty/zstd/compress/zstd_compress.c:215:8: error: conflicting types for 
'ZSTD_initCCtxParams'
size_t ZSTD_initCCtxParams(ZSTD_CCtx_params* cctxParams, int compressionLevel) {
       ^
thirdparty/zstd/compress/zstd_compress.c:212:12: note: previous implicit 
declaration is here
    return ZSTD_initCCtxParams(params, ZSTD_CLEVEL_DEFAULT);
           ^
thirdparty/zstd/compress/zstd_compress.c:283:10: error: use of undeclared 
identifier 'ZSTD_p_nbThreads'; did you mean 'ZSTD_p_nbWorkers'?
    case ZSTD_p_nbThreads:
         ^~~~~~~~~~~~~~~~
         ZSTD_p_nbWorkers
/usr/local/include/zstd.h:1031:5: note: 'ZSTD_p_nbWorkers' declared here
    ZSTD_p_nbWorkers=400,    /* Select how many threads will be spawned to 
compress in parallel.
    ^
thirdparty/zstd/compress/zstd_compress.c:372:54: error: use of undeclared 
identifier 'ZSTD_TARGETLENGTH_MAX'
            CLAMPCHECK(value, ZSTD_TARGETLENGTH_MIN, ZSTD_TARGETLENGTH_MAX);
                                                     ^
thirdparty/zstd/compress/zstd_compress.c:406:10: error: use of undeclared 
identifier 'ZSTD_p_nbThreads'; did you mean 'ZSTD_p_nbWorkers'?
    case ZSTD_p_nbThreads :
         ^~~~~~~~~~~~~~~~
         ZSTD_p_nbWorkers
/usr/local/include/zstd.h:1031:5: note: 'ZSTD_p_nbWorkers' declared here
    ZSTD_p_nbWorkers=400,    /* Select how many threads will be spawned to 
compress in parallel.
    ^
thirdparty/zstd/compress/zstd_compress.c:495:47: error: unknown type name 
'ZSTD_dictMode_e'
        ZSTD_dictLoadMethod_e dictLoadMethod, ZSTD_dictMode_e dictMode)
                                              ^
thirdparty/zstd/compress/zstd_compress.c:522:51: error: use of undeclared 
identifier 'ZSTD_dm_auto'; did you mean 'ZSTD_dct_auto'?
            cctx, dict, dictSize, ZSTD_dlm_byRef, ZSTD_dm_auto);
                                                  ^~~~~~~~~~~~
                                                  ZSTD_dct_auto
/usr/local/include/zstd.h:435:5: note: 'ZSTD_dct_auto' declared here
    ZSTD_dct_auto=0,      /* dictionary is "full" when starting with 
ZSTD_MAGIC_DICTIONARY, otherwise it is "rawContent" */
    ^
thirdparty/zstd/compress/zstd_compress.c:528:52: error: use of undeclared 
identifier 'ZSTD_dm_auto'; did you mean 'ZSTD_dct_auto'?
            cctx, dict, dictSize, ZSTD_dlm_byCopy, ZSTD_dm_auto);
                                                   ^~~~~~~~~~~~
                                                   ZSTD_dct_auto
/usr/local/include/zstd.h:435:5: note: 'ZSTD_dct_auto' declared here
    ZSTD_dct_auto=0,      /* dictionary is "full" when starting with 
ZSTD_MAGIC_DICTIONARY, otherwise it is "rawContent" */
    ^
thirdparty/zstd/compress/zstd_compress.c:542:67: error: use of undeclared 
identifier 'ZSTD_dm_rawContent'; did you mean 'ZSTD_dct_rawContent'?
    return ZSTD_CCtx_refPrefix_advanced(cctx, prefix, prefixSize, 
ZSTD_dm_rawContent);
                                                                  
^~~~~~~~~~~~~~~~~~
                                                                  
ZSTD_dct_rawContent
/usr/local/include/zstd.h:436:5: note: 'ZSTD_dct_rawContent' declared here
    ZSTD_dct_rawContent,  /* ensures dictionary is always loaded as rawContent, 
even if it starts with ZSTD_MAGIC_DICTIONARY */
    ^
thirdparty/zstd/compress/zstd_compress.c:546:65: error: unknown type name 
'ZSTD_dictMode_e'
        ZSTD_CCtx* cctx, const void* prefix, size_t prefixSize, ZSTD_dictMode_e 
dictMode)
                                                                ^
thirdparty/zstd/compress/zstd_compress.c:580:61: error: use of undeclared 
identifier 'ZSTD_TARGETLENGTH_MAX'
    CLAMPCHECK(cParams.targetLength, ZSTD_TARGETLENGTH_MIN, 
ZSTD_TARGETLENGTH_MAX);
                                                            ^
thirdparty/zstd/compress/zstd_compress.c:600:56: error: use of undeclared 
identifier 'ZSTD_TARGETLENGTH_MAX'
    CLAMP(cParams.targetLength, ZSTD_TARGETLENGTH_MIN, ZSTD_TARGETLENGTH_MAX);
                                                       ^
thirdparty/zstd/compress/zstd_compress.c:600:56: error: use of undeclared 
identifier 'ZSTD_TARGETLENGTH_MAX'
thirdparty/zstd/compress/zstd_compress.c:2050:46: error: unknown type name 
'ZSTD_dictMode_e'
                                             ZSTD_dictMode_e dictMode)
                                             ^
thirdparty/zstd/compress/zstd_compress.c:2056:19: error: use of undeclared 
identifier 'ZSTD_dm_rawContent'; did you mean 'ZSTD_dct_rawContent'?
    if (dictMode==ZSTD_dm_rawContent)
                  ^~~~~~~~~~~~~~~~~~
                  ZSTD_dct_rawContent
/usr/local/include/zstd.h:436:5: note: 'ZSTD_dct_rawContent' declared here
    ZSTD_dct_rawContent,  /* ensures dictionary is always loaded as rawContent, 
even if it starts with ZSTD_MAGIC_DICTIONARY */
    ^
thirdparty/zstd/compress/zstd_compress.c:2060:25: error: use of undeclared 
identifier 'ZSTD_dm_auto'; did you mean 'ZSTD_dct_auto'?
        if (dictMode == ZSTD_dm_auto) {
                        ^~~~~~~~~~~~
                        ZSTD_dct_auto
/usr/local/include/zstd.h:435:5: note: 'ZSTD_dct_auto' declared here
    ZSTD_dct_auto=0,      /* dictionary is "full" when starting with 
ZSTD_MAGIC_DICTIONARY, otherwise it is "rawContent" */
    ^
thirdparty/zstd/compress/zstd_compress.c:2064:25: error: use of undeclared 
identifier 'ZSTD_dm_fullDict'; did you mean 'ZSTD_dct_fullDict'?
        if (dictMode == ZSTD_dm_fullDict)
                        ^~~~~~~~~~~~~~~~
                        ZSTD_dct_fullDict
/usr/local/include/zstd.h:437:5: note: 'ZSTD_dct_fullDict' declared here
    ZSTD_dct_fullDict     /* refuses to load a dictionary if it does not 
respect Zstandard's specification */
    ^
thirdparty/zstd/compress/zstd_compress.c:2077:30: error: unknown type name 
'ZSTD_dictMode_e'
                             ZSTD_dictMode_e dictMode,
                             ^
fatal error: too many errors emitted, stopping now [-ferror-limit=]
20 errors generated.
scons: *** [thirdparty/zstd/compress/zstd_compress.x11.opt.tools.64.llvm.o] 
Error 1
scons: building terminated because of errors.
*** Error 2 in . (/usr/ports/devel/scons/scons.port.mk:32 'do-build': 
@/usr/bin/env -i PORTSDIR="/usr/ports" LIBTOOL="/usr/bin/libtool"  PAT...)
*** Error 1 in . (/usr/ports/infrastructure/mk/bsd.port.mk:2736 
'/usr/obj/ports/godot-3.0.2/.build_done')
*** Error 1 in . (/usr/ports/infrastructure/mk/bsd.port.mk:1938 
'/usr/ports/packages/amd64/all/godot-3.0.2.tgz')

Reply via email to