Opened 4 years ago

Closed 4 years ago

Last modified 4 years ago

#60125 closed defect (fixed)

cjdns build fails on Catalina

Reported by: gigavinyl (Lynn [they/them]) Owned by: l2dy (Zero King)
Priority: Normal Milestone:
Component: ports Version: 2.6.2
Keywords: Cc:
Port: cjdns

Description

Howdy! I'm having an issue building the cjdns port. This is the log output of the build

:info:build /opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_macports_release_tarballs_ports_net_cjdns/cjdns/work/cjdelisle-cjdns-8bb0ce7/node_build/builder.js:728
:info:build             if (err) { throw err; }
:info:build                        ^
:info:build Error: gcc -Wl,-pie -flto -O0 -o build_darwin/contrib_c_privatetopublic_c build_darwin/util_Assert_c.o,build_darwin/util_Bits_c.o,build_darwin/crypto_AddressCalc_c.o,build_darwin/memory_Allocator_c.o,build_darwin/util_CString_c.o,build_darwin/benc_String_c.o,build_darwin/exception_Except_c.o,build_darwin/util_log_Log_c.o,build_darwin/crypto_random_seed_RandomSeed_c.o,build_darwin/crypto_random_seed_DevUrandomRandomSeed_c.o,build_darwin/crypto_random_seed_SystemRandomSeed_c.o,build_darwin/crypto_random_Random_c.o,build_darwin/crypto_Key_c.o,build_darwin/util_Hex_c.o,build_darwin/util_Base10_c.o,build_darwin/util_platform_Sockaddr_c.o,build_darwin/util_AddrTools_c.o,build_darwin/dht_Address_c.o,build_darwin/contrib_c_privatetopublic_c.o build_darwin/dependencies/cnacl/jsbuild/libnacl.a,build_darwin/dependencies/libuv/out/Release/libuv.a,-lpthread,-framework,CoreServices
:info:build clang: error: no such file or directory: 'build_darwin/dependencies/libuv/out/Release/libuv.a'
:info:build     at error (/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_macports_release_tarballs_ports_net_cjdns/cjdns/work/cjdelisle-cjdns-8bb0ce7/node_build/builder.js:53:15)
:info:build     at /opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_macports_release_tarballs_ports_net_cjdns/cjdns/work/cjdelisle-cjdns-8bb0ce7/node_build/builder.js:125:22
:info:build     at /opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_macports_release_tarballs_ports_net_cjdns/cjdns/work/cjdelisle-cjdns-8bb0ce7/node_build/builder.js:95:13
:info:build     at ChildProcess.<anonymous> (/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_macports_release_tarballs_ports_net_cjdns/cjdns/work/cjdelisle-cjdns-8bb0ce7/tools/lib/Semaphore.js:7:30)
:info:build     at ChildProcess.emit (events.js:321:20)
:info:build     at maybeClose (internal/child_process.js:1026:16)
:info:build     at Socket.<anonymous> (internal/child_process.js:441:11)
:info:build     at Socket.emit (events.js:321:20)
:info:build     at Pipe.<anonymous> (net.js:668:12)
:info:build Command failed:  cd "/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_macports_release_tarballs_ports_net_cjdns/cjdns/work/cjdns-20.3" && ./do 
:info:build Exit code: 1
:error:build Failed to build cjdns: command execution failed
:debug:build Error code: CHILDSTATUS 96464 1
:debug:build Backtrace: command execution failed
:debug:build     while executing
:debug:build "system {*}$notty {*}$nice $fullcmdstring"
:debug:build     invoked from within
:debug:build "command_exec build"
:debug:build     (procedure "portbuild::build_main" line 8)
:debug:build     invoked from within
:debug:build "$procedure $targetname"
:error:build See /opt/local/var/macports/logs/_opt_local_var_macports_sources_rsync.macports.org_macports_release_tarballs_ports_net_cjdns/cjdns/main.log for details. 

Change History (10)

comment:1 Changed 4 years ago by jmroot (Joshua Root)

Keywords: build fail removed
Owner: set to l2dy
Status: newassigned

comment:2 Changed 4 years ago by l2dy (Zero King)

Resolution: fixed
Status: assignedclosed

In 2a5740308fc9d292aefbfa991590f22afdcb1695/macports-ports (master):

cjdns: use_xcode yes

Fixes: #60125

comment:3 Changed 4 years ago by l4nn1312 (Lynn [they/them])

Resolution: fixed
Status: closedreopened

Now I'm getting this error despite the fact I have xcode installed

Error: You can install Xcode from the Mac App Store or https://developer.apple.com/xcode/
Error: Follow https://guide.macports.org/#project.tickets to report a bug.
Error: Processing of port cjdns failed

comment:4 in reply to:  3 Changed 4 years ago by l2dy (Zero King)

Replying to l4nn1312:

Now I'm getting this error despite the fact I have xcode installed

Error: You can install Xcode from the Mac App Store or https://developer.apple.com/xcode/
Error: Follow https://guide.macports.org/#project.tickets to report a bug.
Error: Processing of port cjdns failed

Try port clean cjdns && port selfupdate. If it doesn't work, please upload the complete log.

comment:5 Changed 4 years ago by l4nn1312 (Lynn [they/them])

Didn't work :( here's the log:

version:1
:debug:sysinfo macOS 10.15 (darwin/19.3.0) arch i386
:debug:sysinfo MacPorts 2.6.2
:debug:sysinfo Xcode none
:debug:sysinfo SDK 10.15
:debug:sysinfo MACOSX_DEPLOYMENT_TARGET: 10.15
:error:main Port cjdns requires a full Xcode installation, which was not found on your system.
:error:main You can install Xcode from the Mac App Store or https://developer.apple.com/xcode/

comment:6 in reply to:  5 Changed 4 years ago by l2dy (Zero King)

Replying to l4nn1312:

Didn't work :( here's the log:

version:1
:debug:sysinfo macOS 10.15 (darwin/19.3.0) arch i386
:debug:sysinfo MacPorts 2.6.2
:debug:sysinfo Xcode none
:debug:sysinfo SDK 10.15
:debug:sysinfo MACOSX_DEPLOYMENT_TARGET: 10.15
:error:main Port cjdns requires a full Xcode installation, which was not found on your system.
:error:main You can install Xcode from the Mac App Store or https://developer.apple.com/xcode/

That's probably a bug in the port command, please file a new ticket in the base component.

comment:7 Changed 4 years ago by l2dy (Zero King)

Resolution: fixed
Status: reopenedclosed

comment:8 Changed 4 years ago by jmroot (Joshua Root)

What does xcodebuild -version say for you?

comment:9 Changed 4 years ago by l4nn1312 (Lynn [they/them])

xcode-select: error: tool 'xcodebuild' requires Xcode, but active developer directory '/Library/Developer/CommandLineTools' is a command line tools instance

comment:10 Changed 4 years ago by jmroot (Joshua Root)

OK, so you need to select your actual Xcode installation with xcode-select.

Note: See TracTickets for help on using tickets.