I've been writing a script that can compile a Linux Distro, which you can find here. Essentially, it creates /mnt/semcos, and throws up a linux-based system there. At the moment, I'm stuck at compiling busybox-1.31.1 - I get the following error:

date.c(.text.rdate_main+0xe4): undefined reference to `stime'
collect2: error: ld returned 1 exit status

Why am I getting this error?

1 Answer 1


The error you reference is a problem finding the symbol stime(). Looking at man 2 stime I see:

     Starting with glibc 2.31, this function is no longer available to newly
     linked applications and is no longer declared in <time.h>.

My guess is that you have glibc 2.31 or greater.

Note that the calls to stime() were removed from BusyBox in version 1.32. If you update your script to use that version, that should resolve your problem.

  • That makes sense - am trying right now, but most probably has worked! Cheers!
    – Bobbbay
    Commented Nov 15, 2020 at 16:59

You must log in to answer this question.

Not the answer you're looking for? Browse other questions tagged .