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
FS#381 - Error: undefined reference to `clock_gettime’ during build #5421
Comments
jow-: Is your tree including the fix from http://git.lede-project.org/0c03650 already? |
noilly: I'm not sure. I'm pulling from https://github.com/lede-project/source.git, so whatever is in there. |
jow-: Please provide the output of |
noilly: Output of "./scripts/getver.sh": Output of "make tools/mkimage/{clean,compile} V=sc":
|
jow-: Ok, please post the output of |
noilly:
|
jow-: Ok, please repeat the mkimage build using |
noilly:
|
jow-: Please try the following change in tools/mkimage/Makefile and repeat the build using
|
noilly: That appears to have built without error Should I run |
jow-: Yes. If it runs through sucessfully I'll commit this fix to master. |
noilly: Looks like same error, but in a different location.
|
jow-: I pushed a number of fixes to master; please retry after a git pull. |
noilly: The build worked :) Thank you! |
noilly:
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:
The text was updated successfully, but these errors were encountered: