Forums

Skip to content

Advanced search
  • Quick links
    • Unanswered topics
    • Active topics
    • Search
  • FAQ
  • Login
  • Register
  • Board index Assistance Unsupported Software
  • Search

Tweaked glibc 2.4 + 2.5 + snapshot ebuilds

This forum covers all Gentoo-related software not officially supported by Gentoo. Ebuilds/software posted here might harm the health and stability of your system(s), and are not supported by Gentoo developers. Bugs/errors caused by ebuilds from overlays.gentoo.org are covered by this forum, too.
Post Reply
Advanced search
754 posts
  • Page 8 of 31
    • Jump to page:
  • Previous
  • 1
  • …
  • 6
  • 7
  • 8
  • 9
  • 10
  • …
  • 31
  • Next
Author
Message
pwe
Guru
Guru
User avatar
Posts: 445
Joined: Sat Mar 12, 2005 11:00 am
Location: Polska aka Poland

  • Quote

Post by pwe » Sun Mar 12, 2006 3:13 pm

n0rbi666 wrote:Recompiled binutils and gcc with multislot flag - didn't help, still I have the same error :?
post your

Code: Select all

gcc-config -l
there is no empty MHz :)
Top
n0rbi666
l33t
l33t
User avatar
Posts: 707
Joined: Fri Mar 04, 2005 7:18 pm
Location: \Poland\Krakow

  • Quote

Post by n0rbi666 » Sun Mar 12, 2006 3:18 pm

Code: Select all

n0rbi ~ # gcc-config -l
 [1] i686-pc-linux-gnu-3.4.5
 [2] i686-pc-linux-gnu-3.4.5-hardened
 [3] i686-pc-linux-gnu-3.4.5-hardenednopie
 [4] i686-pc-linux-gnu-3.4.5-hardenednopiessp
 [5] i686-pc-linux-gnu-3.4.5-hardenednossp
 [6] i686-pc-linux-gnu-4.1.0 *
gcc-4.1.0 from portage
Top
SteveYin
Tux's lil' helper
Tux's lil' helper
Posts: 91
Joined: Wed Oct 20, 2004 8:48 pm
Contact:
Contact SteveYin
Website

  • Quote

Post by SteveYin » Sun Mar 12, 2006 4:44 pm

nxsty wrote:
SteveYin wrote:May I ask a stupid question?

If I want the the ld optimization flags, (like -Bdirect) and using binutils in the overlay, then the glibc overlay is a must have or should have?

Sorry for my poor english.

I mean do I must using the glibc in overlay in order to use the binutils in overlay?
You can either use my overlay or 2.3.6-r3 in portage, but then you have to modify the ebuild to not exclude the patches.
I got this, but I if I want to using glibc-2.4, seems these patches were not included in the portage, does this means, I must use the glibc-2.4 overlay?
Steve Yin
Top
pussi
l33t
l33t
Posts: 727
Joined: Sat May 08, 2004 9:28 am
Location: Finland

  • Quote

Post by pussi » Sun Mar 12, 2006 4:57 pm

Yes, or you can wait and hope that gentoo developers apply the patches for glibc-2.4 in portage.
Top
piwacet
Guru
Guru
Posts: 486
Joined: Thu Dec 30, 2004 1:27 am

  • Quote

Post by piwacet » Sun Mar 12, 2006 9:55 pm

Question: I'd like to try the glibc 2.4 and binutils overlays, with -bdirect. I'd like to put the ld flags in my make.conf to use them globally. If some packages break with these linker flags, is there a way to automatically filter them for specific packages only, something akin to modifying use flags for specific packages only with /etc/portage/package.use? Is there a file such as /etc/portage/package.ldflags where I could specify to omit a specific ld flag for a given package?

TIA
Top
nesl247
Veteran
Veteran
Posts: 1614
Joined: Tue Jun 15, 2004 7:21 pm
Location: Florida
Contact:
Contact nesl247
Website

  • Quote

Post by nesl247 » Sun Mar 12, 2006 10:09 pm

Code: Select all

case ${CATEGORY}/${PN} in
    "category/package-name")
        export LDFLAGS="<Your Flags for This Package Only>"
        ;;
esac
Top
piwacet
Guru
Guru
Posts: 486
Joined: Thu Dec 30, 2004 1:27 am

  • Quote

Post by piwacet » Sun Mar 12, 2006 10:50 pm

