Intel® Fortran Compiler
Build applications that can scale for the future with optimized code designed for Intel® Xeon® and compatible processors.
28500 Discussions

Problem linking file: undefined reference to `__libc_csu_fini'

madbosun
Beginner
1,765 Views

When linking my binary I get this error:

ifort control.o -O3 -L../lib -ldyna -L/opt/intel/mkl/10.1.2.024/lib/em64t -lmkl_intel_lp64 -lmkl_intel_thread -lmkl_lapack -lmkl_core -lguide -lpthread -lm -o control
/usr/lib/gcc/x86_64-redhat-linux/4.4.0/../../../../lib64/crt1.o: In function `_start':
(.text+0x12): undefined reference to `__libc_csu_fini'
/usr/lib/gcc/x86_64-redhat-linux/4.4.0/../../../../lib64/crt1.o: In function `_start':
(.text+0x19): undefined reference to `__libc_csu_init'
/opt/intel/mkl/10.1.2.024/lib/em64t/libguide.so: undefined reference to `pthread_atfork'
make: *** [control] Error 1

I have not found any solution that works to fix the first to linker problems. Does anyone have any suggestions?

0 Kudos
2 Replies
madbosun
Beginner
1,765 Views

I would like to post my solution to this problem. Using Fedora 11, there is a glibc.i686 and glibc.i586. The default system installs glibc.i686 (to the best of my knowledge this is indeed the default). However simply downloading and installing the glibc.i586 rpm and removing the glibc.i686 rpm fixes the problem.

Hope this helps
0 Kudos
GRoes
Beginner
1,765 Views
Using Red Hat Enterprise 6 ( RHEL6 ) or clones, like SL6, Centos6, this issue is also present using fce/bin/ifort 10.1. The solution was to install glibc-static.i686.

Hope this helps
0 Kudos
Reply