Re: mouseemu fails on ppc64 ?
> -m64
ok, that failed, with the output below. For the record, here are the
steps I took:
1. first it complained with this:
e2011# gcc -Wall -m64 -g -o mouseemu mouseemu.c
/usr/bin/ld: skipping incompatible /usr/lib/gcc/powerpc-linux-gnu/4.0.3/libgcc_s.so when searching for -lgcc_s
/usr/bin/ld: skipping incompatible /usr/lib/gcc/powerpc-linux-gnu/4.0.3/libgcc_s.so when searching for -lgcc_s
/usr/bin/ld: cannot find -lgcc_s
collect2: ld returned 1 exit status
2. to cure this I installed lib64gcc1 (it turned out that eg
/usr/lib/gcc/powerpc-linux-gnu/4.0.3/libgcc_s_64.so was pointing to an
inexistant /lib64/libgcc_s.so.1, provided by lib64gcc1). And to make
it visible to gcc, I added this symlink:
/usr/lib64/libc.so -> /lib64/libc.so.6
3. Then compiling mouseemu fails with:
# gcc -Wall -m64 -L/usr/lib64/ -g -o mouseemu mouseemu.c
/usr/bin/ld: warning: powerpc:common architecture of input file `/usr/lib/gcc/powerpc-linux-gnu/4.0.3/../../../crt1.o' is incompatible with powerpc:common64 output
/usr/bin/ld: warning: powerpc:common architecture of input file `/usr/lib/gcc/powerpc-linux-gnu/4.0.3/../../../crti.o' is incompatible with powerpc:common64 output
/usr/bin/ld: warning: powerpc:common architecture of input file `/usr/lib/gcc/powerpc-linux-gnu/4.0.3/../../../crtn.o' is incompatible with powerpc:common64 output
/usr/bin/ld: can not size stub section: Bad value
/usr/lib/gcc/powerpc-linux-gnu/4.0.3/../../../crt1.o: In function `_start':../sysdeps/powerpc/powerpc32/elf/start.S:86: relocation truncated to fit: R_PPC_REL24 against `__libc_start_main'
/usr/lib/gcc/powerpc-linux-gnu/4.0.3/../../../crti.o: In function `call_gmon_start':/build/buildd/glibc-2.3.5/build-tree/powerpc-libc/csu/crti.S:16: undefined reference to `_GLOBAL_OFFSET_TABLE_'
/usr/bin/ld: /tmp/ccS6z7RF.o(.text+0x68): unresolvable R_PPC64_REL24 relocation against symbol `gettimeofday@@GLIBC_2.3'
/tmp/ccS6z7RF.o: In function `send_event':/var/cache/apt-build/build/mouseemu-0.15/mouseemu.c:67: relocation truncated to fit: R_PPC64_REL24 against symbol `gettimeofday@@GLIBC_2.3' defined in .opd section in /usr/lib64//libc.so
/usr/bin/ld: /tmp/ccS6z7RF.o(.text+0x84): unresolvable R_PPC64_REL24 relocation against symbol `write@@GLIBC_2.3'
:/var/cache/apt-build/build/mouseemu-0.15/mouseemu.c:68: relocation truncated to fit: R_PPC64_REL24 against symbol `write@@GLIBC_2.3' defined in .opd section in /usr/lib64//libc.so
[... and many more such ...]
Reply to: