Hi,
Does anybody know how to load an object file compiled on a 64-bit machine?
The example in Section 8.8 (Step-by-Step Alien Example) of CMUCL User's
Manual does not work on an AMD64 machine running the 64-bit Gentoo Linux
(kernel 2.6.9-gentoo-r1):
;;; test.o was generated by "gcc -c test.c"
* (load-foreign "test.o")
;;; Running /usr/bin/ld...
Error in function LOAD-FOREIGN: /usr/bin/ld failed:
/usr/bin/ld: warning: i386:x86-64 architecture of input file `test.o' is
incompatible with i386 output
[Condition of type SIMPLE-ERROR]
Restarts:
0: [ABORT] Return to Top-Level.
Debug (type H for help)
(LOAD-FOREIGN "test.o" :LIBRARIES ("-lc") :BASE-FILE ...)
If test.o is generated by "gcc -m32 -c test.c", (LOAD-FOREIGN "test.o") will
be O.K. Any suggestions to make LOAD-FOREGIN handle object files generated
by "gcc -m64" will be appreciated.
Best wishes,
-cph