-
Notifications
You must be signed in to change notification settings - Fork 29
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
"out_of_memory" redefined #57
Comments
The amalgamation build I use is a memory beast. If you can't procure more ram, you may need to rebuild libsass and build go-libsass with a shared lib. See the faq about using a shared lib https://github.com/wellington/go-libsass/blob/master/README.md PR welcome to include this error on the readme! |
This is a warning from the compiler, not the runtime. It seems that the |
Oh I see. You can file a bug upstream about that. I haven't had any issues
so far with this macro
…On Mon, Mar 26, 2018 at 6:15 PM Andrew Stone ***@***.***> wrote:
This is a warning from the compiler, not the runtime. It seems that the
out_of_memory macro is being redefined at libsass-build/json.cpp#L49.
Since I'm not too familiar with how this library is structured, I didn't
want to just remove the macro and submit a PR in case it's important for
another type of build that I'm not using. Sorry if my original report was
unclear.
—
You are receiving this because you commented.
Reply to this email directly, view it on GitHub
<#57 (comment)>,
or mute the thread
<https://github.com/notifications/unsubscribe-auth/AAOmE-nYaZTdfSRC1ccQYdOEt2T7yJLvks5tiXaVgaJpZM4S7-mz>
.
|
Upstream has merged the fix, and it looks like it will be in the next release. |
awesome you're a rock star 🎸 I'll look at the current issues when I get a chance and see if we can update this early |
So I tried pulling down 3.5 which would include this build. I'm getting some nasty errors though
I have mostly kept away from mutating the libsass source in go-libsass, but that may be necessary to get around this build error for now. |
That's odd; I just pulled down 3.5.4, and it's compiling fine (some tests are failing) after the following changes. diff --git a/libs/encoding.go b/libs/encoding.go
index 5f3137d..179dd9e 100644
--- a/libs/encoding.go
+++ b/libs/encoding.go
@@ -73,7 +73,7 @@ func MakeColor(c color.RGBA) UnionSassValue {
// MakeList creates a Sass List
func MakeList(len int) UnionSassValue {
- return C.sass_make_list(C.size_t(len), C.SASS_COMMA)
+ return C.sass_make_list(C.size_t(len), C.SASS_COMMA, false)
}
// MakeMap cretes a new Sass Map
diff --git a/libs/unity.cpp b/libs/unity.cpp
index a7cb5a3..b6bdcf7 100644
--- a/libs/unity.cpp
+++ b/libs/unity.cpp
@@ -3,6 +3,7 @@
#include "../libsass-build/ast.cpp"
#include "../libsass-build/ast_fwd_decl.cpp"
+#include "../libsass-build/backtrace.cpp"
#include "../libsass-build/base64vlq.cpp"
#include "../libsass-build/bind.cpp"
#include "../libsass-build/check_nesting.cpp"
@@ -23,6 +24,7 @@
#include "../libsass-build/lexer.cpp"
#include "../libsass-build/listize.cpp"
#include "../libsass-build/node.cpp"
+#include "../libsass-build/operators.cpp"
#include "../libsass-build/output.cpp"
#include "../libsass-build/parser.cpp"
#include "../libsass-build/plugins.cpp" |
I've pushed my changes to my fork at thatguystone/go-libsass. Some tests were broken by the removal of backtraces from error strings. Not sure if it's worth trying to add them back. |
I didn't try that tag, glad it works! those tests are a bit fragile b/c they frequently change output upstream. Might be worth doing strings.HasPrefix() on them to verify the good parts of the errors. Submit a PR and I'll merge it |
From a clean go-get:
The text was updated successfully, but these errors were encountered: