Building finance/electrum fails

I'm running into problems building electrum from the ports collection:

cd /usr/ports/finance/electrum/ && make -DBATCH install
...
Code:
===>  Configuring for libplacebo-6.292.0                                                                                                                                                     
WARNING: Recommend using either -Dbuildtype or -Doptimization + -Ddebug. Using both is redundant since they override each other. See: [URL]https://mesonbuild.com/Builtin-options.html#build-type-op[/URL]
tions                                                                                                                                                                                        
The Meson build system                                                                                                                                                                       
Version: 1.1.1                                                                                                                                                                               
Source dir: /usr/ports/graphics/libplacebo/work/libplacebo-6.292.0                                                                                                                           
Build dir: /usr/ports/graphics/libplacebo/work/libplacebo-6.292.0/_build                                                                                                                     
Build type: native build                                                                                                                                                                     
Project name: libplacebo                                                                                                                                                                     
Project version: 6.292.0                                                                                                                                                                     
C compiler for the host machine: cc (clang 14.0.5 "FreeBSD clang version 14.0.5 ([URL]https://github.com/llvm/llvm-project.git[/URL] llvmorg-14.0.5-0-gc12386ae247c)")                                  
C linker for the host machine: cc ld.lld 14.0.5                                                                                                                                              
C++ compiler for the host machine: c++ (clang 14.0.5 "FreeBSD clang version 14.0.5 ([URL]https://github.com/llvm/llvm-project.git[/URL] llvmorg-14.0.5-0-gc12386ae247c)")                               
C++ linker for the host machine: c++ ld.lld 14.0.5                                                                                                                                           
Host machine cpu family: x86_64                                                                                                                                                              
Host machine cpu: x86_64                                                                                                                                                                     
Compiler for C supports arguments -Wincompatible-pointer-types: YES                                                                                                                          
Compiler for C supports link arguments -Wl,--exclude-libs=ALL: YES                                                                                                                           
Library m found: YES                                                                                                                                                                         
Program python3 found: YES (/usr/local/bin/python3.9)                                                                                                                                        
Run-time dependency threads found: YES                                                                                                                                                       
Header "pthread.h" has symbol "pthread_condattr_setclock" with dependency threads: YES                                                                                                       
Found pkg-config: /usr/local/bin/pkgconf (1.8.1)                                                                                                                                             
Run-time dependency libunwind found: YES 1.6.2
Library execinfo found: YES
Checking for function "backtrace_symbols" with dependency -lexecinfo: YES
Check usable header "dbghelp.h" : NO
Library dl found: YES
Fetching value of define "__MINGW32__" :
Run-time dependency shaderc found: YES 2023.5.1
Check usable header "d3d11.h" : NO
Check usable header "d3d11_4.h" skipped: feature d3d11 disabled
Check usable header "dxgi1_6.h" skipped: feature d3d11 disabled
Dependency spirv-cross-c-shared skipped: feature d3d11 disabled
Library version skipped: feature d3d11 disabled
Run-time dependency vulkan found: NO (tried pkgconfig and system)
Header "vulkan/vulkan_core.h" has symbol "VK_VERSION_1_3" with dependency vulkan: YES

src/vulkan/meson.build:25:26: ERROR: Feature vk-proc-addr cannot be enabled

A full log can be found at /usr/ports/graphics/libplacebo/work/libplacebo-6.292.0/_build/meson-logs/meson-log.txt
WARNING: Running the setup command as `meson [options]` instead of `meson setup [options]` is ambiguous and deprecated.
===>  Script "configure" failed unexpectedly.
Please report the problem to [EMAIL]jbeich@FreeBSD.org[/EMAIL] [maintainer] and attach the
"/usr/ports/graphics/libplacebo/work/libplacebo-6.292.0/_build/meson-logs/meson-log.txt"
including the output of the failure of your make command. Also, it might be
a good idea to provide an overview of all packages installed on your system
(e.g. a /usr/local/sbin/pkg-static info -g -Ea).
*** Error code 1

Stop.

I emailed the maintainer last week although I haven't heard a response. Is there any other suggestions on how to debug this?

Thanks
 
Install the package.

Code:
root@fbsd-test:~ # pkg search electrum
py39-electrum-4.4.5            Easy to use Bitcoin client
 