nesl247 wrote:

Code: Select all

case ${CATEGORY}/${PN} in
    "category/package-name")
        export LDFLAGS="<Your Flags for This Package Only>"
        ;;
esac
Thank you very much! And this will override the global ldflags from make.conf?

Curious, does Gentoo use any ldflags as default? Or do individual programs specify any ldflags themselves?
Top
nesl247
Veteran
Veteran
Posts: 1614
Joined: Tue Jun 15, 2004 7:21 pm
Location: Florida
Contact:
Contact nesl247
Website

  • Quote

Post by nesl247 » Sun Mar 12, 2006 10:58 pm

piwacet wrote:
nesl247 wrote:

Code: Select all

case ${CATEGORY}/${PN} in
    "category/package-name")
        export LDFLAGS="<Your Flags for This Package Only>"
        ;;
esac
Thank you very much! And this will override the global ldflags from make.conf?

Curious, does Gentoo use any ldflags as default? Or do individual programs specify any ldflags themselves?
Yes that will overwrite the global ldflags. If you want, you can even do cflags, cxxflags.. Anything that can be passed to portage via the command line. And yes gento uses some ldflags by default (unless I am mistaken). Some are --enable-new-dtags, and -z now (I think). Not positive on the ldflags, but pretty sure.
Top
pussi
l33t
l33t
Posts: 727
Joined: Sat May 08, 2004 9:28 am
Location: Finland

  • Quote

Post by pussi » Sun Mar 12, 2006 11:24 pm

nesl247 wrote:And yes gento uses some ldflags by default (unless I am mistaken). Some are --enable-new-dtags, and -z now (I think). Not positive on the ldflags, but pretty sure.
I'm not sure either, but I think it's -z combreloc instead of -z now which actually would make applications start slower.
Top
pussi
l33t
l33t
Posts: 727
Joined: Sat May 08, 2004 9:28 am
Location: Finland

  • Quote

Post by pussi » Mon Mar 13, 2006 12:02 am

I just noticed something in the ld man page:

Code: Select all

-z keyword
    The recognized keywords are:
    ...
    dynsort
        Sorts dynamic link sections,  to  reduce  cache  misses  during linking.

So shoud the correct form be "-Wl,-z dynsort" instead of "-Wl,-zdynsort", or are they both correct?
And is this disabling -z combreloc which I think either gentoo or ld uses by default or is it possible to use both options?
Top
nesl247
Veteran
Veteran
Posts: 1614
Joined: Tue Jun 15, 2004 7:21 pm
Location: Florida
Contact:
Contact nesl247
Website

  • Quote

Post by nesl247 » Mon Mar 13, 2006 12:23 am

I wonder this too. I hope it is the same thing because I would have to re-emerge world..
Top
rhill
Retired Dev
Retired Dev
User avatar
Posts: 1629
Joined: Fri Oct 22, 2004 9:58 am
Location: sk.ca

  • Quote

Post by rhill » Mon Mar 13, 2006 12:39 am

i thought it might be "-Wl,-z,dynsort"

:P
by design, by neglect
for a fact or just for effect
Top
nesl247
Veteran
Veteran
Posts: 1614
Joined: Tue Jun 15, 2004 7:21 pm
Location: Florida
Contact:
Contact nesl247
Website

  • Quote

Post by nesl247 » Mon Mar 13, 2006 12:44 am

Why would it be -z,dynsort.. The comma specifies a new flag..
Top
pussi
l33t
l33t
Posts: 727
Joined: Sat May 08, 2004 9:28 am
Location: Finland

  • Quote

Post by pussi » Mon Mar 13, 2006 1:04 am

All spaces must be replaced with commas so it must be "-Wl,-z,dynsort" so that compiler accepts it. Mere "-z dynsort" works in this case too.
Top
nesl247
Veteran
Veteran
Posts: 1614
Joined: Tue Jun 15, 2004 7:21 pm
Location: Florida
Contact:
Contact nesl247
Website

  • Quote

Post by nesl247 » Mon Mar 13, 2006 1:10 am

Howcome I hadn't seen any errors during a compile with "-zdynsort"?
Top
rhill
Retired Dev
Retired Dev
User avatar
Posts: 1629
Joined: Fri Oct 22, 2004 9:58 am
Location: sk.ca

  • Quote

