
darkphader wrote:emwrap is currently broken - doesn't execute gcc-config properly with gcc-config-1.4.0-r1Code: Select all
sed: can't read /etc/env.d/gcc/config: No such file or directory /usr/local/bin/emwrap.sh: line 629: [: : integer expression expected /usr/local/bin/emwrap.sh: line 631: [: : integer expression expected BEFORE selecting new GCC: [1] NATIVE [2] x86_64-pc-linux-gnu-4.2.0 * ********************************************************************** I'm going to execute: # gcc-config x86_64-pc-linux-gnu- ********************************************************************** Kill me NOW, or forever hold your peace! (sleeping for 15 seconds...) 15 14 13 12 11 10 9 8 7 6 5 4 3 2 1 (continuing...) * gcc-config: Could not locate 'x86_64-pc-linux-gnu-' in '/etc/env.d/gcc/' ! ERROR: : gcc-config x86_64-pc-linux-gnu- failed!Code: Select all
davinci ~ # ls -l /etc/env.d/gcc/ total 16 -rw-r--r-- 1 root root 32 2006-08-03 10:25 config-i386-pc-linux-gnu -rw-r--r-- 1 root root 32 2007-08-30 02:22 config-i686-pc-linux-gnu -rw-r--r-- 1 root root 327 2007-07-15 03:53 i686-pc-linux-gnu-4.1.2 -rw-r--r-- 1 root root 235 2007-08-30 02:21 i686-pc-linux-gnu-4.2.0 lrwxrwxrwx 1 root root 23 2007-08-30 02:22 NATIVE -> i686-pc-linux-gnu-4.2.0The file "/etc/env.d/gcc/config" no longer exists.Code: Select all
sartre ~ # ls -l /etc/env.d/gcc/ total 8 -rw-r--r-- 1 root root 34 2007-08-30 09:56 config-x86_64-pc-linux-gnu lrwxrwxrwx 1 root root 25 2007-08-30 09:56 NATIVE -> x86_64-pc-linux-gnu-4.2.0 -rw-r--r-- 1 root root 285 2007-08-30 01:27 x86_64-pc-linux-gnu-4.2.0
Chris
Code: Select all
hielvc@tester ~ $ emwrap.sh -V
emwrap.sh Version-4.0.8 with gcc-config-r2
A wrapper for emerge so you can break emerges into chunks, TC, system, world
or world - system
Mon Sep 17 20:53:30 PDT 2007hielvc wrote:fixed. After downloading run " emwrap.sh -V " It should returnCode: Select all
hielvc@tester ~ $ emwrap.sh -V emwrap.sh Version-4.0.8 with gcc-config-r2 A wrapper for emerge so you can break emerges into chunks, TC, system, world or world - system Mon Sep 17 20:53:30 PDT 2007
Code: Select all
14 12 10 8 6 R 4 2 r 0 r
Input was empty I will continue with emwrap.sh system -eCode: Select all
You can now enter " r " to resume building. If you dont enter anything
then the old build file will be deleted.and emwrap.sh system -e will
continue. If you want to stop and scratch your head do a CRTL-C
14 12 r 10 8 r
325 build to emerge
325 build to emerge
these failed to build
x11-libs/qt-3.3.8-r4
x11-libs/qt-3.3.8-r4
these remain to build

