Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 234870 - gcc 4.3.1-r1 failes to compile when trying to access file in /tmp
Summary: gcc 4.3.1-r1 failes to compile when trying to access file in /tmp
Status: RESOLVED INVALID
Alias: None
Product: Gentoo Infrastructure
Classification: Unclassified
Component: Bugzilla (show other bugs)
Hardware: All Linux
: High normal (vote)
Assignee: Gentoo Linux bug wranglers
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2008-08-15 23:45 UTC by Lars Strojny
Modified: 2011-10-30 23:16 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 Lars Strojny 2008-08-15 23:45:33 UTC
$ emerge gcc
[...]
cd /var/tmp/portage/sys-devel/gcc-4.3.1-r1/work/gcc-4.3.1/libjava/classpath && /bin/sh ./scripts/check_jni_methods.sh
./scripts/check_jni_methods.sh: line 14: /tmp/check-jni-methods.13760.1: Keine Berechtigung
make[6]: *** [all-local] Fehler 1
make[6]: Leaving directory `/var/tmp/portage/sys-devel/gcc-4.3.1-r1/work/build/x86_64-pc-linux-gnu/libjava/classpath/native/jni'
make[5]: *** [all-recursive] Fehler 1
make[5]: Leaving directory `/var/tmp/portage/sys-devel/gcc-4.3.1-r1/work/build/x86_64-pc-linux-gnu/libjava/classpath/native/jni'
make[4]: *** [all-recursive] Fehler 1
make[4]: Leaving directory `/var/tmp/portage/sys-devel/gcc-4.3.1-r1/work/build/x86_64-pc-linux-gnu/libjava/classpath/native'
make[3]: *** [all-recursive] Fehler 1
make[3]: Leaving directory `/var/tmp/portage/sys-devel/gcc-4.3.1-r1/work/build/x86_64-pc-linux-gnu/libjava/classpath'
make[2]: *** [all-recursive] Fehler 1
make[2]: Leaving directory `/var/tmp/portage/sys-devel/gcc-4.3.1-r1/work/build/x86_64-pc-linux-gnu/libjava'
make[1]: *** [all-target-libjava] Fehler 2
make[1]: Leaving directory `/var/tmp/portage/sys-devel/gcc-4.3.1-r1/work/build'
make: *** [profiledbootstrap] Fehler 2
 *
 * ERROR: sys-devel/gcc-4.3.1-r1 failed.
 * Call stack:
 *               ebuild.sh, line   49:  Called src_compile
 *             environment, line 4636:  Called toolchain_src_compile
 *             environment, line 5151:  Called gcc_src_compile
 *             environment, line 2969:  Called gcc_do_make
 *             environment, line 2799:  Called die
 * The specific snippet of code:
 *       emake LDFLAGS="${LDFLAGS}" STAGE1_CFLAGS="${STAGE1_CFLAGS}" LIBPATH="${LIBPATH}" BOOT_CFLAGS="${BOOT_CFLAGS}" ${GCC_MAKE_TARGET} || die "emake failed with ${GCC_MAKE_TARGET}";
 *  The die message:
 *   emake failed with profiledbootstrap
 *
 * If you need support, post the topmost build error, and the call stack if relevant.
 * A complete build log is located at '/var/tmp/portage/sys-devel/gcc-4.3.1-r1/temp/build.log'.
 * The ebuild environment file is located at '/var/tmp/portage/sys-devel/gcc-4.3.1-r1/temp/environment'.


