-
-
Notifications
You must be signed in to change notification settings - Fork 46
Open
Description
The nix-shell build instructions doesn't work on Ubuntu 20.04 with current version of nix-shell.
This would appear to be more portable:
git clone https://github.com/felix-lang/felix --depth=1
chmod a+rw -R felix
cd felix
docker run --rm -v `pwd`:/usr/src -ti archlinux bash
pacman -Sy fakeroot binutils git ocaml sdl2_image sdl2_gfx sdl2_ttf sdl2 gsl gcc python3 make
useradd user
su user
cd /usr/src/felix/src/misc
# ln -s /usr/src/felix src/ # makepkg doesn't allow this ... better solution is to copy this misc folder somewhere else first
sed -i s@url=.*@url=/usr/src/felix@ PKGBUILD # otherwise whole git repo gets pulled AGAIN
makepkg
...
exit
This ends with this:
[fbuild] [Felix] TEST BUILD
looking for bootflx : ok build/release/host/bin/bootflx
[fbuild] [Felix] BUILDING PLUGINS
BUILDING PLUGINS
* build/release/host/bin/bootflx --test=build/release: build/release/share/lib/plugins/toolchain_clang_macosx.flx -> build/release/share/lib/plugins/toolchain_clang_macosx.so
+ build/release/host/bin/bootflx -Ibuild/release/share/lib/plugins --test=build/release -c --test=build/release -od build/release/host/lib/rtl build/release/share/lib/plugins/toolchain_clang_macosx.flx
BOOTFLX
[bootflx] build/release/host/bin/bootflx -Ibuild/release/share/lib/plugins --test=build/release -c --test=build/release -od build/release/host/lib/rtl build/release/share/lib/plugins/toolchain_clang_macosx.flx
Cache may be out of date due to grammar upgrade!
Grammar time stamp =1638111295.000
Automaton.syntax time stamp =BIG BANG
Delete cache /home/c3/.felix/cache/text
Delete cache /home/c3/.felix/cache/binary
Error running 'build/release/host/bin/bootflx -Ibuild/release/share/lib/plugins --test=build/release -c --test=build/release -od build/release/host/lib/rtl build/release/share/lib/plugins/toolchain_clang_macosx.flx' exited with -11
make: *** [GNUmakefile:128: do-fbuild] Error 1
==> ERROR: A failure occurred in build().
Aborting...
[c3@cabe3d5e1fd3 misc]$
If you rm -rf all the osx* directories, it compiles and installs fine... but I'm sure there's a configuration option to do the same.
Metadata
Metadata
Assignees
Labels
No labels