libsass-maven-plugin
libsass-maven-plugin copied to clipboard
UnsatisfiedLinkError on M1 tmp directory
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"
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
I also face this problem.
i dont have a M1 to try this out but i am happy accepting any PRs
actually: maybe try the maintained fork: https://gitlab.com/haynes/libsass-maven-plugin