Skip to content

icx -shared option adding unncessary libraries #147

Description

@ye-luo

Point of Contact

Ye Luo

Contact Details

No response

Vendor/ALCF/other tickets/IDs

CMPLRLLVM-76266

Reproducer Path

N/A

Status

Open

Details

Using an empty main function

int main() {}

See ldd output

yeluo@sunspot-uan-0001:~> icx -v
Intel(R) oneAPI DPC++/C++ Compiler 2025.3.2 (2025.3.2.20260112)
yeluo@sunspot-uan-0001:~> icx main.c && ldd ./a.out
	linux-vdso.so.1 (0x00007ffc6351e000)
	libm.so.6 => /lib64/libm.so.6 (0x00007fe1dbb62000)
	libc.so.6 => /lib64/libc.so.6 (0x00007fe1db94d000)
	/lib64/ld-linux-x86-64.so.2 (0x00007fe1dbc5d000)
yeluo@sunspot-uan-0001:~> icx -shared main.c && ldd ./a.out
	linux-vdso.so.1 (0x00007ffe40bfb000)
	libsvml.so => /opt/aurora/26.26.0/oneapi/compiler/latest/lib/libsvml.so (0x00007f41b5ddc000)
	libirng.so => /opt/aurora/26.26.0/oneapi/compiler/latest/lib/libirng.so (0x00007f41b5ce3000)
	libimf.so => /opt/aurora/26.26.0/oneapi/compiler/latest/lib/libimf.so (0x00007f41b58be000)
	libm.so.6 => /lib64/libm.so.6 (0x00007f41b57c7000)
	libintlc.so.5 => /opt/aurora/26.26.0/oneapi/compiler/latest/lib/libintlc.so.5 (0x00007f41b5764000)
	libc.so.6 => /lib64/libc.so.6 (0x00007f41b554f000)
	/lib64/ld-linux-x86-64.so.2 (0x00007f41b7303000)

Unnecessary libsvml, libirng, imf, libintlc all got pull in bloating the dependency when adding -shared option.

Is this a priority/blocking bug?

  • Priority

ETA

No response

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions