Community Packages

Please read this before reporting a bug:
http://wiki.archlinux.org/index.php/Reporting_Bug_Guidelines

Do NOT report bugs when a package is just outdated, or it is in Unsupported. Use the 'flag out of date' link on the package page, or the Mailing List.

REPEAT: Do NOT report bugs for outdated packages!
Tasklist

FS#61595 - [dmd] doesn't build

Attached to Project: Community Packages
Opened by Andreas Baumann (andreas_baumann) - Friday, 01 February 2019, 07:24 GMT
Task Type Bug Report
Category Packages
Status Unconfirmed
Assigned To No-one
Architecture All
Severity Low
Priority Normal
Reported Version
Due in Version Undecided
Due Date Undecided
Percent Complete 0%
Votes 0
Private No

Details

Description:

../generated/linux/release/64/evalu8.o:evalu8.d:function evalu8(elem*, unsigned int): error: undefined reference to '_Z7_moduloeS_'
../generated/linux/release/64/evalu8.o:evalu8.d:function evalu8(elem*, unsigned int): error: undefined reference to '_Z7_moduloeS_'
../generated/linux/release/64/evalu8.o:evalu8.d:function evalu8(elem*, unsigned int): error: undefined reference to '_Z7_moduloeS_'
collect2: error: ld returned 1 exit status
Error: /usr/bin/c++ failed with status: 1

Found some hints in the forum:

dsrjmpnavxqsjqmlvotf@forum.dlang.org"> https://forum.dlang.org/thread/dsrjmpnavxqsjqmlvotf@forum.dlang.org

They reference to:

https://github.com/ldc-developers/ldc/issues/2954

and this patch:

https://github.com/dlang/dmd/pull/9129/commits/ba8288e1a993bf923467e533cb06a7770efbdfbd

I tried to backport, but got into quite some trouble, so it might
be better to wait for a new release.


Additional info:
* package version(s): 2.084.0-1


Steps to reproduce:
asp export dmd
cd dmd
staging-x86_64-build
This task depends upon

Comment by loqs (loqs) - Tuesday, 05 February 2019, 00:05 GMT
Updating ldc to v1.14.0-beta1 ( commit c62b7602639ac20347b714a4dffefb363a1ce609 ) then rebuilding dmd using the updated ldc resolves the issue on this system.
Alternate solutions that also worked locally were changing HOST_DMD=ldmd2 to HOST_DMD=gdmd and changing makedepends from ldc to gdc or HOST_DMD=dmd changing makedepends from ldc to dmd.
As an aside ldc 2:1.13.0-1 FTFS on this system.

Loading...