[PTLsim-devel] ld problem

Jorge Albericio
Thu Oct 11 16:35:02 EDT 2007


Hello,
today I tried to compile ptlsim (r225) in open suse 10.3 (x86_64) in
userspace mode, I did the same on opensuse 10.1 this week without
errors but with the new version that contains gcc 4.2.1 and binutils
2.17.50  I got these errors

ld: i386 architecture of input file `lowlevel-32bit.o' is incompatible
with i386:x86-64 output
ld: i386 architecture of input file `injectcode-32bit.o' is
incompatible with i386:x86-64 output
ld: i386 architecture of input file `ptlsim.dst.o' is incompatible
with i386:x86-64 output
make: *** [ptlsim] Error 1

It seems go well adding --noinhibit-exec to the line (169) "ld -g -O2
$(OBJFILES) -o ptlsim $(LIBPERFCTR) -static
--allow-multiple-definition -T ptlsim32.lds -e ptlsim_preinit_entry
`gcc -print-libgcc-file-name` " of the Makefile that corresponds to
ptlsim over xf86_64 without Xen.
Maybe someboy had the same problem.


More information about the PTLsim-devel mailing list