Skip to content
This repository has been archived by the owner on Jan 30, 2023. It is now read-only.

windows build failing #3

Closed
2 tasks done
rhelmer opened this issue Aug 8, 2018 · 9 comments
Closed
2 tasks done

windows build failing #3

rhelmer opened this issue Aug 8, 2018 · 9 comments

Comments

@rhelmer
Copy link
Contributor

rhelmer commented Aug 8, 2018

I noticed this doing tryserver (pre-checkin CI) builds:

z:/build/build/src/third_party/prio/prio/client.c(10,10): fatal error: 'strings.h' file not found

  • It looks like <string.h> is present on Windows, AFAICT <strings.h> is an BSD fork that didn't make it's way to Windows. Not 100% sure of the lineage here or what's available to C++ vs. C, it looks like <string.h> is available on macOS and Windows for C code at least.
  • std::isxdigit doesn't seem to work on Windows but isxdigit does
@henrycg
Copy link
Collaborator

henrycg commented Aug 8, 2018

It looks like isxdigit is available in <ctype.h>, which should be available on Windows.

@rhelmer
Copy link
Contributor Author

rhelmer commented Aug 8, 2018

Tryserver run with <string.h> instead of <strings.h>, going to try plain isxdigit and see if that works, since I think we might already #include <ctype.h> somewhere in the DOM build machinery (it's a bit involved):
https://treeherder.mozilla.org/#/jobs?repo=try&revision=4b019f9365e07c8544bc37d5cbcfb5038d9bda25

@rhelmer
Copy link
Contributor Author

rhelmer commented Aug 8, 2018

Progress! Looks like it's some problem with missing NSS mpi symbols now, hm.

@rhelmer
Copy link
Contributor Author

rhelmer commented Aug 8, 2018

Looks like the symbol it wants is defined in mpcpucache.c which isn't in the prio moz.build, let's see if that helps: https://treeherder.mozilla.org/#/jobs?repo=try&revision=bbaf8db92d3445bb8be7d680be811f80ffac2045

@rhelmer
Copy link
Contributor Author

rhelmer commented Aug 8, 2018

Hm, yeah so that gets further still:

https://treeherder.mozilla.org/logviewer.html#?job_id=192842378&repo=try&lineNumber=61835-61838

18:55:41     INFO -  z:/build/build/src/clang/bin\lld-link.exe: error: could not open z:/build/build/src/obj-firefox/dist/lib/nspr4.lib.lib: no such file or directory
18:55:41     INFO -  z:/build/build/src/clang/bin\lld-link.exe: error: could not open z:/build/build/src/obj-firefox/dist/lib/plc4.lib.lib: no such file or directory
18:55:41     INFO -  z:/build/build/src/clang/bin\lld-link.exe: error: could not open z:/build/build/src/obj-firefox/dist/lib/plds4.lib.lib: no such file or directory

@rhelmer
Copy link
Contributor Author

rhelmer commented Aug 9, 2018

OK I pushed the latest moz.build that we're testing over in issue #4, looks like we have a good windows build \o/

https://treeherder.mozilla.org/#/jobs?repo=try&revision=362a0029cf27de88c4789f683a3d3138f662b9c1

I'll check in on the test runs later.

@henrycg
Copy link
Collaborator

henrycg commented Aug 9, 2018

Great!

@rhelmer
Copy link
Contributor Author

rhelmer commented Aug 9, 2018

There are 4 test failures (one in the optimized build, three in the debug), pretty sure they are all intermittent. Once everything has settled down I will go through this issue and turn it into the various amended hg commits and libprio PRs as necessary.

@rhelmer
Copy link
Contributor Author

rhelmer commented Aug 9, 2018

This is working \o/ https://treeherder.mozilla.org/#/jobs?repo=try&revision=5da61e100e5d5e021b0893ba44452624f3c6ef98

All related PRs are merged and patches have been rebased into my Firefox+libprio integration patch as necessary, so I think we're done here.

Thanks all!

@rhelmer rhelmer closed this as completed Aug 9, 2018
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants