Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 187045 - dev-lang/gnat-gpl-4.1.3.2007 fails multilib-strict check on install
Summary: dev-lang/gnat-gpl-4.1.3.2007 fails multilib-strict check on install
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: [OLD] Development (show other bugs)
Hardware: AMD64 Linux
: High normal (vote)
Assignee: AMD64 Project
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2007-07-29 18:07 UTC by Steve Arnold
Modified: 2007-09-05 14:12 UTC (History)
1 user (show)

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


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Steve Arnold archtester gentoo-dev 2007-07-29 18:07:03 UTC
Updating gnat-gpl-3.4 to the above built fine, but the install fails on a QA check; note gnat-gcc-4* are already installed:

Files matching a file type that is not allowed:
   usr/lib/gnat-gpl/x86_64-pc-linux-gnu/4.1/adalib/libgnat-2007.so
   usr/lib/gnat-gpl/x86_64-pc-linux-gnu/4.1/adalib/libgnarl-2007.so
   usr/lib/gnat-gpl/x86_64-pc-linux-gnu/4.1/libffi.so.4.0.1
   usr/lib/gnat-gpl/x86_64-pc-linux-gnu/4.1/libgcc_s.so.1
   usr/lib/gnat-gpl/x86_64-pc-linux-gnu/4.1/libmudflap.so.0.0.0
   usr/lib/gnat-gpl/x86_64-pc-linux-gnu/4.1/libmudflapth.so.0.0.0
   usr/lib/gnat-gpl/x86_64-pc-linux-gnu/4.1/libssp.so.0.0.0
 * 
 * ERROR: dev-lang/gnat-gpl-4.1.3.2007 failed.
 * Call stack:
 *   misc-functions.sh, line 561:   Called install_qa_check
 *   misc-functions.sh, line 341:   Called die
 * 
 * multilib-strict check failed!
 * If you need support, post the topmost build error, and the call stack if relevant.
 * A complete build log is located at '/var/log/portage/dev-lang:gnat-gpl-4.1.3.2007:20070729-161245.log'.
 * 
!!! install_qa_check failed; exiting.

 * Messages for package dev-lang/gnat-gpl-4.1.3.2007:

 * Fallback PaX marking -E
 *      /var/tmp/portage/dev-lang/gnat-gpl-4.1.3.2007/work/usr/bin/gnat1
 * 
 * ERROR: dev-lang/gnat-gpl-4.1.3.2007 failed.
 * Call stack:
 *   misc-functions.sh, line 561:   Called install_qa_check
 *   misc-functions.sh, line 341:   Called die
 * 
 * multilib-strict check failed!
 * If you need support, post the topmost build error, and the call stack if relevant.
 * A complete build log is located at '/var/log/portage/dev-lang:gnat-gpl-4.1.3.2007:20070729-161245.log'.
 * 

emerge --info

Portage 2.1.3 (default-linux/amd64/2007.0/desktop, gcc-4.1.2, glibc-2.5-r3, 2.6.21.1 x86_64)
=================================================================
System uname: 2.6.21.1 x86_64 AMD Athlon(tm) 64 Processor 3000+
Gentoo Base System release 1.12.10
Timestamp of tree: Sat, 28 Jul 2007 09:50:01 +0000
distcc 2.18.3 x86_64-pc-linux-gnu (protocols 1 and 2) (default port 3632) [enabled]
ccache version 2.4 [enabled]
dev-java/java-config: 1.3.7, 2.0.33-r1
dev-lang/python:     2.4.4-r4
dev-python/pycrypto: 2.0.1-r5
dev-util/ccache:     2.4-r7
sys-apps/sandbox:    1.2.18.1
sys-devel/autoconf:  2.13, 2.61
sys-devel/automake:  1.4_p6, 1.5, 1.6.3, 1.7.9-r1, 1.8.5-r3, 1.9.6-r2, 1.10
sys-devel/binutils:  2.17
sys-devel/gcc-config: 1.3.16
sys-devel/libtool:   1.5.24
virtual/os-headers:  2.6.20-r2
ACCEPT_KEYWORDS="amd64"
AUTOCLEAN="yes"
CBUILD="x86_64-pc-linux-gnu"
CFLAGS="-march=k8 -O2 -pipe"
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/X11/xkb /usr/share/config"
CONFIG_PROTECT_MASK="/etc/env.d /etc/env.d/java/ /etc/gconf /etc/revdep-rebuild /etc/terminfo /etc/texmf/web2c"
CXXFLAGS="-march=k8 -O2 -pipe"
DISTDIR="/usr/portage/distfiles"
FEATURES="autoaddcvs buildpkg ccache cvs digest distcc distlocks metadata-transfer multilib-strict sandbox sfperms strict unmerge-orphans userfetch userpriv usersandbox"
GENTOO_MIRRORS="http://kuroshin.arnolds.bogus/gentoo/"
LDFLAGS="-Wl,-O1"
LINGUAS="en"
MAKEOPTS="-j5"
PKGDIR="/usr/portage/packages"
PORTAGE_RSYNC_OPTS="--recursive --links --safe-links --perms --times --compress --force --whole-file --delete --delete-after --stats --timeout=180 --exclude=/distfiles --exclude=/local --exclude=/packages --filter=H_**/files/digest-*"
PORTAGE_TMPDIR="/var/tmp"
PORTDIR="/usr/portage"
PORTDIR_OVERLAY="/usr/local/portage"
SYNC="rsync://kuroshin.arnolds.bogus/gentoo-portage"
USE="X Xaw3d a52 aac aalib accessibility acl acpi ada alsa amd64 ansi artworkextra avahi avi bitmap-fonts bonobo browserplugin bzip2 cairo cddb cdparanoia cdr clamav cli cracklib crypt cups dbus dga directfb divx4linux dri dts dv dvd dvdr dvdread dynagraph eds emacs emboss encode esd evo exif fame fbcon ffmpeg fits flac fontconfig fortran freetype freetype2 gb gd gdbm geos gif gimp gmp gnome gphoto2 gpm gps graphviz grass gs gstreamer gtk gtk2 gtkhtml guile hal howl iconv icq ieee1394 imagemagick imap imlib ipv6 isdnlog jabber jasper java jbig jikes jpeg jpg junit kerberos lame lapack lcms ldap lesstif libg++ lirc lm_sensors logrotate mad midi mikmod mmx motif mp3 mpeg mplayer mudflap mysql nas nautilus ncurses netcdf nfs nls nolvmstatic nptl nptlonly nsplugin numeric ogdi ogg oggvorbis opengl openmp oss pam pcre pda pdf perl plotutils png postgres pppd python qt qt3 qt3support quicktime readline reflection rtc ruby samba sasl sdl seamonkey session slp snmp spamassassin spell spl sse sse2 ssl subtitles svg tcl tcpd tetex threads tiff timidity tk truetype truetype-fonts type1-fonts unicode usb v4l v4l2 vcd vorbis wifi xanim xattr xext xine xml xml2 xorg xpm xv xvid xvmc zeo zlib zvbi" ALSA_CARDS="emu10k1" ALSA_PCM_PLUGINS="adpcm alaw asym copy dmix dshare dsnoop empty extplug file hooks iec958 ioplug ladspa lfloat linear meter mulaw multi null plug rate route share shm softvol" CAMERAS="kodak polaroid ptp2 samsung spca50x" ELIBC="glibc" INPUT_DEVICES="keyboard mouse joystick evdev" KERNEL="linux" LCD_DEVICES="bayrad cfontz cfontz633 glk hd44780 lb216 lcdm001 mtxorb ncurses text" LINGUAS="en" USERLAND="GNU" VIDEO_CARDS="radeon vesa v4l"
Unset:  CTARGET, EMERGE_DEFAULT_OPTS, INSTALL_MASK, LANG, LC_ALL, PORTAGE_COMPRESS, PORTAGE_COMPRESS_FLAGS, PORTAGE_RSYNC_EXTRA_OPTS
Comment 1 Kenneth Prugh (RETIRED) gentoo-dev 2007-08-12 18:12:14 UTC
It won't build at all here...

checking whether the C compiler (/var/tmp/portage/dev-lang/gnat-gpl-4.1.3.2007/work/usr/bin/gnatgcc -Os -march=native -mtune=native -fomit-frame-pointer -pipe -mmmx -msse2 -msse3 -L/var/tmp/portage/dev-lang/gnat-gpl-4.1.3.2007/work/usr/lib/gnatgcc/x86_64-pc-linux-gnu/4.1) works... no
configure: error: installation or configuration problem: C compiler cannot create executables.
Comment 2 David Holm (RETIRED) gentoo-dev 2007-08-13 07:24:26 UTC
Could you please attach your config.log?
Comment 3 George Shapovalov (RETIRED) gentoo-dev 2007-08-13 09:48:56 UTC
Steve: 
thanks for the report! 
The gnatbuild.eclass has been composed quite some time ago following the toolchain.eclass of the time, but it seems the way multilib is handled has changed since then. I'll take a look at it (just getting back from being away for a month)..

Kenneth:
This is a completely different issue, possibly related to #186375. Normally this happens when you have a problem with your toolchain configuration. In your case this is most likely related to the -march=native, which is available only in the later versions of gcc (especially if a crosscompilation is taking place, which is unlikely to be the case, but cannot be ruled out, as I do not see you emerge --info). Since gnat has to be compiled with an Ada-enabled gcc it uses bootstrap which was prepared back when older versions of gnat and gcc were out. You will have to change it to the actual arch and try again. If that fails, please post to #186375, not here.

George
Comment 4 George Shapovalov (RETIRED) gentoo-dev 2007-09-04 11:55:44 UTC
Ok, I suspect simply changing 
LIBPATH=${PREFIX}/lib/${PN}/${CTARGET}/${SLOT}
to 
LIBPATH=${PREFIX}/$(get_libdir)/${PN}/${CTARGET}/${SLOT}
in gnatbuild.eclass may do the trick. However I would like to test this and I cannot trigger this complaint. How do I enable the multilib-strict check? I tried adding multilib-strict to FEATURES but nothing happens. Is there a good description of multilib-strict somewhere? I tried to search for it some time ago, but did not find much :(. Is this a separate profile? If so, which one should I use?

Also, I see gcc itself installs those same files (libmudflap.so, etc) under /usr/lib/ just the same (and this is how gnat got them there, I just modelled everything after toolchain). Does it fail this check too?

George
Comment 5 George Shapovalov (RETIRED) gentoo-dev 2007-09-04 13:57:06 UTC
Sorry, looks like now it gets triggered (on a different package, was doing an update to asis). Apparently I enabled it after the compilation already started and portage preserves the environment. Ok, on to rebuilding the gnat itself :). I hope I see it there as well..

George
Comment 6 George Shapovalov (RETIRED) gentoo-dev 2007-09-05 14:12:35 UTC
The described fix worked fine. Also fixed the same issue with asis-gxx packages. 
Closing the bug.

George