-
Notifications
You must be signed in to change notification settings - Fork 38.8k
Description
I'm using hardened gentoo. and when i'm trying to compile bitcoin with its toolchain, i can see this error:
g++ -c -I/usr/include/db4.8 -DFOURWAYSSE2 -DUSE_SSL -DUSE_UPNP=1 -DNOPCH -Wno-invalid-offsetof -Wformat -O2 -march=core2 -mfpmath=sse -mmmx -msse -msse2 -mssse3 -pipe -I/usr/lib/wx/include/gtk2-unicode-2.9 -I/usr/include/wx-2.9 -D_FILE_OFFSET_BITS=64 -DWXUSINGDLL -D__WXGTK__ -pthread -DGUI -o obj/rpc.o rpc.cpp
main.cpp: In function 'void CallCPUID(int, int&, int&)':
main.cpp:3160:6: error: PIC register clobbered by '%ebx' in 'asm'
main.cpp: In function 'bool Detect128BitSSE2()':
main.cpp:3160:6: error: PIC register clobbered by '%ebx' in 'asm'
main.cpp:3160:6: error: PIC register clobbered by '%ebx' in 'asm'
make: *** [obj/main.o] Error 1
If i'm adding -fno-pic option, it compiles successfully, but show segmenation fault when starting.
Here is additional info: http://paste.pocoo.org/show/381464 and http://paste.pocoo.org/show/381465
For information, how-to fix this issue see http://hardened.gentoo.org/pic-fix-guide.xml