You are not logged in.

#1 2017-06-14 18:29:45

bkannadassan
Member
Registered: 2017-06-14
Posts: 3

TCMalloc Compilation for PowerPC, failing..

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

#2 2017-06-14 18:38:00

Slithery
Administrator
From: Norfolk, UK
Registered: 2013-12-01
Posts: 5,776

Re: TCMalloc Compilation for PowerPC, failing..

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)


No, it didn't "fix" anything. It just shifted the brokeness one space to the right. - jasonwryan
Closing -- for deletion; Banning -- for muppetry. - jasonwryan

aur - dotfiles

Offline

#3 2017-06-14 19:06:17

bkannadassan
Member
Registered: 2017-06-14
Posts: 3

Re: TCMalloc Compilation for PowerPC, failing..

I am in x86 and doing a cross compilation for powerpc..

Offline

#4 2017-06-15 04:18:33

pypi
Wiki Maintainer
Registered: 2014-04-22
Posts: 250

Re: TCMalloc Compilation for PowerPC, failing..

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 big_smile

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

#5 2017-06-15 04:47:23

bkannadassan
Member
Registered: 2017-06-14
Posts: 3

Re: TCMalloc Compilation for PowerPC, failing..

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

#6 2017-06-15 05:16:42

jasonwryan
Anarchist
From: .nz
Registered: 2009-05-09
Posts: 30,426
Website

Re: TCMalloc Compilation for PowerPC, failing..

Please use code tags when pasting to the boards: https://wiki.archlinux.org/index.php/Co … s_and_code


Arch + dwm   •   Mercurial repos  •   Surfraw

Registered Linux User #482438

Offline

Board footer

Powered by FluxBB