Please support other architectures

Bug #1809098 reported by Karl Stenerud
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
libdfp (Ubuntu)
New
Undecided
Unassigned

Bug Description

[Impact]

libdfp is currently only built for ppc64el and s390x. This causes gcc compilation to fail on other architectures in certain cases.

[Test Case]

$ echo "int main(void) {
_Decimal64 dvalue = 0.4dd;
__int128 ivalue = (__int128)dvalue;
return (int)ivalue;
}" | gcc -x c -
/tmp/cc97Mfy0.o: In function `main':
:(.text+0x1c): undefined reference to `__bid_fixddti'
collect2: error: ld returned 1 exit status

# bid_fixddti is part of the libdfp API: https://github.com/libdfp/libdfp/blob/master/sysdeps/bid/libdfp.abilist

$ echo "int main(void) {
_Decimal64 dvalue = 0.4dd;
__int128 ivalue = (__int128)dvalue;
return (int)ivalue;
}" | gcc -x c -ldfp -
/usr/bin/ld: cannot find -ldfp
collect2: error: ld returned 1 exit status

$ sudo apt install libdfp-dev
Reading package lists... Done
Building dependency tree
Reading state information... Done
E: Unable to locate package libdfp-dev

$ rmadison libdfp-dev
 libdfp-dev | 1.0.12-0ubuntu1 | xenial/universe | ppc64el, s390x
 libdfp-dev | 1.0.13-1 | bionic/universe | ppc64el, s390x
 libdfp-dev | 1.0.13-1 | cosmic/universe | ppc64el, s390x
 libdfp-dev | 1.0.13-1 | disco/universe | ppc64el, s390x

[Regression Potential]

This could regress existing packages if changes are required in order to make it work on new architectures.

Revision history for this message
Frédéric Bonnard (frediz) wrote :

Hi,
what I know from the upstream is that libdfp is work in progress on x86 32b/64b.
So as the Debian package maintainer of libdfp, I don't intend to add other architectures than the one well supported.
In Debian, libdfp is also compiled on powerpc and ppc64.
So no other arch is planned to be added at the moment.

F.

Revision history for this message
Frédéric Bonnard (frediz) wrote :

Small update on this.
Not sure I should have close that bug in my latest upload in Debian, but
with 1.0.15, libdfp has support for i386 and amd64.

To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.