View previous topic :: View next topic |
Author |
Message |
flysideways Guru
Joined: 29 Jan 2005 Posts: 490
|
Posted: Sat Jul 27, 2024 5:50 am Post subject: Current nodejs and ruby on Apple Silicon fail emerge[solved] |
|
|
I was curious if anyone other than me is having problems emerging the current nodejs and ruby on Apple Silicon.
I am having issues, with both, on VMWare Fusion and UTM vm's.
Last edited by flysideways on Sun Aug 25, 2024 8:16 am; edited 1 time in total |
|
Back to top |
|
|
Banana Moderator
Joined: 21 May 2004 Posts: 1711 Location: Germany
|
|
Back to top |
|
|
flysideways Guru
Joined: 29 Jan 2005 Posts: 490
|
Posted: Thu Aug 22, 2024 3:03 pm Post subject: |
|
|
I'm not seeing the problem. I waited a while to see if subsequent updates might have fixed it.
make.conf https://bpa.st/raw/ALNA
From the VMWare Fusion VM for nodejs:
command and info https://bpa.st/raw/ZGNQ
build log https://bpa.st/raw/XTZA
for ruby:
command https://bpa.st/raw/3HOQ
build log https://bpa.st/raw/7KOQ
Edit to add: They compile with -march reduced to armv8-a. When I started with this MacBook I was using, the then current gcc 12, and some of the extensions invoked by native were causing problems. In the previous cases I had been able to find the offending extensions in the build logs. I don't see them now. I'm now using gcc 14 and the set of packages that fail to build using native is much smaller than before. I need more time to discover which extensions are causing the failures.
Last edited by flysideways on Fri Aug 23, 2024 9:39 pm; edited 2 times in total |
|
Back to top |
|
|
gentoo_ram Guru
Joined: 25 Oct 2007 Posts: 501 Location: San Diego, California USA
|
Posted: Thu Aug 22, 2024 6:17 pm Post subject: |
|
|
You have unstable ~arm64 turned on globally. Not sure if that's part of the problem. |
|
Back to top |
|
|
flysideways Guru
Joined: 29 Jan 2005 Posts: 490
|
Posted: Sun Aug 25, 2024 1:30 am Post subject: |
|
|
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: 490
|
Posted: Sun Aug 25, 2024 8:14 am Post subject: |
|
|
ruby is also fixed by not using the pauth cpu extension.
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}" |
|
|
Back to top |
|
|
|