Summary: | proftpd-1.2.8 compile failed | ||
---|---|---|---|
Product: | Gentoo Linux | Reporter: | Veiko Kukk <veiko> |
Component: | New packages | Assignee: | Gentoo Linux bug wranglers <bug-wranglers> |
Status: | RESOLVED INVALID | ||
Severity: | major | ||
Priority: | High | ||
Version: | unspecified | ||
Hardware: | x86 | ||
OS: | Linux | ||
Whiteboard: | |||
Package list: | Runtime testing required: | --- |
Description
Veiko Kukk
2003-04-19 13:48:55 UTC
turn down your CFLAGS if you find out which flag it breaks we could filter it out Forums thread http://forums.gentoo.org/viewtopic.php?t=74599 shows proftp doesn't compile with -mcpu=athlon-mp -O3 -pipe -fomit-frame-pointer -fPIC which led me to suspect -fPIC is the likely culprit. I tested proftpd-1.2.8 with the -fPIC flag and indeed it failed: gcc -march=pentium4 -O3 -pipe -fomit-frame-pointer -fPIC -Wall -c cap_sys.c -o cap_sys.o cap_sys.c: In function `capget': cap_sys.c:16: can't find a register in class `BREG' while reloading `asm' make[1]: *** [cap_sys.o] Error 1 make[1]: Leaving directory `/var/tmp/portage/proftpd-1.2.8/work/proftpd-1.2.8/lib/libcap' make: *** [dirs] Error 2 !!! ERROR: net-ftp/proftpd-1.2.8 failed. !!! Function src_compile, Line 69, Exitcode 2 !!! compile problem Without the -fPIC flag it compiles ok: gcc -march=pentium4 -O3 -pipe -fomit-frame-pointer -Wall -c cap_sys.c -o cap_sys.o ar rcu libcap.a cap_alloc.o cap_proc.o cap_extint.o cap_flag.o cap_text.o cap_sys.o make[1]: Leaving directory `/var/tmp/portage/proftpd-1.2.8/work/proftpd-1.2.8/lib/libcap' So it looks like this is a duplicate of http://bugs.gentoo.org/show_bug.cgi?id=20798. For the sake of completeness proftpd compiles ok with all non-athlon flags Veiko used except -fPIC: gcc -march=pentium4 -O3 -pipe -fomit-frame-pointer -frerun-cse-after-loop -frerun-loop-opt -fexpensive-optimizations -Wall -c cap_sys.c -o cap_sys.o ar rcu libcap.a cap_alloc.o cap_proc.o cap_extint.o cap_flag.o cap_text.o cap_sys.o make[1]: Leaving directory `/var/tmp/portage/proftpd-1.2.8/work/proftpd-1.2.8/lib/libcap' |