Bug 28738 - Error in internal link to *.bc file in libMesaOpenCL.so.1.0.0
Summary: Error in internal link to *.bc file in libMesaOpenCL.so.1.0.0
Status: RESOLVED FIXED
Alias: None
Product: Mageia
Classification: Unclassified
Component: RPM Packages (show other bugs)
Version: Cauldron
Hardware: All Linux
Priority: Normal normal
Target Milestone: ---
Assignee: Thierry Vignaud
QA Contact:
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2021-04-07 01:08 CEST by Hans Micheelsen
Modified: 2021-04-07 23:03 CEST (History)
0 users

See Also:
Source RPM: libclc
CVE:
Status comment:


Attachments
The part where the wrong path is located in libMesaOpenCL.so.1.0.0 (90.39 KB, image/png)
2021-04-07 01:09 CEST, Hans Micheelsen
Details
The cpp-file used to reproduce the error (3.71 KB, text/x-csrc)
2021-04-07 01:11 CEST, Hans Micheelsen
Details

Description Hans Micheelsen 2021-04-07 01:08:10 CEST
Description of problem:
When compiling openCL-program with cl::program::build a wrong path is used to '/usr//usr/lib64/clc/polaris11-amdgcn-mesa-mesa3d.bc' The /usr part has been doubled
I traced the error to the libMesaOpenCL.so.1.0.0 file by searching in the binary file. 


Version-Release number of selected component (if applicable):


How reproducible:
Each time

Steps to Reproduce:
1.
2.
3.
Comment 1 Hans Micheelsen 2021-04-07 01:09:34 CEST
Created attachment 12588 [details]
The part where the wrong path is located in libMesaOpenCL.so.1.0.0
Comment 2 Hans Micheelsen 2021-04-07 01:11:14 CEST
Created attachment 12589 [details]
The cpp-file used to reproduce the error
Comment 3 Hans Micheelsen 2021-04-07 01:12:42 CEST
And the error message from program.getBuildInfo<CL_PROGRAM_BUILD_LOG> is:

Error building: fatal error: cannot open file '/usr//usr/lib64/clc/polaris11-amdgcn-mesa-mesa3d.bc': No such file or directory
Comment 4 Thomas Backlund 2021-04-07 16:37:18 CEST
This comes from broken libclc pkgconfig

# cat  /usr/lib64/pkgconfig/libclc.pc
includedir=/usr/include
libexecdir=/usr//usr/lib64/clc

Source RPM: std::cout << "hallo" << std::endl; => libclc

Thomas Backlund 2021-04-07 16:38:09 CEST

Assignee: bugsquad => thierry.vignaud

Comment 5 Thomas Backlund 2021-04-07 20:06:00 CEST
should be fixed with:
libclc-12.0.0-0.rc4.1.mga9
mesa-21.0.2-1.mga9 (currently building)
Comment 6 Hans Micheelsen 2021-04-07 22:47:34 CEST
Perfect. With mesa-21.0.2-1.mga9 and libclc-12.0.0-0.rc4.1.mga9 it works as expected.
Good work!
Comment 7 Thomas Backlund 2021-04-07 23:03:27 CEST
Good.

Closing then

Status: NEW => RESOLVED
Resolution: (none) => FIXED


Note You need to log in before you can comment on or make changes to this bug.