[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [HTCondor-users] condor_compile with math lib fails for RHEL 7.3

Further debugging shows that I can force this to work by extracting dl-support.o from /lib64/libc.a and adding this explicitly to the condor_compile line.  E.g. transform

condor_compile gfortran mycode.f -o mycode


condor_compile gfortran mycode.f dl-support.o -o mycode

This is a rather crude workaround.  Is there a better permanent solution?


On Nov 10, 2016, at 3:00 PM, Feldt, Andrew N. <afeldt@xxxxxx> wrote:

Has anyone else run into this issue?  If a fortran code contains math functions (sin, cos, etc.), then, while it can be compiled just fine (even statically) without condor_compile but condor_compile fails at the link stage with:

/usr/lib/gcc/x86_64-redhat-linux/4.8.5/../../../../lib64/libm.a(s_sin.o): In function `__cos':
(.text+0x4682): undefined reference to `_dl_x86_cpu_features'
/usr/lib/gcc/x86_64-redhat-linux/4.8.5/../../../../lib64/libm.a(s_sin.o): In function `__sin':
(.text+0x46b2): undefined reference to `_dl_x86_cpu_featuresâ

and so on for each math function.  Fortran codes without math functions compile just fine with condor_compile.  This worked without issue at RHEL 7.2.

This is for:

Is there a known solution?


Andy Feldt
Senior System Support Programmer
Affiliate Assistant Professor
Homer L. Dodge Department of Physics & Astronomy
The University of Oklahoma

HTCondor-users mailing list
To unsubscribe, send a message to htcondor-users-request@xxxxxxxxxxx with a
subject: Unsubscribe
You can also unsubscribe by visiting

The archives can be found at: