Build Problem

112 views
Skip to first unread message

Paulo Marcio

unread,
Jun 10, 2015, 9:11:51 AM6/10/15
to faceboo...@googlegroups.com
Hello, i'm using Ubuntu 14.10 trying to compile folly but i got this message error when i call make:

In file included from Bits.cpp:19:0:
./../folly/CpuId.h: In function 'int (* {anonymous}::folly_popcount_ifunc())(unsigned int)':
./../folly/CpuId.h:49:62: error: PIC register clobbered by 'ebx' in 'asm'
     __asm__("cpuid" : "=a"(n) : "a"(0) : "ebx", "edx", "ecx");
                                                              ^
./../folly/CpuId.h:51:65: error: PIC register clobbered by 'ebx' in 'asm'
       __asm__("cpuid" : "=c"(f1c_), "=d"(f1d_) : "a"(1) : "ebx");
                                                                 ^
./../folly/CpuId.h: In function 'int (* {anonymous}::folly_popcountll_ifunc())(long long unsigned int)':
./../folly/CpuId.h:49:62: error: PIC register clobbered by 'ebx' in 'asm'
     __asm__("cpuid" : "=a"(n) : "a"(0) : "ebx", "edx", "ecx");
                                                              ^
./../folly/CpuId.h:51:65: error: PIC register clobbered by 'ebx' in 'asm'
       __asm__("cpuid" : "=c"(f1c_), "=d"(f1d_) : "a"(1) : "ebx")

I'm using gcc version 4.9 for compilation, followed the steps described on the README file.
Message has been deleted

Paulo Marcio

unread,
Jun 10, 2015, 9:54:46 AM6/10/15
to faceboo...@googlegroups.com
Searching on the web i find out that this problems are specifically for i368 architecture, and then i found this post with a possible solution: http://tuxion.com/2010/07/02/clobber-registers.html, i'll try this later when i have time, if someone can give me additional information i'll thank you.
Reply all
Reply to author
Forward
0 new messages