I'm trying to emerge gconf-sharp-2.8.0 and fail. Have a *close* look at the following output: #################################################################################### * Documentation build enabled: no --- Making all in GConf make[1]: Entering directory `/Gentoo/Portage/build/portage/gconf-sharp-2.8.0/work/gtk-sharp-2.8.0/gconf/GConf' cp ../../gtk-sharp.snk . /usr/bin/mcs -define:GTK_SHARP_2_6 -define:GTK_SHARP_2_8 /out:gconf-sharp.dll /target:library /r://usr/lib/mono/gtk-sharp-2.0/glib-sharp.dll ./ClientBase.cs ./Client.cs ./ChangeSet.cs ./Engine.cs ./_Entry.cs ./NoSuchKeyException.cs ./NotifyEventArgs.cs ./NotifyEventHandler.cs ./NotifyWrapper.cs ./Value.cs ../../AssemblyInfo.cs Creating policy.2.4.gconf-sharp.dll Creating policy.2.4.gconf-sharp.dll ALINK: error A1019: Metadata failure creating assembly -- System.IO.IOException: Sharing violation on path /Gentoo/Portage/build/portage/gconf-sharp-2.8.0/work/gtk-sharp-2.8.0/gconf/GConf/policy.2.4.gconf-sharp.dll in <0x00338> System.IO.FileStream:.ctor (System.String name, FileMode mode, FileAccess access, FileShare share, Int32 bufferSize, Boolean isAsync, Boolean anonymous) in <0x0005c> System.IO.FileStream:.ctor (System.String name, FileMode mode, FileAccess access) in (wrapper remoting-invoke-with-check) System.IO.FileStream:.ctor (string,System.IO.FileMode,System.IO.FileAccess) in <0x002ab> System.Reflection.Emit.ModuleBuilder:Save () in <0x004ca> System.Reflection.Emit.AssemblyBuilder:Save (System.String assemblyFileName, PortableExecutableKinds portableExecutableKind, ImageFileMachine imageFileMachine) in <0x00014> System.Reflection.Emit.AssemblyBuilder:Save (System.String assemblyFileName) in <0x01067> Mono.AssemblyLinker.AssemblyLinker:DoIt () Creating policy.2.6.gconf-sharp.dll Creating policy.2.6.gconf-sharp.dll ./Client.cs(127,10): warning CS0252: Possible unintended reference comparison; to get a value comparison, cast the left hand side to type `GConf.NotifyEventHandler'. Compilation succeeded - 1 warning(s) make[1]: Leaving directory `/Gentoo/Portage/build/portage/gconf-sharp-2.8.0/work/gtk-sharp-2.8.0/gconf/GConf' Making all in GConf.PropertyEditors make[1]: Entering directory `/Gentoo/Portage/build/portage/gconf-sharp-2.8.0/work/gtk-sharp-2.8.0/gconf/GConf.PropertyEditors' cp ../../gtk-sharp.snk . /usr/bin/mcs -define:GTK_SHARP_2_6 -define:GTK_SHARP_2_8 /out:gconf-sharp-peditors.dll /target:library /r://usr/lib/mono/gtk-sharp-2.0/glib-sharp.dll /r://usr/lib/mono/gtk-sharp-2.0/pango-sharp.dll /r://usr/lib/mono/gtk-sharp-2.0/atk-sharp.dll /r://usr/lib/mono/gtk-sharp-2.0/gdk-sharp.dll /r://usr/lib/mono/gtk-sharp-2.0/gtk-sharp.dll /r://usr/lib/mono/gtk-sharp-2.0/art-sharp.dll /r://usr/lib/mono/gtk-sharp-2.0/gnome-sharp.dll /r://usr/lib/mono/gtk-sharp-2.0/glade-sharp.dll /r:../GConf/gconf-sharp.dll ./PropertyEditor.cs ./PropertyEditorBool.cs ./PropertyEditorEnum.cs ./PropertyEditorEntry.cs ./PropertyEditorFileEntry.cs ./PropertyEditorOptionMenu.cs ./PropertyEditorRadioButton.cs ./PropertyEditorSpinButton.cs ./PropertyEditorToggleButton.cs ./EditorShell.cs ../../AssemblyInfo.cs Creating policy.2.4.gconf-sharp-peditors.dll Creating policy.2.4.gconf-sharp-peditors.dll ALINK: error A1019: Metadata failure creating assembly -- System.IO.IOException: Sharing violation on path /Gentoo/Portage/build/portage/gconf-sharp-2.8.0/work/gtk-sharp-2.8.0/gconf/GConf.PropertyEditors/policy.2.4.gconf-sharp-peditors.dll in <0x00338> System.IO.FileStream:.ctor (System.String name, FileMode mode, FileAccess access, FileShare share, Int32 bufferSize, Boolean isAsync, Boolean anonymous) in <0x0005c> System.IO.FileStream:.ctor (System.String name, FileMode mode, FileAccess access) in (wrapper remoting-invoke-with-check) System.IO.FileStream:.ctor (string,System.IO.FileMode,System.IO.FileAccess) in <0x002ab> System.Reflection.Emit.ModuleBuilder:Save () in <0x004ca> System.Reflection.Emit.AssemblyBuilder:Save (System.String assemblyFileName, PortableExecutableKinds portableExecutableKind, ImageFileMachine imageFileMachine) in <0x00014> System.Reflection.Emit.AssemblyBuilder:Save (System.String assemblyFileName) in <0x01067> Mono.AssemblyLinker.AssemblyLinker:DoIt () Creating policy.2.6.gconf-sharp-peditors.dll Creating policy.2.6.gconf-sharp-peditors.dll ./PropertyEditorFileEntry.cs(51,47): warning CS0612: `Gnome.FileEntry' is obsolete ./PropertyEditorOptionMenu.cs(47,48): warning CS0612: `Gtk.OptionMenu' is obsolete ./PropertyEditorOptionMenu.cs(51,48): warning CS0612: `Gtk.OptionMenu' is obsolete ./PropertyEditorOptionMenu.cs(55,48): warning CS0612: `Gtk.OptionMenu' is obsolete ./PropertyEditorFileEntry.cs(32,4): warning CS0612: `Gnome.FileEntry' is obsolete ./PropertyEditorFileEntry.cs(32,23): warning CS0612: `Gnome.FileEntry' is obsolete ./PropertyEditorFileEntry.cs(33,4): warning CS0612: `Gnome.FileEntry' is obsolete ./PropertyEditorFileEntry.cs(38,4): warning CS0612: `Gnome.FileEntry' is obsolete ./PropertyEditorFileEntry.cs(38,23): warning CS0612: `Gnome.FileEntry' is obsolete ./PropertyEditorFileEntry.cs(39,22): warning CS0612: `Gnome.FileEntry' is obsolete ./PropertyEditorFileEntry.cs(47,4): warning CS0612: `Gnome.FileEntry' is obsolete ./PropertyEditorFileEntry.cs(47,23): warning CS0612: `Gnome.FileEntry' is obsolete ./PropertyEditorFileEntry.cs(48,4): warning CS0612: `Gnome.FileEntry' is obsolete ./PropertyEditorOptionMenu.cs(30,4): warning CS0612: `Gtk.OptionMenu' is obsolete ./PropertyEditorOptionMenu.cs(30,23): warning CS0612: `Gtk.OptionMenu' is obsolete ./PropertyEditorOptionMenu.cs(31,4): warning CS0612: `Gtk.OptionMenu' is obsolete ./PropertyEditorOptionMenu.cs(36,4): warning CS0612: `Gtk.OptionMenu' is obsolete ./PropertyEditorOptionMenu.cs(36,23): warning CS0612: `Gtk.OptionMenu' is obsolete ./PropertyEditorOptionMenu.cs(37,18): warning CS0612: `Gtk.OptionMenu' is obsolete ./PropertyEditorOptionMenu.cs(43,4): warning CS0612: `Gtk.OptionMenu' is obsolete ./PropertyEditorOptionMenu.cs(43,23): warning CS0612: `Gtk.OptionMenu' is obsolete ./PropertyEditorOptionMenu.cs(44,4): warning CS0612: `Gtk.OptionMenu' is obsolete ./EditorShell.cs(77,24): warning CS0612: `Gnome.FileEntry' is obsolete ./EditorShell.cs(78,49): warning CS0612: `Gnome.FileEntry' is obsolete Compilation succeeded - 24 warning(s) make[1]: Leaving directory `/Gentoo/Portage/build/portage/gconf-sharp-2.8.0/work/gtk-sharp-2.8.0/gconf/GConf.PropertyEditors' Making all in tools make[1]: Entering directory `/Gentoo/Portage/build/portage/gconf-sharp-2.8.0/work/gtk-sharp-2.8.0/gconf/tools' /usr/bin/mcs /out:gconfsharp-schemagen.exe ./schemagen.cs make[1]: Leaving directory `/Gentoo/Portage/build/portage/gconf-sharp-2.8.0/work/gtk-sharp-2.8.0/gconf/tools' Making all in doc make[1]: Entering directory `/Gentoo/Portage/build/portage/gconf-sharp-2.8.0/work/gtk-sharp-2.8.0/gconf/doc' make[1]: Nothing to be done for `all'. make[1]: Leaving directory `/Gentoo/Portage/build/portage/gconf-sharp-2.8.0/work/gtk-sharp-2.8.0/gconf/doc' make[1]: Entering directory `/Gentoo/Portage/build/portage/gconf-sharp-2.8.0/work/gtk-sharp-2.8.0/gconf' make[1]: Nothing to be done for `all-am'. make[1]: Leaving directory `/Gentoo/Portage/build/portage/gconf-sharp-2.8.0/work/gtk-sharp-2.8.0/gconf' >>> Source compiled. * Skipping make test/check due to ebuild restriction. >>> Test phase [explicitly disabled]: dev-dotnet/gconf-sharp-2.8.0 >>> Install gconf-sharp-2.8.0 into /Gentoo/Portage/build/portage/gconf-sharp-2.8.0/image/ category dev-dotnet Making install in GConf make[1]: Entering directory `/Gentoo/Portage/build/portage/gconf-sharp-2.8.0/work/gtk-sharp-2.8.0/gconf/GConf' make[2]: Entering directory `/Gentoo/Portage/build/portage/gconf-sharp-2.8.0/work/gtk-sharp-2.8.0/gconf/GConf' make[2]: Nothing to be done for `install-exec-am'. /usr/bin/gacutil /i gconf-sharp.dll /f /root /Gentoo/Portage/build/portage/gconf-sharp-2.8.0/image//usr/lib /gacdir /usr/lib /package gtk-sharp-2.0 Package exported to: /Gentoo/Portage/build/portage/gconf-sharp-2.8.0/image//usr/lib/mono/gtk-sharp-2.0/gconf-sharp.dll -> ../gac/gconf-sharp/2.8.0.0__35e10195dab3c99f/gconf-sharp.dll gconf-sharp installed into the gac (/Gentoo/Portage/build/portage/gconf-sharp-2.8.0/image//usr/lib/mono/gac) /usr/bin/gacutil /i policy.2.4.gconf-sharp.dll /f /root /Gentoo/Portage/build/portage/gconf-sharp-2.8.0/image//usr/lib /gacdir /usr/lib /package gtk-sharp-2.0 Failure adding assembly to the cache: The file specified is not a valid assembly. make[2]: *** [install-data-local] Error 1 make[2]: Leaving directory `/Gentoo/Portage/build/portage/gconf-sharp-2.8.0/work/gtk-sharp-2.8.0/gconf/GConf' make[1]: *** [install-am] Error 2 make[1]: Leaving directory `/Gentoo/Portage/build/portage/gconf-sharp-2.8.0/work/gtk-sharp-2.8.0/gconf/GConf' Making install in GConf.PropertyEditors make[1]: Entering directory `/Gentoo/Portage/build/portage/gconf-sharp-2.8.0/work/gtk-sharp-2.8.0/gconf/GConf.PropertyEditors' make[2]: Entering directory `/Gentoo/Portage/build/portage/gconf-sharp-2.8.0/work/gtk-sharp-2.8.0/gconf/GConf.PropertyEditors' make[2]: Nothing to be done for `install-exec-am'. /usr/bin/gacutil /i gconf-sharp-peditors.dll /f /root /Gentoo/Portage/build/portage/gconf-sharp-2.8.0/image//usr/lib /gacdir /usr/lib /package gtk-sharp-2.0 Package exported to: /Gentoo/Portage/build/portage/gconf-sharp-2.8.0/image//usr/lib/mono/gtk-sharp-2.0/gconf-sharp-peditors.dll -> ../gac/gconf-sharp-peditors/2.8.0.0__35e10195dab3c99f/gconf-sharp-peditors.dll gconf-sharp-peditors installed into the gac (/Gentoo/Portage/build/portage/gconf-sharp-2.8.0/image//usr/lib/mono/gac) /usr/bin/gacutil /i policy.2.4.gconf-sharp-peditors.dll /f /root /Gentoo/Portage/build/portage/gconf-sharp-2.8.0/image//usr/lib /gacdir /usr/lib /package gtk-sharp-2.0 Failure adding assembly to the cache: The file specified is not a valid assembly. make[2]: *** [install-data-local] Error 1 make[2]: Leaving directory `/Gentoo/Portage/build/portage/gconf-sharp-2.8.0/work/gtk-sharp-2.8.0/gconf/GConf.PropertyEditors' make[1]: *** [install-am] Error 2 make[1]: Leaving directory `/Gentoo/Portage/build/portage/gconf-sharp-2.8.0/work/gtk-sharp-2.8.0/gconf/GConf.PropertyEditors' Making install in tools make[1]: Entering directory `/Gentoo/Portage/build/portage/gconf-sharp-2.8.0/work/gtk-sharp-2.8.0/gconf/tools' make[2]: Entering directory `/Gentoo/Portage/build/portage/gconf-sharp-2.8.0/work/gtk-sharp-2.8.0/gconf/tools' test -z "/usr/bin" || mkdir -p -- "/Gentoo/Portage/build/portage/gconf-sharp-2.8.0/image//usr/bin" /bin/install -c 'gconfsharp2-schemagen' '/Gentoo/Portage/build/portage/gconf-sharp-2.8.0/image//usr/bin/gconfsharp2-schemagen' test -z "/usr/lib/gtk-sharp-2.0" || mkdir -p -- "/Gentoo/Portage/build/portage/gconf-sharp-2.8.0/image//usr/lib/gtk-sharp-2.0" /bin/install -c -m 644 'gconfsharp-schemagen.exe' '/Gentoo/Portage/build/portage/gconf-sharp-2.8.0/image//usr/lib/gtk-sharp-2.0/gconfsharp-schemagen.exe' make[2]: Leaving directory `/Gentoo/Portage/build/portage/gconf-sharp-2.8.0/work/gtk-sharp-2.8.0/gconf/tools' make[1]: Leaving directory `/Gentoo/Portage/build/portage/gconf-sharp-2.8.0/work/gtk-sharp-2.8.0/gconf/tools' Making install in doc make[1]: Entering directory `/Gentoo/Portage/build/portage/gconf-sharp-2.8.0/work/gtk-sharp-2.8.0/gconf/doc' make[2]: Entering directory `/Gentoo/Portage/build/portage/gconf-sharp-2.8.0/work/gtk-sharp-2.8.0/gconf/doc' make[2]: Nothing to be done for `install-exec-am'. make[2]: Nothing to be done for `install-data-am'. make[2]: Leaving directory `/Gentoo/Portage/build/portage/gconf-sharp-2.8.0/work/gtk-sharp-2.8.0/gconf/doc' make[1]: Leaving directory `/Gentoo/Portage/build/portage/gconf-sharp-2.8.0/work/gtk-sharp-2.8.0/gconf/doc' make[1]: Entering directory `/Gentoo/Portage/build/portage/gconf-sharp-2.8.0/work/gtk-sharp-2.8.0/gconf' make[2]: Entering directory `/Gentoo/Portage/build/portage/gconf-sharp-2.8.0/work/gtk-sharp-2.8.0/gconf' make[2]: Nothing to be done for `install-exec-am'. make[2]: Nothing to be done for `install-data-am'. make[2]: Leaving directory `/Gentoo/Portage/build/portage/gconf-sharp-2.8.0/work/gtk-sharp-2.8.0/gconf' make[1]: Leaving directory `/Gentoo/Portage/build/portage/gconf-sharp-2.8.0/work/gtk-sharp-2.8.0/gconf' make: *** [install-recursive] Error 1 !!! ERROR: dev-dotnet/gconf-sharp-2.8.0 failed. Call stack: ebuild.sh, line 1894: Called dyn_install ebuild.sh, line 1037: Called src_install ebuild.sh, line 1609: Called gtk-sharp-component_src_install !!! (no error message) !!! If you need support, post the topmost build error, and the call stack if relevant. #################################################################################### As you can see, there are messages like the following: Creating policy.2.4.gconf-sharp-peditors.dll ALINK: error A1019: Metadata failure creating assembly -- System.IO.IOException: Sharing violation on path /Gentoo/Portage/build/portage/gconf-sharp-2.8.0/work/gtk-sharp-2.8.0/gconf/GConf.PropertyEditors/policy.2.4.gconf-sharp-peditors.dll in <0x00338> System.IO.FileStream:.ctor (System.String name, FileMode mode, FileAccess access, FileShare share, Int32 bufferSize, Boolean isAsync, Boolean anonymous) in <0x0005c> System.IO.FileStream:.ctor (System.String name, FileMode mode, FileAccess access) in (wrapper remoting-invoke-with-check) System.IO.FileStream:.ctor (string,System.IO.FileMode,System.IO.FileAccess) Is this because I've set PORTAGE_TMPDIR to /Gentoo/Portage/build? I suppose because of those sharing violation message, install ultimately fails: /usr/bin/gacutil /i policy.2.4.gconf-sharp.dll /f /root /Gentoo/Portage/build/portage/gconf-sharp-2.8.0/image//usr/lib /gacdir /usr/lib /package gtk-sharp-2.0 Failure adding assembly to the cache: The file specified is not a valid assembly. make[2]: *** [install-data-local] Error 1 [...] make[1]: Leaving directory `/Gentoo/Portage/build/portage/gconf-sharp-2.8.0/work/gtk-sharp-2.8.0/gconf' make: *** [install-recursive] Error 1 !!! ERROR: dev-dotnet/gconf-sharp-2.8.0 failed. Call stack: ebuild.sh, line 1894: Called dyn_install Other packages from gtk-sharp 2.8.0 (like glade-sharp) compile just fine. I invoked the build with: alexander@blatt ~ $ sudo emerge -vat1 gconf-sharp These are the packages that I would merge, in reverse order: Calculating dependencies ...done! [ebuild U ] dev-dotnet/gconf-sharp-2.8.0 [2.4.0] 0 kB alexander@blatt ~ $ emerge info Portage 2.1_pre4 (default-linux/x86/2005.0, gcc-3.4.5, glibc-2.3.6-r2, 2.6.15-suspend2-r4.041.via-im-kernel i686) ================================================================= System uname: 2.6.15-suspend2-r4.041.via-im-kernel i686 Intel(R) Celeron(R) M processor 1.50GHz Gentoo Base System version 1.12.0_pre15 distcc 2.18.3 i686-pc-linux-gnu (protocols 1 and 2) (default port 3632) [disabled] ccache version 2.4 [enabled] dev-lang/python: 2.3.4-r1, 2.4.2 sys-apps/sandbox: 1.2.17 sys-devel/autoconf: 2.13, 2.59-r7 sys-devel/automake: 1.4_p6, 1.5, 1.6.3, 1.7.9-r1, 1.8.5-r3, 1.9.6-r1 sys-devel/binutils: 2.16.1-r1 sys-devel/libtool: 1.5.22 virtual/os-headers: 2.6.11-r3 ACCEPT_KEYWORDS="x86 ~x86" AUTOCLEAN="yes" CBUILD="i686-pc-linux-gnu" CFLAGS="-O2 -mtune=pentium-m -pipe -fomit-frame-pointer" CHOST="i686-pc-linux-gnu" CONFIG_PROTECT="/etc /usr/kde/2/share/config /usr/kde/3.5/env /usr/kde/3.5/share/config /usr/kde/3.5/shutdown /usr/kde/3/share/config /usr/lib/X11/xkb /usr/lib/mozilla/defaults/pref /usr/share/config /var/qmail/control" CONFIG_PROTECT_MASK="/etc/gconf /etc/terminfo /etc/env.d" CXXFLAGS="-O2 -mtune=pentium-m -pipe -fomit-frame-pointer" DISTDIR="/Gentoo/Portage/distfiles" FEATURES="autoconfig buildpkg ccache collision-protect distlocks sandbox sfperms strict" GENTOO_MIRRORS=" http://server.bei.digitalprojects.com/gentoo/ http://stuff.alexander.skwar.name/gentoo/ http://mirrors.sec.informatik.tu-darmstadt.de/gentoo/ http://ftp-stud.fht-esslingen.de/pub/Mirrors/gentoo/ ftp://ftp.tu-clausthal.de/pub/linux/gentoo/ http://distro.ibiblio.org/pub/linux/distributions/gentoo/ ftp://distro.ibiblio.org/pub/linux/distributions/gentoohttp://distfiles.gentoo.org/ " LANG="de_DE.UTF-8" LDFLAGS="-Wl,-O1" LINGUAS="de" MAKEOPTS="-j3" PKGDIR="/Gentoo/Portage/packages" PORTAGE_TMPDIR="/Gentoo/Portage/build" PORTDIR="/Gentoo/Portage/tree" PORTDIR_OVERLAY="/Gentoo/Portage/local-tree/misc /Gentoo/Portage/local-tree/overlays/gentoo-de" SYNC="rsync://rsync.de.gentoo.org/gentoo-portage" USE="x86 GAPING_SECURITY_HOLE X acpi alsa amd apm arts artswrappersuid async avi bdf berkdb bitmap-fonts bluetooth bootsplash cairo caps cardbus ccache cdda cddb cdio cdparanoia cdr cdrom cle266 crypt css curlwrappers dbus devmap dillo divx4linux dlloader dvd dvdread emoticon esd exif fam fbcon fbdev firefox fping freetype gdbm gif gnokii gnome gstreamer gtk gtk2 hal hpn icc id3 idn imap imlib imlib2 insecure-drivers insecure-savers javascript jikes jpeg kde kdeenablefinal libedit libwww linuxthreads-tls logrotate lynxkeymap mad madwifi maildir matroska mbox mmx mmxext mozilla moznoirc mozsvg mp3 mpeg mpeg2 mpeg4 mplayer multicall ncurses netboot network new-login nfs nis nls no-old-linux no-suexec noantlr nobcel nobeanutils nobsf nobsh nocd nocommonslogging nocommonsnet nodrm nogg nogulm nojsch nojython nolog4j nomac nooro nopri norhino noxalan noxerces nozaptel nptl nsplugin offensive ogg oggvorbis opengl openssh pam_console pam_timestamp passfile password patented pccts pcmcia pcre perl perlsuid pic player png pnp qt quicktime rar readline real recode reiserfs sdl sendfile sensord sftp sms spell spf sse sse2 ssl startup-notification stream subp subtitles suid symlink sysfs syslog tiff transcode truetype truetype-fonts trusted type1-fonts underscores unichrome unicode unsafe usb utf8 uudeview vim vim-pager vlm vorbis wifi win32codecs wma123 x11vnc xinetd xml xml2 xmms xpm xscreensaver xv xvid xvmc zlib elibc_glibc kernel_linux linguas_de userland_GNU video_cards_via" Unset: ASFLAGS, CTARGET, EMERGE_DEFAULT_OPTS, LC_ALL
I was able to reproduce here with -jX in MAKEOPTS, but not otherwise, I've just commited a fix to the gtk-sharp-component.eclass to force -j1 during the build process for components. This should fix this. Marking this FIXED, please feel free to re-open if you still experience the problem after getting the new eclass from emerge --sync. Thanks.
Everything's working fine now - thanks a lot!