Skip to content

resolved the "undefined reference" errors by fixing a critical object… #27

resolved the "undefined reference" errors by fixing a critical object…

resolved the "undefined reference" errors by fixing a critical object… #27

Workflow file for this run

name: BasicallyLinux Build Pipeline
on:
push:
branches: [ "main" ]
pull_request:
branches: [ "main" ]
jobs:
build:
name: Compile Kernel
runs-on: ubuntu-latest
steps:
- name: Checkout Code
uses: actions/checkout@v4
- name: Install Toolchain
run: |
sudo apt-get update
sudo apt-get install -y \
nasm \
make \
binutils-i686-linux-gnu \
gcc-i686-linux-gnu \
libgcc-s1-i386-cross \
wget
- name: Download AI Model Asset
run: |
mkdir -p assets
if [ ! -f assets/smollm2.gguf ]; then
wget -O assets/smollm2.gguf https://huggingface.co/bartowski/SmolLM2-135M-Instruct-GGUF/resolve/main/SmolLM2-135M-Instruct-Q4_K_M.gguf
fi
- name: Build BasicallyLinux
run: |
mkdir -p bin
mkdir -p build
# We use GCC as the linker wrapper to automatically locate libgcc.a
# This solves the __udivdi3 and __divdi3 errors
make CC=i686-linux-gnu-gcc \
LD=i686-linux-gnu-gcc \
AS=nasm
- name: Archive Artifacts
if: success()
uses: actions/upload-artifact@v4
with:
name: basicallylinux-alpha
path: |
kernel.bin
assets/smollm2.gguf