[devel] Как включить отладочную информацию
Kharitonov A. Dmitry
kharpost на rambler.ru
Чт Апр 9 08:38:37 MSD 2009
Led wrote:
> On Thursday, 09 April 2009 01:02:52 Kharitonov A. Dmitry wrote:
>
>> Как в бинарном пакете, собираемом через gear, включить информацию об
>> отпадке для gdb?
>>
>
> --build-args="--enable=debug"
>
Хитро!
Теперь чего-то не линкуется:
[user на eeedima thunderbird]$ gear -vvv --commit --hasher -- hsh
--lazy-cleanup --build-args="--enable=debug" --target=i586 ~/HASHER
mkdir: создан каталог `/home/user/tmp/gear.0yWG1SNb/out'
Created commit 9aa99c9: Temporary commit by gear.
1 files changed, 5 insertions(+), 2 deletions(-)
gear: Temporarily committed local changes.
gear: Extracted file by pattern "*.css": thunderbird.userContent.css
---8<---8<---
../../dom/src/storage/nsDOMStorage.h:201: instantiated from here
../../dist/include/xpcom/nsCOMPtr.h:197: warning: 'class
nsDerivedSafe<nsIDOMStorage>' has virtual functions but non-virtual
destructor
rm -f libgklayout.so
c++ -fno-rtti -fno-exceptions -Wall -Wconversion -Wpointer-arith
-Wcast-align -Woverloaded-virtual -Wsynth -Wno-ctor-dtor-privacy
-Wno-non-virtual-dtor -Wno-long-long -pedantic -pipe -Wall -g
-march=i586 -mtune=i686 -fPIC -DPIC -fshort-wchar -pthread -pipe
-DNDEBUG -DTRIMMED -ffunction-sections -O2 -fPIC -shared -Wl,-z,defs
-Wl,-h,libgklayout.so -o libgklayout.so nsLayoutModule.o
nsContentHTTPStartup.o nsContentDLF.o nsLayoutStatics.o
-Wl,-rpath,/____________________ -Wl,--whole-archive
../../dist/lib/libgkbase_s.a ../../dist/lib/libgkgeneric_s.a
../../dist/lib/libgkforms_s.a ../../dist/lib/libgkstyle_s.a
../../dist/lib/libgkprinting_s.a ../../dist/lib/libgktable_s.a
../../dist/lib/libgkxulbase_s.a ../../dist/lib/libgkconbase_s.a
../../dist/lib/libgkconcvs_s.a ../../dist/lib/libgkconevents_s.a
../../dist/lib/libgkconhtmlcon_s.a ../../dist/lib/libgkconhtmldoc_s.a
../../dist/lib/libgkconxmlcon_s.a ../../dist/lib/libgkconxmldoc_s.a
../../dist/lib/libgkconxbl_s.a ../../dist/lib/libgkconxulcon_s.a
../../dist/lib/libgkconxuldoc_s.a ../../dist/lib/libgkview_s.a
../../dist/lib/libjsdombase_s.a ../../dist/lib/libjsdomevents_s.a
../../dist/lib/libjsurl_s.a ../../dist/lib/libjsdomstorage_s.a
../../dist/lib/libgkxultree_s.a ../../dist/lib/libgkxulgrid_s.a
../../dist/lib/libgkconxultmpl_s.a ../../dist/lib/libinspector_s.a
../../dist/lib/libgkcontentxtf_s.a ../../dist/lib/libgkxtfbase_s.a
-Wl,--no-whole-archive -L../../dist/bin -L../../dist/lib -lgkgfx
../../dist/lib/libunicharutil_s.a -Wl,-rpath-link,../../dist/bin
-L../../dist/bin -lxpcom -lxpcom_core -L../../dist/bin `nspr-config
--libs` -L../../dist/bin -lmozjs -lgtk-x11-2.0 -lgdk-x11-2.0 -latk-1.0
-lgdk_pixbuf-2.0 -lpangocairo-1.0 -lcairo -lpangoft2-1.0 -lpango-1.0 -lm
-lfreetype -lz -lfontconfig -lgobject-2.0 -lgmodule-2.0 -ldl
-lglib-2.0 -Wl,--version-script
-Wl,../../build/unix/gnu-ld-scripts/components-version-script
-Wl,-Bsymbolic -ldl -lm
collect2: ld returned 1 exit status
gmake[3]: Leaving directory
`/usr/src/RPM/BUILD/thunderbird-2.0.0.21/mozilla/layout/build'
gmake[2]: Leaving directory
`/usr/src/RPM/BUILD/thunderbird-2.0.0.21/mozilla/layout'
gmake[3]: *** [libgklayout.so] Error 1
gmake[2]: *** [libs] Error 2
gmake[1]: *** [tier_9] Error 2
gmake[1]: Leaving directory
`/usr/src/RPM/BUILD/thunderbird-2.0.0.21/mozilla'
make: Leaving directory `/usr/src/RPM/BUILD/thunderbird-2.0.0.21/mozilla'
make: *** [default] Error 2
RPM build errors:
error: Bad exit status from /usr/src/tmp/rpm-tmp.86121 (%build)
Bad exit status from /usr/src/tmp/rpm-tmp.86121 (%build)
Command exited with non-zero status 1
3867.64user 183.99system 1:02:01elapsed 108%CPU (0avgtext+0avgdata
0maxresident)k
8968inputs+2441160outputs (20major+13525756minor)pagefaults 0swaps
hsh-rebuild: rebuild of `pkg.tar' failed.
gear: Reverted temporary commit c48e6b1dda9eadd07187b5e75cd8559b14be867d.
Подробная информация о списке рассылки Devel