Skip to content

Commit b41974b

Browse files
authored
fix batch build (#470)
1 parent 8fe9b8a commit b41974b

File tree

2 files changed

+25
-3
lines changed

2 files changed

+25
-3
lines changed

Makefile

Lines changed: 8 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -108,14 +108,14 @@ batchdep: $(BUILD_DEPS)
108108

109109
batch: CURIO_TAGS+= supraseal
110110
batch: CGO_LDFLAGS_ALLOW='.*'
111-
batch: batchdep build
111+
batch: batchdep batch-build
112112
.PHONY: batch
113113

114114

115115
batch-calibnet: CURIO_TAGS+= supraseal
116116
batch-calibnet: CURIO_TAGS+= calibnet
117117
batch-calibnet: CGO_LDFLAGS_ALLOW='.*'
118-
batch-calibnet: batchdep build
118+
batch-calibnet: batchdep batch-build
119119
.PHONY: batch-calibnet
120120

121121
else
@@ -146,6 +146,12 @@ an existing curio binary in your PATH. This may cause problems if you don't run
146146

147147
.PHONY: build
148148

149+
batch-build: curio
150+
.PHONY: batch-build
151+
152+
calibnet-sptool: CURIO_TAGS+= calibnet
153+
calibnet-sptool: sptool
154+
149155
install: install-curio install-sptool
150156
.PHONY: install
151157

documentation/en/supraseal.md

Lines changed: 17 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -128,20 +128,36 @@ CUDA 12.x is required, 11.x won't work. The build process depends on GCC 11.x sy
128128
* On Arch install https://aur.archlinux.org/packages/gcc11
129129
* Ubuntu 22.04 has GCC 11.x by default
130130
* On newer Ubuntu install `gcc-11` and `g++-11` packages
131+
```shell
132+
sudo apt install gcc-11 g++-11
133+
```
131134
* In addtion to general build dependencies (listed on the [installation page](installation.md)), you need `libgmp-dev` and `libconfig++-dev`
135+
```shell
136+
sudo apt install libgmp-dev libconfig++-dev
137+
```
132138

133139
### Building
134140

135-
Build the batch-capable Curio binary:
141+
Build and install the batch-capable Curio binary:
136142

137143
```bash
138144
make batch
145+
make sptool
146+
```
147+
148+
```shell
149+
make install
139150
```
140151

141152
For calibnet
142153

143154
```bash
144155
make batch-calibnet
156+
make batch-sptool
157+
```
158+
159+
```shell
160+
make install
145161
```
146162

147163
{% hint style="warning" %}

0 commit comments

Comments
 (0)