-
Notifications
You must be signed in to change notification settings - Fork 37
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
Avoid -DHUNSPELL_STATIC when using system hunspell #211
base: master
Are you sure you want to change the base?
Conversation
It fixes #208 |
However Firefox kept that in esr52 and esr60 - I wonder if this hack is needed on OpenBSD for those if somebody still compiles them? |
With this fix I was able to build artic-fox on OpenBSD -current/amd64 with config:
Maybe in openbsd config two things should be changed?
|
I think that the same hack possible required for someone who compiles old Firefox on new OpenBSD. I also think that the root cause is new LLVM, and not OpenBSD. But, who knows and I a bit lazy to dig into rootcause. |
-O0 is very very slow... last time I tried, -O1 was enough, with -O2 sometimes working sometimes not. |
It crashes on start. |
Hm, I just rebuild it with |
I just backported that patch into master as catap@8857ed1, and it fails the same way:
|
that way you are optimizing nothing... I did test quite a bit on 7.4 and there -O1 was feasible |
oh, so it apparently doesn't fix.... |
Yeah, and as I point at #208 (comment) the LLVM triggers an issue. The most interesting questions is why such issue hadn't happened in firefox at the first place. |
Indeed, that is a good point, why doesn't it happen in firefox? it is still static in latest version, so how is eg. building of seamonkey and firefox esr115 version working! I backported a patch that should ensure system library gets used, but it doesn't. I I suppose "glue" is still needed^ how do you understand it? |
@rmottola well... with git bisect and some time it is possible to discover when the build was fixed. If I recall right, they simple removes the code with this defines :) No defines, no problems. |
@catap if you like to try? I don't build current Firefox myself. I think the issue might be in here: So I found potentially this commit could be the "fix": but I can't backport it because we have no mozmemory.h available when building hunspell... may need some other bits. https://github.com/rmottola/Arctic-Fox/blob/master/memory/build/moz.build shows it is exported though... |
Unfortently I also doesn't build firefox, and I have no idea how to build it. Regarding your commit: I doubt that it will help because an issue is define itself, which replaces The rigth fix is move away from enforcing this via Another way which may work is create a weapper functions like |
@catap worth investigating though, because read around and fixes maybe undefs and swizzling header orders and we know current firefox has no issues, so a backport might be worth.
On FreeBSD the file is not included in obj-dir, clear it does not get found:
You might check on OpenBSD? Maybe the build order is different or it doens't get properly exported.. wonder why? Further check shows |
@rmottola I do have only one I've tried this chnages: --- a/extensions/spellcheck/hunspell/glue/hunspell_alloc_hooks.h
+++ b/extensions/spellcheck/hunspell/glue/hunspell_alloc_hooks.h
@@ -47,9 +47,10 @@
* allocated using C memory allocation functions.
*/
-#include "mozilla/mozalloc.h"
#include "mozHunspellAllocator.h"
+#include "mozmemory.h"
+
#define malloc(size) HunspellAllocator::CountingMalloc(size)
#define calloc(count, size) HunspellAllocator::CountingCalloc(count, size)
#define free(ptr) HunspellAllocator::CountingFree(ptr)
which is similar with mozilla/gecko-dev@aadb161 And it fails as:
|
@catap so OpenBSD like FreeBSD here. Did you check the file, like I did in #211 (comment) ? something is different in the build system. I insist here, because reading bugzilla, this could be the fix, it fixes a very similar error on memory redefines! |
So, nothing. |
@catap I think what you see is the issue why this fix doesn't apply! But.... why I don't know. |
it pisses me off that two BSDs are broken... but the issue here is Clang and is libc++... Disliked it. On FreeBSD gcc13 fails because it misses arc4random (old issue, that's why I used system clang). gcc14 instead fails configure tests... which I wonder, it works on Linux!! |
@rmottola yeah, building firefox is mess. It was mess, and it is mess now :( |
@catap I tried again on 7.5 i386. Clang fails with the known error, gcc with
which is exactly as FreeBSD. So perhaps if we had one fix, it would be catch all. |
@catap gcc builds are now pretty reliable for me! did you try? arc4random issue fixed... AF running decently here! |
not yet, but I will. Thanks for ping! |
No description provided.