Skip to content

Fix build for win32, remove --enable-gczeal that snuck back in - #71

Merged
bors-servo merged 6 commits into
servo:masterfrom
vvuk:win32
Jan 21, 2016
Merged

bors-servo merged 6 commits into
servo:masterfrom
vvuk:win32

Conversation

@vvuk

@vvuk vvuk commented Jan 6, 2016

Copy link
Copy Markdown
Contributor

For some reason, gcc isn't generating public symbols for setTracingLocation if they're defined inline in the class declaration in the header. There's probably an attribute we could apply or something, but this was the simplest way to get this to work.

Review on Reviewable

@vvuk

vvuk commented Jan 6, 2016

Copy link
Copy Markdown
Contributor Author

Someone should test this on linux/osx with the removing of --enable-gczeal, but without the second patch -- we should see if this is a windows-specific gcc issue, or if we're doing something we shouldn't be.

@jdm

jdm commented Jan 6, 2016

Copy link
Copy Markdown
Member

I'd like @michaelwu to take a look at the second commit.

@vvuk

vvuk commented Jan 7, 2016

Copy link
Copy Markdown
Contributor Author

I think the original linking problem may be due to -fno-keep-inline-dllexport that is added to the gcc flags in configure... but haven't tested without, would rather get static linking working properly.

@vvuk
vvuk force-pushed the win32 branch 4 times, most recently from 177f8c3 to 1a58f44 Compare January 7, 2016 22:26
@asajeffrey

Copy link
Copy Markdown

Should this be two separate PRs? One to remove --enable-gc-zeal and one to fix building on windows?

@michaelwu

ghost commented Jan 13, 2016

Copy link
Copy Markdown
Contributor

An alternative to moving setTracingLocation and other functions is to remove those from the bindings - I don't think we need those functions, and they appear to be gone from upstream SM anyway. I'm fine with either solution though, since these functions are going to disappear in the future.

@larsbergstrom

ghost commented Jan 13, 2016

Copy link
Copy Markdown
Contributor

Currently failing on linux with:

In file included from /home/larsberg/servo/target/debug/build/mozjs_sys-6e42204b6e19049d/out/js/src/Unified_cpp_js_src7.cpp:110:0:
/home/larsberg/mozjs/mozjs/js/src/jsapi.cpp: In function ‘bool JS_CallOnce(JSCallOnceType*, JSInitCallback)’:
/home/larsberg/mozjs/mozjs/js/src/jsapi.cpp:5830:80: error: ‘PR_CallOnceWithArg’ was not declared in this scope
     return PR_CallOnceWithArg(once, CallOnce, JS_FUNC_TO_DATA_PTR(void *, func)) == PR_SUCCESS;
                                                                                ^
make[4]: *** [Unified_cpp_js_src7.o] Error 1
make[3]: *** [js/src/target] Error 2
make[2]: *** [compile] Error 2
make[1]: *** [default] Error 2
make: *** [all] Error 2
thread '<main>' panicked at 'assertion failed: result.success()', build.rs:17

@larsbergstrom

ghost commented Jan 13, 2016

Copy link
Copy Markdown
Contributor

@vvuk

ghost commented Jan 13, 2016

Copy link
Copy Markdown
Contributor Author

Arg, PR_CallOnceWithArg went away in m-c sm, but I guess not here. I'll fix shortly. Same with just removing those methods from the tracer.

As for critical sections... I had no idea about SRWLs. Since we're already depending on >= Vista, I'll switch to using them.

@larsbergstrom

ghost commented Jan 16, 2016

Copy link
Copy Markdown
Contributor

It looks like this is passing CI builds now. @vvuk Is this ready to be reviewed/landed?

@larsbergstrom

ghost commented Jan 19, 2016

Copy link
Copy Markdown
Contributor

@vvuk and @michaelwu Is there anything more that needs to be done here to land this? I think it's the last piece we need before we land the Win32 changes to Servo master.

@michaelwu

ghost commented Jan 19, 2016

Copy link
Copy Markdown
Contributor

I'm happy with the approach here.

@larsbergstrom

ghost commented Jan 20, 2016

Copy link
Copy Markdown
Contributor

@vvuk, @Jayflux and I are now getting missing setTracingLocation and friends with this and the landed rust-mozjs fixes. Is there something we're missing?

@vvuk

ghost commented Jan 20, 2016

Copy link
Copy Markdown
Contributor Author

Did rust-mozjs changes land, that had the removal of that in the bindings?

@vvuk

ghost commented Jan 20, 2016

Copy link
Copy Markdown
Contributor Author

servo/rust-mozjs#236

@larsbergstrom

ghost commented Jan 20, 2016

Copy link
Copy Markdown
Contributor

Great, thanks! That did it for me :-)

I'm opening the servo/servo PR, since it can land independently of these changes (which switch to static linking). That will let me start working on the CI/builder stuff.

@larsbergstrom

ghost commented Jan 21, 2016

Copy link
Copy Markdown
Contributor

@bors-servo r=michaelwu

(confirmed on IRC with @jdm and @Ms2ger)

@bors-servo

ghost commented Jan 21, 2016

Copy link
Copy Markdown
Contributor

📌 Commit d221277 has been approved by michaelwu

@bors-servo

ghost commented Jan 21, 2016

Copy link
Copy Markdown
Contributor

⌛ Testing commit d221277 with merge 5ac9991...

@bors-servo

ghost commented Jan 21, 2016

Copy link
Copy Markdown
Contributor

☀️ Test successful - travis

@bors-servo
bors-servo merged commit d221277 into servo:master Jan 21, 2016
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

6 participants