Code: Select all
x86_64-pc-linux-gnu-gcc pthread_mutex_init.c -c -std=gnu99 -DNDEBUG=1 -O2 -Wall -Winline -Wwrite-strings -fmerge-all-constants -fno-ident -march=athlon64 -pipe -Wstrict-prototypes -mpreferred-stack-boundary=2 -I../include -I/var/tmp/portage/glibc-2.4.90.20060701/work/build-x86-x86_64-pc-linux-gnu-nptl/nptl -I/var/tmp/portage/glibc-2.4.90.20060701/work/build-x86-x86_64-pc-linux-gnu-nptl -I../sysdeps/i386/elf -I../nptl/sysdeps/unix/sysv/linux/i386/i686 -I../nptl/sysdeps/unix/sysv/linux/i386 -I../sysdeps/unix/sysv/linux/i386 -I../ports/sysdeps/unix/sysv/linux -I../nptl/sysdeps/unix/sysv/linux -I../nptl/sysdeps/pthread -I../sysdeps/pthread -I../sysdeps/unix/sysv/linux -I../sysdeps/gnu -I../sysdeps/unix/common -I../sysdeps/unix/mman -I../sysdeps/unix/inet -I../ports/sysdeps/unix/sysv/i386 -I../sysdeps/unix/sysv/i386 -I../ports/sysdeps/unix/sysv -I../nptl/sysdeps/unix/sysv -I../sysdeps/unix/sysv -I../sysdeps/unix/i386 -I../ports/sysdeps/unix -I../nptl/sysdeps/unix -I../sysdeps/unix -I../sysdeps/posix -I../sysdeps/i386/i686/fpu -I../nptl/sysdeps/i386/i686 -I../sysdeps/i386/i686 -I../sysdeps/i386/i486 -I../nptl/sysdeps/i386/i486 -I../sysdeps/i386/fpu -I../nptl/sysdeps/i386 -I../sysdeps/i386 -I../sysdeps/wordsize-32 -I../sysdeps/ieee754/ldbl-96 -I../sysdeps/ieee754/dbl-64 -I../sysdeps/ieee754/flt-32 -I../sysdeps/ieee754 -I../sysdeps/generic/elf -I../sysdeps/generic -I../ports -I../nptl -I.. -I../libio -I. -nostdinc -isystem /usr/lib/gcc/x86_64-pc-linux-gnu/4.1.1/include -isystem /usr/include -D_LIBC_REENTRANT -include ../include/libc-symbols.h -DNOT_IN_libc=1 -DIS_IN_libpthread=1 -o /var/tmp/portage/glibc-2.4.90.20060701/work/build-x86-x86_64-pc-linux-gnu-nptl/nptl/pthread_mutex_init.o -MD -MP -MF /var/tmp/portage/glibc-2.4.90.20060701/work/build-x86-x86_64-pc-linux-gnu-nptl/nptl/pthread_mutex_init.o.dt -MT /var/tmp/portage/glibc-2.4.90.20060701/work/build-x86-x86_64-pc-linux-gnu-nptl/nptl/pthread_mutex_init.o
pthread_mutex_init.c: In function '__pthread_mutex_init':
pthread_mutex_init.c:84: error: 'PTHREAD_MUTEX_PRIO_INHERIT_NP' undeclared (first use in this function)
pthread_mutex_init.c:84: error: (Each undeclared identifier is reported only once
pthread_mutex_init.c:84: error: for each function it appears in.)
pthread_mutex_init.c:88: error: 'PTHREAD_MUTEX_PRIO_PROTECT_NP' undeclared (first use in this function)
make[2]: *** [/var/tmp/portage/glibc-2.4.90.20060701/work/build-x86-x86_64-pc-linux-gnu-nptl/nptl/pthread_mutex_init.o] Error 1
make[2]: *** Waiting for unfinished jobs....
make[2]: Leaving directory `/var/tmp/portage/glibc-2.4.90.20060701/work/glibc-2.4/nptl'
make[1]: *** [nptl/subdir_lib] Error 2
make[1]: Leaving directory `/var/tmp/portage/glibc-2.4.90.20060701/work/glibc-2.4'
make: *** [all] Error 2

That would be really nice! It seems that -Bdirect will never make its way into the main release but hash-style will...Should I add the new -Wl,--hash-style= patch btw?
Code: Select all
LDFLAGS="-Wl,-O1 -Wl,--sort-common -Wl,--enable-new-dtags -Wl,-Bdirect -Wl,--as-needed -Wl,-hashvals -Wl,-zdynsort"same here ....Martin.Jansa wrote:same error hereb33fc0d3 wrote:nxsty, is this related to the patch ?
Code: Select all
Portage 2.1.1_pre1-r5 (default-linux/x86/2006.0, gcc-4.1.1/vanilla, glibc-2.4.90.20060516-r0, 2.6.17-no2 i686)
=================================================================
System uname: 2.6.17-no2 i686 AMD Athlon(tm)
Gentoo Base System version 1.12.1
dev-lang/python: 2.4.3-r1
dev-python/pycrypto: 2.0.1-r5
dev-util/ccache: [Not Present]
dev-util/confcache: [Not Present]
sys-apps/sandbox: 1.2.18.1
sys-devel/autoconf: 2.13, 2.60
sys-devel/automake: 1.4_p6, 1.5, 1.6.3, 1.7.9-r1, 1.8.5-r3, 1.9.6-r2
sys-devel/binutils: 2.16.93, 2.17
sys-devel/gcc-config: 2.0.0_rc1
sys-devel/libtool: 1.5.22
virtual/os-headers: 2.6.16
ACCEPT_KEYWORDS="x86 ~x86"
AUTOCLEAN="yes"
CBUILD="i686-pc-linux-gnu"
CFLAGS="-O2 -march=athlon-xp -fomit-frame-pointer -pipe -ftracer -fweb -frename-registers"
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/eselect/compiler /etc/gconf /etc/revdep-rebuild /etc/splash /etc/terminfo"
CXXFLAGS="-O2 -march=athlon-xp -fomit-frame-pointer -pipe -ftracer -fweb -frename-registers -fvisibility-inlines-hidden"
DISTDIR="/usr/portage/distfiles"
FEATURES="autoconfig distlocks metadata-transfer parallel-fetch sandbox sfperms strict"
GENTOO_MIRRORS="http://distfiles.gentoo.org http://distro.ibiblio.org/pub/linux/distributions/gentoo"
LANG="pl_PL"
LC_ALL="pl_PL"
LDFLAGS="-Wl,-O1 -Wl,--sort-common -Wl,-Bdirect -Wl,-hashvals -Wl,-zdynsort"
LINGUAS="pl"
MAKEOPTS="-j2 -s"
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'"
PORTAGE_TMPDIR="/var/tmp"
PORTDIR="/usr/portage"
PORTDIR_OVERLAY="/usr/local/portage"
SYNC="rsync://rsync.gentoo.org/gentoo-portage"
USE="x86 3dnow 3dnowext X aac alsa apm avi berkdb bitmap-fonts cairo cli crypt cups dbus dri eds emboss encode flac foomaticdb fortran gdbm gif gpm gtk gtk2 hal imlib ipv6 isdnlog jack java jpeg kde kdeenablefinal kdehiddenvisibility kdenewldflags lame libg++ libwww lirc mad mikmod mmx mmxext motif mp3 mpeg musepack ncurses nls nptl nptlonly ogg opengl oss pam pcre pdflib perl pic png pppd python qt qt3 qt4 quicktime readline reflection sdl session spell spl sse ssl tcpd truetype truetype-fonts type1-fonts udev userlocales vorbis xine xinerama xml xorg xv zlib elibc_glibc input_devices_keyboard input_devices_mouse input_devices_evdev kernel_linux linguas_pl lirc_devices_devinput userland_GNU video_cards_fglrx video_cards_ati video_cards_radeon"
Unset: CTARGET, EMERGE_DEFAULT_OPTS, INSTALL_MASK, PORTAGE_RSYNC_EXTRA_OPTS
Well, that's life on the bleeding edge.abhay wrote:gawd...
I don't know how to handle this now. I have compiled my current world with nxsty's glibc-2.4.3-r3 and binutils-2.16.93 withAdd to that nxsty's Qt and hidden visibility for KDE and I have got probably the fastest system I have ever used. Now, I am hearing that Bdirect is going, --as-needed is not working, hashvals and zdynsort is changing and my head is spinning.Code: Select all
LDFLAGS="-Wl,-O1 -Wl,--sort-common -Wl,--enable-new-dtags -Wl,-Bdirect -Wl,--as-needed -Wl,-hashvals -Wl,-zdynsort"
Can some one please help and tell me how to keep up with the sudden changes that has been made in the building of the system? If someone wants to suggest to go for everything stable, then I request you to please keep that suggestion to yourself. I need this speed and I am addicted to it so please help me in incorporating everything.
http://forums.gentoo.org/viewtopic-t-47 ... art-0.htmlb33fc0d3 wrote:Can you link me to that thread please ?nxsty wrote: See the other thread for that.
Builds fine now.nxsty wrote:I added a patch to revert the commit the broke the build. It should work now.
Thats true but till now it has been relatively simple to manage stuff even at this levelnxsty wrote:Well, that's life on the bleeding edge.
In fact you need not switch at the moment. These patches are imho in quite an early stage of development. Gergan Penkov stated yesterday that it is possible to adapt these patches to support Bdirect. Consider any potential speedup from these patches and slowdown caused by two days of recompiling the whole system. You may even need to recompile again if someone comes with Bdirect etc.roderick wrote:I'm lost now too...
It seemed pretty simple before: update binutils and glibc, use bdirect, hashvals and dynsort.
Can someone please sum up what the new recommended is and what EXACTLY is needed to switch over?
Yeah. I'd rather wait. I have b een extremely happy with the bdirect, hashvals, and dynsort currently in place.Non_E wrote:In fact you need not switch at the moment. These patches are imho in quite an early stage of development. Gergan Penkov stated yesterday that it is possible to adapt these patches to support Bdirect. Consider any potential speedup from these patches and slowdown caused by two days of recompiling the whole system. You may even need to recompile again if someone comes with Bdirect etc.roderick wrote:I'm lost now too...
It seemed pretty simple before: update binutils and glibc, use bdirect, hashvals and dynsort.
Can someone please sum up what the new recommended is and what EXACTLY is needed to switch over?

This one:enderandrew wrote:I'm now using my own modified version of this build. However, mine breaks in the same place as quoted above. Might I ask what change or revert you had to make to fix this?nxsty wrote:I added a patch to revert the commit the broke the build. It should work now.
And which patches by default ?nesl247 wrote:I'll be posting an overlay link soon, hopefully nxsty will use it. It will include the --hash-style patches, but only when the hashstyle USE flag is enabled. This way only one ebuild needs to be maintained.