I've just opened soc-demo.ice in icestudio, selected Alhambra II as my FPGA board and clicked on Tools -> Build and build failed with this output:
export APIO_HOME_DIR=/Users/garretraziel/.icestudio/apio; "/Users/garretraziel/.icestudio/venv/bin/apio" build --board alhambra-ii --verbose-arachne -p "/var/folders/38/b1q4f74j6kbfytp94m7rnvdm0000gn/T/icestudio-2748fYeLYJY8CuVG"
[Wed Feb 3 20:26:46 2021] Processing alhambra-ii
--------------------------------------------------------------------------------
yosys -p "synth_ice40 -blif hardware.blif" -q main.v
Warning: wire '\q' is assigned in a block at main.v:4613.
Warning: wire '\q' is assigned in a block at main.v:4617.
Warning: wire '\q' is assigned in a block at main.v:5076.
Warning: wire '\q' is assigned in a block at main.v:5080.
Warning: wire '\q' is assigned in a block at main.v:5082.
Warning: wire '\q' is assigned in a block at main.v:5659.
Warning: wire '\q' is assigned in a block at main.v:5663.
Warning: wire '\q' is assigned in a block at main.v:5666.
Warning: wire '\q' is assigned in a block at main.v:6008.
Warning: wire '\q' is assigned in a block at main.v:6012.
Warning: wire '\q' is assigned in a block at main.v:6015.
Warning: wire '\q' is assigned in a block at main.v:6257.
Warning: wire '\q' is assigned in a block at main.v:6261.
Warning: Wire main.\va48e85.ve38aa0.ve4e0df.i3 [31] is used but has no driver.
Warning: Wire main.\va48e85.ve38aa0.ve4e0df.i3 [30] is used but has no driver.
Warning: Wire main.\va48e85.ve38aa0.ve4e0df.i3 [29] is used but has no driver.
Warning: Wire main.\va48e85.ve38aa0.ve4e0df.i3 [28] is used but has no driver.
Warning: Wire main.\va48e85.ve38aa0.ve4e0df.i3 [27] is used but has no driver.
Warning: Wire main.\va48e85.ve38aa0.ve4e0df.i3 [26] is used but has no driver.
Warning: Wire main.\va48e85.ve38aa0.ve4e0df.i3 [25] is used but has no driver.
Warning: Wire main.\va48e85.ve38aa0.ve4e0df.i3 [24] is used but has no driver.
Warning: Wire main.\va48e85.ve38aa0.ve4e0df.i3 [23] is used but has no driver.
Warning: Wire main.\va48e85.ve38aa0.ve4e0df.i3 [22] is used but has no driver.
Warning: Wire main.\va48e85.ve38aa0.ve4e0df.i3 [21] is used but has no driver.
Warning: Wire main.\va48e85.ve38aa0.ve4e0df.i3 [20] is used but has no driver.
Warning: Wire main.\va48e85.ve38aa0.ve4e0df.i3 [19] is used but has no driver.
Warning: Wire main.\va48e85.ve38aa0.ve4e0df.i3 [18] is used but has no driver.
Warning: Wire main.\va48e85.ve38aa0.ve4e0df.i3 [17] is used but has no driver.
Warning: Wire main.\va48e85.ve38aa0.ve4e0df.i3 [16] is used but has no driver.
Warning: Wire main.\va48e85.ve38aa0.ve4e0df.i3 [15] is used but has no driver.
Warning: Wire main.\va48e85.ve38aa0.ve4e0df.i3 [14] is used but has no driver.
Warning: Wire main.\va48e85.ve38aa0.ve4e0df.i3 [13] is used but has no driver.
Warning: Wire main.\va48e85.ve38aa0.ve4e0df.i3 [12] is used but has no driver.
Warning: Wire main.\va48e85.ve38aa0.ve4e0df.i3 [11] is used but has no driver.
Warning: Wire main.\va48e85.ve38aa0.ve4e0df.i3 [10] is used but has no driver.
Warning: Wire main.\va48e85.ve38aa0.ve4e0df.i3 [9] is used but has no driver.
Warning: Wire main.\va48e85.ve38aa0.ve4e0df.i3 [8] is used but has no driver.
Warning: Wire main.\va48e85.ve38aa0.ve4e0df.i3 [7] is used but has no driver.
Warning: Wire main.\va48e85.ve38aa0.ve4e0df.i3 [6] is used but has no driver.
Warning: Wire main.\va48e85.ve38aa0.ve4e0df.i3 [5] is used but has no driver.
Warning: Wire main.\va48e85.ve38aa0.ve4e0df.i3 [4] is used but has no driver.
Warning: Wire main.\va48e85.ve38aa0.ve4e0df.i3 [3] is used but has no driver.
Warning: Wire main.\va48e85.ve38aa0.ve4e0df.i3 [2] is used but has no driver.
Warning: Wire main.\va48e85.ve38aa0.ve4e0df.i3 [1] is used but has no driver.
Warning: Wire main.\va48e85.ve38aa0.ve4e0df.i3 [0] is used but has no driver.
Warning: Wire main.\v72b9aa.vb9eeab.v7323f5.reg_div_we [3] is used but has no driver.
Warning: Wire main.\v72b9aa.vb9eeab.v7323f5.reg_div_we [2] is used but has no driver.
Warning: Wire main.\v72b9aa.vb9eeab.v7323f5.reg_div_we [1] is used but has no driver.
Warning: Wire main.\v72b9aa.vb9eeab.v7323f5.reg_div_we [0] is used but has no driver.
Warning: Wire main.\v49859b.ve53bf5.v9148cb.d [3] is used but has no driver.
Warning: Wire main.\v49859b.ve53bf5.v9148cb.d [2] is used but has no driver.
Warning: Wire main.\v49859b.ve53bf5.v9148cb.d [1] is used but has no driver.
Warning: Wire main.\v49859b.ve53bf5.v9148cb.d [0] is used but has no driver.
Warning: Wire main.\v49859b.v5ef1ec.vf21b83.v683a9f.i is used but has no driver.
Warning: Wire main.\v49859b.v386d4b.ve4e0df.i5 [7] is used but has no driver.
Warning: Wire main.\v49859b.v386d4b.ve4e0df.i5 [6] is used but has no driver.
Warning: Wire main.\v49859b.v386d4b.ve4e0df.i5 [5] is used but has no driver.
Warning: Wire main.\v49859b.v386d4b.ve4e0df.i5 [4] is used but has no driver.
Warning: Wire main.\v49859b.v386d4b.ve4e0df.i5 [3] is used but has no driver.
Warning: Wire main.\v49859b.v386d4b.ve4e0df.i5 [2] is used but has no driver.
Warning: Wire main.\v49859b.v386d4b.ve4e0df.i5 [1] is used but has no driver.
Warning: Wire main.\v49859b.v386d4b.ve4e0df.i5 [0] is used but has no driver.
Warning: Wire main.\v49859b.v386d4b.ve4e0df.i6 [7] is used but has no driver.
Warning: Wire main.\v49859b.v386d4b.ve4e0df.i6 [6] is used but has no driver.
Warning: Wire main.\v49859b.v386d4b.ve4e0df.i6 [5] is used but has no driver.
Warning: Wire main.\v49859b.v386d4b.ve4e0df.i6 [4] is used but has no driver.
Warning: Wire main.\v49859b.v386d4b.ve4e0df.i6 [3] is used but has no driver.
Warning: Wire main.\v49859b.v386d4b.ve4e0df.i6 [2] is used but has no driver.
Warning: Wire main.\v49859b.v386d4b.ve4e0df.i6 [1] is used but has no driver.
Warning: Wire main.\v49859b.v386d4b.ve4e0df.i6 [0] is used but has no driver.
Warning: Wire main.\v49859b.v386d4b.ve4e0df.i7 [7] is used but has no driver.
Warning: Wire main.\v49859b.v386d4b.ve4e0df.i7 [6] is used but has no driver.
Warning: Wire main.\v49859b.v386d4b.ve4e0df.i7 [5] is used but has no driver.
Warning: Wire main.\v49859b.v386d4b.ve4e0df.i7 [4] is used but has no driver.
Warning: Wire main.\v49859b.v386d4b.ve4e0df.i7 [3] is used but has no driver.
Warning: Wire main.\v49859b.v386d4b.ve4e0df.i7 [2] is used but has no driver.
Warning: Wire main.\v49859b.v386d4b.ve4e0df.i7 [1] is used but has no driver.
Warning: Wire main.\v49859b.v386d4b.ve4e0df.i7 [0] is used but has no driver.
Warning: Wire main.\v49859b.v07efc5.v9148cb.d [3] is used but has no driver.
Warning: Wire main.\v49859b.v07efc5.v9148cb.d [2] is used but has no driver.
Warning: Wire main.\v49859b.v07efc5.v9148cb.d [1] is used but has no driver.
Warning: Wire main.\v49859b.v07efc5.v9148cb.d [0] is used but has no driver.
arachne-pnr -d 8k -P tq144:4k -p main.pcf -o hardware.asc hardware.blif
seed: 1
device: 8k
read_chipdb +/share/arachne-pnr/chipdb-8k.bin...
supported packages: bg121, bg121:4k, cb132, cb132:4k, cm121, cm121:4k, cm225, cm225:4k, cm81, cm81:4k, ct256, tq144:4k
read_blif hardware.blif...
prune...
read_pcf main.pcf...
instantiate_io...
pack...
After packing:
IOs 18 / 107
GBs 0 / 8
GB_IOs 0 / 8
LCs 3709 / 7680
DFF 905
CARRY 548
CARRY, DFF 128
DFF PASS 323
CARRY PASS 59
BRAMs 6 / 32
WARMBOOTs 0 / 1
PLLs 0 / 2
place_constraints...
promote_globals...
promoted vclk$2, 1045 / 1045
promoted vc8f159.vd54ca1.a, 497 / 497
promoted $abc$40050$n3421, 65 / 65
promoted $abc$40050$n3361, 67 / 67
promoted $abc$40050$n3249, 56 / 56
promoted $abc$40050$n3345, 53 / 54
promoted $abc$40050$n15, 31 / 31
promoted $abc$40050$n7, 20 / 20
promoted 8 nets
3 sr/we
4 cen/wclke
1 clk
8 globals
3 sr/we
4 cen/wclke
1 clk
realize_constants...
realized 1
place...
initial wire length = 75225
at iteration #50: temp = 12.3678, wire length = 65326
at iteration #100: temp = 7.03482, wire length = 47818
at iteration #150: temp = 3.61127, wire length = 32362
at iteration #200: temp = 1.67307, wire length = 21774
at iteration #250: temp = 0.180115, wire length = 15527
at iteration #300: temp = 4.01671e-06, wire length = 15153
final wire length = 15135
After placement:
PIOs 19 / 107
PLBs 638 / 960
BRAMs 6 / 32
place time 60.60s
route...
pass 1, 174 shared.
pass 2, 82 shared.
pass 3, 32 shared.
pass 4, 24 shared.
pass 5, 11 shared.
pass 6, 14 shared.
pass 7, 8 shared.
pass 8, 9 shared.
pass 9, 5 shared.
pass 10, 3 shared.
pass 11, 2 shared.
pass 12, 3 shared.
pass 13, 7 shared.
pass 14, 4 shared.
pass 15, 5 shared.
pass 16, 2 shared.
pass 17, 2 shared.
pass 18, 2 shared.
pass 19, 3 shared.
pass 20, 3 shared.
pass 21, 3 shared.
pass 22, 2 shared.
pass 23, 2 shared.
pass 24, 2 shared.
pass 25, 1 shared.
pass 26, 2 shared.
pass 27, 1 shared.
pass 28, 1 shared.
pass 29, 1 shared.
pass 30, 1 shared.
pass 31, 1 shared.
pass 32, 1 shared.
pass 33, 1 shared.
pass 34, 1 shared.
pass 35, 1 shared.
pass 36, 1 shared.
pass 37, 1 shared.
pass 38, 1 shared.
pass 39, 1 shared.
pass 40, 1 shared.
pass 41, 1 shared.
pass 42, 1 shared.
pass 43, 1 shared.
pass 44, 1 shared.
pass 45, 1 shared.
pass 46, 1 shared.
pass 47, 1 shared.
pass 48, 1 shared.
pass 49, 1 shared.
pass 50, 1 shared.
pass 51, 1 shared.
pass 52, 1 shared.
pass 53, 1 shared.
pass 54, 1 shared.
pass 55, 1 shared.
pass 56, 1 shared.
pass 57, 1 shared.
pass 58, 1 shared.
pass 59, 1 shared.
pass 60, 1 shared.
pass 61, 1 shared.
pass 62, 1 shared.
pass 63, 1 shared.
pass 64, 1 shared.
pass 65, 1 shared.
pass 66, 1 shared.
pass 67, 1 shared.
pass 68, 1 shared.
pass 69, 1 shared.
pass 70, 1 shared.
pass 71, 1 shared.
pass 72, 1 shared.
pass 73, 1 shared.
pass 74, 1 shared.
pass 75, 1 shared.
pass 76, 1 shared.
pass 77, 1 shared.
pass 78, 1 shared.
pass 79, 1 shared.
pass 80, 1 shared.
pass 81, 1 shared.
pass 82, 1 shared.
pass 83, 1 shared.
pass 84, 1 shared.
pass 85, 1 shared.
pass 86, 1 shared.
pass 87, 1 shared.
pass 88, 1 shared.
pass 89, 1 shared.
pass 90, 1 shared.
pass 91, 1 shared.
pass 92, 1 shared.
pass 93, 1 shared.
pass 94, 1 shared.
pass 95, 1 shared.
pass 96, 1 shared.
pass 97, 1 shared.
pass 98, 1 shared.
pass 99, 1 shared.
pass 100, 1 shared.
pass 101, 1 shared.
pass 102, 1 shared.
pass 103, 1 shared.
pass 104, 1 shared.
pass 105, 1 shared.
pass 106, 1 shared.
pass 107, 1 shared.
pass 108, 1 shared.
pass 109, 1 shared.
pass 110, 1 shared.
pass 111, 1 shared.
pass 112, 1 shared.
pass 113, 1 shared.
pass 114, 1 shared.
pass 115, 1 shared.
pass 116, 1 shared.
pass 117, 1 shared.
pass 118, 1 shared.
pass 119, 1 shared.
pass 120, 1 shared.
pass 121, 1 shared.
pass 122, 1 shared.
pass 123, 1 shared.
pass 124, 1 shared.
pass 125, 1 shared.
pass 126, 1 shared.
pass 127, 1 shared.
pass 128, 1 shared.
pass 129, 1 shared.
pass 130, 1 shared.
pass 131, 1 shared.
pass 132, 1 shared.
pass 133, 1 shared.
pass 134, 1 shared.
pass 135, 1 shared.
pass 136, 1 shared.
pass 137, 1 shared.
pass 138, 1 shared.
pass 139, 1 shared.
pass 140, 1 shared.
pass 141, 1 shared.
pass 142, 1 shared.
pass 143, 1 shared.
pass 144, 1 shared.
pass 145, 1 shared.
pass 146, 1 shared.
pass 147, 1 shared.
pass 148, 1 shared.
pass 149, 1 shared.
pass 150, 1 shared.
pass 151, 1 shared.
pass 152, 1 shared.
pass 153, 1 shared.
pass 154, 1 shared.
pass 155, 1 shared.
pass 156, 1 shared.
pass 157, 1 shared.
pass 158, 1 shared.
pass 159, 1 shared.
pass 160, 1 shared.
pass 161, 1 shared.
pass 162, 1 shared.
pass 163, 1 shared.
pass 164, 1 shared.
pass 165, 1 shared.
pass 166, 1 shared.
pass 167, 1 shared.
pass 168, 1 shared.
pass 169, 1 shared.
pass 170, 1 shared.
pass 171, 1 shared.
pass 172, 1 shared.
pass 173, 1 shared.
pass 174, 1 shared.
pass 175, 1 shared.
pass 176, 1 shared.
pass 177, 1 shared.
pass 178, 1 shared.
pass 179, 1 shared.
pass 180, 1 shared.
pass 181, 1 shared.
pass 182, 1 shared.
pass 183, 1 shared.
pass 184, 1 shared.
pass 185, 1 shared.
pass 186, 1 shared.
pass 187, 1 shared.
pass 188, 1 shared.
pass 189, 1 shared.
pass 190, 1 shared.
pass 191, 1 shared.
pass 192, 1 shared.
pass 193, 1 shared.
pass 194, 1 shared.
pass 195, 1 shared.
pass 196, 1 shared.
pass 197, 1 shared.
pass 198, 1 shared.
pass 199, 1 shared.
pass 200, 1 shared.
fatal error: failed to route
scons: *** [hardware.asc] Error 1
======================== [ ERROR ] Took 208.84 seconds ========================
The stable version (0.5) is very old. You should use the nigthly-build version, that uses the nextpnr tool (instead of arachne, that is considered obsolete)
I've just opened soc-demo.ice in icestudio, selected Alhambra II as my FPGA board and clicked on Tools -> Build and build failed with this output: