You are not logged in.
Hi All!
I am trying to compile TCMAlloc for power pc and when I do configure and make its failing..
libtool: link: link -dump -symbols src/.libs/profiler.o src/.libs/profile-handler.o src/.libs/profiledata.o ./.libs/libstacktrace.a ./.libs/libmaybe_threads.a ./.libs/libfake_stacktrace_scope.a | | /bin/sed 's/.* //' | sort | uniq > .libs/libprofiler.exp
./libtool: eval: line 958: syntax error near unexpected token `|'
./libtool: eval: line 958: `link -dump -symbols src/.libs/profiler.o src/.libs/profile-handler.o src/.libs/profiledata.o ./.libs/libstacktrace.a ./.libs/libmaybe_threads.a ./.libs/libfake_stacktrace_scope.a | | /bin/sed 's/.* //' | sort | uniq > .libs/libprofiler.exp'
./libtool: line 958: warning: syntax errors in . or eval will cause future versions of the shell to abort as Posix requires
make: *** [libprofiler.la] Error 1
Please let me know how should I go ahead and debug the same..
rgds
Balaji
Last edited by bkannadassan (2017-06-14 18:29:59)
Offline
Are you trying to cross-compile this from an x86 system, or are you running PowerPC?
Last edited by Slithery (2017-06-14 18:38:32)
Offline
I am in x86 and doing a cross compilation for powerpc..
Offline
It looks like you have given us insufficient information to really draw any conclusions. However, there is a comment on a bug report that might be relevant ![]()
If you can't figure out what went wrong from that, useful things you could post include configure's output and the contents of the libtool script, plus anything else that seems relevant - config.log, the resulting makefile, full build log, etc.
Offline
Apologies if the information was insufficient. I figured out I was using a wrong gcc/g++ compiler and that resulted into this. Now I am able to compile and get my static library .a but now I am getting below error on compiling my program with the static library. Any clue on the same ?, mine is a 32bit ppc ..
sysroots/i686-fsl_networking_sdk-linux/usr/libexec/ppce500v2-pw_uniran-linux-gnuspe/gcc/powerpc-pw_uniran-linux-gnuspe/4.7.3/ld: gperf/ppc32/lib/libtcmalloc_and_profiler.a(libtcmalloc_and_profiler_la-tcmalloc.o): Relocations in generic ELF (EM: 3)
sysroots/i686-fsl_networking_sdk-linux/usr/libexec/ppce500v2-pw_uniran-linux-gnuspe/gcc/powerpc-pw_uniran-linux-gnuspe/4.7.3/ld: gperf/ppc32/lib/libtcmalloc_and_profiler.a(libtcmalloc_and_profiler_la-tcmalloc.o): Relocations in generic ELF (EM: 3)
sysroots/i686-fsl_networking_sdk-linux/usr/libexec/ppce500v2-pw_uniran-linux-gnuspe/gcc/powerpc-pw_uniran-linux-gnuspe/4.7.3/ld: gperf/ppc32/lib/libtcmalloc_and_profiler.a(libtcmalloc_and_profiler_la-tcmalloc.o): Relocations in generic ELF (EM: 3)
sysroots/i686-fsl_networking_sdk-linux/usr/libexec/ppce500v2-pw_uniran-linux-gnuspe/gcc/powerpc-pw_uniran-linux-gnuspe/4.7.3/ld: gperf/ppc32/lib/libtcmalloc_and_profiler.a(libtcmalloc_and_profiler_la-tcmalloc.o): Relocations in generic ELF (EM: 3)
I did
ar -x libtcmalloc_and_profiler.a
and could see the object files are as expected version..
gperf/gperftools-gperftools-2.5_ppc/.libs/bkannada $ file *.o
atomicops-internals-x86.o: ELF 32-bit MSB relocatable, PowerPC or cisco 4500, version 1 (SYSV), not stripped
dynamic_annotations.o: ELF 32-bit MSB relocatable, PowerPC or cisco 4500, version 1 (SYSV), with unknown capability 0x41000000 = 0xf676e75, with unknown capability 0x10000 = 0x70402, not stripped
elf_mem_image.o: ELF 32-bit MSB relocatable, PowerPC or cisco 4500, version 1 (SYSV), not stripped
libtcmalloc_and_profiler_la-heap-checker-bcad.o: ELF 32-bit MSB relocatable, PowerPC or cisco 4500, version 1 (SYSV), not stripped
libtcmalloc_and_profiler_la-heap-checker.o: ELF 32-bit MSB relocatable, PowerPC or cisco 4500, version 1 (SYSV), with unknown capa
rgds
Balaji
Last edited by bkannadassan (2017-06-15 04:49:48)
Offline
Please use code tags when pasting to the boards: https://wiki.archlinux.org/index.php/Co … s_and_code
Offline