Post by rhill » Mon Mar 13, 2006 2:51 am

i'm going off of the ways i've seen other -z flags work. from shadow for instance:

Code: Select all

/bin/sh ../libtool --tag=CC --mode=link x86_64-pc-linux-gnu-gcc  -O2 -march=nocona -fomit-frame-pointer -pipe -fno-ident  -Wl,-O1 -Wl,-z,now -o usermod  usermod.o ../libmisc/libmisc.a ../lib/libshadow.la -lpam -lpam_misc
and there's also

Code: Select all

x86_64-pc-linux-gnu-gcc -O2 -march=nocona -fomit-frame-pointer -pipe -fno-ident -Wl,-O1 -Wl,-z -Wl,now -o useradd useradd.o  ../libmisc/libmisc.a ../lib/.libs/libshadow.a -lcrypt -lpam -lpam_misc
so i guess -Wl,-z -Wl,dynsort should work too.

:?:

i didn't notice any differences between compiling a library with -Wl,-zdynsort and -Wl,-z,dynsort, at least looking at objdump and readelf output.
by design, by neglect
for a fact or just for effect
Top
Cinder6
l33t
l33t
User avatar
Posts: 767
Joined: Thu Aug 05, 2004 4:33 am
Location: California
Contact:
Contact Cinder6
Website

  • Quote

Post by Cinder6 » Mon Mar 13, 2006 4:27 am

Oh boy. I just installed the most current overlay, and emerge stopped working. Here is the error I get:

Code: Select all

Calculating dependencies... done!
Traceback (most recent call last):
  File "/usr/bin/emerge", line 3263, in ?
    if "resume" in portage.mtimedb and \
I am using portage-2.1_pre6-r1. It was working fine before I installed the new overlay. I have an old copy of glibc from a while ago (2.3.90.20060121); would it be possible just to simply un-tar it, or would bad things happen?

EDIT: It's fixed, as of portage-2.1_pre6-r2. See this bug: http://bugs.gentoo.org/show_bug.cgi?id=125993
Last edited by Cinder6 on Mon Mar 13, 2006 10:33 pm, edited 1 time in total.
Knowledge is power.
Power corrupts.
Study hard.
Be evil.

Ugly Overload
Top
PrakashP
Veteran
Veteran
User avatar
Posts: 1249
Joined: Mon Oct 27, 2003 4:10 pm
Location: C.C.A.A., Germania

  • Quote

Post by PrakashP » Mon Mar 13, 2006 8:27 am

BTW, the portage 2.4 glibc shows the performance problems, as well...
Top
piwacet
Guru
Guru
Posts: 486
Joined: Thu Dec 30, 2004 1:27 am

  • Quote

Post by piwacet » Mon Mar 13, 2006 10:52 am

PrakashP wrote:BTW, the portage 2.4 glibc shows the performance problems, as well...
Can you elaborate?
Top
PrakashP
Veteran
Veteran
User avatar
Posts: 1249
Joined: Mon Oct 27, 2003 4:10 pm
Location: C.C.A.A., Germania

  • Quote

Post by PrakashP » Mon Mar 13, 2006 10:57 am

see page 2 cont.
Top
n0rbi666
l33t
l33t
User avatar
Posts: 707
Joined: Fri Mar 04, 2005 7:18 pm
Location: \Poland\Krakow

  • Quote

Post by n0rbi666 » Tue Mar 14, 2006 10:45 pm

Arghh :?

Tried gcc-4.1.0 from overlay, downgrading gcc to 3.4.5, hundret of times i recompiled binutils and gcc, tried earlier version of binutils, glibc from portage - and still I get the same error :cry:

Code: Select all

checking for ld --version-script... no
*** WARNING: You should not compile GNU libc without versioning. Not using
*** versioning will introduce incompatibilities so that old binaries
*** will not run anymore.
*** For versioning you need recent binutils (binutils-2.8.1.0.23 or newer).
checking for .previous assembler directive... yes
checking for .protected and .hidden assembler directive... yes
checking whether __attribute__((visibility())) is supported... yes
checking for broken __attribute__((visibility()))... no
checking for broken __attribute__((alias()))... no
checking whether to put _rtld_local into .sdata section... no
checking for .preinit_array/.init_array/.fini_array support... no
configure: error: Need linker with .init_array/.fini_array support.

