View previous topic :: View next topic |
Author |
Message |
cheater1034 Veteran
Joined: 09 Sep 2004 Posts: 1558
|
Posted: Tue Mar 14, 2006 3:55 pm Post subject: |
|
|
can't seem to use ldflags with the -r2 ebuild, though I think it is the same as -r1 just with more commented patches?
I will take a look later, I will also look at the snapshot ebuild for you. (Maybe you need to rig it to be 4.1.1 instead of 4.1.0, because 4.1.0 was already released?) _________________ IRC!: #zen-sources on irc.rizon.net
zen-kernel.org
--
Lost in android development land. |
|
Back to top |
|
|
metalshark Apprentice
Joined: 07 Jan 2006 Posts: 197 Location: Bournemouth, England
|
Posted: Tue Mar 14, 2006 4:11 pm Post subject: |
|
|
cheater1034 wrote: | can't seem to use ldflags with the -r2 ebuild, though I think it is the same as -r1 just with more commented patches?
I will take a look later, I will also look at the snapshot ebuild for you. (Maybe you need to rig it to be 4.1.1 instead of 4.1.0, because 4.1.0 was already released?) |
Ok - am really lost with the snapshot ebuild finer points - all I know is I have it here on emerge -e world'ed machines running fine. So required fine tuning would be a great help (I am just post symlinking/emerge -e system/world'ing). SSP complains about the length of long and libstdc++ stuff on 64 bit with the snapshots. The -r2 is the same as the -r1 with more patches applied, the combination of patches has different effects, the latest combination provided breakage free operation for some devs writing in COBAL (at one of our clients branches), however I have had no probs with -r1. The -r2 was just for the COBAL devs really but I have rolled it out for all. _________________ Gentoo's Portage: Any ideas for reform? |
|
Back to top |
|
|
metalshark Apprentice
Joined: 07 Jan 2006 Posts: 197 Location: Bournemouth, England
|
Posted: Tue Mar 14, 2006 4:14 pm Post subject: The script |
|
|
Not exactly awe inspiring but the script looks like this so far:
Code: | gcc-config i686-pc-linux-gnu-${1}
for oldgcc in `ls -1 /usr/lib/gcc/*`; do
sh /usr/portage/sys-devel/gcc/files/fix_libtool_files.sh $oldgcc
done |
and somehow I think it will stay like this as I have to write another JDK 1.5 ebuild (wish the phone would stop ringing too). _________________ Gentoo's Portage: Any ideas for reform? |
|
Back to top |
|
|
taylorpendley n00b
Joined: 23 Jan 2006 Posts: 41
|
Posted: Wed Mar 15, 2006 9:57 pm Post subject: |
|
|
that fixtool thing did not work for me. I just copied all the files from /usr/lib/gcc/x86_64-pc-linux-gnu/4.2.0-20060304/ to /usr/lib/gcc/x86_64-pc-linux-gnu/4.2.0/ now i dont get the "C Compiler" error anymore. |
|
Back to top |
|
|
metalshark Apprentice
Joined: 07 Jan 2006 Posts: 197 Location: Bournemouth, England
|
Posted: Thu Mar 16, 2006 1:44 am Post subject: Have been busy |
|
|
Sorry guys thought I'd have time to fix that issue today (src_install just needs modded) but I got rushed off to make bcprov work on jdk15, add an ebuild (and working compile) of hymn and now need to fix the shadow/pam-login issue on several boxes (what's with that and any idea which one I really need co's I sure need pam).
Overlays for hymn and bcprov are up on the usual page for those who are interested btw. Quickly learning c/c++ - but the Pointer's, Makefile's and Configure's are all nasty - however unless someone beats me to it expect the gcc package management fixed real soon (hopefully tomorrow if I fix shadow/pam-login soon enough). _________________ Gentoo's Portage: Any ideas for reform? |
|
Back to top |
|
|
Gergan Penkov Veteran
Joined: 17 Jul 2004 Posts: 1464 Location: das kleinste Kuhdorf Deutschlands :)
|
Posted: Thu Mar 16, 2006 2:36 am Post subject: |
|
|
Quote: | and now need to fix the shadow/pam-login issue on several boxes (what's with that and any idea which one I really need co's I sure need pam). |
you have most probably somewhere in your overlays some package that pulls pam_login or shadow (I forgot, which one is needed) directly, the thing is now virtualized and provided from one of the both look in the changelogs - at least that was my problem - emerge -uDpvt world could give more info. _________________ "I knew when an angel whispered into my ear,
You gotta get him away, yeah
Hey little bitch!
Be glad you finally walked away or you may have not lived another day."
Godsmack |
|
Back to top |
|
|
metalshark Apprentice
Joined: 07 Jan 2006 Posts: 197 Location: Bournemouth, England
|
Posted: Thu Mar 16, 2006 2:46 am Post subject: |
|
|
Well pam-login wasn't needed by anything yet stuff in official portage wanted shadow and I got that nice 10 seconds before you wreck you machine thing when I tried to remove on a test box. So I guess shadow it is - wouldn't half expect pam-login to be hardmasked (and faded out) soon smpeg style. Just need to run ALL the pam penetration tests again to check pam isn't broken. Did however have to update baselayout and shadow to fix. Sorry to detract it's just such a frigging nightmare and I wish they had a QA or two at the bottom of the ebuild to explain the situation. Not that I complain with half arsed ebuilds at the moment _________________ Gentoo's Portage: Any ideas for reform? |
|
Back to top |
|
|
avoid n00b
Joined: 03 Jun 2004 Posts: 35 Location: Montreal, CA
|
Posted: Mon Mar 27, 2006 1:32 am Post subject: |
|
|
Hello. Something strage happened here. I'm using metalshark's gcc overlay and I've just finished emerging gcc sys-devel/gcc-4.1.0-r2 here. The configure/build/installation process works flawlessy, the thing is that when I try to list my gcc profiles via the 'gcc-config -l' command, I get the following:
Code: |
lfslivecd init.d # gcc-config -l
[1] i686-pc-linux-gnu-3.4.4 *
[2] i686-pc-linux-gnu-3.4.4-hardened
[3] i686-pc-linux-gnu-3.4.4-hardenednopie
[4] i686-pc-linux-gnu-3.4.4-hardenednopiessp
[5] i686-pc-linux-gnu-3.4.4-hardenednossp
[6] i686-pc-linux-gnu-4.1.0
lfslivecd init.d #
|
As you might have noticed, there are 5 (five) gcc-3.4.4 profiles and only one gcc-4.1.0 profile. Is this normal behaviour? Is it my fault? Is it because I use the latest stable gcc-config package? should I also use unstable gcc-config if I'm using this overlay?
AFAIK 2 3 4 and 5 are only hardened profiles of gcc, which I never use. So basically I don't need them. But I want to make sure everything is fine here. I'm waiting for your replies. thanks is advance. _________________ Life begins at 200 Km/h |
|
Back to top |
|
|
seren Guru
Joined: 27 Aug 2005 Posts: 448 Location: Wisconsin
|
Posted: Mon Mar 27, 2006 6:04 am Post subject: |
|
|
thats normal, you didnt build a hardned gcc 4.1.0 so switch to the gcc 4.1.0 profile Code: | gcc-config 6; env-update; source /etc/profile | if that went well run Code: | emerge glibc binutils libtool libstdc++-v3 gcc | then your tool chain should be built properly now you can run portage should ask if you want to remove gcc 3.4.4 which you do, so go ahead and remove it, then finish up with a a word of advice after you switch your profile you may want to add/remove some CFLAGS and CXXFLAGS from your make.conf. hope this helps |
|
Back to top |
|
|
nxsty Veteran
Joined: 23 Jun 2004 Posts: 1556 Location: .se
|
Posted: Mon Mar 27, 2006 9:00 am Post subject: |
|
|
@metalshark
Have you found a solution to the problem with gcc 4.1 snapshots installing files in the wrong dirs? Copying over files and symlinking doesn't feel like a good solution. I got this advise from dirtyepic but that made the compiler ICE instead.
EDIT:
Bug #127724 |
|
Back to top |
|
|
metalshark Apprentice
Joined: 07 Jan 2006 Posts: 197 Location: Bournemouth, England
|
Posted: Mon Mar 27, 2006 2:51 pm Post subject: |
|
|
@nxsty: That works great - thanks - have been going through LFS trying to get some UCLIBC/USE="" stuff into overlays/portage and learn about package handling some more. GCC-4.2 hasn't produced any problems yet beyond the handling of the files - your suggestion works though. _________________ Gentoo's Portage: Any ideas for reform? |
|
Back to top |
|
|
avoid n00b
Joined: 03 Jun 2004 Posts: 35 Location: Montreal, CA
|
Posted: Mon Mar 27, 2006 5:03 pm Post subject: |
|
|
Thanks seren. I've managed to get a really bleeding edge toolchain but my system is all x86
Everything compiled fine, except for coreutils-5.2.1-r7 which failed. I've tried to see if the latest unstable version compiles and it did. I'm happy with it right now.
Cheers. _________________ Life begins at 200 Km/h |
|
Back to top |
|
|
seren Guru
Joined: 27 Aug 2005 Posts: 448 Location: Wisconsin
|
Posted: Tue Apr 04, 2006 5:58 am Post subject: |
|
|
i was wondering if any progress was being made on the shapshots, or SSP. thanks
seren |
|
Back to top |
|
|
nxsty Veteran
Joined: 23 Jun 2004 Posts: 1556 Location: .se
|
Posted: Tue Apr 04, 2006 11:13 am Post subject: |
|
|
seren wrote: | i was wondering if any progress was being made on the shapshots, or SSP. thanks
seren |
SSP is working nicely. I just migrated my server running harened to gcc 4.1. I pulled it from svn and created my own ebuild based on cthepan's with some fixes from the gcc bugzilla.
Code: | Portage 2.0.54 (hardened/x86/2.6, gcc-4.1.1-pre20060328, glibc-2.4-r2, 2.6.16-ck3 i686)
=================================================================
System uname: 2.6.16-ck3 i686 Pentium III (Katmai)
Gentoo Base System version 1.6.14
dev-lang/python: 2.4.2
sys-apps/sandbox: 1.2.12
sys-devel/autoconf: 2.13, 2.59-r7
sys-devel/automake: 1.4_p6, 1.5, 1.6.3, 1.7.9-r1, 1.8.5-r3, 1.9.6-r1
sys-devel/binutils: 2.16.91.0.7
sys-devel/libtool: 1.5.22
virtual/os-headers: 2.6.16
ACCEPT_KEYWORDS="x86"
AUTOCLEAN="yes"
CBUILD="i686-pc-linux-gnu"
CFLAGS="-O2 -march=pentium3 -pipe -fomit-frame-pointer -D_FORTIFY_SOURCE=2"
CHOST="i686-pc-linux-gnu"
CONFIG_PROTECT="/etc /usr/kde/2/share/config /usr/kde/3/share/config /usr/share/config /var/qmail/control"
CONFIG_PROTECT_MASK="/etc/eselect/compiler /etc/gconf /etc/terminfo /etc/env.d"
CXXFLAGS="-O2 -march=pentium3 -pipe -fomit-frame-pointer -D_FORTIFY_SOURCE=2"
DISTDIR="/usr/portage/distfiles"
FEATURES="autoconfig distlocks sandbox sfperms strict"
GENTOO_MIRRORS="http://localhost/ ftp://ftp.sunet.se/pub/os/Linux/distributions/gentoo/ ftp://mirror.nutsmaas.nl/gentoo/ http://mirror.usu.edu/mirrors/gentoo/ ftp://ftp.belnet.be/mirror/rsync.gentoo.org/gentoo/"
LANG="sv_SE.UTF-8"
LC_ALL="sv_SE.UTF-8"
LINGUAS="sv"
MAKEOPTS="-j2"
PKGDIR="/usr/portage//packages/x86/"
PORTAGE_TMPDIR="/var/tmp"
PORTDIR="/usr/portage/"
PORTDIR_OVERLAY="/usr/local/portage"
SYNC="rsync://rsync.gentoo.org/gentoo-portage"
USE="aalib acpi alsa apache2 apm audiofile avi berkdb bzip2 cdb ck-server crypt cups dlloader erandom expat f77 fbcon fortran gdbm gif glibc-omitfp gmp gpm hardened imagemagick ipv6 ithreads jpeg libwww logrotate mad mhash mikmod mmx mmxext mng mpeg mysql ncurses nls nomalloccheck nptl nptlonly objc offensive ogg oggvorbis pam pcre pdflib perl pic png pnp print python quicktime readline recode samba sdl slang sse ssl svga tcpd threads tiff truetype-fonts type1-fonts udev unicode usb userlocales utf8 vorbis win32codecs x86 xml2 zlib video_cards_matrox linguas_sv userland_GNU kernel_linux elibc_glibc"
Unset: ASFLAGS, CTARGET, INSTALL_MASK, LDFLAGS |
Code: | snigel ~ # gcc-config -l
[1] i686-pc-linux-gnu-4.1.1-pre20060328 *
[2] i686-pc-linux-gnu-4.1.1-pre20060328-hardenednopie
[3] i686-pc-linux-gnu-4.1.1-pre20060328-hardenednopiessp
[4] i686-pc-linux-gnu-4.1.1-pre20060328-hardenednossp
[5] i686-pc-linux-gnu-4.1.1-pre20060328-vanilla |
|
|
Back to top |
|
|
taylorpendley n00b
Joined: 23 Jan 2006 Posts: 41
|
Posted: Tue Apr 04, 2006 12:55 pm Post subject: |
|
|
think we can get that gcc-4.1.1 ebuild nxsty?? |
|
Back to top |
|
|
seren Guru
Joined: 27 Aug 2005 Posts: 448 Location: Wisconsin
|
Posted: Tue Apr 04, 2006 11:27 pm Post subject: |
|
|
looks tasty |
|
Back to top |
|
|
seren Guru
Joined: 27 Aug 2005 Posts: 448 Location: Wisconsin
|
Posted: Wed Apr 05, 2006 12:36 am Post subject: |
|
|
check Code: | http://enderandrew.com/nxsty/gcc-overlay.tar.bz2 |
its in their, idk if he is supporting use of it, and i hope he doesn't fry me for posting a link =| |
|
Back to top |
|
|
nxsty Veteran
Joined: 23 Jun 2004 Posts: 1556 Location: .se
|
Posted: Wed Apr 05, 2006 10:44 am Post subject: |
|
|
seren wrote: | check Code: | http://enderandrew.com/nxsty/gcc-overlay.tar.bz2 |
its in their, idk if he is supporting use of it, and i hope he doesn't fry me for posting a link =| |
Yes, that's it! I just updated it. It now has patches for gcc bugs #20297 #21764 #19238 #24879 #26643 #21581 #23111 #26565 #26667. But you'll have to create your own tarball using svn:
Code: | #!/bin/sh
SNAPSHOT="`date +%Y%m%d`"
svn co svn://gcc.gnu.org/svn/gcc/branches/gcc-4_1-branch gcc
mv gcc gcc-4.1.1-$SNAPSHOT
for i in `find gcc-4.1.1-$SNAPSHOT -name '.svn'`; do rm -rf $i; done
tar jcf gcc-4.1.1-$SNAPSHOT.tar.bz2 gcc-4.1.1-$SNAPSHOT |
Last edited by nxsty on Thu Apr 06, 2006 7:33 am; edited 1 time in total |
|
Back to top |
|
|
seren Guru
Joined: 27 Aug 2005 Posts: 448 Location: Wisconsin
|
Posted: Wed Apr 05, 2006 12:33 pm Post subject: |
|
|
nxsty you know what
YOU FUCKING ROCK! =) |
|
Back to top |
|
|
vipernicus Veteran
Joined: 17 Jan 2005 Posts: 1462 Location: Your College IT Dept.
|
|
Back to top |
|
|
nxsty Veteran
Joined: 23 Jun 2004 Posts: 1556 Location: .se
|
Posted: Wed Apr 05, 2006 5:46 pm Post subject: |
|
|
seren wrote: | nxsty you know what
YOU FUCKING ROCK! =) |
|
|
Back to top |
|
|
Tiger683 Veteran
Joined: 08 Jan 2005 Posts: 1347 Location: Heffner's House
|
Posted: Wed Apr 05, 2006 5:57 pm Post subject: |
|
|
nxsty wrote: | Code: | #!/bin/sh
SNAPSHOT="`date +%Y%m%e`"
svn co svn://gcc.gnu.org/svn/gcc/branches/gcc-4_1-branch gcc
mv gcc gcc-4.1.1-$SNAPSHOT
for i in `find gcc-4.1.1-$SNAPSHOT/| grep .svn`; do rm -rf $i; done
tar jcf gcc-4.1.1-$SNAPSHOT.tar.bz2 gcc-4.1.1-$SNAPSHOT |
|
is there a particular reason why you don't use
Code: | `find gcc-4.1.1-$SNAPSHOT -name '.svn'` | ?
it should be a little faster..... _________________ Retired gentoo user |
|
Back to top |
|
|
nxsty Veteran
Joined: 23 Jun 2004 Posts: 1556 Location: .se
|
Posted: Wed Apr 05, 2006 9:02 pm Post subject: |
|
|
Tiger683 wrote: | is there a particular reason why you don't use
Code: | `find gcc-4.1.1-$SNAPSHOT -name '.svn'` | ?
it should be a little faster..... |
No reason, that's just the way I'm used to. |
|
Back to top |
|
|
FireBurn Apprentice
Joined: 19 Sep 2004 Posts: 170 Location: Edinburgh, UK
|
Posted: Wed Apr 05, 2006 9:09 pm Post subject: |
|
|
Your also need to change the e in the date to d
Mike |
|
Back to top |
|
|
nxsty Veteran
Joined: 23 Jun 2004 Posts: 1556 Location: .se
|
Posted: Thu Apr 06, 2006 7:33 am Post subject: |
|
|
FireBurn wrote: | Your also need to change the e in the date to d
Mike |
Fixed it! I'm not sure why I got that wrong. |
|
Back to top |
|
|
|