Openssl doesn't emerge with my cflags but it emerges properly with -mcpu=i386. I'm searching what is going wrong with my clags. It should be just a filter-flags to add to the ebuild. Regards, S
Openssl doesn't emerge with my cflags but it emerges properly with -mcpu=i386. I'm searching what is going wrong with my clags. It should be just a filter-flags to add to the ebuild. Regards, Sébastien. Reproducible: Always Steps to Reproduce: emerge openssl-0.9.6i-r1 OR emerge openssl-0.9.7a-r1 Actual Results: ... >>> Unpacking openssl-0.9.7a.tar.gz to /var/tmp/portage/openssl-0.9.7a-r1/work * Applying openssl-0.9.7a-blinding.patch... [ ok ] * Applying openssl-0.9.7a-gentoo.diff... [ ok ] >>> Source unpacked. Operating system: i686-whatever-linux2 Configuring for linux-pentium Configuring for linux-pentium IsWindows=0 CC =gcc CFLAG =-fPIC -DOPENSSL_THREADS -D_REENTRANT -DDSO_DLFCN -DHAVE_DLFCN_H -DOPENSSL_NO_KRB5 -DL_ENDIAN -DTERMIO -march=pentium3 -O3 -pipe -fomit-frame-pointer -fforce-addr -falign-functions=4 -fprefetch-loop-arrays -fomit-frame-pointer -mcpu=pentium -Wall -DSHA1_ASM -DMD5_ASM -DRMD160_ASM EX_LIBS =-ldl BN_ASM =asm/bn86-elf.o asm/co86-elf.o DES_ENC =asm/dx86-elf.o asm/yx86-elf.o BF_ENC =asm/bx86-elf.o CAST_ENC =c_enc.o RC4_ENC =asm/rx86-elf.o RC5_ENC =asm/r586-elf.o MD5_OBJ_ASM =asm/mx86-elf.o SHA1_OBJ_ASM =asm/sx86-elf.o RMD160_OBJ_ASM=asm/rm86-elf.o PROCESSOR = RANLIB =/usr/bin/ranlib ARFLAGS = PERL =/usr/bin/perl THIRTY_TWO_BIT mode DES_PTR used DES_RISC1 used DES_UNROLL used BN_LLONG mode RC4_INDEX mode RC4_CHUNK is undefined Makefile => Makefile.ssl e_os2.h => include/openssl/e_os2.h [File exists] making links in crypto... make[1]: Entering directory `/var/tmp/portage/openssl-0.9.7a-r1/work/openssl-0.9.7a/crypto' Makefile => Makefile.ssl ... Configured for linux-pentium. making all in crypto... make[1]: Entering directory `/var/tmp/portage/openssl-0.9.7a-r1/work/openssl-0.9.7a/crypto' ( echo "#ifndef MK1MF_BUILD"; \ echo ' /* auto-generated by crypto/Makefile.ssl for crypto/cversion.c */'; \ echo ' #define CFLAGS "gcc -fPIC -DOPENSSL_THREADS -D_REENTRANT -DDSO_DLFCN -DHAVE_DLFCN_H -DOPENSSL_NO_KRB5 -DL_ENDIAN -DTERMIO -march=pentium3 -O3 -pipe -fomit-frame-pointer -fforce-addr -falign-functions=4 -fprefetch-loop-arrays -fomit-frame-pointer -mcpu=pentium -Wall -DSHA1_ASM -DMD5_ASM -DRMD160_ASM"'; \ echo ' #define PLATFORM "linux-pentium"'; \ echo " #define DATE \"`LC_ALL=C LC_TIME=C date`\""; \ echo '#endif' ) >buildinf.h gcc -I. -I.. -I../include -fPIC -DOPENSSL_THREADS -D_REENTRANT -DDSO_DLFCN -DHAVE_DLFCN_H -DOPENSSL_NO_KRB5 -DL_ENDIAN -DTERMIO -march=pentium3 -O3 -pipe -fomit-frame-pointer -fforce-addr -falign-functions=4 -fprefetch-loop-arrays -fomit-frame-pointer -mcpu=pentium -Wall -DSHA1_ASM -DMD5_ASM -DRMD160_ASM -c -o cryptlib.o cryptlib.c gcc -I. -I.. -I../include -fPIC -DOPENSSL_THREADS -D_REENTRANT -DDSO_DLFCN -DHAVE_DLFCN_H -DOPENSSL_NO_KRB5 -DL_ENDIAN -DTERMIO -march=pentium3 -O3 -pipe -fomit-frame-pointer -fforce-addr -falign-functions=4 -fprefetch-loop-arrays -fomit-frame-pointer -mcpu=pentium -Wall -DSHA1_ASM -DMD5_ASM -DRMD160_ASM -c -o mem.o mem.c gcc -I. -I.. -I../include -fPIC -DOPENSSL_THREADS -D_REENTRANT -DDSO_DLFCN -DHAVE_DLFCN_H -DOPENSSL_NO_KRB5 -DL_ENDIAN -DTERMIO -march=pentium3 -O3 -pipe -fomit-frame-pointer -fforce-addr -falign-functions=4 -fprefetch-loop-arrays -fomit-frame-pointer -mcpu=pentium -Wall -DSHA1_ASM -DMD5_ASM -DRMD160_ASM -c -o mem_clr.o mem_clr.c mem_clr.c: In function `OPENSSL_cleanse': mem_clr.c:75: internal error: Floating point exception Please submit a full bug report, with preprocessed source if appropriate. See <URL:http://bugs.gentoo.org/> for instructions. make[1]: *** [mem_clr.o] Error 1 make[1]: Leaving directory `/var/tmp/portage/openssl-0.9.7a-r1/work/openssl-0.9.7a/crypto' make: *** [sub_all] Error 1 !!! ERROR: dev-libs/openssl-0.9.7a-r1 failed. !!! Function src_compile, Line 52, Exitcode 2 !!! (no error message) Portage 2.0.47-r10 (default-x86-1.4, gcc-3.2.2, glibc-2.3.2-r0) ================================================================= System uname: 2.4.20-gentoo-r1 i686 Pentium III (Coppermine) GENTOO_MIRRORS="ftp://ftp.ibiblio.org/pub/linux/distributions/gentoo http://gentoo.oregonstate.edu http://mirrors.sunsite.dk/gentoo/ ftp://sunsite.dk/mirrors/gentoo/ http://gentoo.linux.no/ ftp://gentoo.linux.no/pub/gentoo/ http://ftp.tu-clausthal.de/pub/linux/gentoo/ ftp://ftp.tu-clausthal.de/pub/linux/gentoo/ ftp://ftp.dale.ro/pub/mirrors/ftp.ibiblio.org/pub/Linux/distributions/gentoo/ ftp://ftp.snt.utwente.nl/pub/os/linux/gentoo/ ftp://ftp.rez-gif.supelec.fr/pub/Linux/distrib/gentoo/ http://distro.ibiblio.org/gentoo " CONFIG_PROTECT="/etc /var/qmail/control /usr/kde/2/share/config /usr/kde/3/share/config /usr/X11R6/lib/X11/xkb /usr/kde/3.1/share/config /usr/share/texmf/tex/generic/config/ /usr/share/texmf/tex/platex/config/ /usr/share/config" CONFIG_PROTECT_MASK="/etc/gconf /etc/env.d" PORTDIR="/usr/portage" DISTDIR="/home/pub/src" PKGDIR="/usr/portage/packages" PORTAGE_TMPDIR="/var/tmp" PORTDIR_OVERLAY="/usr/local/portage" USE="x86 oss 3dnow avi crypt cups encode gif jpeg libg++ mikmod mmx mpeg ncurses nls pdflib png quicktime spell truetype xml2 xmms xv zlib gtkhtml gdbm berkdb slang readline svga java guile postgres X sdl gpm tcpd pam libwww ssl python esd imlib oggvorbis gnome gtk qt kde motif opengl aalib acl acpi alsa apache2 -apm -arts bonobo cdr dga directfb dvd evo gb gtk2 imap jikes ldap libgda mbox mozilla mysql nas pda perl pic plotutils samba scanner socks5 sse tetex tiff usb xml" COMPILER="gcc3" CHOST="i686-pc-linux-gnu" CFLAGS="-march=pentium3 -O3 -pipe -fomit-frame-pointer -fforce-addr -falign-functions=4 -fprefetch-loop-arrays" CXXFLAGS="-O2 -mcpu=i686 -pipe" ACCEPT_KEYWORDS="x86 ~x86" MAKEOPTS="-j2" AUTOCLEAN="yes" SYNC="rsync://rsync.de.gentoo.org/gentoo-portage" FEATURES="sandbox ccache"
Don't use "-fprefetch-loop-arrays" in compiling openssl or it will break it ;) Could someone filter this in the ebuild ? (I'm a n0ob for ebuilds but I tried to add one or two lines like inherit flag-o-matic filter-flags "-fprefetch-loop-arrays" I know, I should RTFM) That done, I think this bug should be closed.
works fine with CFLAGS="-march=pentium4 -O3 -pipe -ffast-math -fomit-frame-pointer -fprefetch-loop-arrays"
also work with
also work with CFLAGS="-march=pentium4 -O3 -pipe -ffast-math -fomit-frame-pointer -fprefetch-loop-arrays -fforce-addr"
sorry, can't reproduce this do you use ccache or distcc ? maybe you are out of memory or space
need more info
db issue
I recently ran into this problem while building a new system. While it -may- work using -march=pentium4 it fails with -march=pentium3 and -fprefetch-loop-arrays. Removing the latter works. We are not using ccache nor distcc on this particular build system. My 0.2, hope it helps. -Paul