!!! ERROR: sys-libs/glibc-2.4 failed.
Call stack:
  ebuild.sh, line 1557:   Called dyn_compile
  ebuild.sh, line 966:   Called src_compile
  glibc-2.4.ebuild, line 1300:   Called toolchain-glibc_src_compile
  glibc-2.4.ebuild, line 290:   Called glibc_do_configure 'nptl'
What else should I recompile ?
Top
seren
Guru
Guru
User avatar
Posts: 448
Joined: Sat Aug 27, 2005 8:37 am
Location: Wisconsin

  • Quote

Post by seren » Tue Mar 14, 2006 11:52 pm

looks like your not using binutils thats required, try nxtsy's overlay on his mirror works great for me gcc 4.1.0-r2 from overlay.
Top
n0rbi666
l33t
l33t
User avatar
Posts: 707
Joined: Fri Mar 04, 2005 7:18 pm
Location: \Poland\Krakow

  • Quote

Post by n0rbi666 » Wed Mar 15, 2006 7:02 am

I'm using

Code: Select all

 sys-devel/binutils-2.16.91.0.6

Code: Select all

n0rbi ~ # binutils-config -l
 [1] i686-pc-linux-gnu-2.16.91.0.6 *
What overlay do you use for gcc ?
What packages are in toolkit ?
Top
Xake
Guru
Guru
User avatar
Posts: 588
Joined: Wed Feb 11, 2004 10:14 am
Location: Göteborg, the rainy part of scandinavia

  • Quote

Post by Xake » Wed Mar 15, 2006 7:16 am

n0rbi666 wrote:I'm using

Code: Select all

 sys-devel/binutils-2.16.91.0.6

Code: Select all

n0rbi ~ # binutils-config -l
 [1] i686-pc-linux-gnu-2.16.91.0.6 *
What overlay do you use for gcc ?
What packages are in toolkit ?
I remember having the same problem with the same version of binutils before reinstalltion becouse of other problems (was then using glibc2.4, biuntils-2.16.91.0.6, gcc-4.1). However have never the problem occured for me using latest ~x86 binutils in portage, gcc-3.4.x and glibc-2.4 (both portage and nxstys)...
Top
weedy
Apprentice
Apprentice
Posts: 247
Joined: Fri Jun 24, 2005 8:39 pm

  • Quote

Post by weedy » Wed Mar 15, 2006 12:08 pm

Any other tweaks i can make? :wink:

