Skip to content

./configure doesn't allow setting hashmap toml values #108621

New issue

Have a question about this project? # for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “#”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? # to your account

Closed
jyn514 opened this issue Mar 1, 2023 · 6 comments · Fixed by #108644
Closed

./configure doesn't allow setting hashmap toml values #108621

jyn514 opened this issue Mar 1, 2023 · 6 comments · Fixed by #108644
Assignees
Labels
C-bug Category: This is a bug. E-easy Call for participation: Easy difficulty. Experience needed to fix: Not much. Good first issue. T-bootstrap Relevant to the bootstrap subteam: Rust's build system (x.py and src/bootstrap)

Comments

@jyn514
Copy link
Member

jyn514 commented Mar 1, 2023

I tried this code:

./configure --set llvm.build-config.LLVM_TEMPORARILY_ALLOW_OLD_TOOLCHAIN=YES

I expected to see this happen: configure.py generates a toml file with the contents

build-config = {"LLVM_TEMPORARILY_ALLOW_OLD_TOOLCHAIN"="YES"}

Instead, this happened:

; ./configure --set llvm.build-config.LLVM_TEMPORARILY_ALLOW_OLD_TOOLCHAIN=YES
configure: processing command line
configure: 
configure: llvm.build-config.LLVM_TEMPORARILY_ALLOW_OLD_TOOLCHAIN := YES
configure: build.configure-args := ['--set', 'llvm.build-config.LLVM_TEMPORARILY_ ...
Traceback (most recent call last):
  File "/Users/jyn/src/rust/./src/bootstrap/configure.py", line 486, in <module>
    configure_section(sections[section_key], section_config)
  File "/Users/jyn/src/rust/./src/bootstrap/configure.py", line 456, in configure_section
    lines[i] = "{} = {}".format(key, to_toml(value))
  File "/Users/jyn/src/rust/./src/bootstrap/configure.py", line 445, in to_toml
    raise RuntimeError('no toml')
RuntimeError: no toml

Meta

HEAD is branched from 5423745.

@jyn514 jyn514 added T-bootstrap Relevant to the bootstrap subteam: Rust's build system (x.py and src/bootstrap) C-bug Category: This is a bug. labels Mar 1, 2023
@jyn514
Copy link
Member Author

jyn514 commented Mar 1, 2023

@jyn514 jyn514 added the E-easy Call for participation: Easy difficulty. Experience needed to fix: Not much. Good first issue. label Mar 1, 2023
@KittyBorgX
Copy link
Member

KittyBorgX commented Mar 2, 2023

@rustbot claim

@rustbot
Copy link
Collaborator

rustbot commented Mar 2, 2023

Error: Parsing assign command in comment failed: ...' claim' | error: expected end of command at >| ' :)'...

Please file an issue on GitHub at triagebot if there's a problem with this bot, or reach out on #t-infra on Zulip.

@KittyBorgX
Copy link
Member

I have a PR ready but I need to wait for #108618 to get merged since that PR was master -> master and creating a new branch now doesn't help 😔

@albertlarsan68
Copy link
Member

You can run git checkout upstream/master (replace upstream with the name of the rust-lang remote), then run git switch -c <new branch name>.
In the future, take the habit of always having your master branch fast-forward able, it will avoid you hassles with the GitHub UI.

@KittyBorgX
Copy link
Member

That worked for me, Thank you so much!

compiler-errors added a commit to compiler-errors/rust that referenced this issue Mar 2, 2023
…arsan68

Allow setting hashmap toml values in `./configure`

Fixes rust-lang#108621
matthiaskrgr added a commit to matthiaskrgr/rust that referenced this issue Mar 2, 2023
…arsan68

Allow setting hashmap toml values in `./configure`

Fixes rust-lang#108621
@bors bors closed this as completed in 8a21bce Mar 3, 2023
saethlin pushed a commit to saethlin/miri that referenced this issue Mar 5, 2023
Allow setting hashmap toml values in `./configure`

Fixes rust-lang/rust#108621
# for free to join this conversation on GitHub. Already have an account? # to comment
Labels
C-bug Category: This is a bug. E-easy Call for participation: Easy difficulty. Experience needed to fix: Not much. Good first issue. T-bootstrap Relevant to the bootstrap subteam: Rust's build system (x.py and src/bootstrap)
Projects
None yet
Development

Successfully merging a pull request may close this issue.

4 participants