Errors occur during build

HandBrake for Mac support
Forum rules
An Activity Log is required for support requests. Please read How-to get an activity log? for details on how and why this should be provided.
p_q0p_q
Regular User
Posts: 50
Joined: Thu Dec 11, 2014 3:01 pm

Errors occur during build

Post by p_q0p_q »

Description of problem or question:

I got an error when I tried to build it on a Mac as described in the website (https://handbrake.fr/docs/en/latest/dev ... d-mac.html).
How can I deal with this?



Steps to reproduce the problem (If Applicable):




HandBrake version (e.g., 1.0.0):

svn(2020/12/28)

Operating system and version (e.g., Ubuntu 16.04 LTS, macOS 10.13 High Sierra, Windows 10 Creators Update):
macOS 10.15.7 Catalina



HandBrake Activity Log ***required*** (see How-to get an activity log)

Code: Select all

iMac:HandBrake p_q0p_q$ ./configure --launch-jobs=$(sysctl -n hw.activecpu) --launch
probe: build tuple...(pass) x86_64-apple-darwin19.6.0
find: ar...(pass) /usr/bin/ar
find: cp...(pass) /bin/cp
  :
  :

  : 
  : WriteAuxiliaryFile /Volumes/Work/Work/HandBrake/build/xroot/HandBrakeCLI.build/Objects-normal/x86_64/HandBrakeCLI.LinkFileList (in target 'HandBrakeCLI' from project 'HandBrake')
  :     cd /Volumes/Work/Work/HandBrake/macosx
  :     write-file /Volumes/Work/Work/HandBrake/build/xroot/HandBrakeCLI.build/Objects-normal/x86_64/HandBrakeCLI.LinkFileList
  : 
  : Ld /Volumes/Work/Work/HandBrake/build/xroot/HandBrakeCLI normal (in target 'HandBrakeCLI' from project 'HandBrake')
  :     cd /Volumes/Work/Work/HandBrake/macosx
  :     /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/clang -target x86_64-apple-macos10.11 -isysroot /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX11.1.sdk -L/Volumes/Work/Work/HandBrake/build/xroot -L/Volumes/Work/Work/HandBrake/build/libhb -L/Volumes/Work/Work/HandBrake/build/contrib/lib -F/Volumes/Work/Work/HandBrake/build/xroot -filelist /Volumes/Work/Work/HandBrake/build/xroot/HandBrakeCLI.build/Objects-normal/x86_64/HandBrakeCLI.LinkFileList -Xlinker -object_path_lto -Xlinker /Volumes/Work/Work/HandBrake/build/xroot/HandBrakeCLI.build/Objects-normal/x86_64/HandBrakeCLI_lto.o -filelist /Volumes/Work/Work/HandBrake/build/macosx/osl.filelist.txt -lc++ -w -liconv -lbz2 -lz -framework CoreMedia -framework CoreVideo -framework VideoToolbox -framework CoreGraphics -framework CoreText -lavfilter -framework AudioToolbox -framework CoreServices -framework IOKit -lopus -lhandbrake -lass -lavcodec -lavformat -lavutil -lbluray -ldav1d -ldvdnav -ldvdread -lspeex -lturbojpeg -lfreetype -lfribidi -lmp3lame -llzma -lpostproc -logg -lswscale -ltheora -lvorbis -lswresample -lvorbisenc -framework Foundation -lvpx -lx264 -lxml2 -ljansson -lharfbuzz -Xlinker -dependency_info -Xlinker /Volumes/Work/Work/HandBrake/build/xroot/HandBrakeCLI.build/Objects-normal/x86_64/HandBrakeCLI_dependency_info.dat -o /Volumes/Work/Work/HandBrake/build/xroot/HandBrakeCLI
  : Undefined symbols for architecture x86_64:
  :   "_libiconv", referenced from:
  :       _xmlIconvWrapper in libxml2.a(encoding.o)
  :   "_libiconv_close", referenced from:
  :       _xmlFindCharEncodingHandler in libxml2.a(encoding.o)
  :       _xmlCharEncCloseFunc in libxml2.a(encoding.o)
  :   "_libiconv_open", referenced from:
  :       _xmlFindCharEncodingHandler in libxml2.a(encoding.o)
  : ld: symbol(s) not found for architecture x86_64
  : clang: error: linker command failed with exit code 1 (use -v to see invocation)
  : 
  : ** BUILD FAILED **
  : 
  : 
  : The following build commands failed:
  : 	Ld /Volumes/Work/Work/HandBrake/build/xroot/HandBrakeCLI normal
  : (1 failure)
  : make: *** [macosx.build] Error 65
-------------------------------------------------------------------------------
time end: Sat Jan  2 21:27:45 2021
duration: 4 minutes, 51 seconds (291.91s)
result: FAILURE (code 2)
-------------------------------------------------------------------------------
Build is finished!
You may now cd into ./build and examine the output.

User avatar
Ritsuka
HandBrake Team
Posts: 1207
Joined: Fri Jan 12, 2007 11:29 am

Re: Errors occur during build

Post by Ritsuka »

Post the whole build log.
p_q0p_q
Regular User
Posts: 50
Joined: Thu Dec 11, 2014 3:01 pm

Re: Errors occur during build

Post by p_q0p_q »

I tried to paste the entire log, but it was over 150,000 lines long and too large to send. Therefore, I have excerpted it.
Please let me know if there is any part you want to refer to.
User avatar
Rodeo
HandBrake Team
Posts: 12678
Joined: Tue Mar 03, 2009 8:55 pm

Re: Errors occur during build

Post by Rodeo »

p_q0p_q
Regular User
Posts: 50
Joined: Thu Dec 11, 2014 3:01 pm

Re: Errors occur during build

Post by p_q0p_q »

I can't send it to the specified site because I get an error saying it's too big.
User avatar
Rodeo
HandBrake Team
Posts: 12678
Joined: Tue Mar 03, 2009 8:55 pm

Re: Errors occur during build

Post by Rodeo »

The full log is saved to build/log/build.txt, you can upload it to Dropbox or something.
p_q0p_q
Regular User
Posts: 50
Joined: Thu Dec 11, 2014 3:01 pm

Re: Errors occur during build

Post by p_q0p_q »

I put the build.txt file into DropBox. It is about 24MB.

https://www.dropbox.com/s/9y2jnywh8ig4y ... d.txt?dl=0
User avatar
Rodeo
HandBrake Team
Posts: 12678
Joined: Tue Mar 03, 2009 8:55 pm

Re: Errors occur during build

Post by Rodeo »

This is kind of weird. What happens if you run the following?

Code: Select all

cd /Volumes/Work/Work/HandBrake/build; make -j1 libiconv.build &> ~/Desktop/libiconv.build.log.txt
p_q0p_q
Regular User
Posts: 50
Joined: Thu Dec 11, 2014 3:01 pm

Re: Errors occur during build

Post by p_q0p_q »

This is the result.
(I have a feeling that libiconv is the problem, but...)

I was able to build it with Handbrake 0.9.9.

Code: Select all

/usr/bin/xcodebuild -project /Volumes/Work/Work/HandBrake/macosx/HandBrake.xcodeproj -target external -configuration release-sandbox -xcconfig /Volumes/Work/Work/HandBrake/macosx/xcconfig/native.xcconfig SYMROOT='/Volumes/Work/Work/HandBrake/build/xroot' CONFIGURATION_BUILD_DIR='/Volumes/Work/Work/HandBrake/build/xroot' CONFIGURATION_TEMP_DIR='/Volumes/Work/Work/HandBrake/build/xroot' EXTERNAL_BUILD='/Volumes/Work/Work/HandBrake/build' EXTERNAL_CONF_ARGS='--build=/Volumes/Work/Work/HandBrake/build --xcode-driver=terminal --xcode-symroot=/Volumes/Work/Work/HandBrake/build/xroot --xcode-config=native --gcc=/Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/clang --arch=x86_64 --sysroot=/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX11.1.sdk --minver=10.11' EXTERNAL_DRIVER='terminal' EXTERNAL_GOALS='libiconv.build' EXTERNAL_JOBS='1' EXTERNAL_O='3' EXTERNAL_VARS='' OTHER_CFLAGS='' build
Command line invocation:
    /Applications/Xcode.app/Contents/Developer/usr/bin/xcodebuild -project /Volumes/Work/Work/HandBrake/macosx/HandBrake.xcodeproj -target external -configuration release-sandbox -xcconfig /Volumes/Work/Work/HandBrake/macosx/xcconfig/native.xcconfig SYMROOT=/Volumes/Work/Work/HandBrake/build/xroot CONFIGURATION_BUILD_DIR=/Volumes/Work/Work/HandBrake/build/xroot CONFIGURATION_TEMP_DIR=/Volumes/Work/Work/HandBrake/build/xroot EXTERNAL_BUILD=/Volumes/Work/Work/HandBrake/build "EXTERNAL_CONF_ARGS=--build=/Volumes/Work/Work/HandBrake/build --xcode-driver=terminal --xcode-symroot=/Volumes/Work/Work/HandBrake/build/xroot --xcode-config=native --gcc=/Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/clang --arch=x86_64 --sysroot=/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX11.1.sdk --minver=10.11" EXTERNAL_DRIVER=terminal EXTERNAL_GOALS=libiconv.build EXTERNAL_JOBS=1 EXTERNAL_O=3 EXTERNAL_VARS= OTHER_CFLAGS= build

Build settings from command line:
    CONFIGURATION_BUILD_DIR = /Volumes/Work/Work/HandBrake/build/xroot
    CONFIGURATION_TEMP_DIR = /Volumes/Work/Work/HandBrake/build/xroot
    EXTERNAL_BUILD = /Volumes/Work/Work/HandBrake/build
    EXTERNAL_CONF_ARGS = --build=/Volumes/Work/Work/HandBrake/build --xcode-driver=terminal --xcode-symroot=/Volumes/Work/Work/HandBrake/build/xroot --xcode-config=native --gcc=/Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/clang --arch=x86_64 --sysroot=/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX11.1.sdk --minver=10.11
    EXTERNAL_DRIVER = terminal
    EXTERNAL_GOALS = libiconv.build
    EXTERNAL_JOBS = 1
    EXTERNAL_O = 3
    EXTERNAL_VARS = 
    OTHER_CFLAGS = 
    SYMROOT = /Volumes/Work/Work/HandBrake/build/xroot

Build settings from configuration file '/Volumes/Work/Work/HandBrake/macosx/xcconfig/native.xcconfig':
    ARCHS = $(NATIVE_ARCH_ACTUAL)
    EXTERNAL_XCCONFIG = native

note: Using new build system
note: Planning build
note: Constructing build description
ExternalBuildToolExecution external (in target 'external' from project 'HandBrake')
    cd /Volumes/Work/Work/HandBrake/macosx
    export ACTION\=
    export ALTERNATE_GROUP\=staff
    export ALTERNATE_MODE\=u+w,go-w,a+rX
    export ALTERNATE_OWNER\=nak
    export ALWAYS_EMBED_SWIFT_STANDARD_LIBRARIES\=NO
    export ALWAYS_SEARCH_USER_PATHS\=NO
    export APPLE_INTERNAL_DEVELOPER_DIR\=/AppleInternal/Developer
    export APPLE_INTERNAL_DIR\=/AppleInternal
    export APPLE_INTERNAL_DOCUMENTATION_DIR\=/AppleInternal/Documentation
    export APPLE_INTERNAL_LIBRARY_DIR\=/AppleInternal/Library
    export APPLE_INTERNAL_TOOLS\=/AppleInternal/Developer/Tools
    export APPLICATION_EXTENSION_API_ONLY\=NO
    export APPLY_RULES_IN_COPY_FILES\=NO
    export APPLY_RULES_IN_COPY_HEADERS\=NO
    export ARCHS\=x86_64
    export ARCHS_STANDARD\=arm64\ x86_64
    export ARCHS_STANDARD_32_64_BIT\=arm64\ x86_64\ i386
    export ARCHS_STANDARD_32_BIT\=i386
    export ARCHS_STANDARD_64_BIT\=arm64\ x86_64
    export ARCHS_STANDARD_INCLUDING_64_BIT\=arm64\ x86_64
    export AVAILABLE_PLATFORMS\=appletvos\ appletvsimulator\ iphoneos\ iphonesimulator\ macosx\ watchos\ watchsimulator
    export BITCODE_GENERATION_MODE\=marker
    export BUILD_ACTIVE_RESOURCES_ONLY\=NO
    export BUILD_COMPONENTS\=headers\ build
    export BUILD_DIR\=/Volumes/Work/Work/HandBrake/build/xroot
    export BUILD_LIBRARY_FOR_DISTRIBUTION\=NO
    export BUILD_ROOT\=/Volumes/Work/Work/HandBrake/build/xroot
    export BUILD_STYLE\=
    export BUILD_VARIANTS\=normal
    export BUILT_PRODUCTS_DIR\=/Volumes/Work/Work/HandBrake/build/xroot
    export BUNDLE_CONTENTS_FOLDER_PATH\=Contents/
    export BUNDLE_CONTENTS_FOLDER_PATH_deep\=Contents/
    export BUNDLE_EXECUTABLE_FOLDER_NAME_deep\=MacOS
    export BUNDLE_EXECUTABLE_FOLDER_PATH\=Contents/MacOS
    export BUNDLE_FORMAT\=deep
    export BUNDLE_FRAMEWORKS_FOLDER_PATH\=Contents/Frameworks
    export BUNDLE_PLUGINS_FOLDER_PATH\=Contents/PlugIns
    export BUNDLE_PRIVATE_HEADERS_FOLDER_PATH\=Contents/PrivateHeaders
    export BUNDLE_PUBLIC_HEADERS_FOLDER_PATH\=Contents/Headers
    export CACHE_ROOT\=/var/folders/5q/lfn4t06j52v9lkt2zr4h42mw0000gn/C/com.apple.DeveloperTools/12.3-12C33/Xcode
    export CLANG_ANALYZER_GCD_PERFORMANCE\=YES
    export CLANG_ANALYZER_LOCALIZABILITY_EMPTY_CONTEXT\=YES
    export CLANG_ANALYZER_LOCALIZABILITY_NONLOCALIZED\=YES
    export CLANG_ANALYZER_NONNULL\=YES
    export CLANG_ANALYZER_SECURITY_FLOATLOOPCOUNTER\=YES
    export CLANG_ANALYZER_SECURITY_INSECUREAPI_RAND\=YES
    export CLANG_ANALYZER_SECURITY_INSECUREAPI_STRCPY\=YES
    export CLANG_ENABLE_MODULES\=YES
    export CLANG_ENABLE_OBJC_WEAK\=YES
    export CLANG_MODULES_BUILD_SESSION_FILE\=/var/folders/5q/lfn4t06j52v9lkt2zr4h42mw0000gn/C/org.llvm.clang/ModuleCache.noindex/Session.modulevalidation
    export CLANG_UNDEFINED_BEHAVIOR_SANITIZER_NULLABILITY\=YES
    export CLANG_WARN_ASSIGN_ENUM\=YES
    export CLANG_WARN_BLOCK_CAPTURE_AUTORELEASING\=YES
    export CLANG_WARN_BOOL_CONVERSION\=YES
    export CLANG_WARN_COMMA\=YES
    export CLANG_WARN_CONSTANT_CONVERSION\=YES
    export CLANG_WARN_DEPRECATED_OBJC_IMPLEMENTATIONS\=YES
    export CLANG_WARN_EMPTY_BODY\=YES
    export CLANG_WARN_ENUM_CONVERSION\=YES
    export CLANG_WARN_INFINITE_RECURSION\=YES
    export CLANG_WARN_INT_CONVERSION\=YES
    export CLANG_WARN_NON_LITERAL_NULL_CONVERSION\=YES
    export CLANG_WARN_OBJC_IMPLICIT_ATOMIC_PROPERTIES\=YES
    export CLANG_WARN_OBJC_IMPLICIT_RETAIN_SELF\=YES
    export CLANG_WARN_OBJC_LITERAL_CONVERSION\=YES
    export CLANG_WARN_QUOTED_INCLUDE_IN_FRAMEWORK_HEADER\=YES
    export CLANG_WARN_RANGE_LOOP_ANALYSIS\=YES
    export CLANG_WARN_SEMICOLON_BEFORE_METHOD_BODY\=YES
    export CLANG_WARN_STRICT_PROTOTYPES\=YES
    export CLANG_WARN_SUSPICIOUS_MOVE\=YES
    export CLANG_WARN_UNREACHABLE_CODE\=YES
    export CLANG_WARN__DUPLICATE_METHOD_MATCH\=YES
    export CLASS_FILE_DIR\=/Volumes/Work/Work/HandBrake/build/xroot/external.build/JavaClasses
    export CLONE_HEADERS\=NO
    export CODE_SIGNING_ALLOWED\=YES
    export CODE_SIGN_INJECT_BASE_ENTITLEMENTS\=YES
    export COLOR_DIAGNOSTICS\=NO
    export COMPILER_INDEX_STORE_ENABLE\=Default
    export COMPRESS_PNG_FILES\=NO
    export CONFIGURATION\=release-sandbox
    export CONFIGURATION_BUILD_DIR\=/Volumes/Work/Work/HandBrake/build/xroot
    export CONFIGURATION_TEMP_DIR\=/Volumes/Work/Work/HandBrake/build/xroot
    export COPYING_PRESERVES_HFS_DATA\=NO
    export COPY_HEADERS_RUN_UNIFDEF\=NO
    export COPY_PHASE_STRIP\=NO
    export CREATE_INFOPLIST_SECTION_IN_BINARY\=NO
    export DEAD_CODE_STRIPPING\=NO
    export DEBUGGING_SYMBOLS\=YES
    export DEBUG_INFORMATION_FORMAT\=dwarf-with-dsym
    export DEFAULT_COMPILER\=com.apple.compilers.llvm.clang.1_0
    export DEFAULT_DEXT_INSTALL_PATH\=/System/Library/DriverExtensions
    export DEFAULT_KEXT_INSTALL_PATH\=/System/Library/Extensions
    export DEFINES_MODULE\=NO
    export DEPLOYMENT_LOCATION\=NO
    export DEPLOYMENT_POSTPROCESSING\=NO
    export DEPLOYMENT_TARGET_CLANG_ENV_NAME\=MACOSX_DEPLOYMENT_TARGET
    export DEPLOYMENT_TARGET_CLANG_FLAG_NAME\=mmacosx-version-min
    export DEPLOYMENT_TARGET_LD_ENV_NAME\=MACOSX_DEPLOYMENT_TARGET
    export DEPLOYMENT_TARGET_LD_FLAG_NAME\=macosx_version_min
    export DEPLOYMENT_TARGET_SETTING_NAME\=MACOSX_DEPLOYMENT_TARGET
    export DERIVED_FILES_DIR\=
    export DERIVED_FILE_DIR\=/Volumes/Work/Work/HandBrake/build/xroot/external.build/DerivedSources
    export DERIVED_SOURCES_DIR\=/Volumes/Work/Work/HandBrake/build/xroot/external.build/DerivedSources
    export DEVELOPER_APPLICATIONS_DIR\=/Applications/Xcode.app/Contents/Developer/Applications
    export DEVELOPER_BIN_DIR\=/Applications/Xcode.app/Contents/Developer/usr/bin
    export DEVELOPER_DIR\=/Applications/Xcode.app/Contents/Developer
    export DEVELOPER_FRAMEWORKS_DIR\=/Applications/Xcode.app/Contents/Developer/Library/Frameworks
    export DEVELOPER_FRAMEWORKS_DIR_QUOTED\=/Applications/Xcode.app/Contents/Developer/Library/Frameworks
    export DEVELOPER_INSTALL_DIR\=/Applications/Xcode.app/Contents/Developer
    export DEVELOPER_LIBRARY_DIR\=/Applications/Xcode.app/Contents/Developer/Library
    export DEVELOPER_SDK_DIR\=/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs
    export DEVELOPER_TOOLS_DIR\=/Applications/Xcode.app/Contents/Developer/Tools
    export DEVELOPER_USR_DIR\=/Applications/Xcode.app/Contents/Developer/usr
    export DEVELOPMENT_LANGUAGE\=en
    export DEVICE_DEVELOPER_DIR\=/Developer
    export DONT_GENERATE_INFOPLIST_FILE\=NO
    export DO_HEADER_SCANNING_IN_JAM\=NO
    export DSTROOT\=/tmp/HandBrake.dst
    export DT_TOOLCHAIN_DIR\=/Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain
    export DWARF_DSYM_FILE_NAME\=.dSYM
    export DWARF_DSYM_FILE_SHOULD_ACCOMPANY_PRODUCT\=NO
    export DWARF_DSYM_FOLDER_PATH\=/Volumes/Work/Work/HandBrake/build/xroot
    export EMBEDDED_CONTENT_CONTAINS_SWIFT\=NO
    export EMBEDDED_PROFILE_NAME\=embedded.provisionprofile
    export EMBED_ASSET_PACKS_IN_PRODUCT_BUNDLE\=NO
    export ENABLE_BITCODE\=NO
    export ENABLE_DEFAULT_HEADER_SEARCH_PATHS\=YES
    export ENABLE_HARDENED_RUNTIME\=NO
    export ENABLE_HEADER_DEPENDENCIES\=YES
    export ENABLE_ON_DEMAND_RESOURCES\=NO
    export ENABLE_PREVIEWS\=NO
    export ENABLE_STRICT_OBJC_MSGSEND\=YES
    export ENABLE_TESTABILITY\=NO
    export ENABLE_TESTING_SEARCH_PATHS\=NO
    export ENTITLEMENTS_DESTINATION\=Signature
    export EXCLUDED_INSTALLSRC_SUBDIRECTORY_PATTERNS\=.DS_Store\ .svn\ .git\ .hg\ CVS
    export EXCLUDED_RECURSIVE_SEARCH_PATH_SUBDIRECTORIES\=\*.nib\ \*.lproj\ \*.framework\ \*.gch\ \*.xcode\*\ \*.xcassets\ \(\*\)\ .DS_Store\ CVS\ .svn\ .git\ .hg\ \*.pbproj\ \*.pbxproj
    export EXTERNAL_BUILD\=/Volumes/Work/Work/HandBrake/build
    export EXTERNAL_CONF_ARGS\=--build\=/Volumes/Work/Work/HandBrake/build\ --xcode-driver\=terminal\ --xcode-symroot\=/Volumes/Work/Work/HandBrake/build/xroot\ --xcode-config\=native\ --gcc\=/Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/clang\ --arch\=x86_64\ --sysroot\=/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX11.1.sdk\ --minver\=10.11
    export EXTERNAL_DRIVER\=terminal
    export EXTERNAL_GOALS\=libiconv.build
    export EXTERNAL_JOBS\=1
    export EXTERNAL_O\=3
    export EXTERNAL_SRC\=..
    export EXTERNAL_XCCONFIG\=native
    export FILE_LIST\=/Volumes/Work/Work/HandBrake/build/xroot/external.build/Objects/LinkFileList
    export FRAMEWORK_VERSION\=A
    export GCC3_VERSION\=3.3
    export GCC_C_LANGUAGE_STANDARD\=gnu99
    export GCC_ENABLE_OBJC_EXCEPTIONS\=YES
    export GCC_NO_COMMON_BLOCKS\=YES
    export GCC_OPTIMIZATION_LEVEL\=3
    export GCC_PREPROCESSOR_DEFINITIONS\=__SANDBOX_ENABLED__\=1
    export GCC_TREAT_IMPLICIT_FUNCTION_DECLARATIONS_AS_ERRORS\=YES
    export GCC_TREAT_INCOMPATIBLE_POINTER_TYPE_WARNINGS_AS_ERRORS\=YES
    export GCC_VERSION\=com.apple.compilers.llvm.clang.1_0
    export GCC_WARN_64_TO_32_BIT_CONVERSION\=YES
    export GCC_WARN_ABOUT_MISSING_FIELD_INITIALIZERS\=YES
    export GCC_WARN_ABOUT_MISSING_NEWLINE\=YES
    export GCC_WARN_ABOUT_MISSING_PROTOTYPES\=YES
    export GCC_WARN_ABOUT_RETURN_TYPE\=YES
    export GCC_WARN_FOUR_CHARACTER_CONSTANTS\=YES
    export GCC_WARN_INITIALIZER_NOT_FULLY_BRACKETED\=YES
    export GCC_WARN_SHADOW\=YES
    export GCC_WARN_UNDECLARED_SELECTOR\=YES
    export GCC_WARN_UNINITIALIZED_AUTOS\=YES
    export GCC_WARN_UNKNOWN_PRAGMAS\=YES
    export GCC_WARN_UNUSED_FUNCTION\=YES
    export GCC_WARN_UNUSED_LABEL\=YES
    export GCC_WARN_UNUSED_VARIABLE\=YES
    export GENERATED_MODULEMAP_DIR\=/Volumes/Work/Work/HandBrake/build/xroot/GeneratedModuleMaps
    export GENERATE_MASTER_OBJECT_FILE\=NO
    export GENERATE_PKGINFO_FILE\=NO
    export GENERATE_PROFILING_CODE\=NO
    export GENERATE_TEXT_BASED_STUBS\=NO
    export GID\=20
    export GROUP\=staff
    export HEADERMAP_INCLUDES_FLAT_ENTRIES_FOR_TARGET_BEING_BUILT\=YES
    export HEADERMAP_INCLUDES_FRAMEWORK_ENTRIES_FOR_ALL_PRODUCT_TYPES\=YES
    export HEADERMAP_INCLUDES_NONPUBLIC_NONPRIVATE_HEADERS\=YES
    export HEADERMAP_INCLUDES_PROJECT_HEADERS\=YES
    export HEADERMAP_USES_FRAMEWORK_PREFIX_ENTRIES\=YES
    export HEADERMAP_USES_VFS\=NO
    export HIDE_BITCODE_SYMBOLS\=YES
    export HOME\=/Users/nak
    export INFOPLIST_EXPAND_BUILD_SETTINGS\=YES
    export INFOPLIST_OUTPUT_FORMAT\=same-as-input
    export INFOPLIST_PREPROCESS\=NO
    export INLINE_PRIVATE_FRAMEWORKS\=NO
    export INSTALLHDRS_COPY_PHASE\=NO
    export INSTALLHDRS_SCRIPT_PHASE\=NO
    export INSTALL_DIR\=/tmp/HandBrake.dst
    export INSTALL_GROUP\=staff
    export INSTALL_MODE_FLAG\=u+w,go-w,a+rX
    export INSTALL_OWNER\=nak
    export INSTALL_ROOT\=/tmp/HandBrake.dst
    export JAVA_APP_STUB\=/System/Library/Frameworks/JavaVM.framework/Resources/MacOS/JavaApplicationStub
    export JAVA_ARCHIVE_CLASSES\=YES
    export JAVA_ARCHIVE_TYPE\=JAR
    export JAVA_COMPILER\=/usr/bin/javac
    export JAVA_FRAMEWORK_RESOURCES_DIRS\=Resources
    export JAVA_JAR_FLAGS\=cv
    export JAVA_SOURCE_SUBDIR\=.
    export JAVA_USE_DEPENDENCIES\=YES
    export JAVA_ZIP_FLAGS\=-urg
    export KEEP_PRIVATE_EXTERNS\=NO
    export LD_DEPENDENCY_INFO_FILE\=//external_dependency_info.dat
    export LD_GENERATE_MAP_FILE\=NO
    export LD_MAP_FILE_PATH\=/Volumes/Work/Work/HandBrake/build/xroot/external.build/external-LinkMap--.txt
    export LD_NO_PIE\=NO
    export LD_QUOTE_LINKER_ARGUMENTS_FOR_COMPILER_DRIVER\=YES
    export LEGACY_DEVELOPER_DIR\=/Applications/Xcode.app/Contents/PlugIns/Xcode3Core.ideplugin/Contents/SharedSupport/Developer
    export LIBRARY_DEXT_INSTALL_PATH\=/Library/DriverExtensions
    export LIBRARY_FLAG_NOSPACE\=YES
    export LIBRARY_KEXT_INSTALL_PATH\=/Library/Extensions
    export LINKER_DISPLAYS_MANGLED_NAMES\=NO
    export LINK_FILE_LIST_normal_x86_64\=/Volumes/Work/Work/HandBrake/build/xroot/external.build/Objects-normal/x86_64/external.LinkFileList
    export LINK_WITH_STANDARD_LIBRARIES\=YES
    export LLVM_TARGET_TRIPLE_OS_VERSION\=macos10.11
    export LLVM_TARGET_TRIPLE_VENDOR\=apple
    export LOCALIZED_STRING_MACRO_NAMES\=NSLocalizedString\ CFLocalizedString\ HBKitLocalizedString
    export LOCALIZED_STRING_SWIFTUI_SUPPORT\=YES
    export LOCAL_ADMIN_APPS_DIR\=/Applications/Utilities
    export LOCAL_APPS_DIR\=/Applications
    export LOCAL_DEVELOPER_DIR\=/Library/Developer
    export LOCAL_LIBRARY_DIR\=/Library
    export LOCROOT\=/Volumes/Work/Work/HandBrake/macosx
    export LOCSYMROOT\=/Volumes/Work/Work/HandBrake/macosx
    export MACOSX_DEPLOYMENT_TARGET\=10.11
    export MAC_OS_X_PRODUCT_BUILD_VERSION\=19H114
    export MAC_OS_X_VERSION_ACTUAL\=101507
    export MAC_OS_X_VERSION_MAJOR\=101500
    export MAC_OS_X_VERSION_MINOR\=1507
    export METAL_LIBRARY_FILE_BASE\=default
    export METAL_LIBRARY_OUTPUT_DIR\=/Volumes/Work/Work/HandBrake/build/xroot/
    export NATIVE_ARCH\=x86_64
    export NATIVE_ARCH_32_BIT\=i386
    export NATIVE_ARCH_64_BIT\=x86_64
    export NATIVE_ARCH_ACTUAL\=x86_64
    export OBJECT_FILE_DIR\=/Volumes/Work/Work/HandBrake/build/xroot/external.build/Objects
    export OBJROOT\=/Volumes/Work/Work/HandBrake/build/xroot
    export ONLY_ACTIVE_ARCH\=NO
    export OS\=MACOS
    export OTHER_LDFLAGS\=-filelist\ /Volumes/Work/Work/HandBrake/build/macosx/osl.filelist.txt\ -lc++\ -w
    export PATH\=/Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin:/Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/local/bin:/Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/libexec:/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/usr/bin:/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/usr/local/bin:/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/usr/bin:/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/usr/local/bin:/Applications/Xcode.app/Contents/Developer/usr/bin:/Applications/Xcode.app/Contents/Developer/usr/local/bin:/opt/local/bin:/opt/local/sbin:/usr/local/bin:/usr/bin:/bin:/usr/sbin:/sbin:/Library/Apple/usr/bin/Applications/Xcode.app/Contents/Developer/usr/bin:/opt/local/bin:/opt/local/sbin:/usr/local/bin:/usr/bin:/bin:/usr/sbin:/sbin:/Library/Apple/usr/bin
    export PATH_PREFIXES_EXCLUDED_FROM_HEADER_DEPENDENCIES\=/usr/include\ /usr/local/include\ /System/Library/Frameworks\ /System/Library/PrivateFrameworks\ /Applications/Xcode.app/Contents/Developer/Headers\ /Applications/Xcode.app/Contents/Developer/SDKs\ /Applications/Xcode.app/Contents/Developer/Platforms
    export PER_ARCH_OBJECT_FILE_DIR\=/
    export PLATFORM_DEVELOPER_APPLICATIONS_DIR\=/Applications/Xcode.app/Contents/Developer/Applications
    export PLATFORM_DEVELOPER_BIN_DIR\=/Applications/Xcode.app/Contents/Developer/usr/bin
    export PLATFORM_DEVELOPER_LIBRARY_DIR\=/Applications/Xcode.app/Contents/Developer/Library
    export PLATFORM_DEVELOPER_SDK_DIR\=/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs
    export PLATFORM_DEVELOPER_TOOLS_DIR\=/Applications/Xcode.app/Contents/Developer/Tools
    export PLATFORM_DEVELOPER_USR_DIR\=/Applications/Xcode.app/Contents/Developer/usr
    export PLATFORM_DIR\=/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform
    export PLATFORM_DISPLAY_NAME\=macOS
    export PLATFORM_FAMILY_NAME\=macOS
    export PLATFORM_NAME\=macosx
    export PLATFORM_PREFERRED_ARCH\=x86_64
    export PLATFORM_PRODUCT_BUILD_VERSION\=12C33
    export PLIST_FILE_OUTPUT_FORMAT\=same-as-input
    export PRECOMPS_INCLUDE_HEADERS_FROM_BUILT_PRODUCTS_DIR\=YES
    export PRECOMP_DESTINATION_DIR\=/Volumes/Work/Work/HandBrake/build/xroot/external.build/PrefixHeaders
    export PRESERVE_DEAD_CODE_INITS_AND_TERMS\=NO
    export PRODUCT_MODULE_NAME\=external
    export PRODUCT_NAME\=external
    export PROFILING_CODE\=NO
    export PROJECT\=HandBrake
    export PROJECT_CLASS_PREFIX\=HB
    export PROJECT_DERIVED_FILE_DIR\=/Volumes/Work/Work/HandBrake/build/xroot/HandBrake.build/DerivedSources
    export PROJECT_DIR\=/Volumes/Work/Work/HandBrake/macosx
    export PROJECT_FILE_PATH\=/Volumes/Work/Work/HandBrake/macosx/HandBrake.xcodeproj
    export PROJECT_NAME\=HandBrake
    export PROJECT_TEMP_DIR\=/Volumes/Work/Work/HandBrake/build/xroot/HandBrake.build
    export PROJECT_TEMP_ROOT\=/Volumes/Work/Work/HandBrake/build/xroot
    export REMOVE_CVS_FROM_RESOURCES\=YES
    export REMOVE_GIT_FROM_RESOURCES\=YES
    export REMOVE_HEADERS_FROM_EMBEDDED_BUNDLES\=YES
    export REMOVE_HG_FROM_RESOURCES\=YES
    export REMOVE_SVN_FROM_RESOURCES\=YES
    export SCAN_ALL_SOURCE_FILES_FOR_INCLUDES\=NO
    export SDKROOT\=/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX11.1.sdk
    export SEPARATE_STRIP\=NO
    export SEPARATE_SYMBOL_EDIT\=NO
    export SHARED_DERIVED_FILE_DIR\=/Volumes/Work/Work/HandBrake/build/xroot/DerivedSources
    export SHARED_PRECOMPS_DIR\=/Volumes/Work/Work/HandBrake/build/xroot/PrecompiledHeaders
    export SKIP_INSTALL\=YES
    export SOURCE_ROOT\=/Volumes/Work/Work/HandBrake/macosx
    export SRCROOT\=/Volumes/Work/Work/HandBrake/macosx
    export STRINGS_FILE_OUTPUT_ENCODING\=UTF-16
    export STRIP_BITCODE_FROM_COPIED_FILES\=NO
    export STRIP_INSTALLED_PRODUCT\=YES
    export STRIP_PNG_TEXT\=NO
    export STRIP_STYLE\=all
    export STRIP_SWIFT_SYMBOLS\=YES
    export SUPPORTED_PLATFORMS\=macosx
    export SUPPORTS_TEXT_BASED_API\=NO
    export SWIFT_PLATFORM_TARGET_PREFIX\=macos
    export SWIFT_RESPONSE_FILE_PATH_normal_x86_64\=/Volumes/Work/Work/HandBrake/build/xroot/external.build/Objects-normal/x86_64/external.SwiftFileList
    export SYMROOT\=/Volumes/Work/Work/HandBrake/build/xroot
    export SYSTEM_ADMIN_APPS_DIR\=/Applications/Utilities
    export SYSTEM_APPS_DIR\=/Applications
    export SYSTEM_CORE_SERVICES_DIR\=/System/Library/CoreServices
    export SYSTEM_DEMOS_DIR\=/Applications/Extras
    export SYSTEM_DEVELOPER_APPS_DIR\=/Applications/Xcode.app/Contents/Developer/Applications
    export SYSTEM_DEVELOPER_BIN_DIR\=/Applications/Xcode.app/Contents/Developer/usr/bin
    export SYSTEM_DEVELOPER_DEMOS_DIR\=/Applications/Xcode.app/Contents/Developer/Applications/Utilities/Built\ Examples
    export SYSTEM_DEVELOPER_DIR\=/Applications/Xcode.app/Contents/Developer
    export SYSTEM_DEVELOPER_DOC_DIR\=/Applications/Xcode.app/Contents/Developer/ADC\ Reference\ Library
    export SYSTEM_DEVELOPER_GRAPHICS_TOOLS_DIR\=/Applications/Xcode.app/Contents/Developer/Applications/Graphics\ Tools
    export SYSTEM_DEVELOPER_JAVA_TOOLS_DIR\=/Applications/Xcode.app/Contents/Developer/Applications/Java\ Tools
    export SYSTEM_DEVELOPER_PERFORMANCE_TOOLS_DIR\=/Applications/Xcode.app/Contents/Developer/Applications/Performance\ Tools
    export SYSTEM_DEVELOPER_RELEASENOTES_DIR\=/Applications/Xcode.app/Contents/Developer/ADC\ Reference\ Library/releasenotes
    export SYSTEM_DEVELOPER_TOOLS\=/Applications/Xcode.app/Contents/Developer/Tools
    export SYSTEM_DEVELOPER_TOOLS_DOC_DIR\=/Applications/Xcode.app/Contents/Developer/ADC\ Reference\ Library/documentation/DeveloperTools
    export SYSTEM_DEVELOPER_TOOLS_RELEASENOTES_DIR\=/Applications/Xcode.app/Contents/Developer/ADC\ Reference\ Library/releasenotes/DeveloperTools
    export SYSTEM_DEVELOPER_USR_DIR\=/Applications/Xcode.app/Contents/Developer/usr
    export SYSTEM_DEVELOPER_UTILITIES_DIR\=/Applications/Xcode.app/Contents/Developer/Applications/Utilities
    export SYSTEM_DEXT_INSTALL_PATH\=/System/Library/DriverExtensions
    export SYSTEM_DOCUMENTATION_DIR\=/Library/Documentation
    export SYSTEM_KEXT_INSTALL_PATH\=/System/Library/Extensions
    export SYSTEM_LIBRARY_DIR\=/System/Library
    export TAPI_VERIFY_MODE\=ErrorsOnly
    export TARGETNAME\=external
    export TARGET_BUILD_DIR\=/Volumes/Work/Work/HandBrake/build/xroot
    export TARGET_NAME\=external
    export TARGET_TEMP_DIR\=/Volumes/Work/Work/HandBrake/build/xroot/external.build
    export TEMP_DIR\=/Volumes/Work/Work/HandBrake/build/xroot/external.build
    export TEMP_FILES_DIR\=/Volumes/Work/Work/HandBrake/build/xroot/external.build
    export TEMP_FILE_DIR\=/Volumes/Work/Work/HandBrake/build/xroot/external.build
    export TEMP_ROOT\=/Volumes/Work/Work/HandBrake/build/xroot
    export TOOLCHAIN_DIR\=/Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain
    export TREAT_MISSING_BASELINES_AS_TEST_FAILURES\=NO
    export UID\=501
    export USER\=nak
    export USER_APPS_DIR\=/Users/nak/Applications
    export USER_LIBRARY_DIR\=/Users/nak/Library
    export USE_HEADERMAP\=YES
    export USE_LLVM_TARGET_TRIPLES\=YES
    export USE_LLVM_TARGET_TRIPLES_FOR_CLANG\=YES
    export USE_LLVM_TARGET_TRIPLES_FOR_LD\=YES
    export USE_LLVM_TARGET_TRIPLES_FOR_TAPI\=YES
    export VALIDATE_DEVELOPMENT_ASSET_PATHS\=YES_ERROR
    export VALIDATE_WORKSPACE\=YES_ERROR
    export VALID_ARCHS\=arm64\ arm64e\ i386\ x86_64
    export WRAP_ASSET_PACKS_IN_SEPARATE_DIRECTORIES\=NO
    export XCODE_APP_SUPPORT_DIR\=/Applications/Xcode.app/Contents/Developer/Library/Xcode
    export XCODE_INSTALL_PATH\=/Applications/Xcode.app/Contents/Developer/../../..
    export XCODE_PRODUCT_BUILD_VERSION\=12C33
    export XCODE_VERSION_ACTUAL\=1230
    export XCODE_VERSION_MAJOR\=1200
    export XCODE_VERSION_MINOR\=1230
    export arch\=undefined_arch
    export variant\=normal
    /bin/bash ../make/xcodemake
target specification: external:
reconfiguring (unclobber PATH)
Unclobbering PATH:
    export PATH="/opt/local/bin:/opt/local/sbin:/usr/local/bin:/usr/bin:/bin:/usr/sbin:/sbin:/Library/Apple/usr/bin/Applications/Xcode.app/Contents/Developer/usr/bin:/opt/local/bin:/opt/local/sbin:/usr/local/bin:/usr/bin:/bin:/usr/sbin:/sbin:/Library/Apple/usr/bin:/Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin:/Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/local/bin:/Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/libexec:/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/usr/bin:/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/usr/local/bin:/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/usr/bin:/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/usr/local/bin:/Applications/Xcode.app/Contents/Developer/usr/bin:/Applications/Xcode.app/Contents/Developer/usr/local/bin"
+ ../configure --force --build=/Volumes/Work/Work/HandBrake/build --xcode-driver=terminal --xcode-symroot=/Volumes/Work/Work/HandBrake/build/xroot --xcode-config=native --gcc=/Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/clang --arch=x86_64 --sysroot=/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX11.1.sdk --minver=10.11 --build=/Volumes/Work/Work/HandBrake/build --xcode-driver=terminal --xcode-symroot=/Volumes/Work/Work/HandBrake/build/xroot --xcode-config=native --gcc=/Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/clang --arch=x86_64 --sysroot=/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX11.1.sdk --minver=10.11
probe: build tuple...(pass) x86_64-apple-darwin19.6.0
find: ar...(pass) /usr/bin/ar
find: cp...(pass) /bin/cp
find: gm4...(pass) /usr/bin/gm4
find: mkdir...(pass) /bin/mkdir
find: gpatch...(pass) /usr/bin/patch
find: rm...(pass) /bin/rm
find: ranlib...(pass) /usr/bin/ranlib
find: strip...(pass) /usr/bin/strip
find: gtar...(pass) /usr/bin/tar
find: python3...(pass) /usr/bin/python3
find: gcc...(pass) /usr/bin/gcc
find: make...(pass) /usr/bin/make
find: autoconf...(pass) /opt/local/bin/autoconf
find: automake...(pass) /opt/local/bin/automake
find: libtool...(pass) /usr/local/bin/libtool
find: lipo...(pass) /usr/bin/lipo
find: pkg-config...(pass) /opt/local/bin/pkg-config
find: meson...(pass) /opt/local/bin/meson
find: nasm...(pass) /opt/local/bin/nasm
find: ninja-build...(pass) /opt/local/bin/ninja
find: xcodebuild...(pass) /usr/bin/xcodebuild
probe: checking for -Oz...(pass) end
compute: available architectures...(pass) arm64 x86_64 [x86_64]
probe: number of CPU cores...(pass) 20
probe: repo info...(pass) https://github.com/HandBrake/HandBrake.git
compute: project data...(pass) HandBrake (developer)
version probe: autoconf 2.69.0...(pass) 2.69
version probe: automake 1.13.0...(pass) 1.16.3
version probe: pkg-config 0.27.0...(pass) 0.29.2
version probe: meson 0.47.0...(pass) 0.55.3
version probe: nasm 2.13.0...(pass) 2.15.05
version probe: xcodebuild 10.3.0...(pass) 12.3
compute: host tuple...(pass) x86_64-apple-darwin19.6.0
find: cmake...(pass) /opt/local/bin/cmake
version probe: cmake 3.1.0...(pass) 3.19.2
probe: strerror_r...(pass) 
probe: checking for -Wno-format-truncation...(fail) code 1
compute: makevar SRC/    = /Volumes/Work/Work/HandBrake
compute: makevar BUILD/  = .
compute: makevar PREFIX/ = /usr/local
compute: makevar XCODE.prefix/ = /Applications
chdir: /Volumes/Work/Work/HandBrake/build
write: GNUmakefile
write: project/handbrake.m4
write: distfile.cfg
-------------------------------------------------------------------------------
Build system:       x86_64-apple-darwin19.6.0
Host system:        x86_64-apple-darwin19.6.0
Target platform:    darwin
Harden:             True
Sandbox:            True
Enable FDK-AAC:     False
Enable FFmpeg AAC:  False
Enable NVENC:       False (not supported on target platform)
Enable QSV:         False (not supported on target platform)
Enable VCE:         False (not supported on target platform)
-------------------------------------------------------------------------------
Build is configured!
You may now cd into /Volumes/Work/Work/HandBrake/build and run make (/usr/bin/make).
+ exec make -C /Volumes/Work/Work/HandBrake/build XCODE.driver=xcodemake --jobs=1 libiconv.build
make[1]: *** No rule to make target `libiconv.build'.  Stop.
Command ExternalBuildToolExecution failed with a nonzero exit code

** BUILD FAILED **


The following build commands failed:
	ExternalBuildToolExecution external
(1 failure)
make: *** [__goals__] Error 65

User avatar
Rodeo
HandBrake Team
Posts: 12678
Joined: Tue Mar 03, 2009 8:55 pm

Re: Errors occur during build

Post by Rodeo »

p_q0p_q wrote: Sat Jan 02, 2021 1:05 pm Description of problem or question:

I got an error when I tried to build it on a Mac as described in the website (https://handbrake.fr/docs/en/latest/dev ... d-mac.html).
How can I deal with this?



Steps to reproduce the problem (If Applicable):




HandBrake version (e.g., 1.0.0):

svn(2020/12/28)
I had missed this. Where on Earth did you find a Subversion repository for HandBrake??? :shock:
p_q0p_q
Regular User
Posts: 50
Joined: Thu Dec 11, 2014 3:01 pm

Re: Errors occur during build

Post by p_q0p_q »

It was git, not Subversion repository. It's different.

(git clone https://github.com/HandBrake/HandBrake.git
User avatar
Rodeo
HandBrake Team
Posts: 12678
Joined: Tue Mar 03, 2009 8:55 pm

Re: Errors occur during build

Post by Rodeo »

I cannot seem to reproduce. Which macOS version are you building under? Which revision is your git HEAD on right now?
p_q0p_q
Regular User
Posts: 50
Joined: Thu Dec 11, 2014 3:01 pm

Re: Errors occur during build

Post by p_q0p_q »

macOS 10.15.7
git version 2.24.3 (Apple Git-128)
User avatar
Rodeo
HandBrake Team
Posts: 12678
Joined: Tue Mar 03, 2009 8:55 pm

Re: Errors occur during build

Post by Rodeo »

Not the git version, the git revision of your HandBrake git tree :-)

Code: Select all

git rev-parse HEAD
p_q0p_q
Regular User
Posts: 50
Joined: Thu Dec 11, 2014 3:01 pm

Re: Errors occur during build

Post by p_q0p_q »

When I ran the command, it came out like this

git rev-parse HEAD
e4d444553b85fa1d72addfa5b274ed7782f0b77b
User avatar
Rodeo
HandBrake Team
Posts: 12678
Joined: Tue Mar 03, 2009 8:55 pm

Re: Errors occur during build

Post by Rodeo »

Still building fine for me. You probably want to do a full, clean build of the latest git master to see where the first failure occurs:

Code: Select all

git pull; rm -rf build/; rm -rf ~/Library/Developer/Xcode/DerivedData/HandBrake*/; ./configure --launch --launch-jobs=1
If it still fails, then upload the new build/log/build.txt to Dropbox.
p_q0p_q
Regular User
Posts: 50
Joined: Thu Dec 11, 2014 3:01 pm

Re: Errors occur during build

Post by p_q0p_q »

The specified command has been executed.
But there was an error, so I replaced the build.txt file.

https://www.dropbox.com/s/9y2jnywh8ig4y ... d.txt?dl=0
User avatar
Rodeo
HandBrake Team
Posts: 12678
Joined: Tue Mar 03, 2009 8:55 pm

Re: Errors occur during build

Post by Rodeo »

Hmm, it seems the libiconv contrib is not build and the build links against the system iconv (even in my build).

I gather you installed dependencies from MacPorts instead of e.g. Homebrew?
User avatar
Rodeo
HandBrake Team
Posts: 12678
Joined: Tue Mar 03, 2009 8:55 pm

Re: Errors occur during build

Post by Rodeo »

OK, I thin k I know what is happening, but I have no idea why. It looks like the build system now links against the macOS-provided libiconv (maybe it always did, not sure), but in your case, it picks up a third-party version in /opt/local:

Code: Select all

	    -e 's?\@XML_LIBS\@?-lxml2 -L/opt/local/lib -lz    -liconv  -lm ?g' \
What is the value of your $LIBDIR environment variable?
p_q0p_q
Regular User
Posts: 50
Joined: Thu Dec 11, 2014 3:01 pm

Re: Errors occur during build

Post by p_q0p_q »

Thank you for always being available.
As you said, I'm using MacPorts, is there a problem?
(I've never used Homebrew before)

The $LIBDIR environment variable was not set for some reason, and I wonder if it was lost during the iMac migration.
Exactly does the environment variable $LIBDIR have to be set?

Where do you mean this command should be added?

Code: Select all

-e 's?\@XML_LIBS\@?-lxml2 -L/opt/local/lib -lz    -liconv  -lm ?g' \
User avatar
Rodeo
HandBrake Team
Posts: 12678
Joined: Tue Mar 03, 2009 8:55 pm

Re: Errors occur during build

Post by Rodeo »

No, that's part of the log. The '-L/opt/local/lib' part is why it's picking your MacPorts iconv instead of the macOS built-in one, and shouldn't be there. I don't know why it gets added though, I'm a bit stumped. I suspect an environment variable ($LIBDIR was just a wild guess, TBH).
Woodstock
Veteran User
Posts: 3939
Joined: Tue Aug 27, 2013 6:39 am

Re: Errors occur during build

Post by Woodstock »

Just to toss this out as a random thought... What shell is in use? Late-model MacOS switched over to csh by default, if memory serves.
p_q0p_q
Regular User
Posts: 50
Joined: Thu Dec 11, 2014 3:01 pm

Re: Errors occur during build

Post by p_q0p_q »

I removed libiconv from MacPorts and then tried to build handbrake.
I had to start from scratch (git) and even though I 'configured' it, I got the following message and could not proceed. Why?

Code: Select all

probe: build tuple...(pass) x86_64-apple-darwin19.6.0
find: ar...(pass) /usr/bin/ar
find: cp...(pass) /bin/cp
find: gm4...(pass) /usr/bin/gm4
find: mkdir...(pass) /bin/mkdir
find: gpatch...(pass) /usr/bin/patch
find: rm...(pass) /bin/rm
find: ranlib...(pass) /usr/bin/ranlib
find: strip...(pass) /usr/bin/strip
find: gtar...(pass) /usr/bin/tar
find: python3...(pass) /usr/bin/python3
find: gcc...(pass) /usr/bin/gcc
find: make...(pass) /usr/bin/make
find: autoconf...(pass) /opt/local/bin/autoconf
find: automake...(pass) /opt/local/bin/automake
find: libtool...(pass) /usr/local/bin/libtool
find: lipo...(pass) /usr/bin/lipo
find: pkg-config...(pass) /opt/local/bin/pkg-config
find: meson...(pass) /opt/local/bin/meson
find: nasm...(pass) /opt/local/bin/nasm
find: ninja-build...(pass) /opt/local/bin/ninja
find: xcodebuild...(pass) /usr/bin/xcodebuild
probe: checking for -Oz...(pass) end
compute: available architectures...(pass) arm64 x86_64 [x86_64]
probe: number of CPU cores...(pass) 20
probe: repo info...(fail) code 134
probe: version.txt...(fail)
ERROR: HandBrake is missing version information it needs to build properly.
Clone the official git repository at https://github.com/HandBrake/HandBrake.git
or download an official source archive from https://handbrake.fr
; configure stop.
compute: project data...


As for the shell, it is 'SHELL=/bin/bash'.
The default for Mac seems to be '/bin/zsh'.
User avatar
Rodeo
HandBrake Team
Posts: 12678
Joined: Tue Mar 03, 2009 8:55 pm

Re: Errors occur during build

Post by Rodeo »

IDK, easiest is just to nuke your HandBrake directory and and start with a new, fresh git clone.
p_q0p_q
Regular User
Posts: 50
Joined: Thu Dec 11, 2014 3:01 pm

Re: Errors occur during build

Post by p_q0p_q »

Yesterday, I removed MacPorts (I didn't reboot the iMac), added Homebrew, and did git&configure, and it built.
I don't know what the cause is.
Thank you.

One thing I would like to know is that it used to be '~/Library/Application Support/HandBrake' and now it is '~/Containers/fr.handbrake.HandBrake/Data/Library/Application Support/HandBrake'?
Post Reply