Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
Current nodejs and ruby on Apple Silicon fail emerge[solved]
View unanswered posts
View posts from last 24 hours

 
Reply to topic    Gentoo Forums Forum Index Gentoo on ARM
View previous topic :: View next topic  
Author Message
flysideways
Guru
Guru


Joined: 29 Jan 2005
Posts: 459

PostPosted: Sat Jul 27, 2024 5:50 am    Post subject: Current nodejs and ruby on Apple Silicon fail emerge[solved] Reply with quote

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
View user's profile Send private message
Banana
Moderator
Moderator


Joined: 21 May 2004
Posts: 1618
Location: Germany

PostPosted: Sat Jul 27, 2024 6:13 am    Post subject: Reply with quote

If you could please the commands and output, maybe somone can help
_________________
Forum Guidelines

PFL - Portage file list - find which package a file or command belongs to.
My delta-labs.org snippets do expire
Back to top
View user's profile Send private message
flysideways
Guru
Guru


Joined: 29 Jan 2005
Posts: 459

PostPosted: Thu Aug 22, 2024 3:03 pm    Post subject: Reply with quote

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
View user's profile Send private message
gentoo_ram
Guru
Guru


Joined: 25 Oct 2007
Posts: 495
Location: San Diego, California USA

PostPosted: Thu Aug 22, 2024 6:17 pm    Post subject: Reply with quote

You have unstable ~arm64 turned on globally. Not sure if that's part of the problem.
Back to top
View user's profile Send private message
flysideways
Guru
Guru


Joined: 29 Jan 2005
Posts: 459

PostPosted: Sun Aug 25, 2024 1:30 am    Post subject: Reply with quote

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
View user's profile Send private message
flysideways
Guru
Guru


Joined: 29 Jan 2005
Posts: 459

PostPosted: Sun Aug 25, 2024 8:14 am    Post subject: Reply with quote

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
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Gentoo on ARM All times are GMT
Page 1 of 1

 
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