Skip to content

Conversation

@avmaris
Copy link

@avmaris avmaris commented Jan 23, 2026

Problem

On Ubuntu 22.04 and other Debian-based systems, /bin/sh is symlinked to dash (a POSIX-compliant shell) rather than bash. The Makefile in the Versal Vitis Subsystem Flow design tutorial uses bash-specific syntax |& which causes build failures:

/bin/sh: 7: Syntax error: "&" unexpected
make[3]: *** [Makefile:114: datamove_app_libadf.a] Error 2

This affects the AIE compilation step in the Versal Vitis Subsystem Flow example (Design Tutorial 02).

Solution

Replaced all instances of |& with POSIX-compatible 2>&1 | syntax in:

  • Vitis_System_Design/Design_Tutorials/02-Versal_Vitis_Subsystem_Flow/vss/ip/aie/Makefile

Tutorial Context

This fix is for the 02-Versal_Vitis_Subsystem_Flow design tutorial, which includes:

  • 'Vitis_System_Design/Design_Tutorials/02-Versal_Vitis_Subsystem_Flow/vitis/Makefile'
  • 'Vitis_System_Design/Design_Tutorials/02-Versal_Vitis_Subsystem_Flow/vss/Makefile'
  • 'Vitis_System_Design/Design_Tutorials/02-Versal_Vitis_Subsystem_Flow/vss/ip/aie/Makefile'

Testing

Reproduce the issue (Ubuntu 22.04):

Build in Ubuntu 22.04

cd Vitis_System_Design/Design_Tutorials/02-Versal_Vitis_Subsystem_Flow
make all

Error: /bin/sh: Syntax error: "&" unexpected

Verify the fix:

Apply this PR and rebuild

cd Vitis_System_Design/Design_Tutorials/02-Versal_Vitis_Subsystem_Flow
make all

Should proceed without shell syntax errors

allyzhou and others added 30 commits September 16, 2025 23:02
S A, Nirdesh and others added 28 commits December 3, 2025 22:09
@avmaris avmaris marked this pull request as draft January 23, 2026 21:49
@avmaris avmaris marked this pull request as ready for review January 23, 2026 21:50
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.