Community
cancel
Showing results for 
Search instead for 
Did you mean: 
sun_l_
New Contributor I
137 Views

x86_64-k1om-linux-ld: final link failed

Jump to solution

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
137 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
138 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

Reply