Skip to content
GitLab
  • Menu
Projects Groups Snippets
  • /
  • Help
    • Help
    • Support
    • Community forum
    • Submit feedback
    • Contribute to GitLab
  • Sign in / Register
  • pypy pypy
  • Project information
    • Project information
    • Activity
    • Labels
    • Members
  • Repository
    • Repository
    • Files
    • Commits
    • Branches
    • Tags
    • Contributors
    • Graph
    • Compare
  • Issues 673
    • Issues 673
    • List
    • Boards
    • Service Desk
    • Milestones
  • Merge requests 13
    • Merge requests 13
  • CI/CD
    • CI/CD
    • Pipelines
    • Jobs
    • Schedules
  • Deployments
    • Deployments
    • Environments
    • Releases
  • Packages & Registries
    • Packages & Registries
    • Container Registry
  • Monitor
    • Monitor
    • Incidents
  • Analytics
    • Analytics
    • Value stream
    • CI/CD
    • Repository
  • Wiki
    • Wiki
  • Snippets
    • Snippets
  • Activity
  • Graph
  • Create a new issue
  • Jobs
  • Commits
  • Issue Boards
Collapse sidebar
  • PyPy
  • pypypypy
  • Issues
  • #3563
Closed
Open
Created Sep 23, 2021 by Misbah Ahmed@ma

conditional branch requires assembler-local label

When building PyPy I see this error:

   File "/pypy/rpython/translator/platform/__init__.py", line 143, in _execute_c_compiler
    self._handle_error(returncode, stdout, stderr, outname)
   File "/pypy/rpython/translator/platform/__init__.py", line 155, in _handle_error
    raise CompilationError(stdout, stderr)
[translation:ERROR] CompilationError: CompilationError(err="""
	In file included from /pypy/rpython/translator/c/src/stacklet/stacklet.c:21:
	In file included from /pypy/rpython/translator/c/src/stacklet/slp_platformselect.h:14:
	/pypy/rpython/translator/c/src/stacklet/switch_aarch64_gcc.h:39:5: warning: inline asm clobber list contains reserved registers: X18 [-Winline-asm]
	    "stp x18, x19, [sp, -160]!\n"
	    ^
	<inline asm>:1:1: note: instantiated into assembly here
	        stp x18, x19, [sp, -160]!
	^
	/pypy/rpython/translator/c/src/stacklet/switch_aarch64_gcc.h:39:5: note: Reserved registers on the clobber list may not be preserved across the asm statement, and clobbering them may lead to undefined behaviour.
	    "stp x18, x19, [sp, -160]!\n"
	    ^
	<inline asm>:1:1: note: instantiated into assembly here
	        stp x18, x19, [sp, -160]!
	^
	In file included from /pypy/rpython/translator/c/src/stacklet/stacklet.c:21:
	In file included from /pypy/rpython/translator/c/src/stacklet/slp_platformselect.h:14:
	/pypy/rpython/translator/c/src/stacklet/switch_aarch64_gcc.h:59:6: error: conditional branch requires assembler-local label. 'zero' is external.
	    "cbz x0, zero\n"
	     ^
	<inline asm>:18:1: note: instantiated into assembly here
	cbz x0, zero
	^
	1 warning and 1 error generated.
	""")
Processing block:
 block@3[space_86...] is a <class 'rpython.flowspace.flowcontext.SpamBlock'> 
 in (pypy.module.imp.interp_imp:159)is_builtin 
 containing the following operations: 
       v367 = getattr(space_86, ('text0_w')) 
       name_5 = simple_call(v367, w_name_0) 
       v368 = getattr(space_86, ('builtin_modules')) 
       v369 = contains(v368, name_5) 
       v370 = bool(v369) 
 --end--

My Info:
M1 MacBook Air
Mac OS 11.1
Command-line used: python2 ../../rpython/bin/rpython -Ojit targetpypystandalone

Edited Sep 23, 2021 by Misbah Ahmed
To upload designs, you'll need to enable LFS and have an admin enable hashed storage. More information
Assignee
Assign to
Time tracking