Bug 28738

Summary: Error in internal link to *.bc file in libMesaOpenCL.so.1.0.0
Product: Mageia Reporter: Hans Micheelsen <micheelsen>
Component: RPM PackagesAssignee: Thierry Vignaud <thierry.vignaud>
Status: RESOLVED FIXED QA Contact:
Severity: normal    
Priority: Normal    
Version: Cauldron   
Target Milestone: ---   
Hardware: All   
OS: Linux   
Whiteboard:
Source RPM: libclc CVE:
Status comment:
Attachments: The part where the wrong path is located in libMesaOpenCL.so.1.0.0
The cpp-file used to reproduce the error

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