Portage 2.1_pre6-r2 (default-linux/x86/2006.0, gcc-4.1.0, glibc-2.4-r0, 2.6.15-gentoo-r7 i686)
=================================================================
System uname: 2.6.15-gentoo-r7 i686 Pentium III (Coppermine)
Gentoo Base System version 1.12.0_pre16
distcc 2.18.3 i686-pc-linux-gnu (protocols 1 and 2) (default port 3632) [disabled]
ccache version 2.4 [enabled]
dev-lang/python: 2.4.2-r1
sys-apps/sandbox: 1.2.17
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.1-r2, 2.16.91.0.4, 2.16.91.0.5, 2.16.91.0.6
sys-devel/libtool: 1.5.22
virtual/os-headers: 2.6.11-r3
ACCEPT_KEYWORDS="x86 ~x86"
AUTOCLEAN="yes"
CBUILD="i686-pc-linux-gnu"
CFLAGS="-march=pentium3 -O2 -fomit-frame-pointer -pipe"
CHOST="i686-pc-linux-gnu"
CONFIG_PROTECT="/etc /usr/kde/2/share/config /usr/kde/3.5/env /usr/kde/3.5/share/config /usr/kde/3.5/shutdown /usr/kde/3/share/config /usr/lib/mozilla/defaults/pref /usr/share/X11/xkb /usr/share/config /var/qmail/control"
CONFIG_PROTECT_MASK="/etc/gconf /etc/splash /etc/terminfo /etc/env.d"
CXXFLAGS="-march=pentium3 -O2 -fomit-frame-pointer -pipe"
DISTDIR="/usr/portage/distfiles"
FEATURES="autoconfig candy ccache confcache distlocks metadata-transfer sandbox sfperms strict userpriv usersandbox"
GENTOO_MIRRORS="http://mirror.datapipe.net/gentoo http://mirror.datapipe.net/gentoo http://gentoo.mirrors.tds.net/gentoo http://gentoo.seren.com/gentoo"
LANG="en_CA.utf8"
LC_ALL="en_CA.utf8"
LDFLAGS="-Wl,-O1 -Wl,--enable-new-dtags -Wl,-Bdirect -Wl,-hashvals -Wl,-zdynsort -Wl,--as-needed -Wl,--sort-common -s"
MAKEOPTS="-j2"
PKGDIR="/usr/portage/packages"
PORTAGE_TMPDIR="/var/tmp"
PORTDIR="/usr/portage"
PORTDIR_OVERLAY="/usr/local/portage"
SYNC="rsync://rsync.ca.gentoo.org/gentoo-portage"
USE="x86 X X509 aac acl acpi alsa apache2 apm authdaemond avi bash-completion berkdb bitmap-fonts browserplugin bzip2 bzlib ccache chroot cjk cluster crypt ctype curlwrappers dba dio dlloader dri dts dvd dvdr dvdread eds emboss encode esd extensions extrafilters fbcon ffmpeg flac font-server foomaticdb fortran ftp gdbm gif glut gmp gpm gstreamer gtk gtk2 imagemagick imap imlib innodb ipv6 java javamail jpeg kerberos libg++ libwww lirc mad maildir matroska memlimit mikmod mmx mng motif mp3 mpeg mpi nagios-dns nagios-ntp nagios-ping nagios-ssh ncurses network neural nis nls nptl nptlonly nsplugin nvidia objc ogg opengl oss pam pcntl pcre pdflib perl pg-hier pg-intdatetime pg-vacuumdelay pic png posix procmail python qt quicktime random readline rtc samba sasl sdl sendfile session sftplogging shaper shared sharedext sharedmem simplexml sockets softquota spell sse ssl sysvipc szip tcpd tiff truetype truetype-fonts type1-fonts udev unicode usb userlocales vda vhosts virtual-users virus-scan vorbis wddx win32codecs xml xmlrpc xmms xsl xv xvid zlib elibc_glibc input_devices_evdev input_devices_keyboard input_devices_mouse kernel_linux userland_GNU video_cards_nvidia"
Unset: ASFLAGS, CTARGET, EMERGE_DEFAULT_OPTS, LINGUAS
Top
Post Reply

754 posts
  • Page 8 of 31
    • Jump to page:
  • Previous
  • 1
  • …
  • 6
  • 7
  • 8
  • 9
  • 10
  • …
  • 31
  • Next

Return to “Unsupported Software”

Jump to
  • Assistance
  • ↳   News & Announcements
  • ↳   Frequently Asked Questions
  • ↳   Installing Gentoo
  • ↳   Multimedia
  • ↳   Desktop Environments
  • ↳   Networking & Security
  • ↳   Kernel & Hardware
  • ↳   Portage & Programming
  • ↳   Gamers & Players
  • ↳   Other Things Gentoo
  • ↳   Unsupported Software
  • Discussion & Documentation
  • ↳   Documentation, Tips & Tricks
  • ↳   Gentoo Chat
  • ↳   Gentoo Forums Feedback
  • ↳   Duplicate Threads
  • International Gentoo Users
  • ↳   中文 (Chinese)
  • ↳   Dutch
  • ↳   Finnish
  • ↳   French
  • ↳   Deutsches Forum (German)
  • ↳   Diskussionsforum
  • ↳   Deutsche Dokumentation
  • ↳   Greek
  • ↳   Forum italiano (Italian)
  • ↳   Forum di discussione italiano
  • ↳   Risorse italiane (documentazione e tools)
  • ↳   Polskie forum (Polish)
  • ↳   Instalacja i sprzęt
  • ↳   Polish OTW
  • ↳   Portuguese
  • ↳   Documentação, Ferramentas e Dicas
  • ↳   Russian
  • ↳   Scandinavian
  • ↳   Spanish
  • ↳   Other Languages
  • Architectures & Platforms
  • ↳   Gentoo on ARM
  • ↳   Gentoo on PPC
  • ↳   Gentoo on Sparc
  • ↳   Gentoo on Alternative Architectures
  • ↳   Gentoo on AMD64
  • ↳   Gentoo for Mac OS X (Portage for Mac OS X)
  • Board index
  • All times are UTC
  • Delete cookies

© 2001–2026 Gentoo Foundation, Inc.

Powered by phpBB® Forum Software © phpBB Limited

Privacy Policy

 

 

magic