- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
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
Link Copied
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
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.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
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
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
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?
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
I used parallel_studio_xe_2016_update1_x64
- Subscribe to RSS Feed
- Mark Topic as New
- Mark Topic as Read
- Float this Topic for Current User
- Bookmark
- Subscribe
- Printer Friendly Page