Skip to content

Makefile: make PROJ compile on Publish Bleeding Edge#49917

Merged
craig[bot] merged 1 commit intocockroachdb:masterfrom
otan-cockroach:cross_compile_fix
Jun 8, 2020
Merged

Makefile: make PROJ compile on Publish Bleeding Edge#49917
craig[bot] merged 1 commit intocockroachdb:masterfrom
otan-cockroach:cross_compile_fix

Conversation

@otan
Copy link
Copy Markdown
Contributor

@otan otan commented Jun 5, 2020

As docgen relies on builtins which relies on proj, we are stuck in a
situation in cross compilation where we are trying to install docgen
with a non-native libproj.a file causing the linker to fail in Upload Binaries. Fix this by not compiling docgen on cross compilations.

Also fix the windows compilation as PROJ will dump it into a
libproj_4_9.a instead of libproj.a.

Also make execgen not depend on LIBPROJ since it's not required.

Release note: None

@cockroach-teamcity
Copy link
Copy Markdown
Member

This change is Reviewable

@otan
Copy link
Copy Markdown
Contributor Author

otan commented Jun 5, 2020

@otan otan force-pushed the cross_compile_fix branch 5 times, most recently from e01eccc to b8be21a Compare June 5, 2020 18:57
@otan otan changed the title Makefile: avoid compiling docgen with cross compilation Makefile: make PROJ compile on Publish Bleeding Edge Jun 5, 2020
@otan otan marked this pull request as ready for review June 5, 2020 22:16
@otan otan requested review from a team and petermattis June 5, 2020 22:16
As docgen relies on builtins which relies on proj, we are stuck in a
situation in cross compilation where we are trying to install docgen
with a non-native libproj.a file causing the linker to fail in `Upload
Binaries`. Fix this by not compiling docgen on cross compilations.

Also fix the windows compilation as PROJ will dump it into a
libproj_4_9.a instead of libproj.a. Cannot see an option to fix this
on the CMakeLists.txt.

Also make execgen not depend on LIBPROJ.

Release note: None
@otan otan force-pushed the cross_compile_fix branch from b8be21a to e14af52 Compare June 8, 2020 15:01
Copy link
Copy Markdown
Collaborator

@petermattis petermattis left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

:lgtm:

Did execgen never really require LIBPROJ? I'm not seeing what changed that allowed that.

Reviewable status: :shipit: complete! 1 of 0 LGTMs obtained (waiting on @petermattis)

@otan
Copy link
Copy Markdown
Contributor Author

otan commented Jun 8, 2020

bors r=petermattis

Did execgen never really require LIBPROJ? I'm not seeing what changed that allowed that.

https://github.com/cockroachdb/cockroach/pull/49783/files did 🙈 but i was focusing on docgen, not execgen. woops!

@craig
Copy link
Copy Markdown
Contributor

craig bot commented Jun 8, 2020

Build succeeded

@craig craig bot merged commit 15c11df into cockroachdb:master Jun 8, 2020
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.

3 participants