View previous topic :: View next topic |
Author |
Message |
flysideways Guru
Joined: 29 Jan 2005 Posts: 491
|
Posted: Sat Dec 10, 2022 4:00 pm Post subject: Gentoo Virtual Machine in the UTM App on Macbook Pro M1 Max |
|
|
*(tldr edit): -march=native is not presently working for me
8-25-24, I am now leaving -march=native in make.conf to have it globally, and using per-package fixes for the broken packages.
I have a Gentoo virtual machine, ~arm64, running on an M1 Max Macbook Pro in UTM Version 4.0.9. I first built it in August and everything worked.
Since then some updates are now failing. One type of failure is Code: | selected processor does not support `udot v1.4s,v0.16b,v3.16b' | in media-libs/xvid-1.3.7-r1, and media-libs/openh264-2.3.1-r1.
media-libs/openh264-2.3.1-r1 also has Code: | selected processor does not support `udot v2.4s,v0.16b,v5.16b' |
There was a bug filed for openh264-2.2.0 https://bugs.gentoo.org/858581, that looks like my current problem. My working openh264 that I built in August is openh264-2.3.0. I am guessing that the bug was fixed for -2.3.0 and has since re-appeared. Any help on where I should be looking is appreciated.
Again, everything did work when I first built this virtual machine in August, the failures are new.
This is from the Gentoo Virtual Machine:
Code: | merge --info
Portage 3.0.41 (python 3.10.9-final-0, default/linux/arm64/17.0/desktop, gcc-12, glibc-2.36-r6, 6.0.11-gentoo-dist aarch64)
=================================================================
System uname: Linux-6.0.11-gentoo-dist-aarch64-with-glibc2.36
KiB Mem: 16350828 total, 14947468 free
KiB Swap: 4194300 total, 4194300 free
Timestamp of repository gentoo: Sat, 10 Dec 2022 12:30:01 +0000
Head commit of repository gentoo: 803cd4884e926ef5d553e81535a56741e524b07b
sh bash 5.2_p12
ld GNU ld (Gentoo 2.38 p4) 2.38
app-misc/pax-utils: 1.3.5::gentoo
app-shells/bash: 5.2_p12::gentoo
dev-lang/perl: 5.36.0-r1::gentoo
dev-lang/python: 3.10.9::gentoo, 3.11.0_p2::gentoo
dev-lang/rust: 1.65.0::gentoo
dev-util/cmake: 3.25.1::gentoo
dev-util/meson: 0.64.1::gentoo
sys-apps/baselayout: 2.9::gentoo
sys-apps/openrc: 0.45.2-r2::gentoo
sys-apps/sandbox: 2.29::gentoo
sys-devel/autoconf: 2.13-r7::gentoo, 2.71-r5::gentoo
sys-devel/automake: 1.16.5::gentoo
sys-devel/binutils: 2.38-r2::gentoo, 2.39-r4::gentoo
sys-devel/binutils-config: 5.4.1::gentoo
sys-devel/clang: 15.0.6::gentoo
sys-devel/gcc: 12.2.1_p20221203::gentoo
sys-devel/gcc-config: 2.8::gentoo
sys-devel/libtool: 2.4.7-r1::gentoo
sys-devel/lld: 15.0.6::gentoo
sys-devel/llvm: 15.0.6::gentoo
sys-devel/make: 4.4::gentoo
sys-kernel/linux-headers: 6.0::gentoo (virtual/os-headers)
sys-libs/glibc: 2.36-r6::gentoo
Repositories:
gentoo
location: /var/db/repos/gentoo
sync-type: rsync
sync-uri: rsync://rsync.gentoo.org/gentoo-portage
priority: -1000
sync-rsync-verify-max-age: 24
sync-rsync-extra-opts:
sync-rsync-verify-jobs: 1
sync-rsync-verify-metamanifest: yes
ACCEPT_KEYWORDS="arm64 ~arm64"
ACCEPT_LICENSE="*"
CBUILD="aarch64-unknown-linux-gnu"
CFLAGS="-O2 -pipe -march=native"
CHOST="aarch64-unknown-linux-gnu"
CONFIG_PROTECT="/etc /usr/share/gnupg/qualified.txt"
CONFIG_PROTECT_MASK="/etc/ca-certificates.conf /etc/dconf /etc/env.d /etc/fonts/fonts.conf /etc/gconf /etc/gentoo-release /etc/sandbox.d /etc/terminfo"
CXXFLAGS="-O2 -pipe -march=native"
DISTDIR="/var/cache/distfiles"
ENV_UNSET="CARGO_HOME DBUS_SESSION_BUS_ADDRESS DISPLAY GOBIN GOPATH PERL5LIB PERL5OPT PERLPREFIX PERL_CORE PERL_MB_OPT PERL_MM_OPT XAUTHORITY XDG_CACHE_HOME XDG_CONFIG_HOME XDG_DATA_HOME XDG_RUNTIME_DIR XDG_STATE_HOME"
FCFLAGS="-O2 -pipe -march=native"
FEATURES="assume-digests binpkg-docompress binpkg-dostrip binpkg-logs binpkg-multi-instance buildpkg-live config-protect-if-modified distlocks ebuild-locks fixlafiles ipc-sandbox merge-sync multilib-strict network-sandbox news parallel-fetch pid-sandbox preserve-libs protect-owned qa-unresolved-soname-deps sandbox sfperms strict unknown-features-warn unmerge-logs unmerge-orphans userfetch userpriv usersandbox usersync xattr"
FFLAGS="-O2 -pipe -march=native"
GENTOO_MIRRORS="https://gentoo.osuosl.org/ https://mirrors.rit.edu/gentoo/"
LANG="en_US.utf8"
LDFLAGS="-Wl,-O1 -Wl,--as-needed"
LEX="flex"
MAKEOPTS="-j8"
PKGDIR="/var/cache/binpkgs"
PORTAGE_CONFIGROOT="/"
PORTAGE_RSYNC_OPTS="--recursive --links --safe-links --perms --times --omit-dir-times --compress --force --whole-file --delete --stats --human-readable --timeout=180 --exclude=/distfiles --exclude=/local --exclude=/packages --exclude=/.git"
PORTAGE_TMPDIR="/var/tmp"
SHELL="/bin/bash"
USE="X a52 aac acl acpi alsa arm64 bluetooth branding bzip2 cairo cdda cdr cli crypt cups dbus dri dts dvdr elogind encode exif flac fortran gdbm gif gpm gtk gui iconv icu ipv6 jpeg lcms libglvnd libnotify libtirpc mad mng mp3 mp4 mpeg ncurses nls nptl ogg opengl openmp pam pango pcre pdf png policykit ppds qt5 readline sdl seccomp spell split-usr ssl startup-notification svg test-rust tiff truetype udev udisks unicode upower usb vorbis wxwidgets x264 xattr xcb xml xv xvid zlib" ADA_TARGET="gnat_2021" APACHE2_MODULES="authn_core authz_core socache_shmcb unixd actions alias auth_basic authn_alias authn_anon authn_dbm authn_default authn_file authz_dbm authz_default authz_groupfile authz_host authz_owner authz_user autoindex cache cgi cgid dav dav_fs dav_lock deflate dir disk_cache env expires ext_filter file_cache filter headers include info log_config logio mem_cache mime mime_magic negotiation rewrite setenvif speling status unique_id userdir usertrack vhost_alias" CALLIGRA_FEATURES="karbon sheets words" COLLECTD_PLUGINS="df interface irq load memory rrdtool swap syslog" CPU_FLAGS_ARM="edsp thumb thumb2 v4 v5 v6 v7 v8 vfp vfp-d32 vfpv3 vfpv4" ELIBC="glibc" GPSD_PROTOCOLS="ashtech aivdm earthmate evermore fv18 garmin garmintxt gpsclock greis isync itrax mtk3301 nmea ntrip navcom oceanserver oldstyle oncore rtcm104v2 rtcm104v3 sirf skytraq superstar2 timing tsip tripmate tnt ublox ubx" GRUB_PLATFORMS="efi-64" INPUT_DEVICES="libinput" KERNEL="linux" LCD_DEVICES="bayrad cfontz cfontz633 glk hd44780 lb216 lcdm001 mtxorb ncurses text" LIBREOFFICE_EXTENSIONS="presenter-console presenter-minimizer" LUA_SINGLE_TARGET="lua5-1" LUA_TARGETS="lua5-1" OFFICE_IMPLEMENTATION="libreoffice" PHP_TARGETS="php7-4 php8-0" POSTGRES_TARGETS="postgres12 postgres13" PYTHON_SINGLE_TARGET="python3_10" PYTHON_TARGETS="python3_10" RUBY_TARGETS="ruby27" USERLAND="GNU" VIDEO_CARDS="fbdev dummy v4l" XTABLES_ADDONS="quota2 psd pknock lscan length2 ipv4options ipset ipp2p iface geoip fuzzy condition tee tarpit sysrq proto steal rawnat logmark ipmark dhcpmac delude chaos account"
Unset: ADDR2LINE, AR, ARFLAGS, AS, ASFLAGS, CC, CCLD, CONFIG_SHELL, CPP, CPPFLAGS, CTARGET, CXX, CXXFILT, ELFEDIT, EMERGE_DEFAULT_OPTS, EXTRA_ECONF, F77FLAGS, FC, GCOV, GPROF, INSTALL_MASK, LC_ALL, LD, LFLAGS, LIBTOOL, LINGUAS, MAKE, MAKEFLAGS, NM, OBJCOPY, OBJDUMP, PORTAGE_BINHOST, PORTAGE_BUNZIP2_COMMAND, PORTAGE_COMPRESS, PORTAGE_COMPRESS_FLAGS, PORTAGE_RSYNC_EXTRA_OPTS, RANLIB, READELF, RUSTFLAGS, SIZE, STRINGS, STRIP, YACC, YFLAGS |
Code: | lscpu
Architecture: aarch64
CPU op-mode(s): 64-bit
Byte Order: Little Endian
CPU(s): 8
On-line CPU(s) list: 0-7
Vendor ID: 0x00
Model name: -
Model: 0
Thread(s) per core: 1
Core(s) per socket: 8
Socket(s): 1
Stepping: 0x0
BogoMIPS: 48.00
Flags: fp asimd evtstrm aes pmull sha1 sha2 crc32 atomics fphp asimdhp cpuid asimdrdm jscvt fcma lrcpc dcpop sha3 asimddp sha512 asimdfhm dit uscat ilrcpc flagm sb paca pacg
dcpodp flagm2 frint
NUMA:
NUMA node(s): 1
NUMA node0 CPU(s): 0-7
Vulnerabilities:
Itlb multihit: Not affected
L1tf: Not affected
Mds: Not affected
Meltdown: Not affected
Mmio stale data: Not affected
Retbleed: Not affected
Spec store bypass: Vulnerable
Spectre v1: Mitigation; __user pointer sanitization
Spectre v2: Not affected
Srbds: Not affected
Tsx async abort: Not affected
|
Code: | for t in param target; do cmd="gcc -Q -O2 --help=$t"; diff -U0 <(LANG=C $cmd) <(LANG=C $cmd -march=native); done
--- /dev/fd/63 2022-12-10 10:24:02.213343603 -0600
+++ /dev/fd/62 2022-12-10 10:24:02.213343603 -0600
@@ -3 +3 @@
- -march= armv8-a
+ -march= armv8-a+crypto+crc+lse+rcpc+rdma+dotprod+sha3+fp16fml+sb+flagm+pauth
|
Code: | neofetch
-/oyddmdhs+:. root@GentooVM
-odNMMMMMMMMNNmhy+-` -------------
-yNMMMMMMMMMMMNNNmmdhy+- OS: Gentoo Linux aarch64
`omMMMMMMMMMMMMNmdmmmmddhhy/` Host: QEMU Virtual Machine virt-7.0
omMMMMMMMMMMMNhhyyyohmdddhhhdo` Kernel: 6.0.11-gentoo-dist
.ydMMMMMMMMMMdhs++so/smdddhhhhdm+` Uptime: 26 mins
oyhdmNMMMMMMMNdyooydmddddhhhhyhNd. Packages: 639 (emerge)
:oyhhdNNMMMMMMMNNNmmdddhhhhhyymMh Shell: bash 5.2.12
.:+sydNMMMMMNNNmmmdddhhhhhhmMmy Resolution: 1280x800
/mMMMMMMNNNmmmdddhhhhhmMNhs: DE: Xfce4 4.18pre2
`oNMMMMMMMNNNmmmddddhhdmMNhs+` WM: Xfwm4
`sNMMMMMMMMNNNmmmdddddmNMmhs/. WM Theme: Default
/NMMMMMMMMNNNNmmmdddmNMNdso:` Theme: Adwaita [GTK2/3]
+MMMMMMMNNNNNmmmmdmNMNdso/- Icons: Adwaita [GTK2/3]
yMMNNNNNNNmmmmmNNMmhs+/-` Terminal: xfce4-terminal
/hMMNNNNNNNNMNdhs++/-` Terminal Font: Monospace 12
`/ohdmmddhys+++/:.` CPU: (8)
`-//////:--. GPU: 00:02.0 Red Hat, Inc. Virtio GPU
Memory: 837MiB / 15967MiB
|
Last edited by flysideways on Sun Aug 25, 2024 8:35 am; edited 3 times in total |
|
Back to top |
|
|
flysideways Guru
Joined: 29 Jan 2005 Posts: 491
|
Posted: Tue Dec 13, 2022 8:04 pm Post subject: |
|
|
media-libs/xvid-1.3.7-r1 was also failing with Code: | Error: selected processor does not support `eor3 ... (a list of versions)` |
Adding -mcpu=native to COMMON_FLAGS fixed that. It now completes.
I still have libaom-3.5.0 failing with bcax and udot errors
python-3.11.1 eor3 errors
openh264-2.3.1-r1 udot errors |
|
Back to top |
|
|
flysideways Guru
Joined: 29 Jan 2005 Posts: 491
|
Posted: Tue Dec 13, 2022 9:40 pm Post subject: |
|
|
Did a sync, now I'm up to 9 broken packages.
This install started and worked with gcc-12.1, no longer in the tree.
edit to add context: The nine failed packages are with march declared as implied by gcc -march=native -E -v - </dev/null 2>&1 | grep cc1 results.
Last edited by flysideways on Wed Dec 14, 2022 1:41 am; edited 1 time in total |
|
Back to top |
|
|
NeddySeagoon Administrator
Joined: 05 Jul 2003 Posts: 54578 Location: 56N 3W
|
Posted: Tue Dec 13, 2022 10:11 pm Post subject: |
|
|
flysideways,
Is COMMON_FLAGS march=native any help? _________________ Regards,
NeddySeagoon
Computer users fall into two groups:-
those that do backups
those that have never had a hard drive fail. |
|
Back to top |
|
|
flysideways Guru
Joined: 29 Jan 2005 Posts: 491
|
Posted: Wed Dec 14, 2022 2:00 am Post subject: |
|
|
@Neddy, it is. I was rebuilding stuff and didn't make the previous post as detailed as I should have.
With native for march and mcpu, I get the best results.
Built with gcc-12.2.0, only these two have errors that cause failures
Code: | GCC 12.2.0 and -march=native -mcpu=native
media-libs/libaom-3.5.0
Error: selected processor does not support `udot v0.4s,v1.16b,v4.16b'
Error: selected processor does not support `udot v1.4s,v0.16b,v3.16b'
Error: selected processor does not support `udot v2.4s,v1.16b,v4.16b'
media-libs/openh264-2.3.1-r1
Error: selected processor does not support `udot v1.4s,v0.16b,v3.16b'
Error: selected processor does not support `udot v2.4s,v0.16b,v5.16b' | and, adding -mcpu=native cured the media-libs/xvid-1.3.7-r1 errors.
I spent the day going down a bunch of rabbit holes and rebuilding with a few different setups. Namely, I was trying to get it to build with declared options rather than native. I am assuming that I still need other than native for distcc. My intention was to begin managing my Pi builds from the M1 laptop, not quite there yet.
There a bunch of moving parts.
I am not getting the exact same options as are showing up in the other thread, but that is a Mac Studio and Parallels rather than my MackBook and UTM(QEMU). Searching the web, I have not been able to find anything that specifically states that the M1 Max in the Studio and Laptop are the same, or different. The processors both go by the same name, but who knows?
I will say that compiling on this laptop is impressive, fast, and cool, rarely running the fan and quietly when it does run.
Last edited by flysideways on Wed Dec 14, 2022 1:42 pm; edited 4 times in total |
|
Back to top |
|
|
flysideways Guru
Joined: 29 Jan 2005 Posts: 491
|
Posted: Wed Dec 14, 2022 2:04 am Post subject: |
|
|
Oh yeah, gentoo-kernel-6.0.12 also failed with the declared options. I did not bother checking the errors in that build log as I had already looked through all of the others and they all had some different, and shared some common errors. They were all "processor does not support" errors.
gentoo-kernel-6.0.12 built fine with native.
Also, python was not building with the declared options. |
|
Back to top |
|
|
flysideways Guru
Joined: 29 Jan 2005 Posts: 491
|
Posted: Wed Dec 14, 2022 2:22 pm Post subject: |
|
|
Updating to sys-devel/gcc-12.2.1_p20221210 both media-libs/openh264-2.3.1-r1 and media-libs/libaom-3.5.0 continue with the previous errors and media-libs/libaom-3.5.0 has added
Code: | Error: selected processor does not support `bcax v28.16b,v8.16b,v29.16b,v8.16b'
Error: selected processor does not support `bcax v2.16b,v9.16b,v30.16b,v9.16b' | to its list.
I may rebuild everything later to see how many other packages previously built will no longer build. That's for another day, I'm out of time for a while. |
|
Back to top |
|
|
flysideways Guru
Joined: 29 Jan 2005 Posts: 491
|
Posted: Fri Dec 16, 2022 3:09 am Post subject: |
|
|
I ran an emerge -ve @world, 38 of the installed packages will no longer build, including my kernels. I'll look at the errors later. |
|
Back to top |
|
|
flysideways Guru
Joined: 29 Jan 2005 Posts: 491
|
Posted: Wed Dec 28, 2022 5:00 am Post subject: |
|
|
With everything builds. I have not yet found anything that fails when running, but I also do not have a whole lot of time using it.
remains unusable.
For reference;
Code: | gcc -Q --help=target
The following options are target specific:
-mabi= lp64
-march= armv8-a
-mbig-endian [disabled]
-mbionic [disabled]
-mbranch-protection=
-mcmodel= small
-mcpu= generic
-mfix-cortex-a53-835769 [enabled]
-mfix-cortex-a53-843419 [enabled]
-mgeneral-regs-only [disabled]
-mglibc [enabled]
-mharden-sls=
-mlittle-endian [enabled]
-mlow-precision-div [disabled]
-mlow-precision-recip-sqrt [disabled]
-mlow-precision-sqrt [disabled]
-mmusl [disabled]
-momit-leaf-frame-pointer [enabled]
-moutline-atomics [enabled]
-moverride=<string>
-mpc-relative-literal-loads [enabled]
-msign-return-address= none
-mstack-protector-guard-offset=
-mstack-protector-guard-reg=
-mstack-protector-guard= global
-mstrict-align [disabled]
-msve-vector-bits=<number> scalable
-mtls-dialect= desc
-mtls-size= 24
-mtrack-speculation [disabled]
-mtune= generic
-muclibc [disabled]
-mverbose-cost-dump [disabled]
Known AArch64 ABIs (for use with the -mabi= option):
ilp32 lp64
Supported AArch64 return address signing scope (for use with -msign-return-address= option):
all non-leaf none
The code model option names for -mcmodel:
large small tiny
Valid arguments to -mstack-protector-guard=:
global sysreg
The possible SVE vector lengths:
1024 128 2048 256 512 scalable
The possible TLS dialects:
desc trad
|
Code: | # cpuid2cpuflags
CPU_FLAGS_ARM: edsp neon thumb vfp vfpv3 vfpv4 vfp-d32 aes sha1 sha2 crc32 v4 v5 v6 v7 v8 thumb2 |
Code: | # resolve-march-native
-march=armv8-a+crypto+crc+lse+rcpc+rdma+dotprod+sha3+fp16fml+sb+flagm+pauth |
|
|
Back to top |
|
|
Hu Administrator
Joined: 06 Mar 2007 Posts: 22696
|
Posted: Wed Dec 28, 2022 1:27 pm Post subject: |
|
|
flysideways wrote: | With everything builds. I have not yet found anything that fails when running, but I also do not have a whole lot of time using it. remains unusable. | As I read the linked bug, the problem there is that the assembler does not accept the generated assembly input. Since you are using gcc-12, it probably knows all the latest instructions and will use them if given permission to do so by -march. I notice in your output, and in the linked bug, that ld-2.38 is in use, which suggests that /usr/bin/as is probably also from binutils-2.38. The bug reporter had only 2.38. You also have 2.39. If you switch to the newer binutils, does -march=native work for you? It might be the case that your gcc knows instructions that your older assembler does not, and that a newer assembler would accept the output from gcc-12. |
|
Back to top |
|
|
flysideways Guru
Joined: 29 Jan 2005 Posts: 491
|
Posted: Thu Dec 29, 2022 9:50 am Post subject: |
|
|
Hi @Hu, thanks for looking.
I did eventually switch to binutils 2.39 with similar results.
Using resolve-march-native output, I added each Feature Modifier, one at a time to the -march= statement until the build of libaom failed. What I found was +sha3 creates the bcax related failures and +dotprod creates the udot failures.
This is the working emerge --info for libaom with all -march= Feature Modifiers from resolve-march-native, except +sha3 and +dotprod that cause the Errors and failures to build.
Code: | GentooVM ~ # emerge --info media-libs/libaom
Portage 3.0.42 (python 3.10.9-final-0, default/linux/arm64/17.0/desktop, gcc-12, glibc-2.36-r6, 6.1.1-gentoo-dist aarch64)
=================================================================
System Settings
=================================================================
System uname: Linux-6.1.1-gentoo-dist-aarch64-with-glibc2.36
KiB Mem: 32808680 total, 30539784 free
KiB Swap: 4194300 total, 4194300 free
Timestamp of repository gentoo: Tue, 27 Dec 2022 13:00:01 +0000
Head commit of repository gentoo: 6f2712edbe4caf662c28568a5376963a490b7687
sh bash 5.2_p15
ld GNU ld (Gentoo 2.39 p5) 2.39.0
app-misc/pax-utils: 1.3.5::gentoo
app-shells/bash: 5.2_p15::gentoo
dev-lang/perl: 5.36.0-r1::gentoo
dev-lang/python: 3.10.9::gentoo, 3.11.1::gentoo
dev-lang/rust: 1.66.0::gentoo
dev-util/cmake: 3.25.1::gentoo
dev-util/meson: 1.0.0::gentoo
sys-apps/baselayout: 2.9::gentoo
sys-apps/openrc: 0.45.2-r2::gentoo
sys-apps/sandbox: 2.29::gentoo
sys-devel/autoconf: 2.13-r7::gentoo, 2.71-r5::gentoo
sys-devel/automake: 1.16.5::gentoo
sys-devel/binutils: 2.38-r2::gentoo, 2.39-r4::gentoo
sys-devel/binutils-config: 5.4.1::gentoo
sys-devel/clang: 15.0.6::gentoo
sys-devel/gcc: 12.2.1_p20221224::gentoo
sys-devel/gcc-config: 2.8::gentoo
sys-devel/libtool: 2.4.7-r1::gentoo
sys-devel/lld: 15.0.6::gentoo
sys-devel/llvm: 15.0.6::gentoo
sys-devel/make: 4.4::gentoo
sys-kernel/linux-headers: 6.1::gentoo (virtual/os-headers)
sys-libs/glibc: 2.36-r6::gentoo
Repositories:
gentoo
location: /var/db/repos/gentoo
sync-type: rsync
sync-uri: rsync://rsync.gentoo.org/gentoo-portage
priority: -1000
volatile: True
sync-rsync-verify-jobs: 1
sync-rsync-verify-max-age: 24
sync-rsync-verify-metamanifest: yes
sync-rsync-extra-opts:
ACCEPT_KEYWORDS="arm64 ~arm64"
ACCEPT_LICENSE="*"
CBUILD="aarch64-unknown-linux-gnu"
CFLAGS="-O2 -pipe -march=armv8-a+crypto+crc+lse+rcpc+rdma+fp16fml+sb+flagm+pauth"
CHOST="aarch64-unknown-linux-gnu"
CONFIG_PROTECT="/etc /usr/share/gnupg/qualified.txt"
CONFIG_PROTECT_MASK="/etc/ca-certificates.conf /etc/dconf /etc/env.d /etc/fonts/fonts.conf /etc/gconf /etc/gentoo-release /etc/revdep-rebuild /etc/sandbox.d /etc/terminfo"
CXXFLAGS="-O2 -pipe -march=armv8-a+crypto+crc+lse+rcpc+rdma+fp16fml+sb+flagm+pauth"
DISTDIR="/var/cache/distfiles"
ENV_UNSET="CARGO_HOME DBUS_SESSION_BUS_ADDRESS DISPLAY GOBIN GOPATH PERL5LIB PERL5OPT PERLPREFIX PERL_CORE PERL_MB_OPT PERL_MM_OPT XAUTHORITY XDG_CACHE_HOME XDG_CONFIG_HOME XDG_DATA_HOME XDG_RUNTIME_DIR XDG_STATE_HOME"
FCFLAGS="-O2 -pipe -march=armv8-a+crypto+crc+lse+rcpc+rdma+fp16fml+sb+flagm+pauth"
FEATURES="assume-digests binpkg-docompress binpkg-dostrip binpkg-logs binpkg-multi-instance buildpkg-live config-protect-if-modified distlocks ebuild-locks fixlafiles ipc-sandbox merge-sync multilib-strict network-sandbox news parallel-fetch pid-sandbox preserve-libs protect-owned qa-unresolved-soname-deps sandbox sfperms strict unknown-features-warn unmerge-logs unmerge-orphans userfetch userpriv usersandbox usersync xattr"
FFLAGS="-O2 -pipe -march=armv8-a+crypto+crc+lse+rcpc+rdma+fp16fml+sb+flagm+pauth"
GENTOO_MIRRORS="https://gentoo.osuosl.org/ https://mirrors.rit.edu/gentoo/"
LANG="en_US.utf8"
LDFLAGS="-Wl,-O1 -Wl,--as-needed"
LEX="flex"
MAKEOPTS="-j8"
PKGDIR="/var/cache/binpkgs"
PORTAGE_CONFIGROOT="/"
PORTAGE_RSYNC_OPTS="--recursive --links --safe-links --perms --times --omit-dir-times --compress --force --whole-file --delete --stats --human-readable --timeout=180 --exclude=/distfiles --exclude=/local --exclude=/packages --exclude=/.git"
PORTAGE_TMPDIR="/var/tmp"
SHELL="/bin/bash"
USE="X a52 aac acl acpi alsa arm64 bluetooth branding bzip2 cairo cdda cdr cli crypt cups dbus dri dts dvdr elogind encode exif flac fortran gdbm gif gpm gtk gui iconv icu ipv6 jpeg lcms libglvnd libnotify libtirpc mad mng mp3 mp4 mpeg ncurses nls nptl ogg opengl openmp pam pango pcre pdf png policykit ppds qt5 readline sdl seccomp sound spell split-usr ssl startup-notification svg test-rust tiff truetype udev udisks unicode upower usb vorbis wxwidgets x264 xattr xcb xft xml xv xvid zlib" ADA_TARGET="gnat_2021" APACHE2_MODULES="authn_core authz_core socache_shmcb unixd actions alias auth_basic authn_alias authn_anon authn_dbm authn_default authn_file authz_dbm authz_default authz_groupfile authz_host authz_owner authz_user autoindex cache cgi cgid dav dav_fs dav_lock deflate dir disk_cache env expires ext_filter file_cache filter headers include info log_config logio mem_cache mime mime_magic negotiation rewrite setenvif speling status unique_id userdir usertrack vhost_alias" CALLIGRA_FEATURES="karbon sheets words" COLLECTD_PLUGINS="df interface irq load memory rrdtool swap syslog" CPU_FLAGS_ARM="edsp thumb thumb2 v4 v5 v6 v7 v8 vfp vfp-d32 vfpv3 vfpv4" ELIBC="glibc" GPSD_PROTOCOLS="ashtech aivdm earthmate evermore fv18 garmin garmintxt gpsclock greis isync itrax mtk3301 nmea ntrip navcom oceanserver oldstyle oncore rtcm104v2 rtcm104v3 sirf skytraq superstar2 timing tsip tripmate tnt ublox ubx" GRUB_PLATFORMS="efi-64" INPUT_DEVICES="libinput" KERNEL="linux" LCD_DEVICES="bayrad cfontz cfontz633 glk hd44780 lb216 lcdm001 mtxorb ncurses text" LIBREOFFICE_EXTENSIONS="presenter-console presenter-minimizer" LUA_SINGLE_TARGET="lua5-1" LUA_TARGETS="lua5-1" OFFICE_IMPLEMENTATION="libreoffice" PHP_TARGETS="php7-4 php8-0" POSTGRES_TARGETS="postgres12 postgres13" PYTHON_SINGLE_TARGET="python3_10" PYTHON_TARGETS="python3_10" RUBY_TARGETS="ruby27" USERLAND="GNU" VIDEO_CARDS="fbdev dummy v4l" XTABLES_ADDONS="quota2 psd pknock lscan length2 ipv4options ipset ipp2p iface geoip fuzzy condition tee tarpit sysrq proto steal rawnat logmark ipmark dhcpmac delude chaos account"
Unset: ADDR2LINE, AR, ARFLAGS, AS, ASFLAGS, CC, CCLD, CONFIG_SHELL, CPP, CPPFLAGS, CTARGET, CXX, CXXFILT, ELFEDIT, EMERGE_DEFAULT_OPTS, EXTRA_ECONF, F77FLAGS, FC, GCOV, GPROF, INSTALL_MASK, LC_ALL, LD, LFLAGS, LIBTOOL, LINGUAS, MAKE, MAKEFLAGS, NM, OBJCOPY, OBJDUMP, PORTAGE_BINHOST, PORTAGE_BUNZIP2_COMMAND, PORTAGE_COMPRESS, PORTAGE_COMPRESS_FLAGS, PORTAGE_RSYNC_EXTRA_OPTS, RANLIB, READELF, RUSTFLAGS, SIZE, STRINGS, STRIP, YACC, YFLAGS
=================================================================
Package Settings
=================================================================
media-libs/libaom-3.5.0::gentoo was built with the following:
USE="examples -doc -test" CPU_FLAGS_ARM="(-neon)"
FEATURES="sandbox binpkg-dostrip unmerge-orphans unknown-features-warn qa-unresolved-soname-deps userfetch binpkg-docompress assume-digests usersync buildpkg-live binpkg-logs multilib-strict sfperms strict xattr config-protect-if-modified network-sandbox distlocks ebuild-locks preserve-libs protect-owned pid-sandbox usersandbox binpkg-multi-instance ipc-sandbox news userpriv unmerge-logs fixlafiles merge-sync parallel-fetch"
|
|
|
Back to top |
|
|
flysideways Guru
Joined: 29 Jan 2005 Posts: 491
|
Posted: Thu Dec 29, 2022 9:28 pm Post subject: |
|
|
Running --emptytree with native currently shows these failing packages;
Code: | * The following 34 packages have failed to build, install, or execute
* postinst:
*
* (app-crypt/argon2-20190702-r1:0/1::gentoo, ebuild scheduled for merge), Log file:
* '/var/tmp/portage/app-crypt/argon2-20190702-r1/temp/build.log'
* (media-libs/openh264-2.3.1-r1:0/7::gentoo, ebuild scheduled for merge), Log file:
* '/var/tmp/portage/media-libs/openh264-2.3.1-r1/temp/build.log'
* (dev-libs/openssl-3.0.7-r2:0/3::gentoo, ebuild scheduled for merge), Log file:
* '/var/tmp/portage/dev-libs/openssl-3.0.7-r2/temp/build.log'
* (dev-lang/perl-5.36.0-r1:0/5.36::gentoo, ebuild scheduled for merge), Log file:
* '/var/tmp/portage/dev-lang/perl-5.36.0-r1/temp/build.log'
* (sys-apps/util-linux-2.38.1:0/0::gentoo, ebuild scheduled for merge), Log file:
* '/var/tmp/portage/sys-apps/util-linux-2.38.1/temp/build.log'
* (dev-libs/icu-72.1:0/72.1::gentoo, ebuild scheduled for merge), Log file:
* '/var/tmp/portage/dev-libs/icu-72.1/temp/build.log'
* (dev-libs/libgcrypt-1.10.1-r3:0/20::gentoo, ebuild scheduled for merge), Log file:
* '/var/tmp/portage/dev-libs/libgcrypt-1.10.1-r3/temp/build.log'
* (dev-libs/gmp-6.2.1-r5:0/10.4::gentoo, ebuild scheduled for merge), Log file:
* '/var/tmp/portage/dev-libs/gmp-6.2.1-r5/temp/build.log'
* (sys-apps/coreutils-9.1-r2:0/0::gentoo, ebuild scheduled for merge), Log file:
* '/var/tmp/portage/sys-apps/coreutils-9.1-r2/temp/build.log'
* (app-arch/unzip-6.0_p27-r1:0/0::gentoo, ebuild scheduled for merge), Log file:
* '/var/tmp/portage/app-arch/unzip-6.0_p27-r1/temp/build.log'
* (dev-lang/python-3.10.9:3.10/3.10::gentoo, ebuild scheduled for merge), Log file:
* '/var/tmp/portage/dev-lang/python-3.10.9/temp/build.log'
* (app-crypt/libb2-0.98.1-r3:0/0::gentoo, ebuild scheduled for merge), Log file:
* '/var/tmp/portage/app-crypt/libb2-0.98.1-r3/temp/build.log'
* (sys-libs/libxcrypt-4.4.33:0/1::gentoo, ebuild scheduled for merge), Log file:
* '/var/tmp/portage/sys-libs/libxcrypt-4.4.33/temp/build.log'
* (media-libs/libvpx-1.12.0-r1:0/7::gentoo, ebuild scheduled for merge), Log file:
* '/var/tmp/portage/media-libs/libvpx-1.12.0-r1/temp/build.log'
* (sys-fs/e2fsprogs-1.46.5-r4:0/0::gentoo, ebuild scheduled for merge), Log file:
* '/var/tmp/portage/sys-fs/e2fsprogs-1.46.5-r4/temp/build.log'
* (app-crypt/rhash-1.4.3:0/0::gentoo, ebuild scheduled for merge), Log file:
* '/var/tmp/portage/app-crypt/rhash-1.4.3/temp/build.log'
* (app-arch/libarchive-3.6.1-r1:0/13::gentoo, ebuild scheduled for merge), Log file:
* '/var/tmp/portage/app-arch/libarchive-3.6.1-r1/temp/build.log'
* (dev-lang/python-3.11.1:3.11/3.11::gentoo, ebuild scheduled for merge), Log file:
* '/var/tmp/portage/dev-lang/python-3.11.1/temp/build.log'
* (sys-block/thin-provisioning-tools-0.9.0-r1:0/0::gentoo, ebuild scheduled for merge), Log file:
* '/var/tmp/portage/sys-block/thin-provisioning-tools-0.9.0-r1/temp/build.log'
* (dev-libs/nss-3.86:0/0::gentoo, ebuild scheduled for merge), Log file:
* '/var/tmp/portage/dev-libs/nss-3.86/temp/build.log'
* (media-libs/libaom-3.5.0:0/3::gentoo, ebuild scheduled for merge), Log file:
* '/var/tmp/portage/media-libs/libaom-3.5.0/temp/build.log'
* (dev-lang/rust-1.66.0:stable/1.66::gentoo, ebuild scheduled for merge), Log file:
* '/var/tmp/portage/dev-lang/rust-1.66.0/temp/build.log'
* (sys-devel/llvm-15.0.6:15/15::gentoo, ebuild scheduled for merge), Log file:
* '/var/tmp/portage/sys-devel/llvm-15.0.6/temp/build.log'
* (sys-apps/openrc-0.45.2-r2:0/0::gentoo, ebuild scheduled for merge), Log file:
* '/var/tmp/portage/sys-apps/openrc-0.45.2-r2/temp/build.log'
* (dev-libs/glib-2.74.4:2/2::gentoo, ebuild scheduled for merge), Log file:
* '/var/tmp/portage/dev-libs/glib-2.74.4/temp/build.log'
* (dev-qt/qtcore-5.15.7:5/5.15.7::gentoo, ebuild scheduled for merge), Log file:
* '/var/tmp/portage/dev-qt/qtcore-5.15.7/temp/build.log'
* (media-libs/mesa-22.3.1:0/0::gentoo, ebuild scheduled for merge), Log file:
* '/var/tmp/portage/media-libs/mesa-22.3.1/temp/build.log'
* (app-text/poppler-22.12.0-r1:0/126::gentoo, ebuild scheduled for merge), Log file:
* '/var/tmp/portage/app-text/poppler-22.12.0-r1/temp/build.log'
* (media-libs/libsdl2-2.26.0:0/0::gentoo, ebuild scheduled for merge), Log file:
* '/var/tmp/portage/media-libs/libsdl2-2.26.0/temp/build.log'
* (sys-boot/grub-2.06-r4:2/2.06-r4::gentoo, ebuild scheduled for merge), Log file:
* '/var/tmp/portage/sys-boot/grub-2.06-r4/temp/build.log'
* (sys-devel/clang-15.0.6:15/15::gentoo, ebuild scheduled for merge), Log file:
* '/var/tmp/portage/sys-devel/clang-15.0.6/temp/build.log'
* (sys-devel/lld-15.0.6:15/15::gentoo, ebuild scheduled for merge), Log file:
* '/var/tmp/portage/sys-devel/lld-15.0.6/temp/build.log'
* (sys-kernel/gentoo-kernel-6.1.1:6.1.1/6.1.1::gentoo, ebuild scheduled for merge), Log file:
* '/var/tmp/portage/sys-kernel/gentoo-kernel-6.1.1/temp/build.log'
* (sys-kernel/gentoo-kernel-6.0.15:6.0.15/6.0.15::gentoo, ebuild scheduled for merge), Log file:
* '/var/tmp/portage/sys-kernel/gentoo-kernel-6.0.15/temp/build.log' |
edit to add: I removed four older kernels since I got the 38 failed result noted earlier, to clarify the current count being 34 failed. |
|
Back to top |
|
|
flysideways Guru
Joined: 29 Jan 2005 Posts: 491
|
Posted: Thu Jan 05, 2023 11:01 am Post subject: |
|
|
Using the M1 MacBook to maintain my Raspberry Pi looks promising.
Code: | 2023-01-04T11:41:52 >>> sys-devel/gcc-12.2.1_p20221231: 16:00:08
2023-01-05T04:10:20 >>> sys-devel/gcc-12.2.1_p20221231: 23′47″
|
The first is Pi 4 8GB on the sd card, the second, chrooted in with the MacBook on the same sd card. |
|
Back to top |
|
|
gluker n00b
Joined: 06 Jan 2023 Posts: 1
|
Posted: Fri Jan 06, 2023 2:51 pm Post subject: Error related to GCC LTO optimization for GMP at ARM AArch64 |
|
|
I've found the problem related to GCC LTO optimization for GMP for ARM aarch64
under QEMU with ARM Neoverse-N1 virt-4.2 (Oracle Cloud) and ARM virt-7.2 (Apple M1)
both running the latest Gentoo with gmp-6.2.1-r5 compiled by both
gcc version 11.3.1 20221209 and gcc version 12.2.1 20221231.
To reproduce:
1. Compile GMP with LTO optimization -- compiles OK
2. Try to compile iproute2-6.1.0 or cmake-3.25.1 -- compilation hangs during the process
Disabling LTO optimization for GMP solves the problem.
P.S.: i've reported the issue to gmp-bugs and Gentoo's bugzilla |
|
Back to top |
|
|
chin39 n00b
Joined: 29 Jan 2023 Posts: 1
|
Posted: Sun Jan 29, 2023 9:19 pm Post subject: |
|
|
Hi, I'm using m2 max with UTM, I found some packages like openh264 could build by clang with -march=native. |
|
Back to top |
|
|
flysideways Guru
Joined: 29 Jan 2005 Posts: 491
|
Posted: Sun Jan 29, 2023 11:39 pm Post subject: |
|
|
chin39 wrote: | Hi, I'm using m2 max with UTM, I found some packages like openh264 could build by clang with -march=native. |
Nice, Apple participates in LLVM/Clang, and LLVM/Clang native has worked for a while for the M1. |
|
Back to top |
|
|
flysideways Guru
Joined: 29 Jan 2005 Posts: 491
|
Posted: Sat Mar 25, 2023 3:30 am Post subject: |
|
|
Tried another --emptytree with march=native.
Code: | * The following 37 packages have failed to build, install, or execute
* postinst:
*
* (app-crypt/argon2-20190702-r1:0/1::gentoo, ebuild scheduled for merge), Log file:
* '/var/tmp/portage/app-crypt/argon2-20190702-r1/temp/build.log'
* (media-libs/openh264-2.3.1-r1:0/7::gentoo, ebuild scheduled for merge), Log file:
* '/var/tmp/portage/media-libs/openh264-2.3.1-r1/temp/build.log'
* (dev-libs/openssl-3.0.8-r2:0/3::gentoo, ebuild scheduled for merge), Log file:
* '/var/tmp/portage/dev-libs/openssl-3.0.8-r2/temp/build.log'
* (dev-lang/perl-5.36.0-r2:0/5.36::gentoo, ebuild scheduled for merge), Log file:
* '/var/tmp/portage/dev-lang/perl-5.36.0-r2/temp/build.log'
* (sys-apps/util-linux-2.38.1-r2:0/0::gentoo, ebuild scheduled for merge), Log file:
* '/var/tmp/portage/sys-apps/util-linux-2.38.1-r2/temp/build.log'
* (dev-libs/icu-72.1:0/72.1::gentoo, ebuild scheduled for merge), Log file:
* '/var/tmp/portage/dev-libs/icu-72.1/temp/build.log'
* (dev-libs/libgcrypt-1.10.1-r3:0/20::gentoo, ebuild scheduled for merge), Log file:
* '/var/tmp/portage/dev-libs/libgcrypt-1.10.1-r3/temp/build.log'
* (dev-libs/gmp-6.2.1-r5:0/10.4::gentoo, ebuild scheduled for merge), Log file:
* '/var/tmp/portage/dev-libs/gmp-6.2.1-r5/temp/build.log'
* (sys-apps/coreutils-9.2-r1:0/0::gentoo, ebuild scheduled for merge), Log file:
* '/var/tmp/portage/sys-apps/coreutils-9.2-r1/temp/build.log'
* (app-arch/unzip-6.0_p27-r1:0/0::gentoo, ebuild scheduled for merge), Log file:
* '/var/tmp/portage/app-arch/unzip-6.0_p27-r1/temp/build.log'
* (dev-lang/python-3.10.10_p3:3.10/3.10::gentoo, ebuild scheduled for merge), Log file:
* '/var/tmp/portage/dev-lang/python-3.10.10_p3/temp/build.log'
* (app-crypt/libb2-0.98.1-r3:0/0::gentoo, ebuild scheduled for merge), Log file:
* '/var/tmp/portage/app-crypt/libb2-0.98.1-r3/temp/build.log'
* (sys-libs/libxcrypt-4.4.33:0/1::gentoo, ebuild scheduled for merge), Log file:
* '/var/tmp/portage/sys-libs/libxcrypt-4.4.33/temp/build.log'
* (media-libs/libvpx-1.12.0-r1:0/7::gentoo, ebuild scheduled for merge), Log file:
* '/var/tmp/portage/media-libs/libvpx-1.12.0-r1/temp/build.log'
* (dev-lang/python-3.11.2_p2:3.11/3.11::gentoo, ebuild scheduled for merge), Log file:
* '/var/tmp/portage/dev-lang/python-3.11.2_p2/temp/build.log'
* (sys-fs/e2fsprogs-1.47.0:0/0::gentoo, ebuild scheduled for merge), Log file:
* '/var/tmp/portage/sys-fs/e2fsprogs-1.47.0/temp/build.log'
* (app-crypt/rhash-1.4.3:0/0::gentoo, ebuild scheduled for merge), Log file:
* '/var/tmp/portage/app-crypt/rhash-1.4.3/temp/build.log'
* (app-arch/libarchive-3.6.2-r1:0/13::gentoo, ebuild scheduled for merge), Log file:
* '/var/tmp/portage/app-arch/libarchive-3.6.2-r1/temp/build.log'
* (dev-libs/nss-3.89:0/0::gentoo, ebuild scheduled for merge), Log file:
* '/var/tmp/portage/dev-libs/nss-3.89/temp/build.log'
* (sys-apps/openrc-0.46:0/0::gentoo, ebuild scheduled for merge), Log file:
* '/var/tmp/portage/sys-apps/openrc-0.46/temp/build.log'
* (dev-libs/glib-2.76.1:2/2::gentoo, ebuild scheduled for merge), Log file:
* '/var/tmp/portage/dev-libs/glib-2.76.1/temp/build.log'
* (sys-boot/grub-2.06-r6:2/2.06-r6::gentoo, ebuild scheduled for merge), Log file:
* '/var/tmp/portage/sys-boot/grub-2.06-r6/temp/build.log'
* (sys-kernel/gentoo-kernel-6.2.8:6.2.8/6.2.8::gentoo, ebuild scheduled for merge), Log file:
* '/var/tmp/portage/sys-kernel/gentoo-kernel-6.2.8/temp/build.log'
* (dev-lang/rust-1.68.1:stable/1.68::gentoo, ebuild scheduled for merge), Log file:
* '/var/tmp/portage/dev-lang/rust-1.68.1/temp/build.log'
* (sys-kernel/gentoo-kernel-6.2.7:6.2.7/6.2.7::gentoo, ebuild scheduled for merge), Log file:
* '/var/tmp/portage/sys-kernel/gentoo-kernel-6.2.7/temp/build.log'
* (media-libs/libaom-3.6.0:0/3::gentoo, ebuild scheduled for merge), Log file:
* '/var/tmp/portage/media-libs/libaom-3.6.0/temp/build.log'
* (net-libs/nodejs-18.15.0:0/18::gentoo, ebuild scheduled for merge), Log file:
* '/var/tmp/portage/net-libs/nodejs-18.15.0/temp/build.log'
* (dev-qt/qtcore-5.15.8-r3:5/5.15.8::gentoo, ebuild scheduled for merge), Log file:
* '/var/tmp/portage/dev-qt/qtcore-5.15.8-r3/temp/build.log'
* (app-text/poppler-23.03.0:0/126::gentoo, ebuild scheduled for merge), Log file:
* '/var/tmp/portage/app-text/poppler-23.03.0/temp/build.log'
* (www-client/firefox-102.9.0:esr/esr::gentoo, ebuild scheduled for merge), Log file:
* '/var/tmp/portage/www-client/firefox-102.9.0/temp/build.log'
* (sys-devel/llvm-16.0.0:16/16::gentoo, ebuild scheduled for merge), Log file:
* '/var/tmp/portage/sys-devel/llvm-16.0.0/temp/build.log'
* (media-libs/mesa-23.0.0-r1:0/0::gentoo, ebuild scheduled for merge), Log file:
* '/var/tmp/portage/media-libs/mesa-23.0.0-r1/temp/build.log'
* (sys-devel/llvm-15.0.7:15/15::gentoo, ebuild scheduled for merge), Log file:
* '/var/tmp/portage/sys-devel/llvm-15.0.7/temp/build.log'
* (media-libs/libsdl2-2.26.3:0/0::gentoo, ebuild scheduled for merge), Log file:
* '/var/tmp/portage/media-libs/libsdl2-2.26.3/temp/build.log'
* (sys-devel/clang-16.0.0:16/16::gentoo, ebuild scheduled for merge), Log file:
* '/var/tmp/portage/sys-devel/clang-16.0.0/temp/build.log'
* (sys-devel/clang-15.0.7-r1:15/15g1::gentoo, ebuild scheduled for merge), Log file:
* '/var/tmp/portage/sys-devel/clang-15.0.7-r1/temp/build.log'
* (sys-devel/lld-15.0.7:15/15::gentoo, ebuild scheduled for merge), Log file:
* '/var/tmp/portage/sys-devel/lld-15.0.7/temp/build.log' |
|
|
Back to top |
|
|
costel78 Guru
Joined: 20 Apr 2007 Posts: 407
|
Posted: Tue Apr 04, 2023 11:43 am Post subject: |
|
|
gluker wrote: | I've found the problem related to GCC LTO optimization for GMP for ARM aarch64
under QEMU with ARM Neoverse-N1 virt-4.2 (Oracle Cloud) and ARM virt-7.2 (Apple M1)
both running the latest Gentoo with gmp-6.2.1-r5 compiled by both
gcc version 11.3.1 20221209 and gcc version 12.2.1 20221231.
To reproduce:
1. Compile GMP with LTO optimization -- compiles OK
2. Try to compile iproute2-6.1.0 or cmake-3.25.1 -- compilation hangs during the process
Disabling LTO optimization for GMP solves the problem. |
Maybe this patch helps ?
https://github.com/InBetweenNames/gentooLTO/blob/master/sys-config/ltoize/files/patches/dev-libs/gmp/arm64-lto.patch
Before using it, gcc itself hang on Pi, over night. Very anoing to see in the morning that there was no progress. _________________ Sorry for my English. I'm still learning this language. |
|
Back to top |
|
|
flysideways Guru
Joined: 29 Jan 2005 Posts: 491
|
Posted: Mon Jun 26, 2023 1:50 am Post subject: |
|
|
I have just tried VMWare's Fusion 13. It too has the same problems in gcc with -march=native.
UTM has an issue recognizing many external drives that Fusion does not. With Fusion, I can mount and update the Samsung T7 drives that I had been using as the boot disks for a couple of Pi's. Using UTM, I had to return to sd cards, I could mount them.
I am going to use Fusion and again use the ssd drives with my Pi's. |
|
Back to top |
|
|
flysideways Guru
Joined: 29 Jan 2005 Posts: 491
|
Posted: Fri Aug 23, 2024 5:16 am Post subject: |
|
|
emptytree with -march=native and gcc 14 has the following that do not compile in a VMWare Fusion VM
Code: | The following 4 packages have failed to build, install, or execute
* postinst:
*
* (dev-cpp/highway-1.0.7-r1:0/0::gentoo, ebuild scheduled for merge), Log file:
* '/var/tmp/portage/dev-cpp/highway-1.0.7-r1/temp/build.log'
* (net-libs/nodejs-22.6.0:0/22::gentoo, ebuild scheduled for merge), Log file:
* '/var/tmp/portage/net-libs/nodejs-22.6.0/temp/build.log'
* (dev-lang/ruby-3.2.5:3.2/3.2::gentoo, ebuild scheduled for merge), Log file:
* '/var/tmp/portage/dev-lang/ruby-3.2.5/temp/build.log'
* (x11-drivers/xf86-video-vmware-13.4.0:0/0::gentoo, ebuild scheduled for merge), Log file:
* '/var/tmp/portage/x11-drivers/xf86-video-vmware-13.4.0/temp/build.log' |
|
|
Back to top |
|
|
flysideways Guru
Joined: 29 Jan 2005 Posts: 491
|
Posted: Fri Aug 23, 2024 7:36 pm Post subject: |
|
|
An emerge emptytree -march=native in a UTM VM with gcc 14, this one is XFCE with no Ruby:
Code: | * The following 3 packages have failed to build, install, or execute
* postinst:
*
* (sys-libs/glibc-2.40:2.2/2.2::gentoo, ebuild scheduled for merge), Log file:
* '/var/tmp/portage/sys-libs/glibc-2.40/temp/build.log'
* (media-libs/libvpx-1.14.1:0/9::gentoo, ebuild scheduled for merge), Log file:
* '/var/tmp/portage/media-libs/libvpx-1.14.1/temp/build.log'
* (net-libs/nodejs-22.7.0:0/22::gentoo, ebuild scheduled for merge), Log file:
* '/var/tmp/portage/net-libs/nodejs-22.7.0/temp/build.log'
|
|
|
Back to top |
|
|
flysideways Guru
Joined: 29 Jan 2005 Posts: 491
|
Posted: Fri Aug 23, 2024 9:31 pm Post subject: |
|
|
The packages that will not complete with -march=native in the above two posts do complete with -march=armv8-a.
Both UTM and VMWare VM's had previously been successfully compiling everything for about 1 1/2 years with -march=armv8-a+crypto+crc+lse+rcpc+rdma+fp16fml+sb+flagm+pauth. It has only been the last few months that things began to fail. |
|
Back to top |
|
|
flysideways Guru
Joined: 29 Jan 2005 Posts: 491
|
Posted: Sun Aug 25, 2024 8:32 am Post subject: |
|
|
I have been able to build all of the packages that currently do not build with -march=native with some reduced combination of cpu extensions.
flysideways wrote: | Code: | resolve-march-native
-march=armv8-a+flagm+lse+dotprod+rdma+crc+aes+sha3+fp16fml+rcpc+sb+ssbs+pauth |
Is from the VMWare VM using gcc14.
I have successfully built nodejs with all of the listed extensions except for pauth. pauth crashes the build.
I used a /etc/portage/env/ file as described in the wiki https://wiki.gentoo.org/wiki/Knowledge_Base:Overriding_environment_variables_per_package to isolate nodejs from the global =native in make.conf.
Code: | COMMON_FLAGS="-O2 -pipe -march=armv8-a+flagm+lse+dotprod+rdma+crc+aes+sha3+fp16fml+rcpc+sb+ssbs"
CFLAGS="${COMMON_FLAGS}"
CXXFLAGS="${COMMON_FLAGS}"
FCFLAGS="${COMMON_FLAGS}"
FFLAGS="${COMMON_FLAGS}" |
pauth was the last of the 12 that I tried. Yes, they all needed to be tried, but, it took a while.
My intention is to leave =native global in make.conf and isolate the non-building packages in their own per-package build environment. The low hanging fruit is just -march=armv8-a ,but, time allowing I will try to identify the offending cpu extensions for any additional packages that fail to build in this manner. |
|
|
Back to top |
|
|
flysideways Guru
Joined: 29 Jan 2005 Posts: 491
|
Posted: Sat Sep 14, 2024 12:08 am Post subject: |
|
|
glibc stopped building in late August.
It was failing complaining about a lack of SVE ISA extensions.
After chasing that for a while, I discovered that removing the -mcpu=native declaration from make.conf fixed the problem. Doing that has not appeared to break anything new, but has fixed glibc. |
|
Back to top |
|
|
|
|
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
|
|