dlang-community / DCD

The D Completion Daemon is an auto-complete program for the D programming language
GNU General Public License v3.0
349 stars 71 forks source link

MacPorts build is broken #716

Closed tastyminerals closed 1 year ago

tastyminerals commented 1 year ago

OS: MacOS Ventura (arm64) or any other package manager: MacPorts

The d-completion-daemon Mac port is broken for a very long time.

Screenshot 2023-02-16 at 08 44 49
--->  Computing dependencies for d-completion-daemon
The following dependencies will be installed:
 dmd
 dmd-bootstrap
 druntime
 phobos
Continue? [Y/n]: y
--->  Fetching archive for dmd-bootstrap
--->  Attempting to fetch dmd-bootstrap-2.088.0_0.darwin_22.x86_64.tbz2 from https://packages.macports.org/dmd-bootstrap
--->  Attempting to fetch dmd-bootstrap-2.088.0_0.darwin_22.x86_64.tbz2 from https://fra.de.packages.macports.org/dmd-bootstrap
--->  Attempting to fetch dmd-bootstrap-2.088.0_0.darwin_22.x86_64.tbz2 from https://cph.dk.packages.macports.org/dmd-bootstrap
--->  Fetching distfiles for dmd-bootstrap
--->  Attempting to fetch dmd.2.088.0.osx.zip from https://distfiles.macports.org/dmd-bootstrap
--->  Verifying checksums for dmd-bootstrap
--->  Extracting dmd-bootstrap
--->  Configuring dmd-bootstrap
--->  Building dmd-bootstrap
--->  Staging dmd-bootstrap into destroot
--->  Installing dmd-bootstrap @2.088.0_0
--->  Activating dmd-bootstrap @2.088.0_0
--->  Cleaning dmd-bootstrap
--->  Fetching archive for dmd
--->  Attempting to fetch dmd-2.088.0_0.darwin_22.arm64.tbz2 from https://packages.macports.org/dmd
--->  Attempting to fetch dmd-2.088.0_0.darwin_22.arm64.tbz2 from https://fra.de.packages.macports.org/dmd
--->  Attempting to fetch dmd-2.088.0_0.darwin_22.arm64.tbz2 from https://cph.dk.packages.macports.org/dmd
--->  Fetching distfiles for dmd
--->  Attempting to fetch dmd-2.088.0.tar.gz from https://distfiles.macports.org/dmd
--->  Verifying checksums for dmd
--->  Extracting dmd
--->  Applying patches to dmd
--->  Configuring dmd
--->  Building dmd
Error: Failed to build dmd: command execution failed
Error: See /opt/local/var/macports/logs/_opt_local_var_macports_sources_rsync.macports.org_macports_release_tarballs_ports_lang_dmd/dmd/main.log for details.
Error: Follow https://guide.macports.org/#project.tickets if you believe there is a bug.
Error: Processing of port d-completion-daemon failed

/opt/local/var/macports/logs/_opt_local_var_macports_sources_rsync.macports.org_macports_release_tarballs_ports_lang_dmd/dmd/main.log

version:1
:debug:clean Starting logging for dmd @2.088.0_0
:debug:sysinfo macOS 13.1 (darwin/22.2.0) arch arm
:debug:sysinfo MacPorts 2.8.1
:debug:sysinfo Xcode none, CLT 14.2.0.0.1.1668646533
:debug:sysinfo SDK 13
:debug:sysinfo MACOSX_DEPLOYMENT_TARGET: 13.0
:debug:clean Attempting ln -sf /opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_macports_release_tarballs_ports_lang_dmd/dmd/work /opt/local/var/macports/sources/rsync.macports.org/macports/release/tarballs/ports/lang/dmd/work
:debug:clean dropping privileges: euid changed to 502, egid changed to 501.
:debug:main Executing org.macports.main (dmd)
:debug:main Privilege de-escalation not attempted as not running as root.
:debug:archivefetch archivefetch phase started at Thu Feb 16 08:41:33 CET 2023
:msg:archivefetch --->  Fetching archive for dmd
:debug:archivefetch Executing org.macports.archivefetch (dmd)
:debug:archivefetch euid/egid changed to: 0/0
:debug:archivefetch chowned /opt/local/var/macports/incoming to macports
:debug:archivefetch euid/egid changed to: 502/501
:info:archivefetch --->  dmd-2.088.0_0.darwin_22.arm64.tbz2 doesn't seem to exist in /opt/local/var/macports/incoming/verified
:msg:archivefetch --->  Attempting to fetch dmd-2.088.0_0.darwin_22.arm64.tbz2 from https://packages.macports.org/dmd
:debug:archivefetch Fetching archive failed: The requested URL returned error: 404
:msg:archivefetch --->  Attempting to fetch dmd-2.088.0_0.darwin_22.arm64.tbz2 from https://fra.de.packages.macports.org/dmd
:debug:archivefetch Fetching archive failed: The requested URL returned error: 404
:msg:archivefetch --->  Attempting to fetch dmd-2.088.0_0.darwin_22.arm64.tbz2 from https://cph.dk.packages.macports.org/dmd
:debug:archivefetch Fetching archive failed: The requested URL returned error: 503
:debug:archivefetch Privilege de-escalation not attempted as not running as root.
:debug:fetch fetch phase started at Thu Feb 16 08:41:38 CET 2023
:notice:fetch --->  Fetching distfiles for dmd
:debug:fetch elevating privileges for fetch: euid changed to 0, egid changed to 0.
:debug:fetch dropping privileges: euid changed to 502, egid changed to 501.
:debug:fetch Executing org.macports.fetch (dmd)
:info:fetch --->  dmd-2.088.0.tar.gz does not exist in /opt/local/var/macports/distfiles/dmd
:notice:fetch --->  Attempting to fetch dmd-2.088.0.tar.gz from https://distfiles.macports.org/dmd
:debug:fetch Privilege de-escalation not attempted as not running as root.
:debug:checksum checksum phase started at Thu Feb 16 08:41:39 CET 2023
:notice:checksum --->  Verifying checksums for dmd
:debug:checksum Executing org.macports.checksum (dmd)
:info:checksum --->  Checksumming dmd-2.088.0.tar.gz
:debug:checksum Calculated (rmd160) is 70a61cd9aa8d8a4b33ab55f6fb54498b1948623c
:debug:checksum Correct (rmd160) checksum for dmd-2.088.0.tar.gz
:debug:checksum Calculated (sha256) is 73a114c034077180799822aa809b404f760cf1233103b75f2e0b7d7e5e7b9032
:debug:checksum Correct (sha256) checksum for dmd-2.088.0.tar.gz
:debug:checksum Calculated (size) is 3309925
:debug:checksum Correct (size) checksum for dmd-2.088.0.tar.gz
:debug:checksum Privilege de-escalation not attempted as not running as root.
:debug:extract extract phase started at Thu Feb 16 08:41:39 CET 2023
:notice:extract --->  Extracting dmd
:debug:extract Executing org.macports.extract (dmd)
:info:extract --->  Extracting dmd-2.088.0.tar.gz
:debug:extract setting option extract.args to '/opt/local/var/macports/distfiles/dmd/dmd-2.088.0.tar.gz'
:debug:extract Environment:
:debug:extract CC_PRINT_OPTIONS='YES'
:debug:extract CC_PRINT_OPTIONS_FILE='/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_macports_release_tarballs_ports_lang_dmd/dmd/work/.CC_PRINT_OPTIONS'
:debug:extract CPATH='/opt/local/include'
:debug:extract DEVELOPER_DIR='/Library/Developer/CommandLineTools'
:debug:extract LIBRARY_PATH='/opt/local/lib'
:debug:extract MACOSX_DEPLOYMENT_TARGET='13.0'
:debug:extract SDKROOT='/Library/Developer/CommandLineTools/SDKs/MacOSX13.sdk'
:info:extract Executing:  cd "/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_macports_release_tarballs_ports_lang_dmd/dmd/work" && /usr/bin/gzip -dc '/opt/local/var/macports/distfiles/dmd/dmd-2.088.0.tar.gz' | /usr/bin/tar -xf -
:debug:extract system:  cd "/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_macports_release_tarballs_ports_lang_dmd/dmd/work" && /usr/bin/gzip -dc '/opt/local/var/macports/distfiles/dmd/dmd-2.088.0.tar.gz' | /usr/bin/tar -xf -
:debug:extract euid/egid changed to: 0/0
:debug:extract chowned /opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_macports_release_tarballs_ports_lang_dmd/dmd/work to macports
:debug:extract euid/egid changed to: 502/501
:debug:extract extract.rename: Renaming dlang-dmd-8580380 -> dmd-2.088.0
:debug:extract Executing proc-post-org.macports.extract-extract-0
:debug:extract Executing proc-post-org.macports.extract-extract-1
:info:extract xinstall: /opt/local/var/macports/sources/rsync.macports.org/macports/release/tarballs/ports/lang/dmd/files/makefile_macports_install -> /opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_macports_release_tarballs_ports_lang_dmd/dmd/work/dmd-2.088.0/src/makefile_macports_install
:debug:extract Privilege de-escalation not attempted as not running as root.
:debug:patch patch phase started at Thu Feb 16 08:41:40 CET 2023
:debug:patch Executing org.macports.patch (dmd)
:notice:patch --->  Applying patches to dmd
:info:patch --->  Applying patch-src-posix.mak.diff
:debug:patch Environment:
:debug:patch CC_PRINT_OPTIONS='YES'
:debug:patch CC_PRINT_OPTIONS_FILE='/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_macports_release_tarballs_ports_lang_dmd/dmd/work/.CC_PRINT_OPTIONS'
:debug:patch CPATH='/opt/local/include'
:debug:patch DEVELOPER_DIR='/Library/Developer/CommandLineTools'
:debug:patch LIBRARY_PATH='/opt/local/lib'
:debug:patch MACOSX_DEPLOYMENT_TARGET='13.0'
:debug:patch SDKROOT='/Library/Developer/CommandLineTools/SDKs/MacOSX13.sdk'
:info:patch Executing:  cd "/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_macports_release_tarballs_ports_lang_dmd/dmd/work/dmd-2.088.0" && /usr/bin/patch -p0 < '/opt/local/var/macports/sources/rsync.macports.org/macports/release/tarballs/ports/lang/dmd/files/patch-src-posix.mak.diff'
:debug:patch system:  cd "/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_macports_release_tarballs_ports_lang_dmd/dmd/work/dmd-2.088.0" && /usr/bin/patch -p0 < '/opt/local/var/macports/sources/rsync.macports.org/macports/release/tarballs/ports/lang/dmd/files/patch-src-posix.mak.diff'
:info:patch patching file 'src/posix.mak'
:debug:patch Executing proc-post-org.macports.patch-patch-0
:info:patch --->  Patching dmd.conf.5: s|/etc|/opt/local/etc/dmd|
:debug:patch Executing reinplace: /usr/bin/sed s|/etc|/opt/local/etc/dmd| </opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_macports_release_tarballs_ports_lang_dmd/dmd/work/dmd-2.088.0/docs/man/man5/dmd.conf.5 >@file18
:debug:patch euid/egid changed to: 0/0
:debug:patch chowned /opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_macports_release_tarballs_ports_lang_dmd/dmd/work/dmd-2.088.0/docs/man/man5/dmd.conf.5 to macports
:debug:patch euid/egid changed to: 502/501
:debug:patch euid/egid changed to: 0/0
:debug:patch setting attributes on /opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_macports_release_tarballs_ports_lang_dmd/dmd/work/dmd-2.088.0/docs/man/man5/dmd.conf.5
:debug:patch euid/egid changed to: 502/501
:debug:patch Privilege de-escalation not attempted as not running as root.
:debug:configure configure phase started at Thu Feb 16 08:41:40 CET 2023
:notice:configure --->  Configuring dmd
:debug:configure Preferred compilers: clang macports-clang-14 macports-clang-13 macports-clang-12 macports-clang-11
:debug:configure Using compiler 'Xcode Clang'
:debug:configure Executing org.macports.configure (dmd)
:debug:configure Executing portconfigure::configure_finish
:debug:configure Privilege de-escalation not attempted as not running as root.
:debug:build build phase started at Thu Feb 16 08:41:40 CET 2023
:notice:build --->  Building dmd
:debug:build Executing org.macports.build (dmd)
:debug:build Environment:
:debug:build CC_PRINT_OPTIONS='YES'
:debug:build CC_PRINT_OPTIONS_FILE='/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_macports_release_tarballs_ports_lang_dmd/dmd/work/.CC_PRINT_OPTIONS'
:debug:build CPATH='/opt/local/include'
:debug:build DEVELOPER_DIR='/Library/Developer/CommandLineTools'
:debug:build LIBRARY_PATH='/opt/local/lib'
:debug:build MACOSX_DEPLOYMENT_TARGET='13.0'
:debug:build SDKROOT='/Library/Developer/CommandLineTools/SDKs/MacOSX13.sdk'
:info:build Executing:  cd "/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_macports_release_tarballs_ports_lang_dmd/dmd/work/dmd-2.088.0/src" && /usr/bin/make -j8 -w all -f posix.mak all man HOST_CXX="/usr/bin/clang++" CC="/usr/bin/clang" LDFLAGS="-L/opt/local/lib -Wl,-headerpad_max_install_names -framework CoreServices" ENVP="MACOSX_DEPLOYMENT_TARGET=13.0" SYSCONFDIR=/opt/local/etc/dmd HOST_DMD=/opt/local/libexec/dmd-bootstrap/bin/dmd MODEL=32
:debug:build system:  cd "/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_macports_release_tarballs_ports_lang_dmd/dmd/work/dmd-2.088.0/src" && /usr/bin/make -j8 -w all -f posix.mak all man HOST_CXX="/usr/bin/clang++" CC="/usr/bin/clang" LDFLAGS="-L/opt/local/lib -Wl,-headerpad_max_install_names -framework CoreServices" ENVP="MACOSX_DEPLOYMENT_TARGET=13.0" SYSCONFDIR=/opt/local/etc/dmd HOST_DMD=/opt/local/libexec/dmd-bootstrap/bin/dmd MODEL=32
:info:build no cpu specified, assuming X86
:info:build make: Entering directory `/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_macports_release_tarballs_ports_lang_dmd/dmd/work/dmd-2.088.0/src'
:info:build   (HOST_DMD_RUN)  BACK_DOBJS  dmd/backend/evalu8.d
:info:build   (HOST_DMD_RUN)  BACK_DOBJS  dmd/backend/bcomplex.d
:info:build /opt/local/libexec/dmd-bootstrap/bin/dmd -c -of../generated/osx/release/32/evalu8.o  -version=MARS  -J../generated/osx/release/32 -w -de -g -dip25 -m32 -mv=dmd.backend=dmd/backend -betterC -version=DMDV2 dmd/backend/evalu8.d
:info:build   (HOST_DMD_RUN)  BACK_DOBJS  dmd/backend/divcoeff.d
:info:build   (HOST_DMD_RUN)  BACK_DOBJS  dmd/backend/go.d
:info:build   (HOST_DMD_RUN)  BACK_DOBJS  dmd/backend/glocal.d
:info:build   (HOST_DMD_RUN)  BACK_DOBJS  dmd/backend/dvec.d
:info:build   (HOST_DMD_RUN)  BACK_DOBJS  dmd/backend/gsroa.d
:info:build /opt/local/libexec/dmd-bootstrap/bin/dmd -c -of../generated/osx/release/32/dvec.o  -version=MARS  -J../generated/osx/release/32 -w -de -g -dip25 -m32 -mv=dmd.backend=dmd/backend -betterC -version=DMDV2 dmd/backend/dvec.d
:info:build   (HOST_DMD_RUN)  BACK_DOBJS  dmd/backend/gdag.d
:info:build /opt/local/libexec/dmd-bootstrap/bin/dmd -c -of../generated/osx/release/32/gdag.o  -version=MARS  -J../generated/osx/release/32 -w -de -g -dip25 -m32 -mv=dmd.backend=dmd/backend -betterC -version=DMDV2 dmd/backend/gdag.d
:info:build /opt/local/libexec/dmd-bootstrap/bin/dmd -c -of../generated/osx/release/32/gsroa.o  -version=MARS  -J../generated/osx/release/32 -w -de -g -dip25 -m32 -mv=dmd.backend=dmd/backend -betterC -version=DMDV2 dmd/backend/gsroa.d
:info:build /opt/local/libexec/dmd-bootstrap/bin/dmd -c -of../generated/osx/release/32/glocal.o  -version=MARS  -J../generated/osx/release/32 -w -de -g -dip25 -m32 -mv=dmd.backend=dmd/backend -betterC -version=DMDV2 dmd/backend/glocal.d
:info:build /opt/local/libexec/dmd-bootstrap/bin/dmd -c -of../generated/osx/release/32/go.o  -version=MARS  -J../generated/osx/release/32 -w -de -g -dip25 -m32 -mv=dmd.backend=dmd/backend -betterC -version=DMDV2 dmd/backend/go.d
:info:build /opt/local/libexec/dmd-bootstrap/bin/dmd -c -of../generated/osx/release/32/divcoeff.o  -version=MARS  -J../generated/osx/release/32 -w -de -g -dip25 -m32 -mv=dmd.backend=dmd/backend -betterC -version=DMDV2 dmd/backend/divcoeff.d
:info:build /opt/local/libexec/dmd-bootstrap/bin/dmd -c -of../generated/osx/release/32/bcomplex.o  -version=MARS  -J../generated/osx/release/32 -w -de -g -dip25 -m32 -mv=dmd.backend=dmd/backend -betterC -version=DMDV2 dmd/backend/bcomplex.d
:info:build   (HOST_DMD_RUN)  BACK_DOBJS  dmd/backend/gflow.d
:info:build   (HOST_DMD_RUN)  BACK_DOBJS  dmd/backend/gother.d
:info:build /opt/local/libexec/dmd-bootstrap/bin/dmd -c -of../generated/osx/release/32/gother.o  -version=MARS  -J../generated/osx/release/32 -w -de -g -dip25 -m32 -mv=dmd.backend=dmd/backend -betterC -version=DMDV2 dmd/backend/gother.d
:info:build /opt/local/libexec/dmd-bootstrap/bin/dmd -c -of../generated/osx/release/32/gflow.o  -version=MARS  -J../generated/osx/release/32 -w -de -g -dip25 -m32 -mv=dmd.backend=dmd/backend -betterC -version=DMDV2 dmd/backend/gflow.d
:info:build   (HOST_DMD_RUN)  BACK_DOBJS  dmd/backend/out.d
:info:build /opt/local/libexec/dmd-bootstrap/bin/dmd -c -of../generated/osx/release/32/out.o  -version=MARS  -J../generated/osx/release/32 -w -de -g -dip25 -m32 -mv=dmd.backend=dmd/backend -betterC -version=DMDV2 dmd/backend/out.d
:info:build   (HOST_DMD_RUN)  BACK_DOBJS  dmd/backend/gloop.d
:info:build /opt/local/libexec/dmd-bootstrap/bin/dmd -c -of../generated/osx/release/32/gloop.o  -version=MARS  -J../generated/osx/release/32 -w -de -g -dip25 -m32 -mv=dmd.backend=dmd/backend -betterC -version=DMDV2 dmd/backend/gloop.d
:info:build   (HOST_DMD_RUN)  BACK_DOBJS  dmd/backend/compress.d
:info:build /opt/local/libexec/dmd-bootstrap/bin/dmd -c -of../generated/osx/release/32/compress.o  -version=MARS  -J../generated/osx/release/32 -w -de -g -dip25 -m32 -mv=dmd.backend=dmd/backend -betterC -version=DMDV2 dmd/backend/compress.d
:info:build   (HOST_DMD_RUN)  BACK_DOBJS  dmd/backend/cgcs.d
:info:build /opt/local/libexec/dmd-bootstrap/bin/dmd -c -of../generated/osx/release/32/cgcs.o  -version=MARS  -J../generated/osx/release/32 -w -de -g -dip25 -m32 -mv=dmd.backend=dmd/backend -betterC -version=DMDV2 dmd/backend/cgcs.d
:info:build   (HOST_DMD_RUN)  BACK_DOBJS  dmd/backend/cgelem.d
:info:build /opt/local/libexec/dmd-bootstrap/bin/dmd -c -of../generated/osx/release/32/cgelem.o  -version=MARS  -J../generated/osx/release/32 -w -de -g -dip25 -m32 -mv=dmd.backend=dmd/backend -betterC -version=DMDV2 dmd/backend/cgelem.d
:info:build   (HOST_DMD_RUN)  BACK_DOBJS  dmd/backend/ee.d
:info:build /opt/local/libexec/dmd-bootstrap/bin/dmd -c -of../generated/osx/release/32/ee.o  -version=MARS  -J../generated/osx/release/32 -w -de -g -dip25 -m32 -mv=dmd.backend=dmd/backend -betterC -version=DMDV2 dmd/backend/ee.d
:info:build   (HOST_DMD_RUN)  BACK_DOBJS  dmd/backend/cod4.d
:info:build /opt/local/libexec/dmd-bootstrap/bin/dmd -c -of../generated/osx/release/32/cod4.o  -version=MARS  -J../generated/osx/release/32 -w -de -g -dip25 -m32 -mv=dmd.backend=dmd/backend -betterC -version=DMDV2 dmd/backend/cod4.d
:info:build   (HOST_DMD_RUN)  BACK_DOBJS  dmd/backend/cod5.d
:info:build /opt/local/libexec/dmd-bootstrap/bin/dmd -c -of../generated/osx/release/32/cod5.o  -version=MARS  -J../generated/osx/release/32 -w -de -g -dip25 -m32 -mv=dmd.backend=dmd/backend -betterC -version=DMDV2 dmd/backend/cod5.d
:info:build   (HOST_DMD_RUN)  BACK_DOBJS  dmd/backend/nteh.d
:info:build /opt/local/libexec/dmd-bootstrap/bin/dmd -c -of../generated/osx/release/32/nteh.o  -version=MARS  -J../generated/osx/release/32 -w -de -g -dip25 -m32 -mv=dmd.backend=dmd/backend -betterC -version=DMDV2 dmd/backend/nteh.d
:info:build   (HOST_DMD_RUN)  BACK_DOBJS  dmd/backend/blockopt.d
:info:build /opt/local/libexec/dmd-bootstrap/bin/dmd -c -of../generated/osx/release/32/blockopt.o  -version=MARS  -J../generated/osx/release/32 -w -de -g -dip25 -m32 -mv=dmd.backend=dmd/backend -betterC -version=DMDV2 dmd/backend/blockopt.d
:info:build   (HOST_DMD_RUN)  BACK_DOBJS  dmd/backend/mem.d
:info:build /opt/local/libexec/dmd-bootstrap/bin/dmd -c -of../generated/osx/release/32/mem.o  -version=MARS  -J../generated/osx/release/32 -w -de -g -dip25 -m32 -mv=dmd.backend=dmd/backend -betterC -version=DMDV2 dmd/backend/mem.d
:info:build   (HOST_DMD_RUN)  BACK_DOBJS  dmd/backend/cg.d
:info:build /opt/local/libexec/dmd-bootstrap/bin/dmd -c -of../generated/osx/release/32/cg.o  -version=MARS  -J../generated/osx/release/32 -w -de -g -dip25 -m32 -mv=dmd.backend=dmd/backend -betterC -version=DMDV2 dmd/backend/cg.d
:info:build   (HOST_DMD_RUN)  BACK_DOBJS  dmd/backend/cgreg.d
:info:build /opt/local/libexec/dmd-bootstrap/bin/dmd -c -of../generated/osx/release/32/cgreg.o  -version=MARS  -J../generated/osx/release/32 -w -de -g -dip25 -m32 -mv=dmd.backend=dmd/backend -betterC -version=DMDV2 dmd/backend/cgreg.d
:info:build   (HOST_DMD_RUN)  BACK_DOBJS  dmd/backend/dtype.d
:info:build /opt/local/libexec/dmd-bootstrap/bin/dmd -c -of../generated/osx/release/32/dtype.o  -version=MARS  -J../generated/osx/release/32 -w -de -g -dip25 -m32 -mv=dmd.backend=dmd/backend -betterC -version=DMDV2 dmd/backend/dtype.d
:info:build   (HOST_DMD_RUN)  BACK_DOBJS  dmd/backend/debugprint.d
:info:build /opt/local/libexec/dmd-bootstrap/bin/dmd -c -of../generated/osx/release/32/debugprint.o  -version=MARS  -J../generated/osx/release/32 -w -de -g -dip25 -m32 -mv=dmd.backend=dmd/backend -betterC -version=DMDV2 dmd/backend/debugprint.d
:info:build   (HOST_DMD_RUN)  BACK_DOBJS  dmd/backend/fp.d
:info:build /opt/local/libexec/dmd-bootstrap/bin/dmd -c -of../generated/osx/release/32/fp.o  -version=MARS  -J../generated/osx/release/32 -w -de -g -dip25 -m32 -mv=dmd.backend=dmd/backend -betterC -version=DMDV2 dmd/backend/fp.d
:info:build   (HOST_DMD_RUN)  BACK_DOBJS  dmd/backend/symbol.d
:info:build /opt/local/libexec/dmd-bootstrap/bin/dmd -c -of../generated/osx/release/32/symbol.o  -version=MARS  -J../generated/osx/release/32 -w -de -g -dip25 -m32 -mv=dmd.backend=dmd/backend -betterC -version=DMDV2 dmd/backend/symbol.d
:info:build   (HOST_DMD_RUN)  BACK_DOBJS  dmd/backend/dcode.d
:info:build /opt/local/libexec/dmd-bootstrap/bin/dmd -c -of../generated/osx/release/32/dcode.o  -version=MARS  -J../generated/osx/release/32 -w -de -g -dip25 -m32 -mv=dmd.backend=dmd/backend -betterC -version=DMDV2 dmd/backend/dcode.d
:info:build   (HOST_DMD_RUN)  BACK_DOBJS  dmd/backend/elem.d
:info:build /opt/local/libexec/dmd-bootstrap/bin/dmd -c -of../generated/osx/release/32/elem.o  -version=MARS  -J../generated/osx/release/32 -w -de -g -dip25 -m32 -mv=dmd.backend=dmd/backend -betterC -version=DMDV2 dmd/backend/elem.d
:info:build   (HOST_DMD_RUN)  BACK_DOBJS  dmd/backend/cgsched.d
:info:build /opt/local/libexec/dmd-bootstrap/bin/dmd -c -of../generated/osx/release/32/cgsched.o  -version=MARS  -J../generated/osx/release/32 -w -de -g -dip25 -m32 -mv=dmd.backend=dmd/backend -betterC -version=DMDV2 dmd/backend/cgsched.d
:info:build   (HOST_DMD_RUN)  BACK_DOBJS  dmd/backend/cg87.d
:info:build /opt/local/libexec/dmd-bootstrap/bin/dmd -c -of../generated/osx/release/32/cg87.o  -version=MARS  -J../generated/osx/release/32 -w -de -g -dip25 -m32 -mv=dmd.backend=dmd/backend -betterC -version=DMDV2 dmd/backend/cg87.d
:info:build   (HOST_DMD_RUN)  BACK_DOBJS  dmd/backend/cgxmm.d
:info:build /opt/local/libexec/dmd-bootstrap/bin/dmd -c -of../generated/osx/release/32/cgxmm.o  -version=MARS  -J../generated/osx/release/32 -w -de -g -dip25 -m32 -mv=dmd.backend=dmd/backend -betterC -version=DMDV2 dmd/backend/cgxmm.d
:info:build   (HOST_DMD_RUN)  BACK_DOBJS  dmd/backend/cgcod.d
:info:build /opt/local/libexec/dmd-bootstrap/bin/dmd -c -of../generated/osx/release/32/cgcod.o  -version=MARS  -J../generated/osx/release/32 -w -de -g -dip25 -m32 -mv=dmd.backend=dmd/backend -betterC -version=DMDV2 dmd/backend/cgcod.d
:info:build   (HOST_DMD_RUN)  BACK_DOBJS  dmd/backend/cod1.d
:info:build /opt/local/libexec/dmd-bootstrap/bin/dmd -c -of../generated/osx/release/32/cod1.o  -version=MARS  -J../generated/osx/release/32 -w -de -g -dip25 -m32 -mv=dmd.backend=dmd/backend -betterC -version=DMDV2 dmd/backend/cod1.d
:info:build   (HOST_DMD_RUN)  BACK_DOBJS  dmd/backend/cod2.d
:info:build /opt/local/libexec/dmd-bootstrap/bin/dmd -c -of../generated/osx/release/32/cod2.o  -version=MARS  -J../generated/osx/release/32 -w -de -g -dip25 -m32 -mv=dmd.backend=dmd/backend -betterC -version=DMDV2 dmd/backend/cod2.d
:info:build   (HOST_DMD_RUN)  BACK_DOBJS  dmd/backend/cod3.d
:info:build /opt/local/libexec/dmd-bootstrap/bin/dmd -c -of../generated/osx/release/32/cod3.o  -version=MARS  -J../generated/osx/release/32 -w -de -g -dip25 -m32 -mv=dmd.backend=dmd/backend -betterC -version=DMDV2 dmd/backend/cod3.d
:info:build   (HOST_DMD_RUN)  BACK_DOBJS  dmd/backend/cv8.d
:info:build /opt/local/libexec/dmd-bootstrap/bin/dmd -c -of../generated/osx/release/32/cv8.o  -version=MARS  -J../generated/osx/release/32 -w -de -g -dip25 -m32 -mv=dmd.backend=dmd/backend -betterC -version=DMDV2 dmd/backend/cv8.d
:info:build   (HOST_DMD_RUN)  BACK_DOBJS  dmd/backend/dcgcv.d
:info:build /opt/local/libexec/dmd-bootstrap/bin/dmd -c -of../generated/osx/release/32/dcgcv.o  -version=MARS  -J../generated/osx/release/32 -w -de -g -dip25 -m32 -mv=dmd.backend=dmd/backend -betterC -version=DMDV2 dmd/backend/dcgcv.d
:info:build   (HOST_DMD_RUN)  BACK_DOBJS  dmd/backend/pdata.d
:info:build /opt/local/libexec/dmd-bootstrap/bin/dmd -c -of../generated/osx/release/32/pdata.o  -version=MARS  -J../generated/osx/release/32 -w -de -g -dip25 -m32 -mv=dmd.backend=dmd/backend -betterC -version=DMDV2 dmd/backend/pdata.d
:info:build   (HOST_DMD_RUN)  BACK_DOBJS  dmd/backend/util2.d
:info:build /opt/local/libexec/dmd-bootstrap/bin/dmd -c -of../generated/osx/release/32/util2.o  -version=MARS  -J../generated/osx/release/32 -w -de -g -dip25 -m32 -mv=dmd.backend=dmd/backend -betterC -version=DMDV2 dmd/backend/util2.d
:info:build   (HOST_DMD_RUN)  BACK_DOBJS  dmd/backend/var.d
:info:build /opt/local/libexec/dmd-bootstrap/bin/dmd -c -of../generated/osx/release/32/var.o  -version=MARS  -J../generated/osx/release/32 -w -de -g -dip25 -m32 -mv=dmd.backend=dmd/backend -betterC -version=DMDV2 dmd/backend/var.d
:info:build   (HOST_DMD_RUN)  BACK_DOBJS  dmd/backend/md5.d
:info:build /opt/local/libexec/dmd-bootstrap/bin/dmd -c -of../generated/osx/release/32/md5.o  -version=MARS  -J../generated/osx/release/32 -w -de -g -dip25 -m32 -mv=dmd.backend=dmd/backend -betterC -version=DMDV2 dmd/backend/md5.d
:info:build   (HOST_DMD_RUN)  BACK_DOBJS  dmd/backend/backconfig.d
:info:build /opt/local/libexec/dmd-bootstrap/bin/dmd -c -of../generated/osx/release/32/backconfig.o  -version=MARS  -J../generated/osx/release/32 -w -de -g -dip25 -m32 -mv=dmd.backend=dmd/backend -betterC -version=DMDV2 dmd/backend/backconfig.d
:info:build   (HOST_DMD_RUN)  BACK_DOBJS  dmd/backend/ph2.d
:info:build /opt/local/libexec/dmd-bootstrap/bin/dmd -c -of../generated/osx/release/32/ph2.o  -version=MARS  -J../generated/osx/release/32 -w -de -g -dip25 -m32 -mv=dmd.backend=dmd/backend -betterC -version=DMDV2 dmd/backend/ph2.d
:info:build   (HOST_DMD_RUN)  BACK_DOBJS  dmd/backend/drtlsym.d
:info:build /opt/local/libexec/dmd-bootstrap/bin/dmd -c -of../generated/osx/release/32/drtlsym.o  -version=MARS  -J../generated/osx/release/32 -w -de -g -dip25 -m32 -mv=dmd.backend=dmd/backend -betterC -version=DMDV2 dmd/backend/drtlsym.d
:info:build   (HOST_DMD_RUN)  BACK_DOBJS  dmd/backend/dwarfeh.d
:info:build /opt/local/libexec/dmd-bootstrap/bin/dmd -c -of../generated/osx/release/32/dwarfeh.o  -version=MARS  -J../generated/osx/release/32 -w -de -g -dip25 -m32 -mv=dmd.backend=dmd/backend -betterC -version=DMDV2 dmd/backend/dwarfeh.d
:info:build   (HOST_DMD_RUN)  BACK_DOBJS  dmd/backend/ptrntab.d
:info:build /opt/local/libexec/dmd-bootstrap/bin/dmd -c -of../generated/osx/release/32/ptrntab.o  -version=MARS  -J../generated/osx/release/32 -w -de -g -dip25 -m32 -mv=dmd.backend=dmd/backend -betterC -version=DMDV2 dmd/backend/ptrntab.d
:info:build   (HOST_DMD_RUN)  BACK_DOBJS  dmd/backend/aarray.d
:info:build /opt/local/libexec/dmd-bootstrap/bin/dmd -c -of../generated/osx/release/32/aarray.o  -version=MARS  -J../generated/osx/release/32 -w -de -g -dip25 -m32 -mv=dmd.backend=dmd/backend -betterC -version=DMDV2 dmd/backend/aarray.d
:info:build   (HOST_DMD_RUN)  BACK_DOBJS  dmd/backend/dvarstats.d
:info:build /opt/local/libexec/dmd-bootstrap/bin/dmd -c -of../generated/osx/release/32/dvarstats.o  -version=MARS  -J../generated/osx/release/32 -w -de -g -dip25 -m32 -mv=dmd.backend=dmd/backend -betterC -version=DMDV2 dmd/backend/dvarstats.d
:info:build   (HOST_DMD_RUN)  BACK_DOBJS  dmd/backend/dwarfdbginf.d
:info:build /opt/local/libexec/dmd-bootstrap/bin/dmd -c -of../generated/osx/release/32/dwarfdbginf.o  -version=MARS  -J../generated/osx/release/32 -w -de -g -dip25 -m32 -mv=dmd.backend=dmd/backend -betterC -version=DMDV2 dmd/backend/dwarfdbginf.d
:info:build   (HOST_DMD_RUN)  BACK_DOBJS  dmd/backend/elfobj.d
:info:build /opt/local/libexec/dmd-bootstrap/bin/dmd -c -of../generated/osx/release/32/elfobj.o  -version=MARS  -J../generated/osx/release/32 -w -de -g -dip25 -m32 -mv=dmd.backend=dmd/backend -betterC -version=DMDV2 dmd/backend/elfobj.d
:info:build   (HOST_DMD_RUN)  BACK_DOBJS  dmd/backend/cgen.d
:info:build /opt/local/libexec/dmd-bootstrap/bin/dmd -c -of../generated/osx/release/32/cgen.o  -version=MARS  -J../generated/osx/release/32 -w -de -g -dip25 -m32 -mv=dmd.backend=dmd/backend -betterC -version=DMDV2 dmd/backend/cgen.d
:info:build   (HOST_DMD_RUN)  BACK_DOBJS  dmd/backend/os.d
:info:build /opt/local/libexec/dmd-bootstrap/bin/dmd -c -of../generated/osx/release/32/os.o  -version=MARS  -J../generated/osx/release/32 -w -de -g -dip25 -m32 -mv=dmd.backend=dmd/backend -betterC -version=DMDV2 dmd/backend/os.d
:info:build   (HOST_DMD_RUN)  BACK_DOBJS  dmd/backend/goh.d
:info:build /opt/local/libexec/dmd-bootstrap/bin/dmd -c -of../generated/osx/release/32/goh.o  -version=MARS  -J../generated/osx/release/32 -w -de -g -dip25 -m32 -mv=dmd.backend=dmd/backend -betterC -version=DMDV2 dmd/backend/goh.d
:info:build   (HOST_DMD_RUN)  BACK_DOBJS  dmd/backend/barray.d
:info:build /opt/local/libexec/dmd-bootstrap/bin/dmd -c -of../generated/osx/release/32/barray.o  -version=MARS  -J../generated/osx/release/32 -w -de -g -dip25 -m32 -mv=dmd.backend=dmd/backend -betterC -version=DMDV2 dmd/backend/barray.d
:info:build   (HOST_DMD_RUN)  BACK_DOBJS  dmd/backend/cgcse.d
:info:build /opt/local/libexec/dmd-bootstrap/bin/dmd -c -of../generated/osx/release/32/cgcse.o  -version=MARS  -J../generated/osx/release/32 -w -de -g -dip25 -m32 -mv=dmd.backend=dmd/backend -betterC -version=DMDV2 dmd/backend/cgcse.d
:info:build   (HOST_DMD_RUN)  BACK_DOBJS  dmd/backend/elpicpie.d
:info:build /opt/local/libexec/dmd-bootstrap/bin/dmd -c -of../generated/osx/release/32/elpicpie.o  -version=MARS  -J../generated/osx/release/32 -w -de -g -dip25 -m32 -mv=dmd.backend=dmd/backend -betterC -version=DMDV2 dmd/backend/elpicpie.d
:info:build   (HOST_DMD_RUN)  BACK_DOBJS  dmd/backend/machobj.d
:info:build /opt/local/libexec/dmd-bootstrap/bin/dmd -c -of../generated/osx/release/32/machobj.o  -version=MARS  -J../generated/osx/release/32 -w -de -g -dip25 -m32 -mv=dmd.backend=dmd/backend -betterC -version=DMDV2 dmd/backend/machobj.d
:info:build /opt/local/libexec/dmd-bootstrap/bin/dmd -of../generated/build -debug build.d
:info:build echo "$DEFAULT_DMD_CONF" > ../generated/osx/release/32/dmd.conf
:info:build /Library/Developer/CommandLineTools/usr/bin/make -C ../docs DMD=/opt/local/libexec/dmd-bootstrap/bin/dmd build
:info:build make[1]: Entering directory `/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_macports_release_tarballs_ports_lang_dmd/dmd/work/dmd-2.088.0/docs'
:info:build /opt/local/libexec/dmd-bootstrap/bin/dmd -I../src -of../generated/osx/release/32/gen_man gen_man.d ../src/dmd/cli.d
:info:build cp man/man1/obj2asm.1 ../generated/docs/man/man1/obj2asm.1
:info:build cp man/man1/dumpobj.1 ../generated/docs/man/man1/dumpobj.1
:info:build cp man/man5/dmd.conf.5 ../generated/docs/man/man5/dmd.conf.5
:info:build ar rcs ../generated/osx/release/32/backend.a ../generated/osx/release/32/bcomplex.o ../generated/osx/release/32/evalu8.o ../generated/osx/release/32/divcoeff.o ../generated/osx/release/32/dvec.o ../generated/osx/release/32/go.o ../generated/osx/release/32/gsroa.o ../generated/osx/release/32/glocal.o ../generated/osx/release/32/gdag.o ../generated/osx/release/32/gother.o ../generated/osx/release/32/gflow.o ../generated/osx/release/32/out.o ../generated/osx/release/32/gloop.o ../generated/osx/release/32/compress.o ../generated/osx/release/32/cgelem.o ../generated/osx/release/32/cgcs.o ../generated/osx/release/32/ee.o ../generated/osx/release/32/cod4.o ../generated/osx/release/32/cod5.o ../generated/osx/release/32/nteh.o ../generated/osx/release/32/blockopt.o ../generated/osx/release/32/mem.o ../generated/osx/release/32/cg.o ../generated/osx/release/32/cgreg.o ../generated/osx/release/32/dtype.o ../generated/osx/release/32/debugprint.o ../generated/osx/release/32/fp.o ../generated/osx/release/32/symbol.o ../generated/osx/release/32/elem.o ../generated/osx/release/32/dcode.o ../generated/osx/release/32/cgsched.o ../generated/osx/release/32/cg87.o ../generated/osx/release/32/cgxmm.o ../generated/osx/release/32/cgcod.o ../generated/osx/release/32/cod1.o ../generated/osx/release/32/cod2.o ../generated/osx/release/32/cod3.o ../generated/osx/release/32/cv8.o ../generated/osx/release/32/dcgcv.o ../generated/osx/release/32/pdata.o ../generated/osx/release/32/util2.o ../generated/osx/release/32/var.o ../generated/osx/release/32/md5.o ../generated/osx/release/32/backconfig.o ../generated/osx/release/32/ph2.o ../generated/osx/release/32/drtlsym.o ../generated/osx/release/32/dwarfeh.o ../generated/osx/release/32/ptrntab.o ../generated/osx/release/32/aarray.o ../generated/osx/release/32/dvarstats.o ../generated/osx/release/32/dwarfdbginf.o ../generated/osx/release/32/elfobj.o ../generated/osx/release/32/cgen.o ../generated/osx/release/32/os.o ../generated/osx/release/32/goh.o ../generated/osx/release/32/barray.o ../generated/osx/release/32/cgcse.o ../generated/osx/release/32/elpicpie.o ../generated/osx/release/32/machobj.o
:info:build /Library/Developer/CommandLineTools/usr/bin/ranlib: file: ../generated/osx/release/32/backend.a(cv8.o) has no symbols
:info:build /Library/Developer/CommandLineTools/usr/bin/ranlib: file: ../generated/osx/release/32/backend.a(dcgcv.o) has no symbols
:info:build /Library/Developer/CommandLineTools/usr/bin/ranlib: file: ../generated/osx/release/32/backend.a(pdata.o) has no symbols
:info:build /Library/Developer/CommandLineTools/usr/bin/ranlib: file: ../generated/osx/release/32/backend.a(elfobj.o) has no symbols
:info:build /Library/Developer/CommandLineTools/usr/bin/ranlib: file: ../generated/osx/release/32/backend.a(barray.o) has no symbols
:info:build ld: in /opt/local/libexec/dmd-bootstrap/lib/libphobos2.a(exception.o), section __DATA/__thread_bss has type zero-fill but non-zero file offset file '/opt/local/libexec/dmd-bootstrap/lib/libphobos2.a' for architecture x86_64
:info:build clang: error: linker command failed with exit code 1 (use -v to see invocation)
:info:build Error: linker exited with status 1
:info:build make[1]: *** [../generated/osx/release/32/gen_man] Error 1
:info:build make[1]: Leaving directory `/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_macports_release_tarballs_ports_lang_dmd/dmd/work/dmd-2.088.0/docs'
:info:build make: *** [../generated/docs/man1/dmd.1] Error 2
:info:build make: *** Waiting for unfinished jobs....
:info:build ld: section __DATA/__thread_bss has type zero-fill but non-zero file offset file '../generated/build.o' for architecture x86_64
:info:build clang: error: linker command failed with exit code 1 (use -v to see invocation)
:info:build Error: linker exited with status 1
:info:build make: *** [../generated/build] Error 1
:info:build make: Leaving directory `/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_macports_release_tarballs_ports_lang_dmd/dmd/work/dmd-2.088.0/src'
:info:build Command failed:  cd "/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_macports_release_tarballs_ports_lang_dmd/dmd/work/dmd-2.088.0/src" && /usr/bin/make -j8 -w all -f posix.mak all man HOST_CXX="/usr/bin/clang++" CC="/usr/bin/clang" LDFLAGS="-L/opt/local/lib -Wl,-headerpad_max_install_names -framework CoreServices" ENVP="MACOSX_DEPLOYMENT_TARGET=13.0" SYSCONFDIR=/opt/local/etc/dmd HOST_DMD=/opt/local/libexec/dmd-bootstrap/bin/dmd MODEL=32
:info:build Exit code: 2
:error:build Failed to build dmd: command execution failed
:debug:build Error code: CHILDSTATUS 57017 2
:debug:build Backtrace: command execution failed
:debug:build     while executing
:debug:build "system {*}$notty {*}$callback {*}$nice $fullcmdstring"
:debug:build     invoked from within
:debug:build "command_exec -callback portprogress::target_progress_callback 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_lang_dmd/dmd/main.log for details.
tastyminerals commented 1 year ago

Because there is no maintainer and it's outdated :(

WebFreak001 commented 1 year ago

can the prebuilt releases from DCD on the GitHub releases be used there?

tastyminerals commented 1 year ago

I am not sure if this is a valid issue for this repo. This is up to the port maintainer, whoever it was. I should have looked into it before reporting, sorry.

tastyminerals commented 1 year ago

can the prebuilt releases from DCD on the GitHub releases be used there?

I cannot tell without reading through the docs. I actually tried building DCD locally, and it failed because I need to have DMD installed. But DMD is broken on MacPorts for Ventura either 😭 So, I use ldc arm64 binaries to compile D. Not sure if I can use them to build DCD from repo 🤔

WebFreak001 commented 1 year ago

LDC works fine to build DCD, and is the recommended compiler to use to build the DCD binaries

tastyminerals commented 1 year ago

Got it compiled with ldc from source. You should probably mention in README that setting the DC variable works only for Windows build.bat. For Linux / Mac one needs to symlink ldmd2 from ldc distribution to /usr/local/bin or any other dir in PATH for make to build successfully.

WebFreak001 commented 1 year ago

quickly looking at the makefile it looks like you should rather call make ldc, why did you need to symlink ldmd2?

You can also build DCD with dub:

dub build --compiler=ldc2 --build=release --config=client
dub build --compiler=ldc2 --build=release --config=server
tastyminerals commented 1 year ago

Well, so that dmd call works for make otherwise it fails to build. Yep, I could use dub as well.