Bug 21448 - 在anolis23.2编译mlnx-ofa_kernel报错cc1: error: code model kernel does not support PIC mode
Summary: 在anolis23.2编译mlnx-ofa_kernel报错cc1: error: code model kernel does not support ...
Status: NEW
Alias: None
Product: Anolis OS 23
Classification: Anolis OS
Component: BaseOS Packages (show other bugs) BaseOS Packages
Version: 23.2
Hardware: All Linux
: P3-Medium S3-normal
Target Milestone: ---
Assignee: happy_orange
QA Contact: bolong_tbl
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2025-05-26 16:22 UTC by wangkaiyuan
Modified: 2025-05-26 16:22 UTC (History)
0 users

See Also:


Attachments
src.rpm (3.99 MB, application/x-rpm)
2025-05-26 16:22 UTC, wangkaiyuan
Details

Note You need to log in before you can comment on or make changes to this bug.
Description wangkaiyuan inspur_group 2025-05-26 16:22:41 UTC
Created attachment 1335 [details]
src.rpm

Description of problem:

在anolis23.2编译mlnx-ofa_kernel报错cc1: error: code model kernel does not support PIC mode
Version-Release number of selected component (if applicable):

23.2
How reproducible:


Steps to Reproduce:
1.rpmbuild -ra mlnx-ofa_kernel-24.10-OFED.24.10.2.1.8.1.src.rpm
2.
3.

Actual results:
报错cc1: error: code model kernel does not support PIC mode

Expected results:
编译通过

Additional info:
在an8上没问题