Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
post your make.conf
View unanswered posts
View posts from last 24 hours

Goto page Previous  1, 2, 3 ... 14, 15, 16  
Reply to topic    Gentoo Forums Forum Index Gentoo Chat
View previous topic :: View next topic  
Author Message
Slated
n00b
n00b


Joined: 16 Oct 2010
Posts: 13

PostPosted: Sun Dec 04, 2016 6:36 pm    Post subject: Reply with quote

Here's my latest for an Atom netbook:

Code:
CFLAGS="-march=bonnell -O2 -pipe -fomit-frame-pointer"
CXXFLAGS="${CFLAGS}"
CHOST="x86_64-pc-linux-gnu"
MAKEOPTS="-j13 -l2"
EMERGE_DEFAULT_OPTS="--jobs=13 --load-average=2"
ACCEPT_KEYWORDS="amd64"
FEATURES="candy cgroup distcc distcc-pump fail-clean fixlafiles news \
          parallel-fetch prelink-checksums split-elog split-log \
          unmerge-logs webrsync-gpg"
LINGUAS="en en_GB"
L10N="en en-GB"
VIDEO_CARDS="intel i915"
INPUT_DEVICES="evdev mouse keyboard synaptics"
PORTAGE_NICENESS=19
PORTAGE_IONICE_COMMAND="ionice -c 3 -p \${PID}"
CPU_FLAGS_X86="mmx mmxext sse sse2 sse3 ssse3"
PORTDIR="/usr/portage"
PORT_LOGDIR="/var/log/portage"
EMERGE_LOG_DIR="$PORT_LOGDIR"
DISTDIR="${PORTDIR}/distfiles"
PKGDIR="${PORTDIR}/packages"
PORTAGE_ELOG_CLASSES="info warn error log qa"
PORTAGE_ELOG_SYSTEM="save"
PORTAGE_GPG_DIR="/var/lib/gentoo/gkeys/keyrings/gentoo/release"
USE="aacs alsa bash-completion bluray branding crypt cups device-mapper \
     exif fftw fontconfig gpm ntfs ntfsdecrypt ntfsprogs openal \
     opengl spell startup-notification truetype unicode vim-syntax \
     xattr zsh-completion -accessibility -bindist -exceptions \
     -handbook -pulseaudio -semantic-desktop -systemd mmx mmxext sse \
     sse2 sse3 ssse3"



  • It seems "-march=atom" is now depreciated. My "-march=native" is now something called "bonnell", allegedly
  • I'm now running distcc in pump mode, which is why "jobs" is so high
  • Parallelising with EMERGE_DEFAULT_OPTS has the effect of suppressing all output except a running summary
  • I'm now splitting the logs, but not compressing, since I use logrotate for that
  • Some of the "FEATURES" are already on by default (e.g. "news"), but stated explicitly for clarity


Last edited by Slated on Sun Dec 04, 2016 8:12 pm; edited 1 time in total
Back to top
View user's profile Send private message
fturco
Guru
Guru


Joined: 08 Dec 2010
Posts: 471
Location: Italy

PostPosted: Sun Dec 04, 2016 6:40 pm    Post subject: Reply with quote

@Slated: As far as I know CPU options like mmx or sse go into the CPU_FLAGS_X86 variable, not into USE.
Back to top
View user's profile Send private message
Slated
n00b
n00b


Joined: 16 Oct 2010
Posts: 13

PostPosted: Sun Dec 04, 2016 8:10 pm    Post subject: Reply with quote

Quote:
In order to ensure safe migration and maintain compatibility with external repositories, it is recommended to preserve the old USE settings for a period of one year or until no package of interest is still using them.


https://wiki.gentoo.org/wiki/CPU_FLAGS_X86
Back to top
View user's profile Send private message
alinefr
Tux's lil' helper
Tux's lil' helper


Joined: 05 Jul 2009
Posts: 108
Location: São Paulo, Brasil

PostPosted: Mon Dec 12, 2016 8:14 am    Post subject: Reply with quote

As simple as possible:
Code:

CFLAGS="-march=native -O2 -pipe"
CXXFLAGS="${CFLAGS}"
CHOST="x86_64-pc-linux-gnu"

MAKEOPTS="-j5 -l4"
EMERGE_DEFAULT_OPTS="--jobs=4 --load-average=4"

USE_ENABLED="gnome-keyring pulseaudio vaapi vim-syntax"
USE_DISABLED="-exceptions -gtk -introspection -ipv6 -ldap -qt3support -qt4"
USE="${USE_ENABLED} ${USE_DISABLED}"

ABI_X86="64"
ALSA_CARDS="hda-intel"
CPU_FLAGS_X86="aes avx avx2 fma3 mmx mmxext popcnt sse sse2 sse3 sse4_1 sse4_2 ssse3"
INPUT_DEVICES="keyboard mouse synaptics evdev"
LINGUAS="fr en_GB en pt_BR"
L10N="fr en-GB en pt-BR"
SANE_BACKENDS="hp"
VIDEO_CARDS="intel i965"

