libsass-maven-plugin icon indicating copy to clipboard operation
libsass-maven-plugin copied to clipboard

UnsatisfiedLinkError on M1 tmp directory

Open toddmerrill opened this issue 2 years ago • 4 comments

Hi, I'm getting the following error running on a new M1 mac:

[ERROR] Failed to execute goal com.github.warmuuh:libsass-maven-plugin:0.2.10-libsass_3.5.3:compile (default) on project unive-business-cim-extension: Execution default of goal com.github.warmuuh:libsass-maven-plugin:0.2.10-libsass_3.5.3:compile failed: An API incompatibility was encountered while executing com.github.warmuuh:libsass-maven-plugin:0.2.10-libsass_3.5.3:compile: java.lang.UnsatisfiedLinkError: Can't load library: /var/folders/rb/wh4yym_n4yvgvt5g4wlp3y200000gq/T/libjsass-17043604973941698034/libjsass.dylib

I read that this is likely related to mac os tmp directories being mounted with 'noexec', so I've tried changing the temp directory with the TMPDIR environment property and changing the java.io.tmpdir java property values to write to a directory with exec rights, but with no results.

This is a long existing project that builds fine on everyone else's (non-M1) machine. Is this a known problem, or is there a workaround I could use?

mvn -v:

Maven home: /opt/homebrew/Cellar/maven/3.8.6/libexec
Java version: 18.0.2, vendor: Homebrew, runtime: /opt/homebrew/Cellar/openjdk/18.0.2/libexec/openjdk.jdk/Contents/Home
Default locale: en_NL, platform encoding: UTF-8
OS name: "mac os x", version: "12.2.1", arch: "aarch64", family: "mac"

toddmerrill avatar Aug 24 '22 13:08 toddmerrill

Hello, Facing the similar issue with M1 Mac. Is there any workaround that anyone found?

[ERROR] Failed to execute goal com.github.warmuuh:libsass-maven-plugin:0.2.4-libsass_3.3.4:compile (default) on project 
smartsheet-app-connectors: Execution default of goal com.github.warmuuh:libsass-maven-plugin:0.2.4-
libsass_3.3.4:compile failed: An API incompatibility was encountered while executing com.github.warmuuh:libsass-maven-plugin:0.2.4-libsass_3.3.4:compile: java.lang.UnsatisfiedLinkError: Can't load library:
/var/folders/vm/0xq2_7ds6wj4nbc70gctd60sfh3pw9/T/libjsass-13239425853193329752/libjsass.dylib

valishah avatar Sep 16 '22 08:09 valishah

I also face this problem.

fanyufan avatar Dec 08 '22 15:12 fanyufan

i dont have a M1 to try this out but i am happy accepting any PRs

warmuuh avatar Dec 09 '22 07:12 warmuuh

actually: maybe try the maintained fork: https://gitlab.com/haynes/libsass-maven-plugin

warmuuh avatar Dec 09 '22 07:12 warmuuh