Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 282216 - dev-libs/beecrypt-4.1.2-r2 fails to compile assembly files
Summary: dev-libs/beecrypt-4.1.2-r2 fails to compile assembly files
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: [OLD] Library (show other bugs)
Hardware: All Linux
: High normal (vote)
Assignee: No maintainer - Look at https://wiki.gentoo.org/wiki/Project:Proxy_Maintainers if you want to take care of it
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2009-08-21 16:13 UTC by Dennis Schridde
Modified: 2011-07-29 08:58 UTC (History)
2 users (show)

See Also:
Package list:
Runtime testing required: ---


Attachments
build.log (build.log,49.97 KB, text/plain)
2009-08-21 16:13 UTC, Dennis Schridde
Details
patch to beecrypt-4.1.2-build.patch (beecrypt-4.1.2-build.patch.patch,1.97 KB, patch)
2009-08-25 08:55 UTC, Dennis Schridde
Details | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description Dennis Schridde 2009-08-21 16:13:24 UTC
Following errors occur:

blowfishopt.s:84: Error: suffix or operands invalid for `push'                                                                                                                                                      [...]
aesopt.s:112: Error: suffix or operands invalid for `push'                                                                                                                                                          
[...]
(full log attached)

Assumption: Misdetection of arch.

Reproducible: Always




Portage 2.2_rc38 (default/linux/amd64/2008.0/desktop, gcc-4.4.1, glibc-2.10.1-r0, 2.6.30-gentoo-r5 x86_64)
=================================================================                                         
System uname: Linux-2.6.30-gentoo-r5-x86_64-AMD_Athlon-tm-_64_X2_Dual_Core_Processor_5000+-with-gentoo-2.0.1
Timestamp of tree: Fri, 21 Aug 2009 15:45:01 +0000                                                          
app-shells/bash:     4.0_p28                                                                                
dev-java/java-config: 2.1.8-r1                                                                              
dev-lang/python:     2.6.2-r1, 3.1.1                                                                        
dev-python/pycrypto: 2.0.1-r8                                                                               
dev-util/cmake:      2.6.4-r2                                                                               
sys-apps/baselayout: 2.0.1                                                                                  
sys-apps/openrc:     0.4.3-r3                                                                               
sys-apps/sandbox:    2.0                                                                                    
sys-devel/autoconf:  2.13, 2.63-r1                                                                          
sys-devel/automake:  1.8.5-r3, 1.9.6-r2, 1.10.2, 1.11                                                       
sys-devel/binutils:  2.19.1-r1                                                                              
sys-devel/gcc-config: 1.4.1                                                                                 
sys-devel/libtool:   2.2.6a                                                                                 
virtual/os-headers:  2.6.30-r1                                                                              
ACCEPT_KEYWORDS="amd64 ~amd64"                                                                              
CBUILD="x86_64-pc-linux-gnu"                                                                                
CFLAGS="-pipe -O2 -march=athlon64-sse3 -fstack-protector -ftree-vectorize"                                  
CHOST="x86_64-pc-linux-gnu"                                                                                 
CONFIG_PROTECT="/etc /usr/kde/3.5/env /usr/kde/3.5/share/config /usr/kde/3.5/shutdown /usr/share/config"
CONFIG_PROTECT_MASK="/etc/ca-certificates.conf /etc/env.d /etc/env.d/java/ /etc/fonts/fonts.conf /etc/gconf /etc/gentoo-release /etc/php/apache2-php5/ext-active/ /etc/php/cgi-php5/ext-active/ /etc/php/cli-php5/ext-active/ /etc/revdep-rebuild /etc/sandbox.d /etc/splash /etc/terminfo /etc/texmf/language.dat.d /etc/texmf/language.def.d /etc/texmf/updmap.d /etc/texmf/web2c /etc/udev/rules.d"
CXXFLAGS="-pipe -O2 -march=athlon64-sse3 -fstack-protector -ftree-vectorize"
DISTDIR="/var/cache/portage/distfiles"
EMERGE_DEFAULT_OPTS="--with-bdeps y"
FEATURES="assume-digests distlocks fixpackages metadata-transfer parallel-fetch preserve-libs protect-owned sandbox sfperms strict unmerge-logs unmerge-orphans userfetch userpriv usersandbox usersync"
GENTOO_MIRRORS="ftp://linux.rz.ruhr-uni-bochum.de/gentoo-mirror/ http://distfiles.gentoo.org http://distro.ibiblio.org/pub/linux/distributions/gentoo"
LANG="en_GB.UTF-8"
LDFLAGS="-Wl,-O1 -Wl,--hash-style=gnu -Wl,--as-needed"
LINGUAS="de"
MAKEOPTS="-j3"
PKGDIR="/var/cache/portage/packages"
PORTAGE_COMPRESS="xz"
PORTAGE_CONFIGROOT="/"
PORTAGE_RSYNC_OPTS="--recursive --links --safe-links --perms --times --compress --force --whole-file --delete --stats --timeout=180 --exclude=/distfiles --exclude=/local --exclude=/packages"
PORTAGE_TMPDIR="/var/tmp"
PORTDIR="/var/cache/portage/gentoo"
PORTDIR_OVERLAY="/var/cache/portage/layman/pcsx2 /var/cache/portage/layman/kde-testing /var/cache/portage/layman/oss-overlay /var/cache/portage/layman/sunrise /var/cache/portage/layman/java-overlay /var/cache/portage/layman/perl-experimental /var/cache/portage/local"
SYNC="rsync://rsync.europe.gentoo.org/gentoo-portage"
[...]
Unset:  CPPFLAGS, CTARGET, FFLAGS, INSTALL_MASK, LC_ALL, PORTAGE_COMPRESS_FLAGS, PORTAGE_RSYNC_EXTRA_OPTS
Comment 1 Dennis Schridde 2009-08-21 16:13:43 UTC
Created attachment 201879 [details]
build.log
Comment 2 Dennis Schridde 2009-08-25 08:55:44 UTC
Created attachment 202234 [details, diff]
patch to beecrypt-4.1.2-build.patch

    local myarch=$(get-flag march)
    [[ -z ${myarch} ]] && myarch=${CHOST%%-*}
    [[ ${myarch} == "athlon64" || ${myarch} == "k8" || ${myarch} == "opteron" || ${myarch} == "athlon-fx" ]] && \
        [[ ${CHOST%%-*} != "x86_64" ]] && myarch=${CHOST%%-*}

On x86_64 this part of the ebuild (src_compile) can create --with-arch values, which do not fit the follwing part of configure.ac (and some other locations, where it will also fail):

  x86_64 | athlon64 | athlon-fx | em64t | k8)
    CPPFLAGS="$CPPFLAGS -DOPTIMIZE_X86_64"
    ;;

(In my case -march is set to athlon64-sse3, which does obviously not match athlon64, but athlon64*.)

Attached patch to beecrypt-4.1.2-build.patch fixes the issue.
Comment 3 Michael Weber (RETIRED) gentoo-dev 2009-11-04 20:45:52 UTC
I can confirm tis bug and the patch on my -march=athlon64-sse3,
the -march=nocona and -march=amdfam10 had no problem.
Comment 4 Pacho Ramos gentoo-dev 2011-07-26 18:22:51 UTC
Is this still valid with 4.2.1? In that case would be nice if you could provide an updated patch :-)

Thanks
Comment 5 Dennis Schridde 2011-07-29 08:58:43 UTC
Seems fixed by upstream.