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

Fedora Rawhide Clang buildbot fails to build: "error: cannot apply asm label to function after its first use" in <stdio.h> #94178

Open
vstinner opened this issue Jun 23, 2022 · 11 comments
Labels
type-bug

Comments

@vstinner
Copy link
Member

@vstinner vstinner commented Jun 23, 2022

Building Python on PPC64LE Fedora Rawhide Clang Installed 3.x fails with the following error:
https://buildbot.python.org/all/#/builders/312/builds/2208

In file included from Parser/string_parser.c:3:
In file included from ./Include/Python.h:24:
In file included from /usr/include/stdio.h:899:
/usr/include/bits/stdio-ldbl.h:26:20: error: cannot apply asm label to function after its first use
__LDBL_REDIR_DECL (vfprintf)
~~~~~~~~~~~~~~~~~~~^~~~~~~~~
/usr/include/sys/cdefs.h:569:26: note: expanded from macro '__LDBL_REDIR_DECL'
  extern __typeof (name) name __asm (__ASMNAME ("__" #name "ieee128"));
                         ^           ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~

It seems to be a Fedora Rawhide regression, not a Python regression.

cc @stratakis @hroncok

@vstinner vstinner added the type-bug label Jun 23, 2022
@hroncok
Copy link
Contributor

@hroncok hroncok commented Jun 23, 2022

cc @tstellar

@hroncok
Copy link
Contributor

@hroncok hroncok commented Jun 23, 2022

and cc @sharkcz

@vstinner
Copy link
Member Author

@vstinner vstinner commented Jun 23, 2022

The 4 other Fedora Rawhide GCC 3.x seems fine.

The 3 other Fedora Rawhide Clang 3.x seems fine as well.

For now, it seems like only 2 buildbot workers are affected:

@vstinner
Copy link
Member Author

@vstinner vstinner commented Jun 23, 2022

Reproducer, bug.c:

#include <stdio.h>
int main() { return 0; }

Build with clang:

$ clang bla.c -o bla -O2 
In file included from bla.c:1:
In file included from /usr/include/stdio.h:899:
/usr/include/bits/stdio-ldbl.h:26:20: error: cannot apply asm label to function after its first use
__LDBL_REDIR_DECL (vfprintf)
~~~~~~~~~~~~~~~~~~~^~~~~~~~~
/usr/include/sys/cdefs.h:569:26: note: expanded from macro '__LDBL_REDIR_DECL'
  extern __typeof (name) name __asm (__ASMNAME ("__" #name "ieee128"));
                         ^           ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
1 error generated.

@sharkcz
Copy link

@sharkcz sharkcz commented Jun 23, 2022

I believe this is a known issue between latest glibc and clang after we default to the ieee128 long double type.

@vstinner
Copy link
Member Author

@vstinner vstinner commented Jun 23, 2022

On PPC64LE Fedora Rawhide Clang 3.x, /usr/include/bits/stdio-ldbl.h comes from the package: glibc-devel-2.35.9000-22.fc37.ppc64le.

@vstinner
Copy link
Member Author

@vstinner vstinner commented Jun 23, 2022

cc @serge-sans-paille

@sharkcz
Copy link

@sharkcz sharkcz commented Jun 23, 2022

cc @fweimer-rh

@vstinner
Copy link
Member Author

@vstinner vstinner commented Jun 23, 2022

Sorry, the Python bug tracker is the wrong place to discuss glibc regression. Please discuss the issue in this Fedora glibc issue:
https://bugzilla.redhat.com/show_bug.cgi?id=2100546

@vstinner
Copy link
Member Author

@vstinner vstinner commented Jun 23, 2022

Previous successful build: https://buildbot.python.org/all/#/builders/33/builds/2286

test.pythoninfo:

CC.version: clang version 14.0.0 (Fedora 14.0.0-1.fc37)
platform.libc_ver: glibc 2.35.9000
platform.platform: Linux-5.18.0-0.rc6.47.fc37.ppc64le-ppc64le-with-glibc2.35.9000

@vstinner
Copy link
Member Author

@vstinner vstinner commented Jun 23, 2022

dnf.log:

2022-06-23T07:02:51-0400 DEBUG Upgraded: clang-14.0.0-4.fc37.ppc64le

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
type-bug
Projects
None yet
Development

No branches or pull requests

3 participants