Gentoo: Unterschied zwischen den Versionen

Aus AmIHereWiki
Zur Navigation springen Zur Suche springen
K (→‎Bugs ~x86: +195313)
K (→‎Web: clean --> clear)
 
(16 dazwischenliegende Versionen desselben Benutzers werden nicht angezeigt)
Zeile 18: Zeile 18:
[http://bugs.gentoo.org/show_bug.cgi?id=180834 #180834] - 'dev-libs/'''gmp'''-4.2.1-r1 - TEST "t_import" fails with "-funroll-loops"/"-O3"' - '''Fix''': CFLAGS in /etc/[[Make.conf|make.conf]] with ''-Wunsafe-loop-optimizations''
[http://bugs.gentoo.org/show_bug.cgi?id=180834 #180834] - 'dev-libs/'''gmp'''-4.2.1-r1 - TEST "t_import" fails with "-funroll-loops"/"-O3"' - '''Fix''': CFLAGS in /etc/[[Make.conf|make.conf]] with ''-Wunsafe-loop-optimizations''


[http://bugs.gentoo.org/show_bug.cgi?id=182103 #182103] - 'sys-apps/'''coreutils'''-6.9-r1 userpriv+usersandbox+test = failure' - '''Fix''': FEATURES="-usersandbox ..." in /etc/portage/env/sys-apps/coreutils
[http://bugs.gentoo.org/show_bug.cgi?id=182103 #182103] - 'sys-apps/'''coreutils'''-6.9-r1 userpriv+usersandbox+test = failure' - '''Fix''': FEATURES="-userpriv ..." in /etc/portage/env/sys-apps/coreutils


[http://bugs.gentoo.org/show_bug.cgi?id=195313 #195313] - 'sys-apps/'''texinfo'''-4.11 make check failure' '''Fix''': FEATURES="-test ..." in /etc/portage/env/sys-apps/texinfo
[http://bugs.gentoo.org/show_bug.cgi?id=195313 #195313] - 'sys-apps/'''texinfo'''-4.11 make check failure' '''Fix''': FEATURES="-test ..." in /etc/portage/env/sys-apps/texinfo
Zeile 25: Zeile 25:
- '''Fix for now''': FEATURES="-test ..." in /etc/portage/env/sys-libs/glibc-2.7-r1 or unblacklist the useflag in /usr/portage/profiles/default-linux/amd64|x86/package.use.mask
- '''Fix for now''': FEATURES="-test ..." in /etc/portage/env/sys-libs/glibc-2.7-r1 or unblacklist the useflag in /usr/portage/profiles/default-linux/amd64|x86/package.use.mask


[http://bugs.gentoo.org/show_bug.cgi?id=196926 #201939] - 'dev-libs/'''libgcrypt'''-1.4.0 kills app-crypt/gnupg'
[http://bugs.gentoo.org/show_bug.cgi?id=197361 #197361] - 'sys-devel/'''autogen'''-5.9.2 incorrectly requires both deprecated and discouraged USE variables for scheme-dev/guile' -  '''Fix''': USE in /etc/[[Make.conf|make.conf]] with ''deprecated'' and reemerge guile
 
[http://bugs.gentoo.org/show_bug.cgi?id=198223 #198223] - '>=dev-java/'''tomcat-native'''-1.1.10 hangs Tomcat 6.0.x on start' -  '''Fix''': Simply add dev-libs/apr urandom to /etc/portage/package.use then emerge apr and problem is solved.
 
[http://bugs.gentoo.org/show_bug.cgi?id=201939 #201939] - 'dev-libs/'''libgcrypt'''-1.4.0 kills app-crypt/gnupg'
- '''Fix for now''': EXTRA_ECONF="--disable-padlock-support" emerge -DNuv libgcrypt '''FIXED'''
- '''Fix for now''': EXTRA_ECONF="--disable-padlock-support" emerge -DNuv libgcrypt '''FIXED'''


Zeile 36: Zeile 40:
'''gcc''' - 'compilation problem' - '''Fix''': don't use BOOT_CFLAGS="..." in /etc/make.conf
'''gcc''' - 'compilation problem' - '''Fix''': don't use BOOT_CFLAGS="..." in /etc/make.conf


'''Hints''':  
'''python''' - 'test_socket.py' - '''Fix''': set the hostname, e.g. 'hostname localhost' or edit /etc/conf.d/hostname and apply
 
==Hints==


/etc/portage/env/no-something.features/cflags as template for symlinks to /etc/portage/env/''package-name''/''program''-symlink
/etc/portage/env/no-something.features/cflags as template for symlinks to /etc/portage/env/''package-name''/''program''-symlink
Zeile 47: Zeile 53:
echo "CFLAGS=\"-march=pentium4m -O3 -pipe -Wall -pedantic\"" >/etc/portage/env/no-loop-opt.cflags
echo "CFLAGS=\"-march=pentium4m -O3 -pipe -Wall -pedantic\"" >/etc/portage/env/no-loop-opt.cflags
</pre>
</pre>
----
The world favorites file is ''/var/lib/portage/world''.
----
[[Computer]]: [[server1]], [[test1]]
----
Config: /etc/[[make.conf]], /etc/[[grub.conf]], /etc/X11/[[xorg.conf]], /etc/[[etc-common|profile]], /etc/env.d/[[etc-common|99local]], /usr/local/bin/[[bin-utils|backup-etc]], /usr/local/bin/[[bin-utils|lshsqldb]], /usr/local/bin/[[bin-utils|update-gentoo]]
----
[http://en.gentoo-wiki.com/wiki/Portage_TMPDIR_on_tmpfs TMPFS] - speedup portage, [http://www.cyberciti.biz/tips/what-is-devshm-and-its-practical-usage.html another]
----


----
==Tweaks==
 
Embedded speedups from [http://www.linuxjournal.com/magazine/reducing-boot-time-embedded-linux-systems?page=0,2 Linux Journal] - loops_per_jiffy ... [http://read.pudn.com/downloads122/sourcecode/embed/518706/studienarbeit.pdf Booting Linux Faster]
 
Thanks to this [http://rudd-o.com/archives/2007/10/02/tales-from-responsivenessland-why-linux-feels-slow-and-how-to-fix-that/ desktop-boost-article], add first two entries to /etc/sysctl.conf or use straight away with ''sysctl -w property-setting'':
<pre>
vm.swappiness=1
vm.vfs_cache_pressure=50
 
vm.dirty_writeback_centisecs=1500
#kernel.domainname = example.com
# the following stops low-level messages on console
#kernel.printk = 4 4 1 7
 
# enable /proc/$pid/maps privacy so that memory relocations are not
# visible to other users.
kernel.maps_protect = 1
</pre>
 
find good compiling [http://wiki.ubuntu.com/CompilerFlags flags]:
cc -march=native -E -v - </dev/null 2>&1 | grep cc1


[[Computer]]: [[server1]], [[test1]]
use in /etc/make.conf for a pentium3 like
BOOT_CFLAGS="-fomit-frame-pointer -fprefetch-loop-arrays -funroll-loops -maccumulate-outgoing-args -march=pentium3 -msse -mtune=pentium3 -O9 -pipe -Wunsafe-loop-optimizations  --param l1-cache-size=16 --param l1-cache-line-size=32 --param l2-cache-size=256 -s"


----
==Books==
*[http://www.fosdoc.de/downloads/OSP_wrobel_gentoo.pdf Gentoo Openbook]


Config: /etc/[[make.conf]], /etc/[[grub.conf]], /etc/X11/[[xorg.conf]], /etc/[[etc-common|profile]], /etc/env.d/[[etc-common|99local]], /usr/local/bin/[[bin-utils|backup-etc]], /usr/local/bin/[[bin-utils|lshsqldb]], /usr/local/bin/[[bin-utils|update-gentoo]]
==Web==
*[http://bugs.gentoo.org Gentoo Bugs]
*[https://linux.slashdot.org/story/16/01/12/1724210/intels-clear-linux-distribution-offers-fast-out-of-the-box-performance Clear Linux Intel] - high performance Intel Linux (AutoFDO, multi version functioning)

Aktuelle Version vom 17. März 2016, 14:26 Uhr

Anleitung und Anmerkung für eine Gentoo Installation.

Bugs ~x86

#144419 - 'binutils-2.17 ld fails tests with FEATURES="test"' - Fix: FEATURES="-test ..." in /etc/portage/env/sys-devel/binutils

#162542 - 'ccache-statistics are not updated when FEATURES includes userpriv/usersandbox' - Fix: chmod -cR g+w /var/tmp/ccache | chown -cR portage:portage /var/tmp/ccache

#164266 - 'dev-scheme/guile-1.8.1-r1 fails test' - Fix: USE in /etc/make.conf with regex and networking

#177538 - 'sys-apps/'coreutils-6.9 test failure' - Fix: modified coreutils.ebuild, with each emerge sync, overwritten with patched .ebuild file and digest [1] FIXED by 2nd package of coreutils-6.9-r1 (June/11/2007)

#178028 - 'sys-fs/e2fsprogs-1.40_pre20070411 fails 'expanding lost+found' test' - Fix: FEATURES="-test ..." in /etc/portage/env/sys-fs/e2fsprogs (or ext2/ext3 as fstype) FIXED

#180412 - 'sys-apps/findutils-4.3.6-r1 - TEST "fprint-unwritable.exp" fails' - Fix: FEATURES="-test ..." in /etc/portage/env/sys-apps/findutils - [2] FIXED

#180834 - 'dev-libs/gmp-4.2.1-r1 - TEST "t_import" fails with "-funroll-loops"/"-O3"' - Fix: CFLAGS in /etc/make.conf with -Wunsafe-loop-optimizations

#182103 - 'sys-apps/coreutils-6.9-r1 userpriv+usersandbox+test = failure' - Fix: FEATURES="-userpriv ..." in /etc/portage/env/sys-apps/coreutils

#195313 - 'sys-apps/texinfo-4.11 make check failure' Fix: FEATURES="-test ..." in /etc/portage/env/sys-apps/texinfo

#196926 - 'sys-libs/glibc-2.7-r1 compile fails with gcc-4.2.2 for i486+ with USE=glibc-omitfp' - Fix for now: FEATURES="-test ..." in /etc/portage/env/sys-libs/glibc-2.7-r1 or unblacklist the useflag in /usr/portage/profiles/default-linux/amd64|x86/package.use.mask

#197361 - 'sys-devel/autogen-5.9.2 incorrectly requires both deprecated and discouraged USE variables for scheme-dev/guile' - Fix: USE in /etc/make.conf with deprecated and reemerge guile

#198223 - '>=dev-java/tomcat-native-1.1.10 hangs Tomcat 6.0.x on start' - Fix: Simply add dev-libs/apr urandom to /etc/portage/package.use then emerge apr and problem is solved.

#201939 - 'dev-libs/libgcrypt-1.4.0 kills app-crypt/gnupg' - Fix for now: EXTRA_ECONF="--disable-padlock-support" emerge -DNuv libgcrypt FIXED

media-libs/freeglut - stops compiling over loop-opt warning (-Wall -pedantic) - Fix: explicitly without -Wunsafe-loop-optimizations

glib/libtool/guile - 'compilation / test problems' - Fix: in /etc/env.d/99local include "export SED=sed"

jpeg - 'compilation problem' - Fix: "emerge libtool" again (linker i686-gnu-... tragedy)

gcc - 'compilation problem' - Fix: don't use BOOT_CFLAGS="..." in /etc/make.conf

python - 'test_socket.py' - Fix: set the hostname, e.g. 'hostname localhost' or edit /etc/conf.d/hostname and apply

Hints

/etc/portage/env/no-something.features/cflags as template for symlinks to /etc/portage/env/package-name/program-symlink

ln -s /etc/portage/env/no-test.features /etc/portage/env/sys-apps/findutils
echo "FEATURES=\"ccache distcc -test sandbox\"" >/etc/portage/env/no-test.features

ln -s /etc/portage/env/no-test.cflags /etc/portage/env/media-libs/freeglut
echo "CFLAGS=\"-march=pentium4m -O3 -pipe -Wall -pedantic\"" >/etc/portage/env/no-loop-opt.cflags

The world favorites file is /var/lib/portage/world.


Computer: server1, test1


Config: /etc/make.conf, /etc/grub.conf, /etc/X11/xorg.conf, /etc/profile, /etc/env.d/99local, /usr/local/bin/backup-etc, /usr/local/bin/lshsqldb, /usr/local/bin/update-gentoo


TMPFS - speedup portage, another


Tweaks

Embedded speedups from Linux Journal - loops_per_jiffy ... Booting Linux Faster

Thanks to this desktop-boost-article, add first two entries to /etc/sysctl.conf or use straight away with sysctl -w property-setting:

 vm.swappiness=1
 vm.vfs_cache_pressure=50

 vm.dirty_writeback_centisecs=1500
 
 #kernel.domainname = example.com
 # the following stops low-level messages on console
 #kernel.printk = 4 4 1 7

 # enable /proc/$pid/maps privacy so that memory relocations are not
 # visible to other users.
 kernel.maps_protect = 1

find good compiling flags:

cc -march=native -E -v - </dev/null 2>&1 | grep cc1

use in /etc/make.conf for a pentium3 like

BOOT_CFLAGS="-fomit-frame-pointer -fprefetch-loop-arrays -funroll-loops -maccumulate-outgoing-args -march=pentium3 -msse -mtune=pentium3 -O9 -pipe -Wunsafe-loop-optimizations  --param l1-cache-size=16 --param l1-cache-line-size=32 --param l2-cache-size=256 -s"

Books

Web