Intel® C++ Compiler
Support and discussions for creating C++ code that runs on platforms based on Intel® processors.
Announcements
This community is designed for sharing of public information. Please do not share Intel or third-party confidential information here.
7669 Discussions

x86_64-k1om-linux-ld: final link failed

sun_l_
New Contributor I
223 Views

Today I compile radiosity program.

gcc work fine.

There is warnings with icc.

Error with "icc -mmic"

Any help?

Thanks.

 

```

[root@amax src]# make
make -C glibdumb    
make[1]: Entering directory `/home/wang/splash2/apps/radiosity/src/glibdumb'
make[1]: Nothing to be done for `all'.
make[1]: Leaving directory `/home/wang/splash2/apps/radiosity/src/glibdumb'
make -C glibps    
make[1]: Entering directory `/home/wang/splash2/apps/radiosity/src/glibps'
make[1]: Nothing to be done for `all'.
make[1]: Leaving directory `/home/wang/splash2/apps/radiosity/src/glibps'
icc -mmic -I./glibdumb -I./glibps -I/usr/local/include -g   -g -w -lpthread -lm  rad_main.o patchman.o elemman.o taskman.o modelman.o smallobj.o display.o visible.o rad_tools.o room_model.o  ./glibdumb/glib.a glibps/glibps.a -o radiosity
x86_64-k1om-linux-ld: i386:x86-64 architecture of input file `./glibdumb/glib.a(glib.o)' is incompatible with k1om output
x86_64-k1om-linux-ld: i386:x86-64 architecture of input file `glibps/glibps.a(glibps.o)' is incompatible with k1om output
x86_64-k1om-linux-ld: glibps/glibps.a(glibps.o)(.text+0xce4): reloc against `sincos@@GLIBC_2.14': error 4
x86_64-k1om-linux-ld: final link failed: Nonrepresentable section on output
make: *** [radiosity] Error 1

```

0 Kudos
1 Solution
Kittur_G_Intel
Employee
223 Views

Hi,
Looks like you didn't compile the files glib.o, glibps.o etc., with -mmic flag and hence the incompatibility. Can you check?
_Kittur 

View solution in original post

1 Reply
Kittur_G_Intel
Employee
224 Views

Hi,
Looks like you didn't compile the files glib.o, glibps.o etc., with -mmic flag and hence the incompatibility. Can you check?
_Kittur 

Reply