Hi there,
I came across the following error, using intel compiler.
[user12@onion axyinversion3D]$ make
cd src && make -f Makefile
make[1]: Entering directory `/src/dev/dev/axyinversion3D/axyinversion3D/src'
test -d ../bin/ || mkdir -p ../bin/
g++ -o ../bin/axyinversion3d cxmlmenu.o axyinversion3d.o axyinversion3Dmain.o -L/rc/apps/intel/fc/9.1.036/libstatic -L../lib -L/usr/lib64/qt-3.3/lib -L/usr/X11R6/lib -laxyinversion -lifport -lifcore -limf -lcxa -lirc -lunwind -lc -lirc_s -lseisio -lqt-mt -lXext -lX11 -lm
/usr/bin/ld: skipping incompatible ../lib/libaxyinversion.a when searching for -laxyinversion
/usr/bin/ld: cannot find -laxyinversion
collect2: ld returned 1 exit status
make[1]: *** [../bin/axyinversion3d] Error 1
make[1]: Leaving directory `/src/dev/dev/axyinversion3D/axyinversion3D/src'
make: *** [sub-src] Error 2
I have developed on C, that call F90 routines on a hedrat 5.3
Everything works fine on my old machine that I lost recently. I set up a new machine with the same compiler and directory structure, but I am very low on scripts.
The same project worked fine on my old machine. Inside of the main project O have a "lib" directory,where I have the f90 routines, tha I compile with a makeLibF script, that works fine:
[user12@onion lib]$ ./makeLibF
ar: creating libaxyinversion.a
a - angle_psv.o
a - ap_axypsv.o
a - calc_psv.o
a - comp_svel.o
a - get_psv.o
a - hunt.o
There is also an src directory, inside the maind project directory with the C codes.
When I get back to the main directory of the project and do "make" i had the following error message:
[user12@onion axyinversion3D]$ make
cd src && make -f Makefile
make[1]: Entering directory `/src/dev/dev/axyinversion3D/axyinversion3D/src'
test -d ../bin/ || mkdir -p ../bin/
g++ -o ../bin/axyinversion3d cxmlmenu.o axyinversion3d.o axyinversion3Dmain.o -L/rc/apps/intel/fc/9.1.036/libstatic -L../lib -L/usr/lib64/qt-3.3/lib -L/usr/X11R6/lib -laxyinversion -lifport -lifcore -limf -lcxa -lirc -lunwind -lc -lirc_s -lseisio -lqt-mt -lXext -lX11 -lm
/usr/bin/ld: skipping incompatible ../lib/libaxyinversion.a when searching for -laxyinversion
/usr/bin/ld: cannot find -laxyinversion
collect2: ld returned 1 exit status
make[1]: *** [../bin/axyinversion3d] Error 1
make[1]: Leaving directory `/src/dev/dev/axyinversion3D/axyinversion3D/src'
make: *** [sub-src] Error 2
I dont understend where is the error, The makefile is bellow, and thank you so much.
#############################################################################
# Makefile for building: ../bin/axyinversion3d
# Generated by qmake (1.07a) (Qt 3.3.3) on: Fri Mar 27 10:47:25 2009
# Project: src.pro
# Template: app
# Command: $(QMAKE) -o Makefile src.pro
#############################################################################
/usr/bin/ld: skipping incompatible ../lib/libaxyinversion.a when searching for -laxyinversion
For whatever reason, this library was compiled to incompatible machine code with the executable source you're trying to link it to. Perhaps the executable is being compiled for 64-bit but the library is 32-bit. Perhaps it was built for a different distro of Linux. I'm not going to take the time to look through all the command lines to figure it out; but maybe that gives you a place to start.
Bookmarks