Hello

I got everything setup on ubuntu 21.04 and it's compiling and linking my small statically linked test executable, but I can't run it.

$ ldd ./foo
    statically linked
$ ls -l foo
-rwxrwxr-x 1 nat develop 77224 Okt  8 02:05 foo
$ sudo strace ./foo
execve("./foo", ["./foo"], 0x7ffe245a03c0 /* 26 vars */) = -1 ENOENT (Datei oder Verzeichnis nicht gefunden)
strace: exec: Datei oder Verzeichnis nicht gefunden
+++ exited with 1 +++

I assume this is a common newbie problem, but in case not:

Linux localhost 5.11.0-37-generic #41-Ubuntu SMP Mon Sep 20 16:39:20 UTC 2021 x86_64 x86_64 x86_64 GNU/Linux
gcc (Ubuntu 10.3.0-1ubuntu1) 10.3.0
musl is not installed

How I built musl-1.2.2 (this is basically non-negotiable, if I can't have it build "static only" outside of root, this is no use for me)

CC='cc' CFLAGS='-g -O0' CXXFLAGS='-g -O0' ./configure  --disable-shared --prefix='/tmp/dependency'
make  VERBOSE=1 -j 64 all
make  VERBOSE=1 -j 64 install

How I built "foo.c":

cat <<EOF > foo.c
#include <stdio.h>

int  main( void)
{
   printf( "VfL Bochum 1848\n");
   return( 0);
}
EOF

PATH="/tmp/dependency/bin:$PATH"

musl-gcc -o foo foo.c

Thanks for any help in advance
    Nat!