ydbinstall uses ld.gold to build libyottadbutil.so
Final Release Note
On all architectures ydbinstall
/ ydbnstall.sh
use ld.gold
to build libyottadbutil.so
, the shared library of M routines. ld.gold
is more likely to be found by default on ARM architectures than cc
, which it previously used. Also, previously, on ARM machines without cc
it would fail silently; now on machines without ld.gold
it reports an error. [#1043 (closed)]
Description
This results in libyottadbutil.so
not being found as it failed to be created.
Lines 553 and 570 in configure.gtc are the cause of the problem. They run "ldcmd" in a subshell and ignore the output.
553 (cd $ydbdist; ./yottadb -noignore *.m; $echo $?>compstat ; $ldcmd $ldflags -o libyottadbutil$ext *.o)
570 (ydb_dist=$ydbdist/utf8; export ydb_dist; cd $ydb_dist; ./yottadb -noignore *.m; $echo $?>>$ydbdist/compstat; \
571 $ldcmd $ldflags -o libyottadbutil$ext *.o)
There are two issues here:
- Do we really need cc for ARM?
- We should fix the ldcmd to output something if it fails; or avoid using a subshell.
Draft Release Note
Release note depends on the solution.
Edited by K.S. Bhaskar