KallistiOS / kos-ports

Ported library collection for KallistiOS
Other
52 stars 33 forks source link

Issue with building ports #60

Closed bkacjios closed 4 months ago

bkacjios commented 4 months ago

Hello! I was following the guide here and reached the Configuring and compiling KOS and kos-ports section.

When I run /opt/toolchains/dc/kos-ports/utils/build-all.sh it seems to be complaining about the build directory not existing.

/opt/toolchains/dc/kos-ports/utils/build-all.sh
Checking if /opt/toolchains/dc/kos/../kos-ports/cglm is installed and up-to-date...
/opt/toolchains/dc/kos/../kos-ports/cglm is already installed and up-to-date. Skipping.
Checking if /opt/toolchains/dc/kos/../kos-ports/expat is installed and up-to-date...
Building /opt/toolchains/dc/kos/../kos-ports/expat...
make: Entering directory '/opt/toolchains/dc/kos-ports/expat'
expat is not currently installed.
Copying KOS files...
Finished processing dependencies for expat.
Fetching expat-2.5.0.tar.gz from https://github.com/libexpat/libexpat/releases/download/R_2_5_0 ...
/bin/sh: line 1: cd: build: No such file or directory
/bin/sh: line 5: cd: expat-2.5.0: No such file or directory
Cleaning up build directories ...
Cleaning up dist files ...
File not found: expat-2.5.0.tar.gz
make: *** [/opt/toolchains/dc/kos/../kos-ports/scripts/validate.mk:10: validate-dist] Error 1
make: *** Waiting for unfinished jobs....
Warning: Failed to open the file expat-2.5.0.tar.gz: No such file or directory
curl: (56) Failure writing output to destination, passed 16375 returned 4294967295

make: *** [/opt/toolchains/dc/kos/../kos-ports/scripts/download.mk:9: fetch] Error 56
make: Leaving directory '/opt/toolchains/dc/kos-ports/expat'
2
Error building /opt/toolchains/dc/kos/../kos-ports/expat. Bailing out.

Is there anything special I have to do to get this to work?

I even tried compiling a specific library directly, and ran into similar issues.

/opt/toolchains/dc/kos-ports/libGL$ make install clean
libGL is not currently installed.
Finished processing dependencies for libGL.
Copying KOS files...
/bin/sh: line 1: cd: build: No such file or directory
/bin/sh: line 3: cd: libGL-1.0.0: No such file or directory
Updating libGL from Git ...
cp: cannot stat '../../files/KOSMakefile.mk': No such file or directory
make: *** [/opt/toolchains/dc/kos/../kos-ports/scripts/unpack.mk:28: copy-kos-files] Error 1
make: *** Waiting for unfinished jobs....
Cleaning up build directories ...
Already up to date.
bkacjios commented 4 months ago

Welp, I figured out the issue. My ~/.bashrc file had export MAKEFLAGS="-j $(grep -c ^processor /proc/cpuinfo)" in it, causing it to thread out each include in ./scripts/kos-ports.mk and cause race conditions. Sorry about that.

gyrovorbis commented 4 months ago

No problem at all, my friend. This kind of stuff happens all the time when you're first setting up all this stuff. Don't hesitate to reach back out if you run into any other issues! :)