eddy_em: (Default)
[personal profile] eddy_em
Захотелось мне valgrind попользовать. А для этого надо glibc собрать с отладочной информацией.
Ок, сделал, как в гентушном учебнике пишут. И тут:

/usr/bin/cmake -E cmake_link_script CMakeFiles/FITSmanip.dir/link.txt --verbose=1
/usr/bin/cc -fPIC  -O2 -Wextra -Wall -Werror -W -fopenmp  -O2 -Wextra -Wall -Werror -W  -shared -Wl,-soname,libFITSmanip.so.0.0.1 -o libFITSmanip.so.0.0.1 CMakeFiles/FITSmanip.dir/FITSmanip.c.o CMakeFiles/FITSmanip.dir/fileops.c.o CMakeFiles/FITSmanip.dir/fits.c.o -lusefull_macros 
/usr/lib/gcc/x86_64-pc-linux-gnu/7.3.0/../../../../x86_64-pc-linux-gnu/bin/ld: warning: section `.bss' type changed to PROGBITS
/usr/lib/gcc/x86_64-pc-linux-gnu/7.3.0/../../../../x86_64-pc-linux-gnu/bin/ld: /usr/lib/gcc/x86_64-pc-linux-gnu/7.3.0/../../../../lib64/crti.o(_ranges+0x5f5f7472617473): reloc against `*UND*': error 2
/usr/lib/gcc/x86_64-pc-linux-gnu/7.3.0/../../../../x86_64-pc-linux-gnu/bin/ld: final link failed: Nonrepresentable section on output
collect2: ошибка: выполнение ld завершилось с кодом возврата 1

Ну ничего ж себе! Я не ожидал, что это потребует пересборки всего "мира"!!!
В общем, собираю обратно glibc без отладочной информации. Т.к. "мир" на ноутбуке будет пересобираться неделю!!!

Так что, не суждено мне попользоваться отладчиками в разработке. Ну, да ничего: 20 лет ими не пользовался, и сейчас как-нибудь обойдусь...
This account has disabled anonymous posting.
If you don't have an account you can create one now.
HTML doesn't work in the subject.
More info about formatting

If you are unable to use this captcha for any reason, please contact us by email at support@dreamwidth.org

October 2025

S M T W T F S
   1234
567 89 1011
121314 15161718
19202122232425
2627 28293031 

Most Popular Tags

Style Credit

Expand Cut Tags

No cut tags
Page generated Apr. 10th, 2026 06:25 pm
Powered by Dreamwidth Studios