- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
In my project, I need to use the library icc/compiler/lib/intel64_lin/libirc.a, But when link it, then appear link error:
ld.bfd: module.o: in function `__intel_cpu_features_init_body':
cpu_feature_disp.c:(.text+0x4aca88): undefined reference to `getenv'
ld.bfd: cpu_feature_disp.c:(.text+0x4aca90): undefined reference to `__errno_location'
I find the symbol in glibc, but I want to know whether the library libirc.a depend on glibc?
The version icc is show attached picture.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Hi,
>>"I want to know whether the library libirc.a depend on glibc?"
The Intel® C++ Compiler Classic supplies additional libraries(include the Intel® Math Library (libimf), the Short Vector Math Library (libsvml), libirc, as well as others) that contain optimized implementations of many commonly used functions. These libraries are linked in by default.
Intel® C++ Compiler Classic System Requirements says that GLIBC version - 2.17 - 20.33 is needed.
So, libirc depends on GLIBC.
Could you please confirm whether to keep the thread open or close for the time being? You can post a new thread once you have the sample scenario ready.
Thanks & Regards,
Santosh
Link Copied
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Hi,
Thanks for reaching out to us.
Could you please provide us with the below details?
- The operating system and its version.
- A sample reproducer code.
- Steps to reproduce your issue with the commands being used for linking.
- Is the Base Toolkit installed on your machine?
>>"I find the symbol in glibc"
Could you please let us know how you find the symbol in glibc?
Thanks & Regards,
Santosh
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Hi,
We haven't heard back from you. Could you please provide the above-requested details to investigate more on your issue?
Thanks & Regards,
Santosh
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Hi, thanks for your reply, because the project is confidential, so I can't give the scenario directly. But I will try to make a similar scenario by my self later, and then reply you again.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Hi,
>>"I want to know whether the library libirc.a depend on glibc?"
The Intel® C++ Compiler Classic supplies additional libraries(include the Intel® Math Library (libimf), the Short Vector Math Library (libsvml), libirc, as well as others) that contain optimized implementations of many commonly used functions. These libraries are linked in by default.
Intel® C++ Compiler Classic System Requirements says that GLIBC version - 2.17 - 20.33 is needed.
So, libirc depends on GLIBC.
Could you please confirm whether to keep the thread open or close for the time being? You can post a new thread once you have the sample scenario ready.
Thanks & Regards,
Santosh
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Hi,
Thanks for accepting our solution. If you need any additional information, please post a new question as this thread will no longer be monitored by Intel.
Thanks & Regards,
Santosh

- Subscribe to RSS Feed
- Mark Topic as New
- Mark Topic as Read
- Float this Topic for Current User
- Bookmark
- Subscribe
- Printer Friendly Page