Forums

Skip to content

Advanced search
  • Quick links
    • Unanswered topics
    • Active topics
    • Search
  • FAQ
  • Login
  • Register
  • Board index Architectures & Platforms Gentoo on ARM
  • Search

Current nodejs and ruby on Apple Silicon fail emerge[solved]

Gentoo on all things ARM. Both 32 bit and 64 bit.
Tell about your hardware and CHOST.
Problems with crossdev targeting ARM hardware go here too.
Post Reply
  • Print view
Advanced search
6 posts • Page 1 of 1
Author
Message
flysideways
Guru
Guru
Posts: 527
Joined: Sat Jan 29, 2005 1:06 pm

Current nodejs and ruby on Apple Silicon fail emerge[solved]

  • Quote

Post by flysideways » Sat Jul 27, 2024 5:50 am

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.
Top
Banana
Administrator
Administrator
User avatar
Posts: 2394
Joined: Fri May 21, 2004 12:02 pm
Location: Germany
Contact:
Contact Banana
Website

  • Quote

Post by Banana » Sat Jul 27, 2024 6:13 am

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
Top
flysideways
Guru
Guru
Posts: 527
Joined: Sat Jan 29, 2005 1:06 pm

  • Quote

Post by flysideways » Thu Aug 22, 2024 3:03 pm

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.
Top
gentoo_ram
Guru
Guru
Posts: 528
Joined: Thu Oct 25, 2007 10:04 pm
Location: San Diego, California USA

  • Quote

Post by gentoo_ram » Thu Aug 22, 2024 6:17 pm

You have unstable ~arm64 turned on globally. Not sure if that's part of the problem.
Top
flysideways
Guru
Guru
Posts: 527
Joined: Sat Jan 29, 2005 1:06 pm

  • Quote

Post by flysideways » Sun Aug 25, 2024 1:30 am

Code: Select all

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_ ... er_package to isolate nodejs from the global =native in make.conf.

Code: Select all

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.
Top
flysideways
Guru
Guru
Posts: 527
Joined: Sat Jan 29, 2005 1:06 pm

  • Quote

Post by flysideways » Sun Aug 25, 2024 8:14 am

ruby is also fixed by not using the pauth cpu extension.

Code: Select all

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}"
Top
Post Reply
  • Print view

6 posts • Page 1 of 1

Return to “Gentoo on ARM”

Jump to
  • Assistance
  • ↳   News & Announcements
  • ↳   Frequently Asked Questions
  • ↳   Installing Gentoo
  • ↳   Multimedia
  • ↳   Desktop Environments
  • ↳   Networking & Security
  • ↳   Kernel & Hardware
  • ↳   Portage & Programming
  • ↳   Gamers & Players
  • ↳   Other Things Gentoo
  • ↳   Unsupported Software
  • Discussion & Documentation
  • ↳   Documentation, Tips & Tricks
  • ↳   Gentoo Chat
  • ↳   Gentoo Forums Feedback
  • ↳   Duplicate Threads
  • International Gentoo Users
  • ↳   中文 (Chinese)
  • ↳   Dutch
  • ↳   Finnish
  • ↳   French
  • ↳   Deutsches Forum (German)
  • ↳   Diskussionsforum
  • ↳   Deutsche Dokumentation
  • ↳   Greek
  • ↳   Forum italiano (Italian)
  • ↳   Forum di discussione italiano
  • ↳   Risorse italiane (documentazione e tools)
  • ↳   Polskie forum (Polish)
  • ↳   Instalacja i sprzęt
  • ↳   Polish OTW
  • ↳   Portuguese
  • ↳   Documentação, Ferramentas e Dicas
  • ↳   Russian
  • ↳   Scandinavian
  • ↳   Spanish
  • ↳   Other Languages
  • Architectures & Platforms
  • ↳   Gentoo on ARM
  • ↳   Gentoo on PPC
  • ↳   Gentoo on Sparc
  • ↳   Gentoo on Alternative Architectures
  • ↳   Gentoo on AMD64
  • ↳   Gentoo for Mac OS X (Portage for Mac OS X)
  • Board index
  • All times are UTC
  • Delete cookies

© 2001–2026 Gentoo Foundation, Inc.

Powered by phpBB® Forum Software © phpBB Limited

Privacy Policy

 

 

magic