[arch-general] Any way to revert chroot to gcc46?
Guys, Is there any way to revert my chroot for building back to gcc46 immediately prior to this last gcc47 update? Obvious reasons - bug fixes required due to new gcc47 C11 & C11++ extension implementation, etc..., but I would like to continue building until the bugs are fixed. Is there a reasonable way to do that absent having to set up and point the chroot pacman.conf at a hand-built repo with just the gcc46 files in it? -- David C. Rankin, J.D.,P.E.
On 04/05/2012 03:36 PM, David C. Rankin wrote:
Guys,
Is there any way to revert my chroot for building back to gcc46 immediately prior to this last gcc47 update? Obvious reasons - bug fixes required due to new gcc47 C11 & C11++ extension implementation, etc..., but I would like to continue building until the bugs are fixed. Is there a reasonable way to do that absent having to set up and point the chroot pacman.conf at a hand-built repo with just the gcc46 files in it?
copy the gcc binary/pkgbuilt files to <chroot>/root/repo repo-add gcc<whatever>* chroot <chroot>/root pacman -S gcc<whatever> exit
On 04/05/2012 03:43 PM, Baho Utot wrote:
copy the gcc binary/pkgbuilt files to <chroot>/root/repo
repo-add gcc<whatever>*
chroot <chroot>/root
pacman -S gcc<whatever>
exit
Thanks Baho, I'll have to play with it a bit. I don't really see how that fits in with the mkarchroot setup (probably does, I just don't see it). The build on gcc 4.7 is coming along. Strangely, a bunch of the errors are during the "package()" part of the build with libtool "relink:" errors like: libtool: relink: g++ -fPIC -DPIC -shared -nostdlib /usr/lib/gcc/x86_64-unknown-linux-gnu/4.7.0/../../../../lib/crti.o /usr/lib/gcc/x86_64-unknown-linux-gnu/4.7.0/crtbeginS.o .libs/gwenview_dummy.o -Wl,-rpath -Wl,/opt/trinity/lib -Wl,-rpath -Wl,/opt/tqt3/lib -L/build/src/gwenview/src/gvcore/.libs -L/opt/trinity/lib -L/opt/tqt3/lib -L/usr/lib/mysql -L/usr/X11R6/lib64 -L/build/pkg/opt/trinity/lib -ltdeinit_gwenview -L/usr/lib -L/usr/lib/gcc/x86_64-unknown-linux-gnu/4.7.0/../../../../lib -lgwenviewcore -ltdeprint -lkmediaplayer -ljpeg -lexiv2 -lkipi -lkio -ltdeui -ltdecore -L/build/pkg/usr/lib -lkutils -L/build/pkg/opt/tqt3/lib -ltqt-mt -lpq -lmysqlclient -lXrender -lXrandr -lXcursor -lXinerama -lXft -lfreetype -lfontconfig -ldl -lpng -lz -lXext -lX11 -lSM -lICE -ltqt -lpthread -L/usr/lib/gcc/x86_64-unknown-linux-gnu/4.7.0 -L/lib/../lib -L/usr/lib/../lib -L/usr/lib/gcc/x86_64-unknown-linux-gnu/4.7.0/../../.. -lstdc++ -lm -lc -lgcc_s /usr/lib/gcc/x86_64-unknown-linux-gnu/4.7.0/crtendS.o /usr/lib/gcc/x86_64-unknown-linux-gnu/4.7.0/../../../../lib/crtn.o -O2 -march=x86-64 -mtune=generic -O2 -Wl,--no-undefined -Wl,--allow-shlib-undefined -Wl,-O1 -Wl,--sort-common -Wl,--as-needed -Wl,-z -Wl,relro -Wl,--hash-style=gnu -Wl,-soname -Wl,gwenview.so -o .libs/gwenview.so /usr/bin/ld: cannot find -ltdeinit_gwenview collect2: error: ld returned 1 exit status libtool: install: error: relink `gwenview.la' with the above command before installing it make[3]: *** [install-tdeinitLTLIBRARIES] Error 1 Still trying to figure out why we are 'relinking' during 'package()'... -- David C. Rankin, J.D.,P.E.
On 04/05/2012 03:43 PM, Baho Utot wrote:
On 04/05/2012 03:36 PM, David C. Rankin wrote:
Guys,
Is there any way to revert my chroot for building back to gcc46 immediately prior to this last gcc47 update? Obvious reasons - bug fixes required due to new gcc47 C11 & C11++ extension implementation, etc..., but I would like to continue building until the bugs are fixed. Is there a reasonable way to do that absent having to set up and point the chroot pacman.conf at a hand-built repo with just the gcc46 files in it?
copy the gcc binary/pkgbuilt files to <chroot>/root/repo
repo-add gcc<whatever>*
chroot <chroot>/root
pacman -S gcc<whatever>
exit
Doesn't that require: pacman -U gcc...xz gcc-libs...xz etc..? With pacman -S, it still tries to pull in gcc 4.7 from the normal repos. -- David C. Rankin, J.D.,P.E.
On 04/13/2012 07:40 AM, David C. Rankin wrote:
On 04/05/2012 03:43 PM, Baho Utot wrote:
On 04/05/2012 03:36 PM, David C. Rankin wrote:
Guys,
Is there any way to revert my chroot for building back to gcc46 immediately prior to this last gcc47 update? Obvious reasons - bug fixes required due to new gcc47 C11 & C11++ extension implementation, etc..., but I would like to continue building until the bugs are fixed. Is there a reasonable way to do that absent having to set up and point the chroot pacman.conf at a hand-built repo with just the gcc46 files in it?
copy the gcc binary/pkgbuilt files to <chroot>/root/repo
repo-add gcc<whatever>*
chroot <chroot>/root
pacman -S gcc<whatever>
exit
Doesn't that require:
pacman -U gcc...xz gcc-libs...xz etc..?
With pacman -S, it still tries to pull in gcc 4.7 from the normal repos.
Hmm.. That failed. created a new chroot 'ch46' created a new repo in ch46 and copied the needed gcc46 files and libtool, then tried to use 'pacman -U': pacman -U gcc-4.6.3-1-x86_64.pkg.tar.xz gcc-fortran-4.6.3-1-x86_64.pkg.tar.xz gcc-go-4.6.3-1-x86_64.pkg.tar.xz gcc-libs-4.6.3-1-x86_64.pkg.tar.xz gcc-objc-4.6.3-1-x86_64.pkg.tar.xz libtool-2.4.2-4-x86_64.pkg.tar.xz warning: downgrading package gcc (4.7.0-4 => 4.6.3-1) warning: downgrading package gcc-libs (4.7.0-4 => 4.6.3-1) warning: downgrading package libtool (2.4.2-5 => 2.4.2-4) resolving dependencies... looking for inter-conflicts... Targets (6): gcc-4.6.3-1 gcc-fortran-4.6.3-1 gcc-go-4.6.3-1 gcc-libs-4.6.3-1 gcc-objc-4.6.3-1 libtool-2.4.2-4 Total Installed Size: 146.32 MiB Net Upgrade Size: 69.35 MiB Proceed with installation? [Y/n] (6/6) checking package integrity [#######################################] 100% (6/6) loading package files [#######################################] 100% (6/6) checking for file conflicts [#######################################] 100% error: could not determine filesystem mount points error: not enough free disk space error: failed to commit transaction (unexpected error) Errors occurred, no packages were upgraded. Huh? So how do you set up a chroot with gcc46? -- David C. Rankin, J.D.,P.E.
On 04/13/2012 08:51 AM, David C. Rankin wrote:
On 04/13/2012 07:40 AM, David C. Rankin wrote:
On 04/05/2012 03:43 PM, Baho Utot wrote:
On 04/05/2012 03:36 PM, David C. Rankin wrote:
Guys,
Is there any way to revert my chroot for building back to gcc46 immediately prior to this last gcc47 update? Obvious reasons - bug fixes required due to new gcc47 C11& C11++ extension implementation, etc..., but I would like to continue building until the bugs are fixed. Is there a reasonable way to do that absent having to set up and point the chroot pacman.conf at a hand-built repo with just the gcc46 files in it?
copy the gcc binary/pkgbuilt files to<chroot>/root/repo
repo-add gcc<whatever>*
chroot<chroot>/root
pacman -S gcc<whatever>
exit
Doesn't that require:
pacman -U gcc...xz gcc-libs...xz etc..?
With pacman -S, it still tries to pull in gcc 4.7 from the normal repos.
Hmm..
That failed.
created a new chroot 'ch46'
created a new repo in ch46 and copied the needed gcc46 files and libtool, then tried to use 'pacman -U':
pacman -U gcc-4.6.3-1-x86_64.pkg.tar.xz gcc-fortran-4.6.3-1-x86_64.pkg.tar.xz gcc-go-4.6.3-1-x86_64.pkg.tar.xz gcc-libs-4.6.3-1-x86_64.pkg.tar.xz gcc-objc-4.6.3-1-x86_64.pkg.tar.xz libtool-2.4.2-4-x86_64.pkg.tar.xz
warning: downgrading package gcc (4.7.0-4 => 4.6.3-1) warning: downgrading package gcc-libs (4.7.0-4 => 4.6.3-1) warning: downgrading package libtool (2.4.2-5 => 2.4.2-4) resolving dependencies... looking for inter-conflicts...
Targets (6): gcc-4.6.3-1 gcc-fortran-4.6.3-1 gcc-go-4.6.3-1 gcc-libs-4.6.3-1 gcc-objc-4.6.3-1 libtool-2.4.2-4
Total Installed Size: 146.32 MiB Net Upgrade Size: 69.35 MiB
Proceed with installation? [Y/n] (6/6) checking package integrity [#######################################] 100% (6/6) loading package files [#######################################] 100% (6/6) checking for file conflicts [#######################################] 100% error: could not determine filesystem mount points error: not enough free disk space error: failed to commit transaction (unexpected error) Errors occurred, no packages were upgraded.
Huh? So how do you set up a chroot with gcc46?
mount -vt devpts devpts <chroot>/dev/pts mount -vt tmpfs shm <chroot>/dev/shm mount -vt proc proc <chroot>/proc mount -vt sysfs sysfs <chroot>/sys
On 04/13/2012 06:09 PM, Baho Utot wrote:
Huh? So how do you set up a chroot with gcc46?
mount -vt devpts devpts <chroot>/dev/pts mount -vt tmpfs shm <chroot>/dev/shm mount -vt proc proc <chroot>/proc mount -vt sysfs sysfs <chroot>/sys
Thanks Baho, I actually got that last night and updated the chroot for gcc46. All is working and building fine. Building a large project is much less a dice roll without the '-u' in sudo mkarchroot -u $CHROOT/root... -- David C. Rankin, J.D.,P.E.
participants (2)
-
Baho Utot
-
David C. Rankin