When building elektra for both 64-bit and 32-bit ABIs on x86, it fails. Reproducible: Always Steps to Reproduce: emerge elektra with the following use flags: [ebuild U ] app-admin/elektra-0.8.6 [0.7.1-r5] USE="dbus%* iconv uname%* xml%* -doc% -examples% -simpleini% -static-libs -syslog% -tcl% {-test} -yajl% (-gcov%)" ABI_X86="32 (64) (-x32)" 0 kB Actual Results: It fails due to header checksum mismatch on /usr/include/elektra/kdbconfig.h The diff is: --- .../elektra-0.8.6-abi_x86_64.amd64/src/include/kdbconfig.h 2014-08-09 17:01:53.127550479 +0600 +++ .../elektra-0.8.6-abi_x86_32.x86/src/include/kdbconfig.h 2014-08-09 17:01:52.896540611 +0600 @@ -46,7 +46,7 @@ #define BUILTIN_EXEC_FOLDER "/usr/lib/elektra/tool_exec" #define SIZEOF_INT 4 -#define SIZEOF_LONG 8 +#define SIZEOF_LONG 4 #define HAVE_SIZEOF_LONG_LONG #ifdef HAVE_SIZEOF_LONG_LONG @@ -55,7 +55,7 @@ #define HAVE_SIZEOF_LONG_DOUBLE #ifdef HAVE_SIZEOF_LONG_DOUBLE -# define SIZEOF_LONG_DOUBLE 16 +# define SIZEOF_LONG_DOUBLE 12 #endif /* disable debug output messages */ # emerge --info Portage 2.2.10 (default/linux/amd64/13.0/desktop/kde/systemd, gcc-4.8.3, glibc-2.19-r1, 3.15.6-gentoo x86_64) ================================================================= System uname: Linux-3.15.6-gentoo-x86_64-Intel-R-_Core-TM-2_CPU_6420_@_2.13GHz-with-gentoo-2.2 KiB Mem: 8023980 total, 4147112 free KiB Swap: 6291448 total, 6291448 free Timestamp of tree: Sat, 09 Aug 2014 08:15:01 +0000 ld GNU ld (GNU Binutils) 2.24 app-shells/bash: 4.2_p47 dev-java/java-config: 2.2.0 dev-lang/python: 2.7.8, 3.4.1 dev-util/cmake: 2.8.12.2-r1 dev-util/pkgconfig: 0.28-r2 sys-apps/baselayout: 2.2 sys-apps/openrc: 0.12.4 sys-apps/sandbox: 2.6-r1 sys-devel/autoconf: 2.13, 2.69 sys-devel/automake: 1.11.6, 1.14.1 sys-devel/binutils: 2.24-r3 sys-devel/gcc: 4.8.3 sys-devel/gcc-config: 1.8 sys-devel/libtool: 2.4.2-r1 sys-devel/make: 4.0-r1 sys-kernel/linux-headers: 3.16 (virtual/os-headers) sys-libs/glibc: 2.19-r1 Repositories: gentoo local ACCEPT_KEYWORDS="amd64 ~amd64" ACCEPT_LICENSE="*" CBUILD="x86_64-pc-linux-gnu" CFLAGS="-O2 -pipe" CHOST="x86_64-pc-linux-gnu" CONFIG_PROTECT="/etc /usr/share/config /usr/share/gnupg/qualified.txt /usr/share/themes/oxygen-gtk/gtk-2.0 /usr/share/themes/oxygen-gtk/gtk-3.0" CONFIG_PROTECT_MASK="/etc/ca-certificates.conf /etc/dconf /etc/env.d /etc/fonts/fonts.conf /etc/gconf /etc/gentoo-release /etc/revdep-rebuild /etc/sandbox.d /etc/terminfo" CXXFLAGS="-O2 -pipe" DISTDIR="/usr/portage/distfiles" FCFLAGS="-O2 -pipe" FEATURES="assume-digests binpkg-logs buildpkg 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 userpriv usersandbox usersync xattr" FFLAGS="-O2 -pipe" GENTOO_MIRRORS="http://mirror.yandex.ru/gentoo-distfiles" LANG="ru_RU.UTF-8" LDFLAGS="-Wl,-O1 -Wl,--as-needed" MAKEOPTS="-j3" PKGDIR="/usr/portage/packages/kde" PORTAGE_CONFIGROOT="/" PORTAGE_RSYNC_OPTS="--recursive --links --safe-links --perms --times --omit-dir-times --compress --force --whole-file --delete --stats --human-readable --timeout=180 --exclude=/distfiles --exclude=/local --exclude=/packages" PORTAGE_TMPDIR="/usr/portage/packages" PORTDIR="/usr/portage" PORTDIR_OVERLAY="/usr/local/portage" SYNC="rsync://mirror.yandex.ru/gentoo-portage" USE="X a52 aac acl acpi alsa amd64 amr avahi bash-completion berkdb bluetooth bluray bzip2 cairo cdda cddb cdr cjk cli cracklib crypt cryptsetup cups cxx dbus declarative djvu dri dts dvd dvdr emboss encode exif ffmpeg firefox flac fontconfig fortran gdbm gif gphoto2 gtk gtk3 iconv icu idn introspection ipv6 jack jbig jpeg jpeg2k kde kipi lcms ldap libnotify lzma mad matroska mmx mmxext mng modules mp3 mp4 mpeg multilib musepack ncurses networkmanager nls nptl ogg opengl openmp pam pango pcre pdf phonon plasma png policykit postscript ppds pulseaudio qt3support qt4 readline samba scanner sdl session speex spell sse sse2 sse3 ssl ssse3 startup-notification svg systemd tcpd theora tiff truetype udev udisks unicode upnp upower usb v4l v4l2 vaapi vdpau vim-syntax vlc vorbis vp8 wavpack webkit webm webp wxwidgets x264 xattr xcb xcomposite xface xinerama xml xscreensaver xv xvid zlib" ABI_X86="32 64" ALSA_CARDS="ali5451 als4000 atiixp atiixp-modem bt87x ca0106 cmipci emu10k1x ens1370 ens1371 es1938 es1968 fm801 hda-intel intel8x0 intel8x0m maestro3 trident usb-audio via82xx via82xx-modem ymfpci" 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" DRACUT_MODULES="lvm mdraid crypt plymouth systemd" DVB_CARDS="tda10046lifeview" 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 ublox ubx" INPUT_DEVICES="evdev synaptics" KERNEL="linux" LCD_DEVICES="bayrad cfontz cfontz633 glk hd44780 lb216 lcdm001 mtxorb ncurses text" LIBREOFFICE_EXTENSIONS="presenter-console presenter-minimizer" OFFICE_IMPLEMENTATION="libreoffice" PHP_TARGETS="php5-5" PYTHON_SINGLE_TARGET="python2_7" PYTHON_TARGETS="python2_7 python3_4" RUBY_TARGETS="ruby21" USERLAND="GNU" VIDEO_CARDS="intel nouveau radeon" 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" USE_PYTHON="2.7 3.4" Unset: CPPFLAGS, CTARGET, EMERGE_DEFAULT_OPTS, INSTALL_MASK, LC_ALL, PORTAGE_BUNZIP2_COMMAND, PORTAGE_COMPRESS, PORTAGE_COMPRESS_FLAGS, PORTAGE_RSYNC_EXTRA_OPTS
Created attachment 383156 [details, diff] fix-long_long-long_double.patch I couldn't reproduce with 0.8.7, my guess it was fixed by the attached patch. Could you give it a try?
The correct solution is to use MULTILIB_WRAPPED_HEADERS actually.
Created attachment 401014 [details, diff] multilib-wrapped-headers patch No sign of an ebuild for 0.8.7 in the tree yet, so I offer a patch that uses Michał Górny's suggestion for 0.8.6 -> 0.8.6-r1
Now that elektra-0.8.7 is in the tree, it fails to install in the same way as elektra-0.8.6. A similar change to its ebuild, placing /usr/include/elektra/kdbconfig.h within a MULTILIB_WRAPPED_HEADERS wrapper, also enables elektra-0.8.7 to be installed.
I can confirm that MULTILIB_WRAPPED_HEADERS patch solved the build of elektra 0.8.7 for me too. There is elektra 0.8.12 in portage now, but it fails for me at the config state: /usr/bin/cmake -E cmake_link_script CMakeFiles/cmTC_498a5.dir/link.txt --verbose=1 /usr/bin/x86_64-pc-linux-gnu-gcc -m32 -march=native -O2 -pipe -std=gnu99 -Wno-deprecated-declarations -Wno-long-long -pedantic -Wno-variadic-macros -Wall -Wextra -Wno-overlength-strings -Wsign-compare -Wfloat-equal -Wformat-security -Wshadow -Wcomments -Wtrigraphs -Wundef -Wuninitialized -Winit-self -Wmaybe-uninitialized -Wsign-compare -Wfloat-equal -Wformat-security -Wl,-O1 -Wl,--as-needed CMakeFiles/cmTC_498a5.dir/CheckSymbolExists.c.o -o cmTC_498a5 -rdynamic CMakeFiles/cmTC_498a5.dir/CheckSymbolExists.c.o: In function `main': CheckSymbolExists.c:(.text.startup+0x7): undefined reference to `pthread_create' collect2: error: ld returned 1 exit status
Same problem here. This has been going on for many months now. What causes this?
This was fixed in elektra-0.8.12 a long time ago - unless you mean the error in comment #5, which might be C++ ABI breakage (so unrelated to elektra)?
The affected versions elektra-0.8.* below 0.8.12 have been removed. https://cgit.gentoo.org/repo/gentoo.git/commit/?id=0cc2490adecc540fd1c69ae6f9205ec550efdd9e The current 0.8.12, 0.8.15 and 999 have MULTILIB_WRAPPED_HEADERS=( /usr/include/elektra/kdbconfig.h ). This should be fixed.