$ emerge info
Portage 2.2_rc7 (default-linux/amd64/2007.0, gcc-4.3.1, glibc-2.7-r2, 2.6.25.3-mactel x86_64)
=================================================================
System uname: Linux-2.6.25.3-mactel-x86_64-Intel-R-_Core-TM-2_Duo_CPU_T7500_@_2.20GHz-with-glibc2.2.5
Timestamp of tree: Tue, 12 Aug 2008 20:06:01 +0000
ccache version 2.4 [enabled]
app-shells/bash:     3.2_p39
dev-java/java-config: 1.3.7, 2.1.6
dev-lang/python:     2.5.2-r5
dev-util/ccache:     2.4-r7
sys-apps/baselayout: 2.0.0
sys-apps/openrc:     0.2.5
sys-apps/sandbox:    1.2.18.1-r3
sys-devel/autoconf:  2.13, 2.62-r1
sys-devel/automake:  1.5, 1.6.3, 1.7.9-r1, 1.8.5-r3, 1.9.6-r2, 1.10.1-r1
sys-devel/binutils:  2.18-r3
sys-devel/gcc-config: 1.4.0-r4
sys-devel/libtool:   1.5.26
virtual/os-headers:  2.6.25-r4
ACCEPT_KEYWORDS="amd64 ~amd64"
CBUILD="x86_64-pc-linux-gnu"
CFLAGS="-O2 -pipe -march=nocona -fomit-frame-pointer -mno-tls-direct-seg-refs"
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/config /var/lib/hsqldb"
CONFIG_PROTECT_MASK="/etc/ca-certificates.conf /etc/env.d /etc/env.d/java/ /etc/fonts/fonts.conf /etc/gconf /etc/gentoo-release /etc/php/apache2-php5/ext-active/ /etc/php/cgi-php5/ext-active/ /etc/php/cli-php5/ext-active/ /etc/revdep-rebuild /etc/splash /etc/terminfo /etc/texmf/web2c /etc/udev/rules.d"
CXXFLAGS="-O2 -pipe -march=nocona -fomit-frame-pointer -mno-tls-direct-seg-refs"
DISTDIR="/usr/portage/distfiles"
FEATURES="ccache collision-protect distlocks metadata-transfer multilib-strict parallel-fetch preserve-libs sandbox sfperms strict unmerge-orphans userfetch userpriv usersandbox"
GENTOO_MIRRORS="http://distfiles.gentoo.org http://distro.ibiblio.org/pub/linux/distributions/gentoo"
LANG="de_DE.UTF-8"
LC_ALL="de_DE.UTF-8"
LDFLAGS="-Wl,--as-needed"
LINGUAS="de en"
MAKEOPTS="-j3"
PKGDIR="/usr/portage/packages"
PORTAGE_RSYNC_OPTS="--recursive --links --safe-links --perms --times --compress --force --whole-file --delete --stats --timeout=180 --exclude=/distfiles --exclude=/local --exclude=/packages"
PORTAGE_TMPDIR="/var/tmp"
PORTDIR="/usr/portage"
PORTDIR_OVERLAY="/usr/local/portage/layman/dang-maintainer /usr/portage/local/layman/java-overlay /usr/portage/local/layman/mozilla /usr/portage/local/layman/sunrise /usr/portage/local/layman/gentopia /usr/portage/local/layman/x11 /usr/portage/local/layman/picoverlay /usr/local/overlays/lars /usr/local/overlays/party-ebuilds /usr/local/overlays/php-overlay"
SYNC="rsync://rsync.gentoo.org/gentoo-portage"
USE="X a52 aac aalib acl acpi admin aiglx alsa amd64 apache2 applet asyncns audioscrobbler autoipd automount avahi bash-completion beagle berkdb binfilter bluetooth bonjour bookmarks bzip2 cairo cdda cddb cdparanoia cdr chm consolekit cpudetection cracklib crypt cscope cups curl cvs daap dbus dell device-mapper dga dia disk-partition djvu dmi dpms dri dts dv dvb dvd dvdnav dvdr dvdread dvi eds enca encode eog esd evo exif extraengine extras fbsplash ffmpeg firefox flac fontconfig ftp fuse gajim galago gdbm gedit gif gimp gimp-print gimpprint git glitz gnet gnome gnome-keyring gnome-print gphoto2 gpm gsf gsm gstreamer gstreamer010 gtk gtkhtml guile gzip hal howl hvm iconv idle idn ieee1394 ilbc inkjar ipod ipv6 jabber jack java5 jingle jpeg jrtplib kdeenablefinal keyring laptop lcms ldap libcaca libgda libnotify libsexy live logrotate lua lzo mactel mad matroska mhash midi mmx mng mono mozdevelop mp2 mp3 mpeg mpm-worker msn multiuser musepack musicbrainz mysql nautilus ncurses networkmanager newspr nfs njb nls nntp no-old-linux nptl nptlonly nsplugin ntp ntplonly office ogg opengl ortp pam pango pcre pdf php png portaudio ppds prediction print printer pygrub python quicktime rar readline ruby samba slp smp soap sockets speex spell sqlite sqlite3 srt srv srvdir sse sse2 ssh ssl ssse3 startup-notification subversion svg t1lib tagwriting theora threads tiff tracker trayicon truetype unicode usb v4l v4l2 vim-pager vim-syntax vorbis vorbis-psy webdav wma wmf x264 xanim xattr xcb xcomposite xforms xft xhtml xinerama xml xml2 xorg xprint xv xvid yahoo zeroconf zlib" ALSA_CARDS="hda-intel als4000" ALSA_PCM_PLUGINS="adpcm alaw copy dshare dsnoop extplug file hooks ladspa lfloat linear meter mulaw multi null rate route share shm asym dmix empty iec958 ioplug plug softvol" APACHE2_MODULES="actions alias auth_basic auth_digest authn_anon authn_dbd authn_dbm authn_default authn_file authz_dbm authz_default authz_groupfile authz_host authz_owner authz_user autoindex cache dav dav_fs dav_lock dbd deflate dir disk_cache env expires ext_filter file_cache filter headers ident imagemap include info log_config logio mem_cache mime mime_magic negotiation proxy proxy_ajp proxy_balancer proxy_connect proxy_http rewrite setenvif so speling status unique_id userdir usertrack vhost_alias" ELIBC="glibc" INPUT_DEVICES="keyboard mouse synaptics evdev" KERNEL="linux" LCD_DEVICES="bayrad cfontz cfontz633 glk hd44780 lb216 lcdm001 mtxorb ncurses text" LINGUAS="de en" LIRC_DEVICES="macmini" USERLAND="GNU" VIDEO_CARDS="intel i810"
Unset:  CPPFLAGS, CTARGET, EMERGE_DEFAULT_OPTS, INSTALL_MASK, PORTAGE_COMPRESS, PORTAGE_COMPRESS_FLAGS, PORTAGE_RSYNC_EXTRA_OPTS
Comment 1 Panagiotis Christopoulos (RETIRED) gentoo-dev 2008-08-16 00:40:09 UTC
Paste your "mount" output please. Also, your "df -h /tmp" and your "free -m -t". I remove toolchain from the CCs until we are sure that this is a real bug, and not a misconfiguration from your side. I resolve the bug, as NEEDINFO. Please, reopen it, at least when you have submitted the information I asked. 
Comment 2 Lars Strojny 2008-08-16 06:17:06 UTC
$ mount
rootfs on / type rootfs (rw)
/dev/root on / type ext3 (rw,noatime,errors=continue,data=ordered)
/proc on /proc type proc (rw,nosuid,nodev,noexec)
sysfs on /sys type sysfs (rw,nosuid,nodev,noexec)
udev on /dev type tmpfs (rw,nosuid,size=10240k,mode=755)
devpts on /dev/pts type devpts (rw,nosuid,noexec,gid=5,mode=620)
shm on /dev/shm type tmpfs (rw,nosuid,nodev,noexec)
rc-svcdir on /lib64/rc/init.d type tmpfs (rw,nosuid,nodev,noexec,size=1024k,mode=755)
cachedir on /lib64/splash/cache type tmpfs (rw,size=4096k,mode=644)
/dev/mapper/vg00_lstrojny2-var_tmp_portage on /var/tmp/portage type ext4dev (rw,noatime)
/dev/mapper/vg00_lstrojny2-usr_portage on /usr/portage type ext4dev (rw,noatime)
usbfs on /proc/bus/usb type usbfs (rw,noexec,nosuid,devmode=0664,devgid=85)
securityfs on /sys/kernel/security type securityfs (rw,noexec,nosuid,nodev)
debugfs on /sys/kernel/debug type debugfs (rw,noexec,nosuid,nodev)
/dev/mapper/crypt-home on /home type ext3 (rw,nosuid,user_xattr)
gvfs-fuse-daemon on /home/lstrojny/.gvfs type fuse.gvfs-fuse-daemon (rw,nosuid,nodev,user=lstrojny)

