Description of problem: I tried to build tcl from source rpm by Intel compiler and got such linker message: /users/compiler/tc_6/WORK_DIR/BUILD/tcltk- 8.3.5/tclx8.3/unix/runtcl /users/compiler/tc_6/WORK_DIR/BUILD/tcltk- 8.3.5/tclx8.3/unix/tools/genindex.tcl tcl.tlib /users/compiler/tc_6/WORK_DIR/BUILD/tcltk-8.3.5/tclx8.3/tcl/unix/tcl: relocation error: /users/compiler/tc_6/WORK_DIR/BUILD/tcltk- 8.3.5/tclx8.3/tcl/unix/tcl: undefined symbol: __intel_cpu_indicator make[1]: *** [tcl.tndx] Error 127 The problem is that tcl is being linked finally as: gcc -pipe -Wall -rdynamic -Wl,-rpath,/usr/lib -O - D__NO_STRING_INLINES -D__NO_MATH_INLINES -Wall - Wconversion -Wno-implicit-int tclXAppInit.o - L/users/compiler/tc_6/WORK_DIR/BUILD/tcltk-8.3.5/tclx8.3/tcl/unix - ltclx8.3 -L/users/compiler/tc_6/WORK_DIR/BUILD/tcltk- 8.3.5/tcl8.3.5/unix -ltcl8.3 -ldl -lieee \ -o tcl || (rm -f tcl; exit 1) and therefore expect the libraries it was linked with are in /usr/lib when it run. But while doing `make test` it is not true yet. In /usr/lib previous tcl libraries may be, therefore such way built tcl will link with foreign tcl shared libraries being run, and that might cause an run-link error (what is happened if use distinct from gcc compiler). This way `make check` fails and I so cannot build/install source rpm. To clean up this issue Iâd propose to build localized version of tcl along with ânormalâ for `make test` (with rpath set to where just built libraries resides) and use it for `make test`. `make install` then would install ânormalâ version of tcl. Version-Release number of selected component (if applicable): How reproducible: always Steps to Reproduce: 1. get the Intel compiler 2. try to build tcltk source rpm by Intel compiler on the system where some version tcl is already installed. Actual results: run-time error during run-time linking running tcl. Expected results: smoothly built and installed tcl Additional info:
https://bugzilla.redhat.com/bugzilla/show_bug.cgi?id=113385#c2