8000 Make install errors · Issue #367 · LukeSmithxyz/st · GitHub
[go: up one dir, main page]
More Web Proxy on the site http://driver.im/
Skip to content

Make install errors #367

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
rithishsamm opened this issue Mar 28, 2025 · 1 comment
Open

Make install errors #367

rithishsamm opened this issue Mar 28, 2025 · 1 comment

Comments

@rithishsamm
Copy link
  • Description:

    (sameAlongWithst)

    Trying to install Arch Linux on a VirtualBox to tinker around. After archinstall, getting make install errors while installing dmenu.

    By following not the Lukesmith's Savage install but bugwriters ricing tutorial. There, He clone his repo, worked for him but not mine. error thrown. After research, found out about Luke's and cloned this st. (also errors on dmenu and dwm).

    1. Download Arch iso, virtualbox

    2. load all the configs and run

    3. archinstall and setup

    mkdir .local/src
    cd .local/src
    git clone https://github.com/LukeSmithxyz/dmenu.git
    cd dmenu
    make clean install #or
    make install

    and

    met dependency/library errors and installed:

    pacman -S pkg-config
  • Expected vs. Actual Behavior:

Expected: make just runs

Actual Error:

pacman: pkg-config command not found
/bin/sh: line 1: c99: command not found
make: *** [Makefile:19: st.o] Error 12?

after installing pkg-config

/bin/sh: line 1: c99: command not found
make: *** [Makefile:19: st.o] Error 12?
  • Troubleshooting Done: that i tried.

Opened Makefile. there are variables and there are CC and a lot more.

could able to resolve those. Issue for this

  • Environment Details:

    • virtual box

    • arch iso

    • archinstall

    • dwm, dmenu, st

  • Logs & Errors: Paste any useful logs or command

    /bin/sh: line 1: c99: command not found
    make: *** [Makefile:19: st.o] Error 12?

How do i navigate this?

@Endriken
Copy link
Endriken commented May 1, 2025

TLDR: try running make CC=gcc CFLAGS=-std=c99 (or clang whatever)

That's weird after running pacman -Qo c99 on my arch system I get

/usr/bin/c99 is owned by gcc 14.2.1+r753+g1cd744a6828f-1

so you don't have gcc? try running it.

Anyway c99 seems to be just a compiler that compiles ISO C as per it's man page
It's defined by posix and seems like something luke will use.
Funny part is I opened it in vim on a whim and found this.

#!/bin/sh
fl="-std=c99"
for opt; do
  case "$opt" in
    -std=c99|-std=iso9899:1999) fl="";;
    -std=*) echo "$(basename "$0") called with non ISO C99 option $opt" >&2
            exit 1;;
  esac
done
exec gcc $fl ${1+"$@"

It's just a shellscript and John Suckless ended up running a entire script in trying to avoid writing std=c99 in all his projects.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants
0