Thanks, although I was trying to install this from source instead from the binary. Is there a way to install this from ports instead of from pkg?
 
There is a package for it, which means the build clusters didn't have a problem building the port. That kind of infers that the issue is happening on your system. Any non-default options you've set? Maybe some dependency hasn't been updated prior to the build? Are you building in a "clean" environment?
 
Are you building in a "clean" environment?

the ports I built prior from a clean install of 13.2 are:

devel/git
ports-mgmt/portmaster
x11/xorg
graphics/drm-kmod
x11-wm/evilwm/
www/chromium

git is needed to pull updates from the port tree, portmaster for updating, xorg, kmod and evilwm for the windowing.
 
If you're not going to change options or defaults then there's really no reason to build from ports. Just use the packages.
 
There are some other reasons to prefer ports, for example, from handbook/ports:
  • Some people do not trust binary distributions or prefer to read through source code in order to look for potential problems.
Also, wouldn't ports get updates quicker instead of waiting for quarterly builds of binaries?
 
Also, wouldn't ports get updates quicker instead of waiting for quarterly builds of binaries?
You know there's a latest repository too? But sure, everything starts with an update to a port. Then the packages get built. This happens quite frequently though.
 
You know there's a latest repository too?
I do now. Thanks!

interestingly I get the same error when building firefox:

===> Configuring for libplacebo-6.292.0
WARNING: Recommend using either -Dbuildtype or -Doptimization + -Ddebug. Using both is redundant since they override each other. See: https://mesonbuild.com/Builtin-options.html#build-type-options
The Meson build system
Version: 1.1.1
Source dir: /usr/ports/graphics/libplacebo/work/libplacebo-6.292.0
Build dir: /usr/ports/graphics/libplacebo/work/libplacebo-6.292.0/_build
Build type: native build
Project name: libplacebo
Project version: 6.292.0
C compiler for the host machine: cc (clang 14.0.5 "FreeBSD clang version 14.0.5 (https://github.com/llvm/llvm-project.git llvmorg-14.0.5-0-gc12386ae247c)")
C linker for the host machine: cc ld.lld 14.0.5
C++ compiler for the host machine: c++ (clang 14.0.5 "FreeBSD clang version 14.0.5 (https://github.com/llvm/llvm-project.git llvmorg-14.0.5-0-gc12386ae247c)")
C++ linker for the host machine: c++ ld.lld 14.0.5
Host machine cpu family: x86_64
Host machine cpu: x86_64
Compiler for C supports arguments -Wincompatible-pointer-types: YES
Compiler for C supports link arguments -Wl,--exclude-libs=ALL: YES
Library m found: YES
Program python3 found: YES (/usr/local/bin/python3.9)
Run-time dependency threads found: YES
Header "pthread.h" has symbol "pthread_condattr_setclock" with dependency threads: YES
Found pkg-config: /usr/local/bin/pkgconf (1.8.1)
Run-time dependency libunwind found: YES 1.6.2
Library execinfo found: YES
Checking for function "backtrace_symbols" with dependency -lexecinfo: YES
Check usable header "dbghelp.h" : NO
Library dl found: YES
Fetching value of define "__MINGW32__" :
Run-time dependency shaderc found: YES 2023.5.1
Check usable header "d3d11.h" : NO
Check usable header "d3d11_4.h" skipped: feature d3d11 disabled
Check usable header "dxgi1_6.h" skipped: feature d3d11 disabled
Dependency spirv-cross-c-shared skipped: feature d3d11 disabled
Library version skipped: feature d3d11 disabled
Run-time dependency vulkan found: NO (tried pkgconfig and system)
Header "vulkan/vulkan_core.h" has symbol "VK_VERSION_1_3" with dependency vulkan: YES

src/vulkan/meson.build:25:26: ERROR: Feature vk-proc-addr cannot be enabled

the dep libplacebo won't build it looks like.
 
It looks like running "make install" in graphics/valkan-loader fixed the problem.

Which versions of graphics/vulkan-headers and graphics/vulkan-loader are installed?

after running make install in graphics/vulkan-loader I have the following version installed and firefox seems to be building now.

vulkan-headers-1.3.259
vulkan-loader-1.3.259
 
Back
Top