FS#47840 - [liblphobos] missing gccbuiltins_x86.di file

Attached to Project: Community Packages
Opened by Iakh Takh (Iakh) - Thursday, 21 January 2016, 01:57 GMT
Last edited by Mihails Strasuns (Dicebot) - Friday, 22 January 2016, 11:58 GMT
Task Type Bug Report
Category Packages
Status Closed
Assigned To Mihails Strasuns (Dicebot)
Architecture x86_64
Severity Low
Priority Normal
Reported Version
Due in Version Undecided
Due Date Undecided
Percent Complete 100%
Votes 1
Private No

Details

Description:
I can't do this import in my Dlang/ldc project
import ldc.gccbuiltins_x86;

Additional info:
$ pacman -Qi liblphobos
Name : liblphobos
Version : 1:0.16.1-2

Compiler output:
Error: module gccbuiltins_x86 is in file 'ldc/gccbuiltins_x86.d' which cannot be read
import path[0] = /usr/include/dlang/ldc/ldc
import path[1] = /usr/include/dlang/ldc
import path[2] = .
ldc failed with exit code 1.

Steps to reproduce:
pacman -S ldc dub # install ldc (and as its dependency liblphobos) and helper package "dub"
cd <workspace> # go to your workspace
dub init test-ldc # create new project
cd test-ldc
dub build --compiler=ldc # it should be OK. Just test.

insert this text as the first line of the $PWD/source/app.d:
import ldc.gccbuiltins_x86;

dub build --compiler=ldc # error

ls /usr/include/dlang/ldc/ldc # there is no gccbuiltins_x86 file

Upstream forum discussion:
xqbwajhmotsycqqdizjv@forum.dlang.org"> http://forum.dlang.org/thread/xqbwajhmotsycqqdizjv@forum.dlang.org
This task depends upon

Closed by  Mihails Strasuns (Dicebot)
Friday, 22 January 2016, 11:58 GMT
Reason for closing:  Fixed
Comment by Iakh Takh (Iakh) - Thursday, 21 January 2016, 02:00 GMT
From forum discussion:
It is supposed to be generated during the LDC build process (${CMAKE_BINARY_DIR}/runtime/gccbuiltins_x86.di) and then copied into ${INCLUDE_INSTALL_DIR}/ldc as part of the installation phase.
Comment by Mihails Strasuns (Dicebot) - Thursday, 21 January 2016, 23:47 GMT
Please check package version 0.16.1-3
Comment by Iakh Takh (Iakh) - Friday, 22 January 2016, 00:43 GMT
There is initial problem. I can't do the import(import ldc.gccbuiltins_x86;).
But now i could "import gccbuiltins_x86;"
Looks like this file
/usr/include/dlang/ldc/gccbuiltins_x86.di
should be here
/usr/include/dlang/ldc/ldc/gccbuiltins_x86.di
Comment by Mihails Strasuns (Dicebot) - Friday, 22 January 2016, 01:59 GMT
Sorry, have not noticed qualified path. Will make another update soon.
Comment by Iakh Takh (Iakh) - Friday, 22 January 2016, 04:33 GMT
Well done! Thank you!

Loading...