Join GitHub today
GitHub is home to over 31 million developers working together to host and review code, manage projects, and build software together.
Sign upadaptation to rustbuild for openbsd #38451
Conversation
semarie
added some commits
Dec 17, 2016
rust-highfive
assigned
alexcrichton
Dec 18, 2016
This comment has been minimized.
This comment has been minimized.
|
The The implementation statically bound "gmake" to BSD and let "make" to others. Eventually, I could add the use of a variable |
This comment has been minimized.
This comment has been minimized.
|
I think I will keep some tests failing with vanilla configuration: the fact that A simple workaround is to have a directory in front of |
semarie
force-pushed the
semarie:openbsd-rustbuild
branch
from
ba025b2
to
2c39ee1
Dec 18, 2016
This comment has been minimized.
This comment has been minimized.
|
Looks good to me, thanks! When this is ready just lemme know and I'll r+ |
This comment has been minimized.
This comment has been minimized.
|
I have a failing test (check-std-all) that seems related to
|
This comment has been minimized.
This comment has been minimized.
|
hum. it could be my cargo binary that is too old. It is a 0.13.0. |
This comment has been minimized.
This comment has been minimized.
|
@alexcrichton it is ok now. My cargo was too old for correctly performing tests without errors. As side note, I found it is more and more complex to build rustc now. I hope to not having to port a new platform (full cross-compiling isn't always possible) due to interdependance of rustc and cargo (and libc which needs cargo too to properly check it). |
semarie
changed the title
WIP: adaptation to rustbuild for openbsd
adaptation to rustbuild for openbsd
Dec 19, 2016
This comment has been minimized.
This comment has been minimized.
|
@semarie I'm not sure I understand the sentiment that building is more complex now? The only difference is that building the compiler requires Cargo now as opposed to just a previous rustc. Otherwise the build system should take care of everything. |
This comment has been minimized.
This comment has been minimized.
|
@bors: r+ In any case, changes look good to me! |
This comment has been minimized.
This comment has been minimized.
|
|
This comment has been minimized.
This comment has been minimized.
|
If you already have "correct libc" + "rustc" + "cargo", there are no problem with the build system. But porting a new platform to Rust will require additionnal effort due to the interdependance of these three components. |
semarie commentedDec 18, 2016
•
edited
Since the switch to rustbuild, the build for openbsd is broken:
arinference based on compiler name is wrong (OpenBSD usually useegcc, buteardoesn't exist)makeisn't GNU-make under OpenBSD (and others BSD platforms)stdc++isn't the right stdc++ library to link with (it should beestdc++)r? @alexcrichton