Here is example #1: $ gcc -o sizeof sizeof.c -lm
/nix/store/v63bxfiacw082c7ijshf60alvvrpfxsq-binutils-2.44/bin/ld: cannot find crt1.o: No such file or directory
/nix/store/v63bxfiacw082c7ijshf60alvvrpfxsq-binutils-2.44/bin/ld: cannot find crti.o: No such file or directory
collect2: error: ld returned 1 exit status
example #2: $ gcc -o addressof addressof.c
/nix/store/v63bxfiacw082c7ijshf60alvvrpfxsq-binutils-2.44/bin/ld: cannot find crt1.o: No such file or directory
/nix/store/v63bxfiacw082c7ijshf60alvvrpfxsq-binutils-2.44/bin/ld: cannot find crti.o: No such file or directory
/nix/store/v63bxfiacw082c7ijshf60alvvrpfxsq-binutils-2.44/bin/ld: cannot find -lgcc_s: No such file or directory
collect2: error: ld returned 1 exit status
When using NixOS 24.11 Vicuna no problem compiling C programs. I am learning at home, self study.
What has changed and what do I need to do to use gcc to compile C with?