PORTDIR="/usr/portage"
DISTDIR="${PORTDIR}/distfiles"
PKGDIR="${PORTDIR}/packages"
INSTALL_MASK="/lib/systemd /usr/lib/systemd"

source /var/lib/layman/make.conf
Back to top
View user's profile Send private message
NeddySeagoon
Administrator
Administrator


Joined: 05 Jul 2003
Posts: 38855
Location: 56N 3W

PostPosted: Mon Dec 12, 2016 8:44 am    Post subject: Reply with quote

Raspberry Pi 3 64 bit mode:

I_KNOW_WHAT_I_AM_DOING=1
# ... maybe

CHOST=aarch64-unknown-linux-gnu
ARCH=arm64
ACCEPT_LICENSE="Oracle-BCLA-JavaSE google-chrome"
ACCEPT_KEYWORDS="arm64 ~arm64"

USE="${ARCH} egl icu minizip openssl pcre16 postproc python
     qt5 script sqlite svc threads virt-network
     -modemmanager -pam -skia"
# skia wants to link to neon stuff it doesn't build, in firefox anyway.

# -march=native works with gcc-6.x but that stops us using crossdev
CFLAGS="-march=armv8-a+crc -mtune=cortex-a53 -ftree-vectorize -O2 -pipe -fomit-frame-pointer"
CXXFLAGS="${CFLAGS}"

#  --map-whole-files           Map whole files to memory (default on 64-bit hosts)
#  --no-map-whole-files        Map relevant file parts to memory (default on 32-bit hosts)
#  --fix-cortex-a53-843419     (AArch64 only) Fix Cortex-A53 erratum 843419.
#  --fix-cortex-a53-835769     (AArch64 only) Fix Cortex-A53 erratum 835769.

LDFLAGS="-Wl,-O1 -Wl,--as-needed -Wl,--fix-cortex-a53-843419 -Wl,--fix-cortex-a53-835769 -Wl,--no-map-whole-files"

FEATURES="-collision-protect sandbox buildpkg noman noinfo nodoc userpriv usersandbox"

PKGDIR=/packages/
DISTDIR="/var/cache/distfiles"
ELIBC="glibc"

L10N="en en-GB"
LINGUAS="en en_GB"

# we don't have the RAM for -j5 on most things but ...
MAKEOPTS="-j5"
# run package lists for lesser MAKEOPTS in .env

INSTALL_MASK=" /usr/lib/systemd *.la"

LIBREOFFICE_EXTENSIONS="pdfimport presenter-console presenter-minimizer"

PORTAGE_ELOG_CLASSES="info wan error log qa"
PORT_LOGDIR=/var/log/portage/

PYTHON_SINGLE_TARGET="python3_4"
PYTHON_TARGETS="python2_7 python3_4"

# may run a KVM one day
QEMU_USER_TARGETS="aarch64"
QEMU_SOFTMMU_TARGETS="aarch64"

INPUT_DEVICES="evdev"
# xf86-video-modesetting won't work with xorg-server-1.18.3 yet
# vc4 is very new if it breaks, you can keep the pieces
VIDEO_CARDS="fbdev vc4"

# PORTAGE_OVERLAY="/usr/local/gentoo-static"
Pi3 64bit ~ #

_________________
Regards,

NeddySeagoon

Computer users fall into two groups:-
those that do backups
those that have never had a hard drive fail.
Back to top
View user's profile Send private message
keremCozin
n00b
n00b


Joined: 18 Sep 2017
Posts: 2

PostPosted: Mon Sep 18, 2017 1:24 pm    Post subject: Reply with quote

I know this is a very old post. I used to visit this post since the first days i started using Gentoo GNU/Linux.

Code:
ACCEPT_KEYWORDS="~amd64"
CHOST="x86_64-pc-linux-gnu"
CFLAGS="-O2 -pipe -march=native"
CXXFLAGS="${CFLAGS}"
MAKEOPTS="-j5 -l4"

PORTDIR="/usr/portage"
DISTDIR="${PORTDIR}/distfiles"
PKGDIR="${PORTDIR}/packages"

CMAKE_MAKEFILE_GENERATOR="ninja"

EMERGE_DEFAULT_OPTS="--ask --verbose --jobs=5 --load-average=4"

VIDEO_CARDS="intel i965"
INPUT_DEVICES="libinput synaptics"
ALSA_CARDS="hda-intel"

LINGUAS="en en_US"
L10N="en en-US"

CPU_FLAGS_X86="mmx mmxext popcnt sse sse2 sse3 sse4_1 sse4_2 ssse3"

USE="qt5 pulseaudio bluetooth ffmpeg openal wayland -cups -qt4 -wayland -handbook"

CALLIGRA_EXPERIMENTAL_FEATURES="stage braindump"


Code:
uname -a
Linux gentoo 4.13.1-gentoo-r1 #1 SMP Thu Sep 14 06:00:18 +03 2017 x86_64 Intel(R) Core(TM) i5 CPU M 460 @ 2.53GHz GenuineIntel GNU/Linux
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Gentoo Chat All times are GMT
Goto page Previous  1, 2, 3 ... 14, 15, 16
Page 16 of 16

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum