Alchitry Forums
Cu+iCEcube2: "[: unexpected operator" - Printable Version

+- Alchitry Forums (https://forum.alchitry.com)
+-- Forum: Alchitry (https://forum.alchitry.com/forum-1.html)
+--- Forum: General Questions (https://forum.alchitry.com/forum-2.html)
+--- Thread: Cu+iCEcube2: "[: unexpected operator" (/thread-433.html)



Cu+iCEcube2: "[: unexpected operator" - 011010010110010001 - 07-01-2022

I have just got an Alchitry Cu and connected it via USB to the PC, which is running Ubuntu 20.04. I followed the instructions to setup the environment with iCEcube2 and Alchitry Labs. Everything seems to be working. Now I am trying to run my [first FPGA project](https://alchitry.com/your-first-fpga-project). When I hit the "build button" I am getting this error:

```
/home/alf/lscc/iCEcube2.2020.12/synpbase/bin/synplify_pro: 137: [: unexpected operator
Copyright © 1992-2014 Lattice Semiconductor Corporation. All rights reserved.
/home/alf/lscc/iCEcube2.2020.12/synpbase/bin/synplify_pro: 151: [: !=: argument expected
Child process exit with 2.
/home/alf/lscc/iCEcube2.2020.12/synpbase/bin/synplify_pro: 321: /home/alf/lscc/iCEcube2.2020.12/synpbase/bin/config/execute: Syntax error: "(" unexpected (expecting ";;")
Synthesis exit by 2.
```

[Image: Screenshot-2022-07-01-19-18-55.png]

How can I fix this?


RE: Cu+iCEcube2: "[: unexpected operator" - 011010010110010001 - 07-01-2022

Found a fix to this problem. See [here](https://github.com/alchitry/Alchitry-Labs/issues/31#issuecomment-1172650600).