Skip to content

Bake in default sysroots appropriately #528

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

Closed
pcwalton opened this issue Jun 21, 2011 · 2 comments
Closed

Bake in default sysroots appropriately #528

pcwalton opened this issue Jun 21, 2011 · 2 comments
Assignees
Labels
A-frontend Area: Compiler frontend (errors, parsing and HIR)

Comments

@pcwalton
Copy link
Contributor

We should bake in a default sysroot into the binary where rustc looks for all of its stuff (stdlib, glue, etc).

@ghost ghost assigned espindola Jun 21, 2011
@espindola
Copy link

The driver currently looks at paths relative to itself. Is this what you have in mind?

@ghost ghost assigned brson Oct 5, 2011
@brson
Copy link
Contributor

brson commented Oct 5, 2011

The driver now finds the absolute path to itself and considers the directory one level higher the sysroot. So the sysroot of /usr/bin/rustc is /usr/bin.

@brson brson closed this as completed Oct 5, 2011
wthrowe added a commit to wthrowe/rust that referenced this issue Dec 8, 2015
It appears this was left out of RFC rust-lang#528 because it might be useful to
also generalize the second argument in some way.  That doesn't seem to
prevent generalizing the first argument now, however.

This is a [breaking-change] because it could cause type-inference to
fail where it previously succeeded.
keeperofdakeys pushed a commit to keeperofdakeys/rust that referenced this issue Dec 12, 2017
Added baudrate constants.

Addresses rust-lang#528, adding baudrate constants for `bsd` and `notbsd` flavors of `unix`.

Passes `libc-test` locally on ubuntu 14.04 LTS with the additional (uncommitted) entries into in `build.rs`:

```
cfg.skip_const( move |name| {
        match name {
            # ... snip ...
            "PTRACE_O_SUSPEND_SECCOMP" |
            "CLONE_NEWCGROUP" |
            "NETLINK_LIST_MEMBERSHIPS" |
            "NETLINK_LISTEN_ALL_NSID" |
            "NETLINK_CAP_ACK" |
            "PR_CAP_AMBIENT_CLEAR_ALL" |
            "PR_CAP_AMBIENT_LOWER" |
            "PR_CAP_AMBIENT_RAISE" |
            "PR_CAP_AMBIENT_IS_SET" |
            "PR_CAP_AMBIENT" |
            "PR_FP_MODE_FRE" |
            "PR_FP_MODE_FR" |
            "PR_GET_FP_MODE" |
            "PR_SET_FP_MODE" |
            "PR_MPX_DISABLE_MANAGEMENT" |
            "PR_MPX_ENABLE_MANAGEMENT" |
            "PR_GET_THP_DISABLE" |
            "PR_SET_THP_DISABLE" |
            "PR_SET_MM_MAP_SIZE" |
            "PR_GET_MM_MAP_SIZE" |
            "PR_SET_MM_MAP" |
            "NLM_F_DUMP_FILTERED" |
            "EPOLLEXCLUSIVE" => true,

            _ => false,
        }
    });
```
I'm assuming this is because I'm stuck using `linux-libc-dev:3.13.0-24.46` for the moment and those constants are defined in newer versions.
pdietl pushed a commit to pdietl/rust that referenced this issue Apr 23, 2020
ZuseZ4 pushed a commit to EnzymeAD/rust that referenced this issue Mar 7, 2023
celinval added a commit to celinval/rust-dev that referenced this issue Jun 4, 2024
The latest rustc version introduced the rvalue type ShallowInitBox. This
change implements this new construct by doing the following:

    1- Extend RustAlloc hook to replace exchange_malloc.
    2- Implement code generation for ShallowInitBox.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
A-frontend Area: Compiler frontend (errors, parsing and HIR)
Projects
None yet
Development

No branches or pull requests

3 participants