Package: libopenblas64-openmp-dev
Version: 0.3.28+ds-3
Severity: normal

Dear Maintainer,

I have been trying to use pkg-config --libs to determine the linker options 
needed to use openblas64. However, when I issue the command

pkg-config --libs openblas64

I get 

-L/usr/lib/x86_64-linux-gnu/openblas64-openmp/ -lopenblas

where -lopenblas is missing a trailing "64" for the 64 bit integer interface.
Upon looking at the file 
/usr/lib/x86_64-linux-gnu/openblas64-openmp/pkgconfig/openblas64.pc I see that 
Libs is defined as 

Libs: -L${libdir} -l${libprefix}openblas${libnamesuffix}

whereas the "64" flavour is set in

libsuffix=64

above.

Therefore, the Libs: line appears to need to be corrected as such:

Libs: -L${libdir} -l${libprefix}openblas${libnamesuffix}${libsuffix}

Indeed, after correcting it by hand like this, upon issuing the command 
"pkg-config --libs openblas64" I do get

-L/usr/lib/x86_64-linux-gnu/openblas64-openmp/ -lopenblas64 

which matches the name of the lib and works.

I do not know in detail how the .pc files are concocted to account for the 
various libopenblas flavours, so I do not know how to patch the source file to 
accomplish this change in the installed openblas64.pc files

I hope this is useful nonetheless.


Thanks in advance, best regards

Giacomo Mulas

-- System Information:
Debian Release: trixie/sid
  APT prefers unstable
  APT policy: (401, 'unstable'), (10, 'experimental')
Architecture: amd64 (x86_64)
Foreign Architectures: i386

Kernel: Linux 6.11.9-amd64 (SMP w/12 CPU threads; PREEMPT)
Kernel taint flags: TAINT_PROPRIETARY_MODULE, TAINT_OOT_MODULE, 
TAINT_UNSIGNED_MODULE
Locale: LANG=it_IT.UTF-8, LC_CTYPE=it_IT.UTF-8 (charmap=UTF-8), LANGUAGE not set
Shell: /bin/sh linked to /usr/bin/dash
Init: systemd (via /run/systemd/system)
LSM: AppArmor: enabled

Versions of packages libopenblas64-openmp-dev depends on:
ii  libopenblas64-0-openmp  0.3.28+ds-3

libopenblas64-openmp-dev recommends no packages.

libopenblas64-openmp-dev suggests no packages.

-- no debconf information

-- 
debian-science-maintainers mailing list
debian-science-maintainers@alioth-lists.debian.net
https://alioth-lists.debian.net/cgi-bin/mailman/listinfo/debian-science-maintainers

Reply via email to