LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Newbie (https://www.linuxquestions.org/questions/linux-newbie-8/)
-   -   Gentoo: Access Violation while compiling Autoconf-2.63 (https://www.linuxquestions.org/questions/linux-newbie-8/gentoo-access-violation-while-compiling-autoconf-2-63-a-675406/)

clintonsk 10-09-2008 07:45 PM

Gentoo: Access Violation while compiling Autoconf-2.63
 
Hi, this is my first time on the forums.

I recently installed KDE4.1 on my Gentoo workstation and since then I've been trying to get everything back together.

I was wondering if anyone could help me with this problem. I'm trying to compile autoconf so the rest of the updates will install:

jane clinton # emerge world

or

jane clinton # emerge autoconf

(autoconf-2.63 that is) and I keep getting this error:

Code:

...make[4]: Leaving directory `/var/tmp/portage/sys-devel/autoconf-2.63/work/autoconf-2.63/lib/autoscan'
make[3]: Leaving directory `/var/tmp/portage/sys-devel/autoconf-2.63/work/autoconf-2.63/lib/autoscan'
Making install in emacs
make[3]: Entering directory `/var/tmp/portage/sys-devel/autoconf-2.63/work/autoconf-2.63/lib/emacs'
make[4]: Entering directory `/var/tmp/portage/sys-devel/autoconf-2.63/work/autoconf-2.63/lib/emacs'
make[4]: Nothing to be done for `install-exec-am'.
make[4]: Leaving directory `/var/tmp/portage/sys-devel/autoconf-2.63/work/autoconf-2.63/lib/emacs'
make[3]: Leaving directory `/var/tmp/portage/sys-devel/autoconf-2.63/work/autoconf-2.63/lib/emacs'
make[3]: Entering directory `/var/tmp/portage/sys-devel/autoconf-2.63/work/autoconf-2.63/lib'
make[4]: Entering directory `/var/tmp/portage/sys-devel/autoconf-2.63/work/autoconf-2.63/lib'
make[4]: Nothing to be done for `install-exec-am'.
test -z "/usr/share/autoconf" || /bin/mkdir -p "/var/tmp/portage/sys-devel/autoconf-2.63/image//usr/share/autoconf"
 /usr/bin/install -c -m 644 'autom4te.cfg' '/var/tmp/portage/sys-devel/autoconf-2.63/image//usr/share/autoconf/autom4te.cfg'
make[4]: Leaving directory `/var/tmp/portage/sys-devel/autoconf-2.63/work/autoconf-2.63/lib'
make[3]: Leaving directory `/var/tmp/portage/sys-devel/autoconf-2.63/work/autoconf-2.63/lib'
make[2]: Leaving directory `/var/tmp/portage/sys-devel/autoconf-2.63/work/autoconf-2.63/lib'
Making install in doc
make[2]: Entering directory `/var/tmp/portage/sys-devel/autoconf-2.63/work/autoconf-2.63/doc'
make[3]: Entering directory `/var/tmp/portage/sys-devel/autoconf-2.63/work/autoconf-2.63/doc'
make[3]: Nothing to be done for `install-exec-am'.
test -z "/usr/share/info" || /bin/mkdir -p "/var/tmp/portage/sys-devel/autoconf-2.63/image//usr/share/info"
 /usr/bin/install -c -m 644 './autoconf.info' '/var/tmp/portage/sys-devel/autoconf-2.63/image//usr/share/info/autoconf.info'
 /usr/bin/install -c -m 644 './standards.info' '/var/tmp/portage/sys-devel/autoconf-2.63/image//usr/share/info/standards.info'
 install-info --info-dir='/var/tmp/portage/sys-devel/autoconf-2.63/image//usr/share/info' '/var/tmp/portage/sys-devel/autoconf-2.63/image//usr/share/info/autoconf.info'
 install-info --info-dir='/var/tmp/portage/sys-devel/autoconf-2.63/image//usr/share/info' '/var/tmp/portage/sys-devel/autoconf-2.63/image//usr/share/info/standards.info'
make[3]: Leaving directory `/var/tmp/portage/sys-devel/autoconf-2.63/work/autoconf-2.63/doc'
make[2]: Leaving directory `/var/tmp/portage/sys-devel/autoconf-2.63/work/autoconf-2.63/doc'
Making install in tests
make[2]: Entering directory `/var/tmp/portage/sys-devel/autoconf-2.63/work/autoconf-2.63/tests'
make[3]: Entering directory `/var/tmp/portage/sys-devel/autoconf-2.63/work/autoconf-2.63/tests'
make[3]: Nothing to be done for `install-exec-am'.
make[3]: Nothing to be done for `install-data-am'.
make[3]: Leaving directory `/var/tmp/portage/sys-devel/autoconf-2.63/work/autoconf-2.63/tests'
make[2]: Leaving directory `/var/tmp/portage/sys-devel/autoconf-2.63/work/autoconf-2.63/tests'
Making install in man
make[2]: Entering directory `/var/tmp/portage/sys-devel/autoconf-2.63/work/autoconf-2.63/man'
make[3]: Entering directory `/var/tmp/portage/sys-devel/autoconf-2.63/work/autoconf-2.63/man'
make[3]: Nothing to be done for `install-exec-am'.
test -z "/usr/share/man/man1" || /bin/mkdir -p "/var/tmp/portage/sys-devel/autoconf-2.63/image//usr/share/man/man1"
 /usr/bin/install -c -m 644 '././autoconf.1' '/var/tmp/portage/sys-devel/autoconf-2.63/image//usr/share/man/man1/autoconf-2.63.1'
 /usr/bin/install -c -m 644 '././autoheader.1' '/var/tmp/portage/sys-devel/autoconf-2.63/image//usr/share/man/man1/autoheader-2.63.1'
 /usr/bin/install -c -m 644 '././autom4te.1' '/var/tmp/portage/sys-devel/autoconf-2.63/image//usr/share/man/man1/autom4te-2.63.1'
 /usr/bin/install -c -m 644 '././autoreconf.1' '/var/tmp/portage/sys-devel/autoconf-2.63/image//usr/share/man/man1/autoreconf-2.63.1'
 /usr/bin/install -c -m 644 '././autoscan.1' '/var/tmp/portage/sys-devel/autoconf-2.63/image//usr/share/man/man1/autoscan-2.63.1'
 /usr/bin/install -c -m 644 '././autoupdate.1' '/var/tmp/portage/sys-devel/autoconf-2.63/image//usr/share/man/man1/autoupdate-2.63.1'
 /usr/bin/install -c -m 644 '././ifnames.1' '/var/tmp/portage/sys-devel/autoconf-2.63/image//usr/share/man/man1/ifnames-2.63.1'
 /usr/bin/install -c -m 644 '././config.guess.1' '/var/tmp/portage/sys-devel/autoconf-2.63/image//usr/share/man/man1/config.guess-2.63.1'
 /usr/bin/install -c -m 644 '././config.sub.1' '/var/tmp/portage/sys-devel/autoconf-2.63/image//usr/share/man/man1/config.sub-2.63.1'
make[3]: Leaving directory `/var/tmp/portage/sys-devel/autoconf-2.63/work/autoconf-2.63/man'
make[2]: Leaving directory `/var/tmp/portage/sys-devel/autoconf-2.63/work/autoconf-2.63/man'
make[1]: Leaving directory `/var/tmp/portage/sys-devel/autoconf-2.63/work/autoconf-2.63'
>>> Completed installing autoconf-2.63 into /var/tmp/portage/sys-devel/autoconf-2.63/image/

--------------------------- ACCESS VIOLATION SUMMARY ---------------------------
LOG FILE = "/var/log/sandbox/sandbox-1274.log"

open_wr:  /.git/index.lock
--------------------------------------------------------------------------------

>>> Failed to emerge sys-devel/autoconf-2.63, Log file:

>>>  '/var/tmp/portage/sys-devel/autoconf-2.63/temp/build.log'

 * GNU info directory index is up-to-date.

 * IMPORTANT: 15 config files in '/etc' need updating.

 * IMPORTANT: 1 config files in '/usr/kde/3.5/share/config' need updating.
 * See the CONFIGURATION FILES section of the emerge
 * man page to learn how to update config files.

And...

jane clinton # emerge --info

Quote:

Portage 2.2_rc11 (default/linux/x86/2008.0, gcc-4.1.2, glibc-2.8_p20080602-r0, 2.6.25-gentoo-r7 i686)
=================================================================
System uname: Linux-2.6.25-gentoo-r7-i686-Intel-R-_Core-TM-2_Duo_CPU_T9300_@_2.50GHz-with-glibc2.0
Timestamp of tree: Sat, 04 Oct 2008 04:00:02 +0000
ccache version 2.4 [disabled]
app-shells/bash: 3.2_p39
dev-java/java-config: 1.3.7, 2.1.6
dev-lang/python: 2.4.4-r13, 2.5.2-r7
dev-python/pycrypto: 2.0.1-r6
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-r2
sys-devel/autoconf: 2.13, 2.63
sys-devel/automake: 1.5, 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: 2.2.6a
virtual/os-headers: 2.6.26
ACCEPT_KEYWORDS="x86 ~x86"
CBUILD="i686-pc-linux-gnu"
CFLAGS="-march=prescott -O2 -pipe -fomit-frame-pointer -mno-tls-direct-seg-refs"
CHOST="i686-pc-linux-gnu"
CONFIG_PROTECT="/etc /usr/env /usr/kde/3.5/env /usr/kde/3.5/share/config /usr/kde/3.5/shutdown /usr/share/config /usr/shutdown"
CONFIG_PROTECT_MASK="/etc/ca-certificates.conf /etc/env.d /etc/env.d/java/ /etc/eselect/postgresql /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/udev/rules.d"
CXXFLAGS="-march=prescott -O2 -pipe -fomit-frame-pointer -mno-tls-direct-seg-refs"
DISTDIR="/usr/portage/distfiles"
FEATURES="buildpkg distlocks parallel-fetch preserve-libs protect-owned sandbox sfperms strict unmerge-orphans userfetch"
GENTOO_MIRRORS="ftp://gentoo.arcticnetwork.ca/pub/gentoo/ http://gentoo.arcticnetwork.ca/ ftp://mirrors.tera-byte.com/pub/gentoo http://gentoo.mirrors.tera-byte.com/ ftp://distro.ibiblio.org/pub/linux/d...utions/gentoo/ http://distro.ibiblio.org/pub/linux/...utions/gentoo/ ftp://ftp.gtlib.gatech.edu/pub/gentoo http://www.gtlib.gatech.edu/pub/gentoo ftp://ftp.ucsb.edu/pub/mirrors/linux/gentoo/ http://ftp.ucsb.edu/pub/mirrors/linux/gentoo/ "
LANG="C"
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 --stats --timeout=180 --exclude=/distfiles --exclude=/local --exclude=/packages"
PORTAGE_TMPDIR="/var/tmp"
PORTDIR="/usr/portage/"
SYNC="rsync://rsync.gentoo.org/gentoo-portage"
USE="*mysql *postgres X acl acpi alsa apache2 arts bash-completion bluetooth bzip2 cairo cdr cli cracklib crypt cups dbus divx dri dvd dvdr esd flac fortran gdbm gif glitz gnome gpm gtk iconv ipv6 isdnlog java jpeg jpeg2k kde midi mp3 mpeg mudflap ncurses nls nptl nptlonly ogg openal opengl openmp pae pam pcre pdf perl png ppds pppd pulseaudio python qt3 qt4 readline reflection samba sdl session spell spl ssl svg sysfs tcpd truetype unicode usb v4l v4l2 vcd vorbis win32codecs x86 xcb xcomposite xinerama xml xorg xscreensaver zlib" ALSA_CARDS="intel8x0" 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 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 evdev" KERNEL="linux" LCD_DEVICES="bayrad cfontz cfontz633 glk hd44780 lb216 lcdm001 mtxorb ncurses text" LINGUAS="en" USERLAND="GNU" VIDEO_CARDS="nvidia vesa"
Unset: CPPFLAGS, CTARGET, EMERGE_DEFAULT_OPTS, FFLAGS, INSTALL_MASK, LC_ALL, PORTAGE_COMPRESS, PORTAGE_COMPRESS_FLAGS, PORTAGE_RSYNC_EXTRA_OPTS, PORTDIR_OVERLAY
As far as I understanding, having a git repository in the root dir is a stupid idea but I might be mistaken.(I'm new:D)

I removed the /.git dir and then tried it, same thing happened.

I've been fighting and Googling this all day! I'm also pretty new to Linux and Gentoo and I've managed work out a lot of problems but this one has me beat. This is the first time I've posted a bug.

If you could help me out that would be great:)

comprookie2000 10-10-2008 06:36 AM

Creating a git repo in the root directory, as you found out is a bad idea. git will treat / as being the root of the repo, when executed in any directory tree that doesn't have its own .git somewhere. this calls for breakage all over the place. I would try (very untested)
Code:

rm  /.git/index.lock.
etc-update
emerge --sync
emerge -puND world

also can you post the log somewhere?
/var/log/sandbox/sandbox-1274.log

i92guboj 10-10-2008 08:46 AM

I have a question: are you using plain Gentoo or are you trying to install from a modified/non-supported ebuild from an overlay or Sabayon? The regular ebuild should just download a tarball for 2.63 (or whatever version), but yours seems to be using git for some odd purpose. So, if you use an unofficial ebuild, my advise is to stop doing so unless you have a good reason (that you can explain) to do so.

The standard one should work.

The access violation issues happen when emerge tries to write for any purpose outside the sandbox. A sandbox (for portage corcerns) is a temporal place where the package is installed. Once the package is installed, and emerge is sure that the package installs fine, then it writes to the real live system. This is done this way to prevent leftovers if something fails while installing.

EDITED: To check if the ebuild is overlayed or the official one, you can do "emerge -pv autoconf", at the end of the line it should show [0], if it shows another number, you can see which overlays it is on an index below on the same output. If the ebuild doesn't belong to an unofficial overlay, paste the log file on pastebin.com and direct us to it so we can review it. But, in that case, you should really be posting in bugs.gentoo.org where you will get far better support (I repeat: only if the ebuild is part of the official gentoo tree, which I doubt in this case).

clintonsk 10-10-2008 10:11 AM

Thanks for the replies so far.

comprookie2000:
The contents of the /var/log/sandbox/sandbox-1274.log log file are actually shown: open_wr: /.git/index.lock
I opened it in a text editor(nano) and it's the same thing.

Also, I already removed the /.git/index.lock tried emerge--didn't work...removed the /.git/ tried it and it still didn't work. I think it's looking for a file that isn't there, which confuses me. However, I'll try that etc-update(since there's quit a few configure files that need updating anyway) in the order you listed it.

i92guboj:
Thanks for the explanation, I'll keep it in mind. I'm going to try emerge -pv autoconf and and come back and post the results.

comprookie2000 10-10-2008 02:19 PM

You can try putting FEATURES=-sandbox in /etc/make.conf. But I wouldn't leave it there for very long.

i92guboj 10-11-2008 02:29 AM

Quote:

Originally Posted by comprookie2000 (Post 3306333)
You can try putting FEATURES=-sandbox in /etc/make.conf. But I wouldn't leave it there for very long.

I wouldn't put it a all in make.conf. If you really need to bypass the protection -at your own risk, or course- use it in command line:

Code:

FEATURES=-sandbox emerge <whatever>

clintonsk 10-11-2008 06:28 PM

Quote:

Originally Posted by comprookie2000 (Post 3306333)
You can try putting FEATURES=-sandbox in /etc/make.conf. But I wouldn't leave it there for very long.

I tried that and it worked but I'm going to take it back out.

Thanks for the help and suggestions everyone:)


All times are GMT -5. The time now is 04:40 PM.