Skip to content
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

AMD64 Fedora Rawhide Clang 3.x: C compiler cannot create executables #83579

Closed
vstinner opened this issue Jan 20, 2020 · 2 comments
Closed

AMD64 Fedora Rawhide Clang 3.x: C compiler cannot create executables #83579

vstinner opened this issue Jan 20, 2020 · 2 comments
Labels
3.9 only security fixes tests Tests in the Lib/test dir

Comments

@vstinner
Copy link
Member

BPO 39398
Nosy @vstinner

Note: these values reflect the state of the issue at the time it was migrated and might not reflect the current state.

Show more details

GitHub fields:

assignee = None
closed_at = <Date 2020-01-24.10:27:17.018>
created_at = <Date 2020-01-20.17:14:25.636>
labels = ['tests', '3.9']
title = 'AMD64 Fedora Rawhide Clang 3.x: C compiler cannot create executables'
updated_at = <Date 2020-01-24.10:27:17.017>
user = 'https://github.com/vstinner'

bugs.python.org fields:

activity = <Date 2020-01-24.10:27:17.017>
actor = 'vstinner'
assignee = 'none'
closed = True
closed_date = <Date 2020-01-24.10:27:17.018>
closer = 'vstinner'
components = ['Tests']
creation = <Date 2020-01-20.17:14:25.636>
creator = 'vstinner'
dependencies = []
files = []
hgrepos = []
issue_num = 39398
keywords = ['buildbot']
message_count = 2.0
messages = ['360324', '360604']
nosy_count = 1.0
nosy_names = ['vstinner']
pr_nums = []
priority = 'normal'
resolution = 'fixed'
stage = 'resolved'
status = 'closed'
superseder = None
type = None
url = 'https://bugs.python.org/issue39398'
versions = ['Python 3.9']

@vstinner
Copy link
Member Author

"AMD64 Fedora Rawhide Clang 3.x" buildbot worker is currently broken:
https://buildbot.python.org/all/#/builders/169/builds/168

clang cannot build (statically linked) binary using UBSan:

$ ./configure --prefix '$(PWD)/target' CC=clang LD=clang CFLAGS=-fsanitize=undefined LDFLAGS=-fsanitize=undefined
...
checking for gcc... clang
checking whether the C compiler works... no
configure: error: in `/home/buildbot/buildarea/3.x.cstratak-fedora-rawhide-x86_64.clang-ubsan/build':
configure: error: C compiler cannot create executables
See `config.log' for more details

I reproduced the issue on the worker. The issue comes from a version conflict between clang and compiler-rt packages:

compiler-rt-9.0.0-1.fc32.x86_64 uses /usr/lib64/clang/9.0.0/...

vs

clang-9.0.1-2.fc32.x86_64 uses /usr/lib64/clang/9.0.1/...

Charalampos created https://src.fedoraproject.org/rpms/compiler-rt/pull-request/10 to propose to update compiler-rt.

@vstinner vstinner added 3.9 only security fixes tests Tests in the Lib/test dir labels Jan 20, 2020
@vstinner
Copy link
Member Author

Charalampos downgraded clang to 10.0.0 to workaround the issue. The buildbot worker compiles the code succesfully again:
https://buildbot.python.org/all/#/builders/169

I close the issue. The issue is now tracked in Fedora Rawhide anyway:
https://src.fedoraproject.org/rpms/compiler-rt/pull-request/10

@ezio-melotti ezio-melotti transferred this issue from another repository Apr 10, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
3.9 only security fixes tests Tests in the Lib/test dir
Projects
None yet
Development

No branches or pull requests

1 participant