Community
cancel
Showing results for 
Search instead for 
Did you mean: 
Highlighted
Beginner
23 Views

problem with program

Hi,

I installed parallel_studio_xe_2016_update1 under fedora 23 x86_64, when I make file for may program appears 

ld: skipping incompatible /usr/lib/gcc/x86_64-redhat-linux/5.3.1/../../..//libm.a when searching for -lm
ld: skipping incompatible /lib//libm.a when searching for -lm
ld: skipping incompatible /usr/lib/libm.a when searching for -lm
ld: skipping incompatible /lib/libm.a when searching for -lm
ld: skipping incompatible /usr/lib/libm.a when searching for -lm
ld: cannot find -lm

else 

ld: cannot find -lpthread

ld: cannot find -lc

ld: cannot find -ldl

what is the problem, please help

0 Kudos
4 Replies
Highlighted
Black Belt
23 Views

You may  be trying to mix 32 and 64 bit build modes.  When you try to install the ia32 compiler on a platform which has only 64 bit g++ you normally get a warning.  The easiest solution is not to attempt ia32 mode.  Use e.g. source compilers.sh intel64 and rebuild everything.

0 Kudos
Highlighted
Beginner
23 Views

this is my make file

FC =  ifort
FFLAGS = -c -g -save -1 -w -f66 -WB -vms -fpconstant -double-size 64
LDFLAGS =    -zero -static
all: atlas9 atlas9v width 

atlas9:    atlas9mem.for
    $(FC) $(FFLAGS) -o atlas9mem.o atlas9mem.for
    $(FC) $(LDFLAGS) -o atlas9mem.exe   atlas9mem.o 

atlas9v:    atlas9v.for
    $(FC) $(FFLAGS) -o atlas9v.o atlas9v.for
    $(FC) $(LDFLAGS) -o atlas9v.exe   atlas9v.o 

 

width:    width9.for atlas9lib.for 
    $(FC) $(FFLAGS)  -o atlas9lib.o atlas9lib.for
    $(FC) $(FFLAGS)  -o width9.o width9.for
    $(FC) $(LDFLAGS) -o width9.exe width9.o atlas9lib.o  


install:        
    /bin/mv *.exe ../bin
    /bin/rm -f *.o

clean:
    - rm -f $(progs) 2>/dev/null; exit 0
    @ echo 'Use "make realclean" to also remove .o files'

realclean: clean
    - rm -f *.o 2>/dev/null; exit 0
    - rm *.exe  2>/dev/null; exit 0

 

what is the error

0 Kudos
Highlighted
Black Belt
23 Views

Your makefile has some errors (the executables are specified with the ".exe" suffix but the targets have no suffix) but apart from recompiling and relinking unnecessarily, there is no impact on the problem that you mentioned.

You did not reply regarding Tim P.'s remarks in #2. That is probably where the linking errors lie. How do you launch the console window in which you attempt the compile? How did you set up the compilation environment?

0 Kudos
Highlighted
Beginner
23 Views

I used parallel_studio_xe_2016_update1_x64

0 Kudos