$ df -h /tmp/
Filesystem            Size  Used Avail Use% Mounted on
/dev/root              14G   11G  2.3G  83% /

$ free -m -t
             total       used       free     shared    buffers     cached
Mem:          1977       1707        270          0         27        180
-/+ buffers/cache:       1499        477
Swap:         3906       1358       2547
Total:        5883       3065       2818
Comment 3 Panagiotis Christopoulos (RETIRED) gentoo-dev 2008-08-16 08:15:47 UTC
Also, your "ls -ld /tmp/", in order to check your permissions. Also, if you have kept your build.log, it would be nice if you could upload it. 
Comment 4 Lars Strojny 2008-08-16 08:24:35 UTC
$ ls -ld /tmp
drwxr-xr-t 19 root root 36864 16. Aug 10:13 /tmp/

I haven't kept the build.log but I can recreate it.
Comment 5 Panagiotis Christopoulos (RETIRED) gentoo-dev 2008-08-16 08:33:39 UTC
(In reply to comment #4)
> $ ls -ld /tmp
> drwxr-xr-t 19 root root 36864 16. Aug 10:13 /tmp/
> 
> I haven't kept the build.log but I can recreate it.
> 

Lars,

Please, "chmod -v 777 /tmp". Portage is not able to write inside /tmp, that's why I think you have the problem. Unless, you have another opinion, I will close this bug as invalid. You are free to reopen it, if you still think that there is an issue.

Panagiotis