Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
[Solved] Error emerging app-crypt/qca-2.0.3
View unanswered posts
View posts from last 24 hours

 
Reply to topic    Gentoo Forums Forum Index Portage & Programming
View previous topic :: View next topic  
Author Message
xor_
n00b
n00b


Joined: 09 Aug 2009
Posts: 5

PostPosted: Sat Jun 22, 2013 10:47 pm    Post subject: [Solved] Error emerging app-crypt/qca-2.0.3 Reply with quote

Trying to install KDE on a Thinkpad X121e with an AMD E-350 CPU.
I keep getting an "Illegal instruction" error for app-crypt/qca-2.0.3:

Quote:
./configure: line 2170: 2145 Illegal instruction .qconftemp/conf
fail

Reason: Unexpected error launching 'conf'


Google search shows someone having a problem at the same spot. His problem seems to have been related to his CFLAGS.

I've found a thread about CFLAGS for my CPU. And I've pretty much tried all the suggestions and reasonable-sounding variations thereof, but so far I'm not getting this beast compiled.

Specifically, I've tried:

#CFLAGS="-march=amdfam10 -O2 -pipe -fomit-frame-pointer -fno-3dnow -msse3 -msse4a -mcx16 -mpopcnt"

and these, among others:
#CFLAGS="-O2 -pipe -mtune=generic"
#CFLAGS="-O2 -pipe -march=native"
#CFLAGS="-O2 -pipe -march=btver1"
#CFLAGS="-march=btver1 -mtune=btver1 -fno-3dnow"

They all fail at the same spot.

dmesg reports:
Code:

[  155.986538] traps: conf[1429] trap invalid opcode ip:7fb42005ba66 sp:7fff11c50b20 error:0 in libQtCore.so.4.8.4[7fb41ff96000+2dd000]
[  485.455063] traps: conf[2145] trap invalid opcode ip:7f8710461a66 sp:7fff56084f10 error:0 in libQtCore.so.4.8.4[7f871039c000+2dd000]



Any ideas?



Code:

