tmp-meteque Posted April 14, 2016 Report Share Posted April 14, 2016 Hi, I checked the bugtrack and I can't find nothing so I assume it's only my system. Full log: https://ptpb.pw/Iie1 /var/tmp/portage/sys-devel/gcc-4.9.3-r3/temp/ccMwer11.s: Assembler messages: /var/tmp/portage/sys-devel/gcc-4.9.3-r3/temp/ccMwer11.s: Fatal error: can't write i386.o: No space left on device /usr/x86_64-pc-linux-gnu/bin/as: BFD (Funtoo 2.25) 2.25.0 assertion fail elf.c:2660 /usr/x86_64-pc-linux-gnu/bin/as: BFD (Funtoo 2.25) 2.25.0 assertion fail elf.c:2660 /usr/x86_64-pc-linux-gnu/bin/as: BFD (Funtoo 2.25) 2.25.0 assertion fail elf.c:2660 /usr/x86_64-pc-linux-gnu/bin/as: BFD (Funtoo 2.25) 2.25.0 assertion fail elf.c:2660 /usr/x86_64-pc-linux-gnu/bin/as: BFD (Funtoo 2.25) 2.25.0 assertion fail elf.c:2660 /usr/x86_64-pc-linux-gnu/bin/as: BFD (Funtoo 2.25) 2.25.0 assertion fail elf.c:2660 /var/tmp/portage/sys-devel/gcc-4.9.3-r3/temp/ccMwer11.s: Fatal error: can't close i386.o: No space left on device Makefile:2030: recipe for target 'i386.o' failed make[3]: *** [i386.o] Error 1 make[3]: *** Waiting for unfinished jobs.... rm gcc.pod gfortran.pod make[3]: Leaving directory '/var/tmp/portage/sys-devel/gcc-4.9.3-r3/work/objdir/gcc' Makefile:4266: recipe for target 'all-stage2-gcc' failed make[2]: *** [all-stage2-gcc] Error 2 make[2]: Leaving directory '/var/tmp/portage/sys-devel/gcc-4.9.3-r3/work/objdir' Makefile:20719: recipe for target 'stage2-bubble' failed make[1]: *** [stage2-bubble] Error 2 make[1]: Leaving directory '/var/tmp/portage/sys-devel/gcc-4.9.3-r3/work/objdir' Makefile:20957: recipe for target 'bootstrap-lean' failed make: *** [bootstrap-lean] Error 2 * ERROR: sys-devel/gcc-4.9.3-r3::gentoo failed (compile phase): * emake failed * * If you need support, post the output of `emerge --info '=sys-devel/gcc-4.9.3-r3::gentoo'`, * the complete build log and the output of `emerge -pqv '=sys-devel/gcc-4.9.3-r3::gentoo'`. * The complete build log is located at '/var/log/portage/build/sys-devel/gcc-4.9.3-r3:20160414-180027.log'. * For convenience, a symlink to the build log is located at '/var/tmp/portage/sys-devel/gcc-4.9.3-r3/temp/build.log'. * The ebuild environment file is located at '/var/tmp/portage/sys-devel/gcc-4.9.3-r3/temp/environment'. * Working directory: '/var/tmp/portage/sys-devel/gcc-4.9.3-r3/work/objdir' * S: '/var/tmp/portage/sys-devel/gcc-4.9.3-r3/work/gcc-4.9.3' emerge --info '=sys-devel/gcc-4.9.3-r3::gentoo' Portage 2.2.26 (python 3.4.3-final-0, funtoo/1.0/linux-gnu/arch/x86-64bit, gcc-4.9.3, glibc-2.21, 4.1.20-gentoo x86_64) ================================================================= System Settings ================================================================= System uname: Linux-4.1.20-gentoo-x86_64-Intel-R-_Core-TM-_i5-3320M_CPU_@_2.60GHz-with-gentoo-2.2.0 KiB Mem: 3889000 total, 928784 free KiB Swap: 4194292 total, 4016080 free sh bash 4.3_p42 ld GNU ld (Funtoo 2.25) 2.25.0 app-shells/bash: 4.3_p42::gentoo dev-lang/perl: 5.22.1::gentoo dev-lang/python: 2.7.11-r2::gentoo, 3.4.3-r7::gentoo dev-util/cmake: 3.5.1::gentoo sys-apps/baselayout: 2.2.0-r6::gentoo sys-apps/openrc: 0.18.3-r2::gentoo sys-apps/sandbox: 2.10-r2::gentoo sys-devel/autoconf: 2.13::gentoo, 2.69-r2::gentoo sys-devel/automake: 1.11.6-r2::gentoo, 1.13.4-r1::gentoo, 1.14.1-r1::gentoo, 1.15-r2::gentoo sys-devel/binutils: 2.25-r2::gentoo sys-devel/gcc: 4.9.3-r1::gentoo sys-devel/gcc-config: 1.8-r1::gentoo sys-devel/libtool: 2.4.6-r2::gentoo sys-devel/make: 4.1-r1::gentoo sys-kernel/linux-headers: 4.3::gentoo (virtual/os-headers) sys-libs/glibc: 2.21::gentoo Repositories: gentoo location: /usr/portage sync-type: git sync-uri: git://github.com/funtoo/ports-2012.git priority: -1000 mi-overlay location: /usr/local/portage masters: gentoo ACCEPT_KEYWORDS="amd64 ~amd64" ACCEPT_LICENSE="* -@EULA Oracle-BCLA-JavaSE" CBUILD="x86_64-pc-linux-gnu" CFLAGS="-march=core-avx-i -O2 -pipe" CHOST="x86_64-pc-linux-gnu" CONFIG_PROTECT="/etc /usr/share/gnupg/qualified.txt" 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="-march=core-avx-i -O2 -pipe" DISTDIR="/usr/portage/distfiles" EMERGE_DEFAULT_OPTS="--quiet-build=y" FEATURES="assume-digests binpkg-logs clean-logs config-protect-if-modified distlocks ebuild-locks fixlafiles merge-sync news parallel-fetch preserve-libs protect-owned sandbox sfperms split-log strict unknown-features-warn unmerge-logs unmerge-orphans userfetch userpriv usersandbox usersync xattr" FFLAGS="-march=ivybridge -O2 -pipe" GENTOO_MIRRORS="http://distfiles.gentoo.org" INSTALL_MASK="/etc/systemd/ /usr/lib/systemd/ /lib/systemd/" LANG="en_US.UTF-8" LDFLAGS="-Wl,-O1 -Wl,--sort-common -Wl,--as-needed" MAKEOPTS="-j5" PKGDIR="/usr/portage/packages" PORTAGE_CONFIGROOT="/" PORTAGE_TMPDIR="/var/tmp" USE="X a52 aac aacplus aalib acl adplug alac alsa amd64 amr amrenc apng audiofile berkdb bluray bzip2 cdda cddb cdio cdr celt cracklib crypt cups cxx dbus dirac djvu dri drm dts dv dvd dvdr dvdread encode exif faac faad ffmpeg flac fluidsynth fpx gdbm gif gme gpm gsm gstreamer hdri ico iconv icu ieee1394 imagemagick infinality ios ipod ipv6 jbig jpeg jpeg2k kate lame lcms libass libguess libmpeg2 libtiger live mac mad matroska midi mikmod mjpeg mms mmx mng modplug modules mp3 mpeg mtp mudflap multilib musepack ncurses nls nptl nsplugin nuv ogg openexr opengl openmp opus pam pcre pdf png pnm postproc pppd python quicktime readline resolvconf rtmp rtsp schroedinger shorten sid sndfile sox speex sse sse2 ssl svg taglib tcpd tga theora tiff toolame truetype twolame udev unicode uxa v4l vaapi vorbis vpx wav wavpack webp wildmidi win32codecs wmf x264 x265 xattr xml xvid zlib" ABI_X86="64" ALSA_CARDS="ali5451 als4000 atiixp atiixp-modem bt87x ca0106 cmipci emu10k1x ens1370 ens1371 es1938 es1968 fm801 hda-intel ice1724 intel8x0 intel8x0m maestro3 trident usb-audio via82xx via82xx-modem ymfpci" ALSA_PCM_PLUGINS="adpcm alaw asym copy dmix dshare dsnoop empty extplug file hooks iec958 ioplug ladspa lfloat linear meter mmap_emul mulaw multi null plug rate route share shm softvol" APACHE2_MODULES="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 authn_core authz_core socache_shmcb unixd" 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" CPU_FLAGS_X86="aes avx mmx mmxext popcnt sse sse2 sse3 sse4_1 sse4_2 ssse3" 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" GRUB_PLATFORMS="efi-64 pc" 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-6 php5-5" PYTHON_SINGLE_TARGET="python3_4" PYTHON_TARGETS="python2_7 python3_4" QEMU_SOFTMMU_TARGETS="i386 x86_64" QEMU_USER_TARGETS="i386 x86_64" RUBY_TARGETS="ruby20 ruby21 ruby22" USERLAND="GNU" VIDEO_CARDS="intel i965" 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, LC_ALL, LINGUAS, PORTAGE_BUNZIP2_COMMAND, PORTAGE_COMPRESS, PORTAGE_COMPRESS_FLAGS emerge -pqv '=sys-devel/gcc-4.9.3-r3::gentoo' [ebuild U ] sys-devel/gcc-4.9.3-r3 [4.9.3-r1] USE="cxx fortran (multilib) nls openmp -ada (-altivec) -doc -go -graphite (-hardened) (-libssp) -multislot -objc -objc++ (-sanitize) -vanilla" Thanks! Link to comment Share on other sites More sharing options...
0 tmp-meteque Posted April 15, 2016 Author Report Share Posted April 15, 2016 root@norris /home -? PORTAGE_TMPDIR=/home/tmp emerge -1u gcc Calculating dependencies... done! >>> Verifying ebuild manifests >>> Emerging (1 of 1) sys-devel/gcc-4.9.3-r3::gentoo >>> Installing (1 of 1) sys-devel/gcc-4.9.3-r3::gentoo >>> Jobs: 1 of 1 complete Load avg: 3.19, 4.70, 5.28 >>> Auto-cleaning packages... >>> No outdated packages were found on your system. * Regenerating GNU info directory index... * Processed 9 info files. Thank you very much guys! cardinal 1 Link to comment Share on other sites More sharing options...
0 Sandro Posted April 14, 2016 Report Share Posted April 14, 2016 Hi; i'm readnig your build.log. there is a trouble about space on device (it seems). /var/tmp/portage/sys-devel/gcc-4.9.3-r3/temp/ccMwer11.s: Assembler messages:/var/tmp/portage/sys-devel/gcc-4.9.3-r3/temp/ccMwer11.s: Fatal error: can't write i386.o: No space left on device/usr/x86_64-pc-linux-gnu/bin/as: BFD (Funtoo 2.25) 2.25.0 assertion fail elf.c:2660/usr/x86_64-pc-linux-gnu/bin/as: BFD (Funtoo 2.25) 2.25.0 assertion fail elf.c:2660/usr/x86_64-pc-linux-gnu/bin/as: BFD (Funtoo 2.25) 2.25.0 assertion fail elf.c:2660/usr/x86_64-pc-linux-gnu/bin/as: BFD (Funtoo 2.25) 2.25.0 assertion fail elf.c:2660/usr/x86_64-pc-linux-gnu/bin/as: BFD (Funtoo 2.25) 2.25.0 assertion fail elf.c:2660/usr/x86_64-pc-linux-gnu/bin/as: BFD (Funtoo 2.25) 2.25.0 assertion fail elf.c:2660/var/tmp/portage/sys-devel/gcc-4.9.3-r3/temp/ccMwer11.s: Fatal error: can't close i386.o: No space left on device At first # rm -rf /usr/portage/distfiles # rm -rf /var/tmp/portage # cd /usr/src/linux && make clean && cd ~ What tells to You a df -h ? If now there is more space on / (root filesystem) you can retry the # emerge -1u gcc Otherwise, put # df -h # du -hs /* tmp-meteque 1 Link to comment Share on other sites More sharing options...
0 cardinal Posted April 14, 2016 Report Share Posted April 14, 2016 Tell tmp-meteque to make free space and let him decide how to do it. If your instruction is followed to delete distfiles folder containing all package source then gcc,kernel source,and other source code has to be downloaded again. Files and folders can be moved to another drive to make free space. Another solution would be setting PORTAGE_TMPDIR to an available partition with enough free space to compile gcc. Advising someone your helping to delete directories and files off their system should always be avoided. Sandro and tmp-meteque 2 Link to comment Share on other sites More sharing options...
0 Sandro Posted April 14, 2016 Report Share Posted April 14, 2016 Hi hope not to bore .... But sometimes i think may be a good thing to take a look into directories with "obsolete" files to have a gain about space on disk. The "*Trash" must be deleted sometimes.... so i've asked about df -h and du -hs For Example I've my 2 little and very elementary scripts that i use to clean system: ci74771ht ~ # cat Pulisci rm -rf /usr/portage/distfiles rm -rf /var/tmp/portage rm -rf /dev/shm/portage And ci74771ht ~ # cat Clean_Kernel cd /usr/src/linux && make clean && cd ~ With my Clean_kernel i can free 8 GiB of temp files (i use genkernel). For me is a good idea. Hello to All _||_ PS: and after an # emerge -DNu world --with-bdeps=y , # emerge -c tmp-meteque 1 Link to comment Share on other sites More sharing options...
0 tmp-meteque Posted April 15, 2016 Author Report Share Posted April 15, 2016 Hi Sandro, that was my first though after reading the log so with ncdu and eclean, I made a little of space. df -h: Filesystem Size Used Avail Use% Mounted on devtmpfs 10M 0 10M 0% /dev /dev/sda2 20G 14G 4.9G 74% / tmpfs 380M 608K 380M 1% /run shm 1.9G 0 1.9G 0% /dev/shm cgroup_root 10M 0 10M 0% /sys/fs/cgroup /dev/sda1 253M 47M 206M 19% /boot /dev/sda4 270G 154G 102G 61% /home tmpfs 2.0G 0 2.0G 0% /var/tmp/portage du -hs /* : 7.3M /bin 47M /boot 0 /dev 15M /etc 154G /home 0 /lib 3.2M /lib32 325M /lib64 16K /lost+found 4.0K /media 20K /mnt 414M /opt du: cannot access ?/proc/17539/task/17539/fd/3?: No such file or directory du: cannot access ?/proc/17539/task/17539/fdinfo/3?: No such file or directory du: cannot access ?/proc/17539/fd/3?: No such file or directory du: cannot access ?/proc/17539/fdinfo/3?: No such file or directory 0 /proc 57M /root 608K /run 14M /sbin 0 /sys 24K /tmp 8.8G /usr 255M /var And on a side note, compiling gcc makes my laptop warmer than with other packages. It achieves 90C when usually even with larger packages it stays at 80C. Anyway, I doubt the two issues are related.Edit: I forget to clarify that I compile in ram. I followed this guide, but I have the ram usage in my bar and I didn't see it was full. I made a folder in my /home partition and I'm compiling gcc right now. cardinal 1 Link to comment Share on other sites More sharing options...
0 tmp-meteque Posted April 15, 2016 Author Report Share Posted April 15, 2016 Sandro, could I ask what's in /dev/shm/portage and why you delete it? I will be doing a make clean in my kernel folder too, I didn't think about that. Also, I prefer using eclean -d distfiles because sometimes I have to rebuild the packages, change USE flags, etc. I installed funtoo a few months ago so I'm still learning. cardinal 1 Link to comment Share on other sites More sharing options...
0 Sandro Posted April 15, 2016 Report Share Posted April 15, 2016 Since i've 16 GiB of ram i use /dev/shm as PORTAGE_TMPDIR to compile the system (however, /dev/shm after a reboot will be cleaned up; /dev/shm is a tmpfs in RAM "volatile memory"). using in /etc/fstab: shm /dev/shm tmpfs exec,rw,mode=1777 0 0 About eclean, i think that your "policy" is better than the mine .... also for Cardinal my method is not "the right way". Last thing, I remove older kernels; so take a look in /usr/src/ and in /lib/modules if there are "ancient" kernels that requires space on disk. (excuse my "bad US Language"). Pleased that you've solved :) Hello Friends :) tmp-meteque 1 Link to comment Share on other sites More sharing options...
0 tmp-meteque Posted April 16, 2016 Author Report Share Posted April 16, 2016 I also compile in ram but in /var/tmp and 4 GiB. :D It works good but sometimes I have problems like this one and I don't know why I couldn't figure out by my own. Cardinal didn't complain about how you maintain your system. He said that because you didn't explain what is inside /usr/portage/distfiles. Link to comment Share on other sites More sharing options...
0 Sandro Posted April 16, 2016 Report Share Posted April 16, 2016 tmp-meteque: I'm curious; what method do you use to compile in RAM ? Do You mount /var/tmp on a tmpfs ? Could I see Your /etc/fstab ? Thanks dear friend _'_ Link to comment Share on other sites More sharing options...
0 tmp-meteque Posted April 17, 2016 Author Report Share Posted April 17, 2016 Hi Sandro. Yes, I follow the gentoo's wiki. # /etc/fstab: static file system information. # # The root filesystem should have a pass number of either 0 or 1. # All other filesystems should have a pass number of 0 or greater than 1. # # NOTE: If your BOOT partition is ReiserFS, add the notail option to opts. # # See the manpage fstab(5) for more information. # # <fs> <mountpoint> <type> <opts> <dump/pass> UUID="2B00-F65A" /boot vfat defaults 1 2 UUID="d9fb9efe-390e-4ff7-870b-83a532af4c8e" / ext4 defaults,noatime 0 1 UUID="8505b49a-0ab4-4393-82f7-fb67d262906c" swap swap defaults 0 0 UUID="09382c16-b07f-4e5e-b8d5-3cf53ed1edcb" /home ext4 rw,relatime,discard,data=ordered 0 2 tmpfs /var/tmp/portage tmpfs size=2G,uid=portage,gid=portage,mode=775,noatime 0 0 https://nube.xxx.es/remote.php/webdav /home/ruben/Owncloud davfs user,noauto,uid=ruben,file_mode=600,dir_mode=700 0 1 #/dev/cdrom /mnt/cdrom auto noauto,ro 0 0 ruben@norris /etc/portage/env -? cat notmpfs.conf PORTAGE_TMPDIR=/home/tmp ruben@norris /etc/portage/env -? cat ../package.env app-office/libreoffice notmpfs.conf mail-client/thunderbird notmpfs.conf www-client/chromium notmpfs.conf www-client/firefox notmpfs.conf dev-qt/qtwebkit qtwebkit sys-devel/gcc notmpfs.conf Another trick to improve the compilation time is make portage quiet in make.conf and send the output to another file: PORT_LOGDIR="/var/log/portage" FEATURES="clean-logs split-log" EMERGE_DEFAULT_OPTS="--quiet-build=y" Sandro 1 Link to comment Share on other sites More sharing options...
0 Sandro Posted April 17, 2016 Report Share Posted April 17, 2016 Thank You very mutch; i've bookmarked this page :) But ... I wonder which of the two methods can be considered better ? mumble mumble ... I think a discussion "fruitful and interesting" :) 2 GB for /var/tmp may be usable for not all the ebuilds .... However, with 4 GiB of RAM the /dev/shm (that is half of total memory by default) create the same situation (then 2GiB of /dev/shm mounte as tmpfs). mumble .... What do You think About ? I hope that my method must have not troubles about "security" .... :| Thanx Friend :) Link to comment Share on other sites More sharing options...
0 tmp-meteque Posted April 18, 2016 Author Report Share Posted April 18, 2016 For what I read, /dev/shm and tmpfs are the same, they both use the memory ram and the swap partition. My laptop have 4GiB of ram so I can't use more than 2 GiB. I plan to upgrade but I don't really need it for the moment because I'm using i3 (a tiling windows manager) and just a few programs with GUI interface. A friend of mine uses ccache instead of compiling in ram and for what he says, it makes a hugh difference. Link to comment Share on other sites More sharing options...
0 Sandro Posted April 19, 2016 Report Share Posted April 19, 2016 Thanx for Your answer :) However is possible to change the size of /dev/shm using the size= in mount options. By default /dev/shm is "half of the total RAM" shm 7,9G 308K 7,9G 1% /dev/shm If i do # mount -o remount,size=15G /dev/shm shm 15G 8,8M 15G 1% /dev/shm E.G. if you don't start the graphic system i think that You could use up to 3 GiB for your temporary file system. Or may be to have a "conflict" in this case with the /run giving then possible errors or have "swapping" ? (Now I try to compile debian-sources with "binary" thath requires 14 GiB to make a little test) About ccache the "gain" about speedness to compile is expecially for devel that may test softwares then recompile more then once the same ebuild to test it (It was so written in the Gentoo Guide); but i can make a little test; have you got some personal xperience about the use of ccache (e. g. using qlop -gH or time emerge ebuild) ? Thanx (i hope not to bore you with those questions). PS: 15 GiB for debian-sources (with binary) are not sufficient; so i've made a # mount -o remount,size=16G /dev/shm And now i'm compiling it. I'm curious if the system will swap (i'm on KDE 4.x with all effects enabled). OK: little "report" time to compiling debian-sources: real 17m57.877sswap up to 3 GiB (but is fast cause is in a partion of my ssd) Software opened during compilation: firefox, thunderbird, htop. now the situation is: ci74771ht ~ # free -m total used free shared buff/cache available Mem: 15993 1166 13347 14 1478 14712 Swap: 8191 222 7969 I hope that this experiment could be considered a little nice :) Link to comment Share on other sites More sharing options...
Question
tmp-meteque
Hi, I checked the bugtrack and I can't find nothing so I assume it's only my system.
Full log: https://ptpb.pw/Iie1
emerge --info '=sys-devel/gcc-4.9.3-r3::gentoo'
emerge -pqv '=sys-devel/gcc-4.9.3-r3::gentoo'
Thanks!
Link to comment
Share on other sites
13 answers to this question
Recommended Posts