[FS#381] Error: undefined reference to `clock_gettime’ during build

LEDE Bugs lede-bugs at lists.infradead.org
Tue Jan 10 15:15:11 PST 2017


A new Flyspray task has been opened.  Details are below. 

User who did this - David Poxon (noilly) 

Attached to Project - LEDE Project
Summary - Error: undefined reference to `clock_gettime’ during build
Task Type - Bug Report
Category - Base system
Status - Unconfirmed
Assigned To - 
Operating System - All
Severity - Critical
Priority - Very Low
Reported Version - Trunk
Due in Version - Undecided
Due Date - Undecided
Details - I am trying to build LEDE and am receiving the following error:

/home/vagrant/lede/staging_dir/host/lib/libcrypto.a(getentropy_linux.o): In function `getentropy_fallback':
getentropy_linux.c:(.text+0x18b): undefined reference to `clock_gettime'
getentropy_linux.c:(.text+0x46f): undefined reference to `clock_gettime'
collect2: ld returned 1 exit status
make[5]: *** [tools/dumpimage] Error 1
make[4]: *** [tools-only] Error 2
make[4]: Leaving directory `/home/vagrant/lede/build_dir/host/u-boot-2014.10'
make[3]: *** [/home/vagrant/lede/build_dir/host/u-boot-2014.10/.built] Error 2
make[3]: Leaving directory `/home/vagrant/lede/tools/mkimage'
make[2]: *** [tools/mkimage/compile] Error 2
make[2]: Leaving directory `/home/vagrant/lede'
make[1]: *** [/home/vagrant/lede/staging_dir/target-mips_24kc_musl-1.1.15/stamp/.tools_install_yynyyyyynyyyyynyynnyyyyyyyyyyyyyyyyyyyynyynynyyyynnny] Error 2
make[1]: Leaving directory `/home/vagrant/lede'
make: *** [world] Error 2

This only started happening after I decided to include the bash package. However, I am not sure this is relevant as it has been several weeks since I last built LEDE.

In an attempt to fix the problem I included librt, but that didn't work.

----

Using: https://github.com/lede-project/source.git

Build config:

  * Target: AR7xxx/AR9xxx
  * Subtarget: Generic 
  * Target profile: YunCore XD3200 
  * Utilities > Shells > bash 

More information can be found at the following URL:
https://bugs.lede-project.org/index.php?do=details&task_id=381



More information about the lede-bugs mailing list