emerge --info
Portage 2.1.12.2 (default/linux/amd64/13.0/desktop/kde, gcc-4.6.3, glibc-2.15-r3, 3.8.13-gentoo x86_64)
=================================================================
System uname: Linux-3.8.13-gentoo-x86_64-AMD_E-350_Processor-with-gentoo-2.2
KiB Mem:     3636964 total,   3308220 free
KiB Swap:    1048572 total,   1048572 free
Timestamp of tree: Sat, 22 Jun 2013 13:30:01 +0000
ld GNU ld (GNU Binutils) 2.22
app-shells/bash:          4.2_p45
dev-lang/python:          2.7.3-r3, 3.2.3-r2
dev-util/cmake:           2.8.10.2-r2
dev-util/pkgconfig:       0.28
sys-apps/baselayout:      2.2
sys-apps/openrc:          0.11.8
sys-apps/sandbox:         2.5
sys-devel/autoconf:       2.13, 2.69
sys-devel/automake:       1.10.3, 1.11.6, 1.12.6
sys-devel/binutils:       2.22-r1
sys-devel/gcc:            4.6.3
sys-devel/gcc-config:     1.7.3
sys-devel/libtool:        2.4-r1
sys-devel/make:           3.82-r4
sys-kernel/linux-headers: 3.7 (virtual/os-headers)
sys-libs/glibc:           2.15-r3
Repositories: gentoo
ACCEPT_KEYWORDS="amd64"
ACCEPT_LICENSE="*"
CBUILD="x86_64-pc-linux-gnu"
CFLAGS="-march=amdfam10 -O2 -pipe -fomit-frame-pointer -fno-3dnow -msse3 -msse4a -mcx16 -mpopcnt"
CHOST="x86_64-pc-linux-gnu"
CONFIG_PROTECT="/etc /usr/share/config /usr/share/gnupg/qualified.txt"
CONFIG_PROTECT_MASK="/etc/ca-certificates.conf /etc/env.d /etc/fonts/fonts.conf /etc/gconf /etc/gentoo-release /etc/sandbox.d /etc/terminfo"
CXXFLAGS="-march=amdfam10 -O2 -pipe -fomit-frame-pointer -fno-3dnow -msse3 -msse4a -mcx16 -mpopcnt"
DISTDIR="/usr/portage/distfiles"
FCFLAGS="-O2 -pipe"
FEATURES="assume-digests binpkg-logs config-protect-if-modified distlocks ebuild-locks fixlafiles merge-sync news parallel-fetch preserve-libs protect-owned sandbox sfperms strict unknown-features-warn unmerge-logs unmerge-orphans userfetch"
FFLAGS="-O2 -pipe"
GENTOO_MIRRORS="ftp://ftp.tu-clausthal.de/pub/linux/gentoo/ ftp://sunsite.informatik.rwth-aachen.de/pub/Linux/gentoo http://linux.rz.ruhr-uni-bochum.de/download/gentoo-mirror/ http://ftp.uni-erlangen.de/pub/mirrors/gentoo ftp://ftp.join.uni-muenster.de/pub/linux/distributions/gentoo ftp://ftp.wh2.tu-dresden.de/pub/mirrors/gentoo http://ftp-stud.fht-esslingen.de/pub/Mirrors/gentoo/ ftp://ftp.rz.tu-bs.de/pub/mirror/ftp.gentoo.org/gentoo-distfiles/"
LANG="en_US"
LDFLAGS="-Wl,-O1 -Wl,--as-needed"
MAKEOPTS="-j3"
PKGDIR="/usr/portage/packages"
PORTAGE_CONFIGROOT="/"
PORTAGE_RSYNC_OPTS="--recursive --links --safe-links --perms --times --compress --force --whole-file --delete --stats --human-readable --timeout=180 --exclude=/distfiles --exclude=/local --exclude=/packages"
PORTAGE_TMPDIR="/var/tmp"
PORTDIR="/usr/portage"
PORTDIR_OVERLAY=""
SYNC="rsync://rsync.gentoo.org/gentoo-portage"
USE="X a52 aac acl acpi alsa amd64 berkdb bindist branding bzip2 cairo cdda cli consolekit cracklib crypt cups cxx dbus declarative dri dts dvd emboss encode exif fam ffmpeg firefox flac fortran gdbm gif gpm iconv ipv6 jpeg kde kipi laptop lcms ldap libnotify lm_sensors mad mmx mng modules mp3 mp4 mpeg mudflap multilib ncurses nls nodrm nptl ogg opengl openmp pam pango pcre pdf perl phonon plasma png policykit ppds qt3support qt4 readline sdl session spell sse sse2 ssl startup-notification svg tcpd tiff truetype udev udisks unicode upower usb vorbis wxwidgets x264 xcb xcomposite xinerama xml xscreensaver xv xvid zlib" ABI_X86="64" ALSA_CARDS="hda-intel" APACHE2_MODULES="authn_core authz_core socache_shmcb unixd actions alias auth_basic authn_alias authn_anon authn_dbm authn_default authn_file authz_dbm authz_default authz_groupfile authz_host authz_owner authz_user autoindex cache cgi cgid dav dav_fs dav_lock deflate dir disk_cache env expires ext_filter file_cache filter headers include info log_config logio mem_cache mime mime_magic negotiation rewrite setenvif speling status unique_id userdir usertrack vhost_alias" CALLIGRA_FEATURES="kexi words flow plan sheets stage tables krita karbon braindump author" CAMERAS="ptp2" COLLECTD_PLUGINS="df interface irq load memory rrdtool swap syslog" ELIBC="glibc" GPSD_PROTOCOLS="ashtech aivdm earthmate evermore fv18 garmin garmintxt gpsclock itrax mtk3301 nmea ntrip navcom oceanserver oldstyle oncore rtcm104v2 rtcm104v3 sirf superstar2 timing tsip tripmate tnt ubx" INPUT_DEVICES="keyboard mouse evdev" KERNEL="linux" LCD_DEVICES="bayrad cfontz cfontz633 glk hd44780 lb216 lcdm001 mtxorb ncurses text" LIBREOFFICE_EXTENSIONS="presenter-console presenter-minimizer" LINGUAS="en de" OFFICE_IMPLEMENTATION="libreoffice" PHP_TARGETS="php5-3" PYTHON_SINGLE_TARGET="python2_7" PYTHON_TARGETS="python2_7 python3_2" RUBY_TARGETS="ruby19 ruby18" USERLAND="GNU" VIDEO_CARDS="radeon vga" XTABLES_ADDONS="quota2 psd pknock lscan length2 ipv4options ipset ipp2p iface geoip fuzzy condition tee tarpit sysrq steal rawnat logmark ipmark dhcpmac delude chaos account"
Unset:  CPPFLAGS, CTARGET, EMERGE_DEFAULT_OPTS, INSTALL_MASK, LC_ALL, PORTAGE_BUNZIP2_COMMAND, PORTAGE_COMPRESS, PORTAGE_COMPRESS_FLAGS, PORTAGE_RSYNC_EXTRA_OPTS, USE_PYTHON


Last edited by xor_ on Sun Jun 23, 2013 8:32 am; edited 1 time in total
Back to top
View user's profile Send private message
TomWij
Developer
Developer


Joined: 04 Jul 2012
Posts: 1352

PostPosted: Sat Jun 22, 2013 11:39 pm    Post subject: Reply with quote

Try -march=native, if that's not the problem, see my last comment in https://forums.gentoo.org/viewtopic-t-962590-highlight-.html on how to fix your kernel.
Back to top
View user's profile Send private message
xor_
n00b
n00b


Joined: 09 Aug 2009
Posts: 5

PostPosted: Sun Jun 23, 2013 12:27 am    Post subject: Reply with quote

Thanks for your response.

But "-march=native" has the same result,

And those kernel options had been enabled all along.
Back to top
View user's profile Send private message
Hu
Watchman
Watchman


Joined: 06 Mar 2007
Posts: 8597

PostPosted: Sun Jun 23, 2013 4:17 am    Post subject: Reply with quote

You said you tried various CFLAGS combinations, but you implied that you only tried them with the package you are trying to install. You should rebuild the package that provides libQtCore.so.4.8.4 with safe CXXFLAGS.
Back to top
View user's profile Send private message
xor_
n00b
n00b


Joined: 09 Aug 2009
Posts: 5

PostPosted: Sun Jun 23, 2013 8:31 am    Post subject: Reply with quote

That was the missing step. After re-emerging qtcore, it worked wiith -march=native.

Thanks, guys.
Back to top
View user's profile Send private message
hdcg
n00b
n00b


Joined: 07 Apr 2013
Posts: 26

PostPosted: Sun Jun 23, 2013 3:51 pm    Post subject: Reply with quote

Any other packages compiled with the incompatible CFLAGS may show issues as well.
You should consider a complete rebuild with the now working CFLAGS.

Code:
emerge -ev system
emerge -ev world


Best Regards,
Holger
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Portage & Programming All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum