Error creating glibc

I am trying to install glibc for debugging the C-framework I'm working on. But, I get an error during the build process. Here is the msg error:

make[3]: Leaving directory `/root/glibc-source/glibc-2.14/elf' /usr/bin/install -c /root/glibc-2.14-build/elf/ld.so /usr/local/myglibc/lib/ld-2.14.so.new mv -f /usr/local/myglibc/lib/ld-2.14.so.new /usr/local/myglibc/lib/ld-2.14.so /usr/bin/install -c /root/glibc-2.14-build/libc.so /usr/local/myglibc/lib/libc-2.14.so.new mv -f /usr/local/myglibc/lib/libc-2.14.so.new /usr/local/myglibc/lib/libc-2.14.so echo ld-2.14.so /usr/local/myglibc/lib/ld-linux-x86-64.so.2 >> /root/glibc-2.14-build/elf/symlink.list /usr/bin/install -c /root/glibc-2.14-build/elf/sotruss-lib.so /usr/local/myglibc/lib/audit/sotruss-lib.so.new mv -f /usr/local/myglibc/lib/audit/sotruss-lib.so.new /usr/local/myglibc/lib/audit/sotruss-lib.so make[2]: *** No rule to make target `/root/glibc-2.14-build/dlfcn/libdl.so.2', needed by `/root/glibc-2.14-build/elf/sprof'. Stop. make[2]: Leaving directory `/root/glibc-source/glibc-2.14/elf' make[1]: *** [elf/subdir_install] Error 2 make[1]: Leaving directory `/root/glibc-source/glibc-2.14' make: *** [install] Error 2 

Is this a known issue? Last week, I built glibc on the same machine without any errors. I am rebuilding it because glibc is compiled with optimization level 2 (-O2) by default, and I cannot look at the values โ€‹โ€‹of several variables inside the library functions from the code dump, since they were optimized. I'm currently trying to compile with optimization level 1.

thanks

+4
source share
2 answers

It looks like you are trying to make install without making make all successful.

+4
source

This is useful for anyone who can try to create glibc on their ubuntu block. I reviewed the following issues and resolved them as follows.

These problems were encountered in ubuntu 12.04

  • I created the glib-build directory at the same level as glib-VERSION, and ran the following command

$> ../glibc-2.16.0/configure --prefix = / home / gugovind / tsapp / glibc / glibc-build /

which gave me the following error that is not listed in makeinfo.

for this

$> sudo apt-get install texinfo

will solve the problem.

  • He threw and made a mistake about LD_LIBRARY_PATH having the current directory (even if it does not exist) to do this, run the following command at the command prompt

    $> set LD_LIBRARY_PATH

this will temporarily clear LD_LIBRARY_PATH for this console only. Then run configure again.

You may have another configuration problem. "strtonum function is never defined"

look at the config.log file, mawk or gawk may be missing. install them using

sudo apt-get install gawk

This will lead you through part of the configuration.

now do

to do everything

if in case you encounter a specific file that does not compile, just copy gcc ... before that and paste it into the command line again after you have cd to this directory (command lines should tell you before the error where to go.)

make installation

You may receive a warning that you cannot find the etc / ld.config file .... ignore this .. you are all set up now.

0
source

Source: https://habr.com/ru/post/1403241/


All Articles