ti faccio un esempio di compilazione con la CPU indicata sopra , emergendo un pacchettino veloce (less) e compilarlo per AMD K8
Code: Select all
CFLAGS="-O2 -march=K8 -pipe" CXXFLAGS="${CFLAGS}" emerge less
* IMPORTANT: 2 news items need reading for repository 'gentoo'.
* Use eselect news read to view new items.
Calculating dependencies... done!
!!! The following installed packages are masked:
- www-client/opera-43.0.2442.806::gentoo (masked by: OPERA-2014 license(s))
A copy of the 'OPERA-2014' license is located at '/usr/portage/licenses/OPERA-2014'.
For more information, see the MASKED PACKAGES section in the emerge
man page or refer to the Gentoo Handbook.
>>> Verifying ebuild manifests
>>> Emerging (1 of 1) sys-apps/less-487::gentoo
>>> Downloading 'ftp://ftp.spline.inf.fu-berlin.de/mirrors/gentoo/distfiles/less-487.tar.gz'
pathconf: Permission denied
--2017-02-19 14:36:24-- ftp://ftp.spline.inf.fu-berlin.de/mirrors/gentoo/distfiles/less-487.tar.gz
=> ‘/usr/portage/distfiles/less-487.tar.gz’
Resolving ftp.spline.inf.fu-berlin.de... 130.133.110.66
Connecting to ftp.spline.inf.fu-berlin.de|130.133.110.66|:21... connected.
Logging in as anonymous ... Logged in!
==> SYST ... done. ==> PWD ... done.
==> TYPE I ... done. ==> CWD (1) /mirrors/gentoo/distfiles ... done.
==> SIZE less-487.tar.gz ... 318488
==> PASV ... done. ==> RETR less-487.tar.gz ... done.
Length: 318488 (311K) (unauthoritative)
less-487.tar.gz 100%[===================>] 311,02K 127KB/s in 2,5s
2017-02-19 14:36:30 (127 KB/s) - ‘/usr/portage/distfiles/less-487.tar.gz’ saved [318488]
* less-487.tar.gz SHA256 SHA512 WHIRLPOOL size ;-) ... [ ok ]
>>> Unpacking source...
>>> Unpacking less-487.tar.gz to /var/tmp/portage/sys-apps/less-487/work
>>> Source unpacked in /var/tmp/portage/sys-apps/less-487/work
>>> Preparing source in /var/tmp/portage/sys-apps/less-487/work/less-487 ...
>>> Source prepared.
>>> Configuring source in /var/tmp/portage/sys-apps/less-487/work/less-487 ...
./configure --prefix=/usr --build=x86_64-pc-linux-gnu --host=x86_64-pc-linux-gnu --mandir=/usr/share/man --infodir=/usr/share/info --datadir=/usr/share --sysconfdir=/etc --localstatedir=/var/lib --libdir=/usr/lib64 --with-regex=pcre --with-editor=/usr/libexec/editor
checking for x86_64-pc-linux-gnu-gcc... x86_64-pc-linux-gnu-gcc
checking whether the C compiler works... no
configure: error: in `/var/tmp/portage/sys-apps/less-487/work/less-487':
configure: error: C compiler cannot create executables
See `config.log' for more details
!!! Please attach the following file when seeking support:
!!! /var/tmp/portage/sys-apps/less-487/work/less-487/config.log
* ERROR: sys-apps/less-487::gentoo failed (configure phase):
* econf failed
*
* Call stack:
* ebuild.sh, line 115: Called src_configure
* environment, line 255: Called econf '--with-regex=pcre' '--with-editor=/usr/libexec/editor'
* phase-helpers.sh, line 665: Called __helpers_die 'econf failed'
* isolated-functions.sh, line 117: Called die
* The specific snippet of code:
* die "$@"
*
* If you need support, post the output of `emerge --info '=sys-apps/less-487::gentoo'`,
* the complete build log and the output of `emerge -pqv '=sys-apps/less-487::gentoo'`.
* The complete build log is located at '/var/tmp/portage/sys-apps/less-487/temp/build.log'.
* The ebuild environment file is located at '/var/tmp/portage/sys-apps/less-487/temp/environment'.
* Working directory: '/var/tmp/portage/sys-apps/less-487/work/less-487'
* S: '/var/tmp/portage/sys-apps/less-487/work/less-487'
>>> Failed to emerge sys-apps/less-487, Log file:
>>> '/var/tmp/portage/sys-apps/less-487/temp/build.log'
* Messages for package sys-apps/less-487:
* ERROR: sys-apps/less-487::gentoo failed (configure phase):
* econf failed
*
* Call stack:
* ebuild.sh, line 115: Called src_configure
* environment, line 255: Called econf '--with-regex=pcre' '--with-editor=/usr/libexec/editor'
* phase-helpers.sh, line 665: Called __helpers_die 'econf failed'
* isolated-functions.sh, line 117: Called die
* The specific snippet of code:
* die "$@"
*
* If you need support, post the output of `emerge --info '=sys-apps/less-487::gentoo'`,
* the complete build log and the output of `emerge -pqv '=sys-apps/less-487::gentoo'`.
* The complete build log is located at '/var/tmp/portage/sys-apps/less-487/temp/build.log'.
* The ebuild environment file is located at '/var/tmp/portage/sys-apps/less-487/temp/environment'.
* Working directory: '/var/tmp/portage/sys-apps/less-487/work/less-487'
* S: '/var/tmp/portage/sys-apps/less-487/work/less-487'
configure: error: C compiler cannot create executables
e lo stesso per core2
Code: Select all
CFLAGS="-O2 -march=core2 -pipe" CXXFLAGS="${CFLAGS}" emerge less
>> Verifying ebuild manifests
>>> Emerging (1 of 1) sys-apps/less-487::gentoo
* less-487.tar.gz SHA256 SHA512 WHIRLPOOL size ;-) ... [ ok ]
>>> Unpacking source...
>>> Unpacking less-487.tar.gz to /var/tmp/portage/sys-apps/less-487/work
>>> Source unpacked in /var/tmp/portage/sys-apps/less-487/work
>>> Preparing source in /var/tmp/portage/sys-apps/less-487/work/less-487 ...
>>> Source prepared.
>>> Configuring source in /var/tmp/portage/sys-apps/less-487/work/less-487 ...
./configure --prefix=/usr --build=x86_64-pc-linux-gnu --host=x86_64-pc-linux-gnu --mandir=/usr/share/man --infodir=/usr/share/info --datadir=/usr/share --sysconfdir=/etc --localstatedir=/var/lib --libdir=/usr/lib64 --with-regex=pcre --with-editor=/usr/libexec/editor
checking for x86_64-pc-linux-gnu-gcc... x86_64-pc-linux-gnu-gcc
checking whether the C compiler works... yes
checking for C compiler default output file name... a.out
checking for suffix of executables...
checking whether we are cross compiling... no
checking for suffix of object files... o
checking whether we are using the GNU C compiler... yes
checking whether x86_64-pc-linux-gnu-gcc accepts -g... yes
checking for x86_64-pc-linux-gnu-gcc option to accept ISO C89... none needed
checking for library containing strerror... none required
checking how to run the C preprocessor... x86_64-pc-linux-gnu-gcc -E
checking for grep that handles long lines and -e... /bin/grep
checking for egrep... /bin/grep -E
checking whether x86_64-pc-linux-gnu-gcc needs -traditional... no
checking for a BSD-compatible install... /usr/lib/portage/python3.4/ebuild-helpers/xattr/install -c
checking for special C compiler options needed for large files... no
checking for _FILE_OFFSET_BITS value needed for large files... no
checking for tgoto in -ltinfo... yes
checking for initscr in -lxcurses... no
checking for initscr in -lncursesw... (cached) yes
checking for initscr in -lncurses... (cached) no
checking for initscr in -lcurses... yes
checking for tgetent in -ltermcap... no
checking for tgetent in -ltermlib... no
checking for library containing regcmp... no
checking for working terminal libraries... using -ltinfo
checking for ANSI C header files... yes
checking for sys/types.h... yes
checking for sys/stat.h... yes
checking for stdlib.h... yes
checking for string.h... yes
checking for memory.h... yes
checking for strings.h... yes
checking for inttypes.h... yes
checking for stdint.h... yes
checking for unistd.h... yes
checking ctype.h usability... yes
checking ctype.h presence... yes
checking for ctype.h... yes
checking errno.h usability... yes
checking errno.h presence... yes
checking for errno.h... yes
checking fcntl.h usability... yes
checking fcntl.h presence... yes
checking for fcntl.h... yes
checking limits.h usability... yes
checking limits.h presence... yes
checking for limits.h... yes
checking stdio.h usability... yes
checking stdio.h presence... yes
checking for stdio.h... yes
checking for stdlib.h... (cached) yes
checking for string.h... (cached) yes
[...]>>> Installing (1 of 1) sys-apps/less-487::gentoo
>>> Auto-cleaning packages...
portage: COUNTER for virtual/os-headers-0 was corrupted; resetting to value of 0
portage: COUNTER for virtual/os-headers-0 was corrupted; resetting to value of 0
>>> No outdated packages were found on your system.
* GNU info directory index is up-to-date.
Code: Select all
$ genlop -i less
* sys-apps/less
Total builds: 1
Global build time: 25 seconds.
Info about currently installed ebuild:
* sys-apps/less-487
Install date: Sun Feb 19 14:39:34 2017
USE="pcre unicode"
CFLAGS="-O2 -march=core2 -pipe" CXXFLAGS="-O2 -march=core2 -pipe" LDFLAGS="-Wl,-O1 -Wl,--as-needed"
La CPU
Code: Select all
processor : 3
vendor_id : GenuineIntel
cpu family : 6
model : 58
model name : Intel(R) Core(TM) i5-3340M CPU @ 2.70GHz
stepping : 9
microcode : 0x15
cpu MHz : 3199.987
cache size : 3072 KB
physical id : 0
siblings : 4
core id : 1
cpu cores : 2
apicid : 3
initial apicid : 3
fpu : yes
fpu_exception : yes
cpuid level : 13
wp : yes
flags : fpu vme de pse tsc msr pae mce cx8 apic sep mtrr pge mca cmov pat pse36 clflush dts acpi mmx fxsr sse sse2 ss ht tm pbe syscall nx rdtscp lm constant_tsc arch_perfmon pebs bts rep_good nopl xtopology nonstop_tsc aperfmperf eagerfpu pni pclmulqdq dtes64 monitor ds_cpl vmx smx est tm2 ssse3 cx16 xtpr pdcm pcid sse4_1 sse4_2 x2apic popcnt tsc_deadline_timer aes xsave avx f16c rdrand lahf_lm epb tpr_shadow vnmi flexpriority ept vpid fsgsbase smep erms xsaveopt dtherm ida arat pln pts
bugs :
bogomips : 5385.91
clflush size : 64
cache_alignment : 64
address sizes : 36 bits physical, 48 bits virtual
power management:
supporta tutte le flags per
core2
(normalmente la retrocompatibilità è abbastanza assicurata)
Code: Select all
CFLAGS="-O2 -march=pentium4 -pipe" CXXFLAGS="${CFLAGS}" emerge less
...
checking for x86_64-pc-linux-gnu-gcc... x86_64-pc-linux-gnu-gcc
checking whether the C compiler works... no
configure: error: in `/var/tmp/portage/sys-apps/less-487/work/less-487':
configure: error: C compiler cannot create executables
See `config.log' for more details
Code: Select all
CFLAGS="-O2 -march=westmere" CXXFLAGS="${CFLAGS}" emerge less
Code: Select all
genlop -i less
* sys-apps/less
Total builds: 2
Global build time: 55 seconds.
Average merge time: 27 seconds.
Info about currently installed ebuild:
* sys-apps/less-487
Install date: Sun Feb 19 14:46:36 2017
USE="pcre unicode"
CFLAGS="-O2 -march=westmere" CXXFLAGS="-O2 -march=westmere" LDFLAGS="-Wl,-O1 -Wl,--as-needed"
puoi comunque compilare per una architettura generica x86-64