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

Error :ld: final link failed: Nonrepresentable section on outputmake: *** [all] Error 1

Syed_Ahsan_Ali
Beginner
2,174 Views
Dear All,
I am getting the following error while compilation of an application. Please help me get out of this. Thanking you in advance
ld: ../../bin/gme2hrm: hidden symbol `__intel_cpu_indicator_init' in /opt/intel/Compiler/11.1/073/lib/intel64/libirc.a(cpu_disp.o) is referenced by DSO
ld: final link failed: Nonrepresentable section on output
make: *** [all] Error 1
ld: ../../bin/gme2hrm: hidden symbol `__intel_cpu_indicator_init' in /opt/intel/Compiler/11.1/073/lib/intel64/libirc.a(cpu_disp.o) is referenced by DSO
ld: final link failed: Nonrepresentable section on outputmake: *** [all] Error 1
regards
Ahsan
0 Kudos
3 Replies
mecej4
Honored Contributor III
2,174 Views
> Please help me get out of this

We could try, if we knew how you got into "this".

How were the objects compiled, and how was the linking attempted? In particular, was ld invoked directly? Did you use a makefile? --- etc.
0 Kudos
TimP
Honored Contributor III
2,174 Views
Among the ways in which you might produce this situation are by linking against multiple incompatible versions of ifort libraries, or by creating a shared object which is partially linked internally against the compiler static libraries.
0 Kudos
Syed_Ahsan_Ali
Beginner
2,174 Views
Thanku for replying I am using following make file to link

# Following definition is required. You may adapt it to your needs.

STDROOT=${PWD}

# Following definitions are required. Do not change them.

SRCDIR=$(STDROOT)

OBJDIR=$(STDROOT)

# Define the name of the library

NAME=gme2hrm

# Load the binary names

include FileNames

# Load compiler options

include Options

# Load the list of object files

include Objfiles

# Define the calls for compiling

FTN=$(FTNCALL) -c $(FTNLST) $(FTNDEB) $(FTNANSI)

CC=$(CCALL) -c $(CC_LST) $(CC_DEB) $(CC_ANSI)

# Load the search path names for object libraries

# and the additional object libraries for linking

include LinkLibs

# Define include files for external usage

PUBFILES=

# Define plane object files for external usage

PUBOBFIL=

# Do all the compiling and linking stuff

# /SX/usr/bin/sxar For NEX SX

all: $(OBJFILES) $(PUBOBFIL)

rm -f $(NEWLIB)

ar qv $(NEWLIB) $(OBJFILES)

for MAIN in $(BINARIES) ; do \

if [ $${MAIN} != 'IGNORE' ] ; then \

$(FTNCALL) -o $${MAIN} $(OBJFILES) $(EXTOBJ) $(LINKOPTS) $(LIBPATHS) $(LIBS) 2>&1 >> $${MAIN}.map; \

fi \

done

# Cleanup

clean:

rm -f $(OBJDIR)/*.o $(OBJDIR)/*.l* $(OBJDIR)/*.L* $(OBJDIR)/*.kmo $(OBJDIR)/*.mod

# Load the dependencies list

include ODependencies

#

0 Kudos
Reply