Opened 3 years ago

Last modified 2 years ago

#65180 assigned defect

dmd segfaults on 10.6.8; portfile has ppc/ppc64, but its dependency dmd-bootstrap is x86_64-only

Reported by: barracuda156 Owned by:
Priority: Normal Milestone:
Component: ports Version: 2.7.2
Keywords: powerpc, leopard, snowleopard Cc:
Port: dmd, dmd-bootstrap

Description

Do I miss something? Portfile of dmd gives impression that the port builds for any arch, however its dependency dmd-bootstrap is only for x86_64. dmd portfile has depends_skip_archcheck-append dmd-bootstrap, however a) on a PowerPC machine it will be impossible to run x86_64 binary, which leaves potentially only Rosetta; b) on 10.6.8 dmd segfaults and does not build even for x86_64. That is, it is simply broken.

--->  Building dmd
Executing:  cd "/opt/x86_64/var/macports/build/_opt_x86_64_var_macports_sources_rsync.macports.org_macports_release_tarballs_ports_lang_dmd/dmd/work/dmd-2.088.0/src" && /usr/bin/make -j4 -w all -f posix.mak all man HOST_CXX="/usr/bin/g++-4.2" CC="/usr/bin/gcc-4.2" LDFLAGS="-L/opt/x86_64/lib -Wl,-headerpad_max_install_names -framework CoreServices" ENVP="MACOSX_DEPLOYMENT_TARGET=10.6" SYSCONFDIR=/opt/x86_64/etc/dmd HOST_DMD=/opt/x86_64/libexec/dmd-bootstrap/bin/dmd MODEL=64 
no cpu specified, assuming X86
make: Entering directory `/opt/x86_64/var/macports/build/_opt_x86_64_var_macports_sources_rsync.macports.org_macports_release_tarballs_ports_lang_dmd/dmd/work/dlang-dmd-8580380/src'
  (HOST_DMD_RUN)  BACK_DOBJS  dmd/backend/bcomplex.d
/opt/x86_64/libexec/dmd-bootstrap/bin/dmd -c -of../generated/osx/release/64/bcomplex.o  -version=MARS -fPIC -J../generated/osx/release/64 -w -de -g -dip25 -m64 -mv=dmd.backend=dmd/backend -betterC -version=DMDV2 dmd/backend/bcomplex.d
  (HOST_DMD_RUN)  BACK_DOBJS  dmd/backend/evalu8.d
/opt/x86_64/libexec/dmd-bootstrap/bin/dmd -c -of../generated/osx/release/64/evalu8.o  -version=MARS -fPIC -J../generated/osx/release/64 -w -de -g -dip25 -m64 -mv=dmd.backend=dmd/backend -betterC -version=DMDV2 dmd/backend/evalu8.d
  (HOST_DMD_RUN)  BACK_DOBJS  dmd/backend/dvec.d
  (HOST_DMD_RUN)  BACK_DOBJS  dmd/backend/divcoeff.d
/opt/x86_64/libexec/dmd-bootstrap/bin/dmd -c -of../generated/osx/release/64/dvec.o  -version=MARS -fPIC -J../generated/osx/release/64 -w -de -g -dip25 -m64 -mv=dmd.backend=dmd/backend -betterC -version=DMDV2 dmd/backend/dvec.d
/opt/x86_64/libexec/dmd-bootstrap/bin/dmd -c -of../generated/osx/release/64/divcoeff.o  -version=MARS -fPIC -J../generated/osx/release/64 -w -de -g -dip25 -m64 -mv=dmd.backend=dmd/backend -betterC -version=DMDV2 dmd/backend/divcoeff.d
make: *** [../generated/osx/release/64/evalu8.o] Segmentation fault
make: *** Waiting for unfinished jobs....
make: *** [../generated/osx/release/64/bcomplex.o] Segmentation fault
make: *** [../generated/osx/release/64/dvec.o] Segmentation fault
make: *** [../generated/osx/release/64/divcoeff.o] Segmentation fault
make: Leaving directory `/opt/x86_64/var/macports/build/_opt_x86_64_var_macports_sources_rsync.macports.org_macports_release_tarballs_ports_lang_dmd/dmd/work/dlang-dmd-8580380/src'
Command failed:  cd "/opt/x86_64/var/macports/build/_opt_x86_64_var_macports_sources_rsync.macports.org_macports_release_tarballs_ports_lang_dmd/dmd/work/dmd-2.088.0/src" && /usr/bin/make -j4 -w all -f posix.mak all man HOST_CXX="/usr/bin/g++-4.2" CC="/usr/bin/gcc-4.2" LDFLAGS="-L/opt/x86_64/lib -Wl,-headerpad_max_install_names -framework CoreServices" ENVP="MACOSX_DEPLOYMENT_TARGET=10.6" SYSCONFDIR=/opt/x86_64/etc/dmd HOST_DMD=/opt/x86_64/libexec/dmd-bootstrap/bin/dmd MODEL=64 
Exit code: 2
Error: Failed to build dmd: command execution failed

I have also tried the more recent @2.099.1, and it also segfaults:

posix.mak:42: ===== DEPRECATION NOTICE ===== 
posix.mak:43: ===== DEPRECATION: posix.mak is deprecated. Please use src/build.d instead.
posix.mak:44: ============================== 
/opt/x86_64/libexec/dmd-bootstrap/bin/dmd -of../generated/build -g build.d
make: *** [../generated/build] Segmentation fault

Official website of D lists architectures: i386, amd64. https://dlang.org/download.html

Attachments (1)

main.log (12.8 KB) - added by barracuda156 3 years ago.

Download all attachments as: .zip

Change History (3)

Changed 3 years ago by barracuda156

Attachment: main.log added

comment:1 Changed 2 years ago by tenomoto (Takeshi Enomoto)

Sorry, I am unable to maintain dmd ports.

comment:2 Changed 2 years ago by kencu (Ken)

Owner: tenomoto deleted
Note: See TracTickets for help on using tickets.