hielvc wrote:darkphader can you paste in the output of " emwrap.sh -V " ?
Code: Select all
# emwrap.sh -V
emwrap.sh Version-4.0.8 with gcc-config-r2
A wrapper for emerge so you can break emerges into chunks, TC, system, world
or world - system
Mon Sep 17 20:53:30 PDT 2007* Messages for package sys-devel/gcc-4.2.2:
* If you have issues with packages unable to locate libstdc++.la,
* then try running 'fix_libtool_files.sh' on the old gcc versions.
* Regenerating GNU info directory index...
* Processed 7 info files.
sys-devel/gcc-4.2.2
sed: can't read /etc/env.d/gcc/config-i686-pc-linux-gnu: No such file or directory
./emwrap.sh: line 630: [: : integer expression expected
./emwrap.sh: line 632: [: : integer expression expected
BEFORE selecting new GCC:
[1] x86_64-pc-linux-gnu-4.1.2
[2] x86_64-pc-linux-gnu-4.2.1
[3] x86_64-pc-linux-gnu-4.2.2 *
**********************************************************************
I'm going to execute: # gcc-config x86_64-pc-linux-gnu-
**********************************************************************
Kill me NOW, or forever hold your peace!
(sleeping for 15 seconds...)
15 14 13 12 11 10 9 8 7 6 5 4 3 2 1
(continuing...)
* gcc-config: Could not locate 'x86_64-pc-linux-gnu-' in '/etc/env.d/gcc/' !
ERROR: : gcc-config x86_64-pc-linux-gnu- failed!
anyone else having problems updating to gcc 4.2.2?#emwrap.sh -V
emwrap.sh Version-4.0.8 with gcc-config-r2
A wrapper for emerge so you can break emerges into chunks, TC, system, world
or world - system
Mon Sep 17 20:53:30 PDT 2007

Code: Select all
sh ./gcc-config.sh gcc-4.2.1Code: Select all
sh ./gcc-conf.sh gcc-4.1.2
gcc-4.1.2
in config
4.1.2 TEST TEST TesT CHOST
gcc_current 4.2.0
gcc_current_no_dot 420
gcc_version_number_no_dot 412
BEFORE selecting new GCC:
[1] i686-pc-linux-gnu-4.1.2
[2] i686-pc-linux-gnu-4.2.0 *
**********************************************************************
I'm going to execute: # gcc-config i686-pc-linux-gnu-4.2.0
**********************************************************************
Kill me NOW, or forever hold your peace!
(sleeping for 2 seconds...)
1 2
(continuing...)
* gcc-config: Must be root.
ERROR: gcc-config i686-pc-linux-gnu-4.2.0 failed!Code: Select all
#!/bin/bash
# Test scritp for doing a gcc-config selection
source /etc/make.conf
if echo "$1" | grep "gcc-[0-9].*" ; then
# Adding maguire's gcc_config setup here
gcc_current=""
gcc_new_version_number=""
gcc_for_gcc_config=""
gcc_current_no_dot=""
gcc_version_number_no_dot=""
###############################################################
# Let games begin
###############################################################
#10-14-07 switched to CHOST usage so that i686, x86_64 and whaterver else.
if [[ -e "/etc/env.d/gcc/config" ]] ;then
echo "in config"
gcc_current=$(sed 's/^.*\([0-9]\.[0-9]\.[0-9]\)/\1/' /etc/env.d/gcc/config)
elif [ -e "/etc/env.d/gcc/config-"${CHOST}"" ] ; then
echo "in chost"
gcc_current=$(sed 's/^.*\([0-9]\.[0-9]\.[0-9]\)/\1/' /etc/env.d/gcc/config-"${CHOST}")
fi
# $1 is the gcc-version that the function build-count, passes to function gcc-conf
gcc_new_version_number=$( echo "$1" |sed 's/^.*\([0-9]\.[0-9]\.[0-9]\).*/\1/')
echo "${gcc_new_version_number} TEST CHOST"
echo "gcc_current "$gcc_current""
# For selecting the highest version gcc
if echo "$1" | grep -Eq "gcc-[0-9].*" ; then
# stripping out the dots 4.1.1 ==> 411
gcc_current_no_dot=$(echo ${gcc_current} | sed 's/\.//g')
gcc_version_number_no_dot=$(echo ${gcc_new_version_number} | sed 's/\.//g')
echo "gcc_current_no_dot "$gcc_current_no_dot""
echo "gcc_version_number_no_dot "$gcc_version_number_no_dot""
# Now finding which no_dot is larger
if [ "${gcc_current_no_dot}" -eq "${gcc_version_number_no_dot}" ] ; then
high_gcc="${gcc_new_version_number}"
elif [ "${gcc_current_no_dot}" -lt "${gcc_version_number_no_dot}" ] ; then
high_gcc="${gcc_new_version_number}"
else
high_gcc="${gcc_current}"
fi
gcc_for_gcc_config="${CHOST}-${high_gcc}"
# Select the new GCC version for future compilations:
echo
echo "${Rd}BEFORE selecting new GCC:${CY}"
gcc-config -l
echo
# Changed output of pretend to be more readable.Sun May 28 23:20:39 new time stamp.
# For testing. use the first "if"
#if [ "$prtnd" != "p" ] ; then
if [ "$prtnd" == "p" ] ; then
echo "${BL}**********************************************************************${nc}"
echo
echo "${Yl} I would do:${CY} # gcc-config -f ${gcc_for_gcc_config}${nc}"
echo
echo "${BL}**********************************************************************${nc}"
echo
else
echo "${BL}**********************************************************************${nc}"
echo "${Yl} I'm going to execute: # gcc-config ${gcc_for_gcc_config}${nc}"
echo "${BL}**********************************************************************${nc}"
echo "${Yl} Kill me NOW, or forever hold your peace!${nc}"
echo "${Yl} (sleeping for 2 seconds...)${nc}"
for loop_counter in 1 2 ;do
echo -n "$loop_counter "
sleep 1
done
echo
echo "${Rd}(continuing...)${nc}"
gcc-config -f "$gcc_for_gcc_config" \
|| {
return_code=$?
echo "${RD}ERROR:${nc} ${Rd}gcc-config $gcc_for_gcc_config failed!${nc}" >&2
exit $return_code
}
echo
echo "${RD}AFTER selecting new GCC:${nc}"
gcc-config -l
echo
echo "${Yl}Now sourcing /etc/profile${nc}"
source /etc/profile
echo
fi
fi
fi
opps forgot to post my results from saturday....bMd wrote: still getting the errorsed: can't read /etc/env.d/gcc/config-i686-pc-linux-gnu: No such file or directory
./emwrap.sh: line 630: [: : integer expression expected
./emwrap.sh: line 632: [: : integer expression expected
Code: Select all
gcc_current=$(sed 's/^.*\([0-9]\.[0-9]\.[0-9]\)/\1/' /etc/env.d/gcc/config-i686-pc-linux-gnu )Code: Select all
gcc_current=$(sed 's/^.*\([0-9]\.[0-9]\.[0-9]\)/\1/' /etc/env.d/gcc/config-x86_64-pc-linux-gnu )Code: Select all
gcc_current=$(sed 's/^.*\([0-9]\.[0-9]\.[0-9]\)/\1/' /etc/env.d/gcc/config-i686-pc-linux-gnu )Code: Select all
gcc_current=$(sed 's/^.*\([0-9]\.[0-9]\.[0-9]\)/\1/' /etc/env.d/gcc/config-${CHOST})
Code: Select all
# ./emwrap.sh-r3 -Spqt
Running emwrap.sh 4.0.8 with gcc-config-r3 Sun Oct 14 16:17:10 PDT 2007
If emwrap.sh is run and it detects a "failed' or "build" file
then it will offer to build them. You can ignor this by not doing
anything and what you wanted todo will start after automaticlly.
work_dir is
ToolChain updates found
linux-headers
======================================================
sys-kernel/linux-headers-2.6.22-r2
sys-libs/glibc-2.6.1
sys-devel/gcc-config-1.3.16
sys-devel/binutils-config-1.9-r4
sys-devel/binutils-2.18-r1
sys-devel/gcc-4.1.2
sys-libs/glibc-2.6.1
sys-devel/binutils-2.18-r1
sys-devel/gcc-4.1.2
1 of 9 build [ebuild R ] sys-kernel/linux-headers-2.6.22-r2
2 of 9 build [ebuild U ] sys-libs/glibc-2.6.1 [2.5-r4]
3 of 9 build [ebuild R ] sys-devel/gcc-config-1.3.16
4 of 9 build [ebuild R ] sys-devel/binutils-config-1.9-r4
5 of 9 build [ebuild U ] sys-devel/binutils-2.18-r1 [2.17-r1]
6 of 9 build [ebuild R ] sys-devel/gcc-4.1.2
sys-devel/gcc-4.1.2
sed: can't read /etc/env.d/gcc/config-i686-pc-linux-gnu: No such file or directory
./emwrap.sh-r3: line 604: [: : integer expression expected
./emwrap.sh-r3: line 606: [: : integer expression expected
BEFORE selecting new GCC:
[1] i686-pc-linux-gnu-4.1.2 *
**********************************************************************
I would do: # gcc-config -f i686-pc-linux-gnu-
**********************************************************************
7 of 9 build [ebuild U ] sys-libs/glibc-2.6.1 [2.5-r4]
8 of 9 build [ebuild U ] sys-devel/binutils-2.18-r1 [2.17-r1]
9 of 9 build [ebuild R ] sys-devel/gcc-4.1.2
sys-devel/gcc-4.1.2
sed: can't read /etc/env.d/gcc/config-i686-pc-linux-gnu: No such file or directory
./emwrap.sh-r3: line 604: [: : integer expression expected
./emwrap.sh-r3: line 606: [: : integer expression expected
BEFORE selecting new GCC:
[1] i686-pc-linux-gnu-4.1.2 *
**********************************************************************
I would do: # gcc-config -f i686-pc-linux-gnu-
**********************************************************************
End of ToolChain updateCode: Select all
mv emwrap.sh-r3 emwrap.shCode: Select all
emwrap.sh -V
emwrap.sh Version-4.0.8 with gcc-config-r3
A wrapper for emerge so you can break emerges into chunks, TC, system, world
or world - system
Sun Oct 14 16:17:10 PDT 2007
Code: Select all
# diff -u emwrap.sh-r3.org emwrap.sh-r3
--- emwrap.sh-r3.org 2007-10-14 23:24:26.000000000 +0000
+++ emwrap.sh-r3 2007-10-14 23:42:26.000000000 +0000
@@ -591,7 +591,7 @@
# Let games begin
###############################################################
#10-14-07 switched to CHOST usage so that i686, x86_64 and whaterver else is taken care of.
- gcc_current=$(sed 's/^.*\([0-9]\.[0-9]\.[0-9]\)/\1/' /etc/env.d/gcc/config-"${CHOST}")
+ gcc_current=$(sed 's/^.*\([0-9]\.[0-9]\.[0-9]\)/\1/' /etc/env.d/gcc/config)
# $1 is the "gcc-version" that the function build-count, passes to function gcc_config
gcc_new_version_number=$( echo "$1" |sed 's/^.*\([0-9]\.[0-9]\.[0-9]\).*/\1/')
## echo "${gcc_new_version_number} TEST TEST TesT CHOST"

Code: Select all
$ emerge -p --info
Portage 2.1.3.9 (default-linux/x86/2007.0/desktop, gcc-4.1.2, glibc-2.5-r4, 2.6.22-gentoo-r5 i686)
=================================================================
System uname: 2.6.22-gentoo-r5 i686 Intel(R) Pentium(R) 4 CPU 3.00GHz
Timestamp of tree: Sun, 14 Oct 2007 21:30:01 +0000
app-shells/bash: 3.2_p17
dev-java/java-config: 1.3.7, 2.0.33-r1
dev-lang/python: 2.4.4-r5
dev-python/pycrypto: 2.0.1-r6
sys-apps/baselayout: 1.12.9-r2
sys-apps/sandbox: 1.2.17
sys-devel/autoconf: 2.13, 2.61-r1
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-r1
sys-devel/gcc-config: 1.3.16
sys-devel/libtool: 1.5.24
virtual/os-headers: 2.6.22-r2
ACCEPT_KEYWORDS="x86"
CBUILD="i686-pc-linux-gnu"
CFLAGS="-march=pentium4 -O2 -pipe -fomit-frame-pointer -mfpmath=sse"
CHOST="i686-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/udev/rules.d"
CXXFLAGS="-march=pentium4 -O2 -pipe -fomit-frame-pointer -mfpmath=sse"
DISTDIR="/usr/portage/distfiles"
EMERGE_DEFAULT_OPTS="--with-bdeps y"
FEATURES="distlocks metadata-transfer sandbox sfperms strict unmerge-orphans userfetch"
GENTOO_MIRRORS="http://distfiles.gentoo.org http://distro.ibiblio.org/pub/linux/distributions/gentoo"
MAKEOPTS="-j3"
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 /usr/portage/local/layman/sunrise"
SYNC="rsync://rsync.gentoo.org/gentoo-portage"
USE="X a52 aac aalib acpi alsa arts audiofile berkdb bitmap-fonts bzip2 cairo caps cdparanoia cdr cjk cpudetection cracklib crypt css cups dbus dga directfb dri dvd dvdr dvdread encode exif expat fam fbcon ffmpeg flac gcj ggi gif glibc-omitfp gmp gphoto2 gpm gstreamer hal iconv idea imagemagick imap imlib ipv6 javascript jbig joystick jpeg kde lcms libcaca libwww live lm_sensors mad matroska mbox memlimit midi mmx mmxext mng mp3 mpeg mudflap mysql nas ncurses network nls no-old-linux nodrm nptl nptlonly ogg opengl openmp oscar pcre pdf perl png qt3 quicktime readline real rtc samba scanner sdl silc smtp sndfile speex spell sse sse2 ssl stream svg sysfs tcpd theora threads threadsafe tiff timidity truetype truetype-fonts type1-fonts unicode usb userlocales utf8 vcd vorbis wideband win32codecs x86 xinerama xml xorg xv xvid yahoo zlib zrtp" 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" ELIBC="glibc" INPUT_DEVICES="keyboard mouse" KERNEL="linux" LINGUAS="en ru" USERLAND="GNU" VIDEO_CARDS="mga radeon"
Unset: CTARGET, INSTALL_MASK, LC_ALL, LDFLAGS, PORTAGE_COMPRESS, PORTAGE_COMPRESS_FLAGS, PORTAGE_RSYNC_EXTRA_OPTS
I have one.StifflerStealth wrote:Removing the -${CHOST} is not an option either. :P There is not "config" file.
Code: Select all
$ ls -al /etc/env.d/gcc/
total 20
drwxr-xr-x 2 root root 4096 2007-07-16 05:49:52 ./
drwxr-xr-x 5 root root 4096 2007-10-12 23:43:41 ../
-rw-r--r-- 1 root root 32 2007-07-16 08:40:14 config
-rw-r--r-- 1 root root 327 2007-07-16 05:49:51 i686-pc-linux-gnu-4.1.2