1 |
On 8/2/07, Luis Felipe Strano Moraes <luis.strano@×××××.com> wrote: |
2 |
> On 8/2/07, Sourav K. Mandal <sourav.mandal@×××××.com> wrote: |
3 |
> > [quote snipped] |
4 |
> > |
5 |
> > Comments: |
6 |
> > |
7 |
> > * I would be nervous to use the ~x86 keyword except for specific |
8 |
> > packages at a high-level. The reason it takes a while for things to get |
9 |
> > into x86 is because there are obscure bugs which can affect obscure |
10 |
> > setups -- unfortunately, GNUstep is in this category. A small bug in |
11 |
> > the toolchain can screw up everything else on top of it. At a minimum, |
12 |
> > I would revert to gcc-4.1 and glibc-2.5 in x86. |
13 |
> I found too many problems related with having some packages ~x86 and |
14 |
> some x86, and in general my experience with ACCEPT_KEYWORDS="~x86" |
15 |
> has been a really pleasant one (I mean, I've been using gentoo for years now, |
16 |
> and ~x86 is alot more stable now than it was before). |
17 |
> I tried reverting to gcc-4.1.2 and recompiling gnustep-base but it didn't |
18 |
> change anything, I can try reverting glibc as well, but I'd rather try other |
19 |
> things first if possible. |
20 |
> |
21 |
> > |
22 |
> > * Consider adding "-ggdb" to your C(XX)FLAGS, and "splitdebug" to your |
23 |
> > features. Compilation will produce gdb-compatible debugging symbols, |
24 |
> > but they'll be split off into /usr/lib/debug to reduce loading times for |
25 |
> > binaries. This works for ObjC/GNUstep; if you are serious about |
26 |
> > debugging, do this. |
27 |
> I've tried this already, but the debug flags are being stripped so far |
28 |
> as I can tell. Take |
29 |
> a look at the example below which I randomly selected from the |
30 |
> compilation output : |
31 |
> |
32 |
> i686-pc-linux-gnu-gcc NSIndexPath.m -c \ |
33 |
> -MMD -MP -DGNUSTEP_TARGET_DIR=\".\" |
34 |
> -DGNUSTEP_TARGET_CPU=\"ix86\" -DGNUSTEP_TARGET_OS=\"linux-gnu\" |
35 |
> -DGNUSTEP_IS_FLATTENED=\"yes\" -DLIBRARY_COMBO=\"gnu-gnu-gnu\" -Wall |
36 |
> -Wcast-align -DGNUSTEP -DGNUSTEP_BASE_LIBRARY=1 -DGNU_GUI_LIBRARY=1 |
37 |
> -DGNU_RUNTIME=1 -DGNUSTEP_BASE_LIBRARY=1 -D_REENTRANT -fPIC -g -Wall |
38 |
> -DDEBUG -fno-omit-frame-pointer -DGSWARN -DGSDIAGNOSE -Wno-import |
39 |
> -march=prescott -pipe -fno-strict-aliasing -fexceptions |
40 |
> -fobjc-exceptions -D_NATIVE_OBJC_EXCEPTIONS -fgnu-runtime |
41 |
> -fconstant-string-class=NSConstantString -I../Headers/Additions |
42 |
> -I../Headers -I./. -I. -I/usr/GNUstep/System/Library/Headers |
43 |
> -I/usr/GNUstep/System/Library/Headers -I/usr/include/libxml2 |
44 |
> -I/usr/include -I/var/tmp/portage/gnustep-base/gnustep-base-1.14.0/temp/GNUstep/Library/Headers |
45 |
> -I/usr/GNUstep/Local/Library/Headers |
46 |
> -I/usr/GNUstep/System/Library/Headers \ |
47 |
> -o obj/NSIndexPath.o |
48 |
> |
49 |
> This is with -ggdb on the CFLAGS, splitdebug on FEATURES and debug on |
50 |
> gnustep-base's |
51 |
> USEflags. Am I doing anything wrong ? |
52 |
|
53 |
Ok, apparently it's compiling with debug support, so I just ran the plmerge line |
54 |
which was giving me errors on gdb and this is the backtrace that I got |
55 |
(I've to go |
56 |
to class now, and I'll take a look at it later tonight possibly) : |
57 |
|
58 |
(gdb) r libgnustep-back-012.bundle/Resources/Info-gnustep.plist |
59 |
libgnustep-back-012Info.plist |
60 |
Starting program: /usr/GNUstep/System/Tools/plmerge |
61 |
libgnustep-back-012.bundle/Resources/Info-gnustep.plist |
62 |
libgnustep-back-012Info.plist |
63 |
|
64 |
Program received signal SIGABRT, Aborted. |
65 |
0xb7eed410 in __kernel_vsyscall () |
66 |
(gdb) backtrace |
67 |
#0 0xb7eed410 in __kernel_vsyscall () |
68 |
#1 0xb7795969 in raise () from /lib/libc.so.6 |
69 |
#2 0xb7796f51 in abort () from /lib/libc.so.6 |
70 |
#3 0xb7afd6ef in objc_exception_throw () from |
71 |
/usr/lib/gcc/i686-pc-linux-gnu/4.2.0/libobjc.so.2 |
72 |
#4 0xb7c4a06f in -[NSException raise] (self=0x80fd6e0, |
73 |
_cmd=0xb7e753a0) at NSException.m:806 |
74 |
#5 0xb7bad638 in -[GSMutableDictionary setObject:forKey:] |
75 |
(self=0x80f9880, _cmd=0xb7e70cf0, anObject=0x0, aKey=0x80814c8) |
76 |
at GSDictionary.m:408 |
77 |
#6 0xb7b9d1fb in GSDomainFromDefaultLocale () at GSLocale.m:162 |
78 |
#7 0xb7d04e37 in +[NSUserDefaults standardUserDefaults] |
79 |
(self=0xb7ecca00, _cmd=0xb7e93350) at NSUserDefaults.m:592 |
80 |
#8 0xb7c40313 in -[NSDictionary writeToFile:atomically:] |
81 |
(self=0x80964b0, _cmd=0x804ab58, path=0x808bff8, useAuxiliaryFile=1 |
82 |
'\001') |
83 |
at NSDictionary.m:951 |
84 |
#9 0x080492c3 in main () at plmerge.m:139 |
85 |
#10 0xb77829a8 in __libc_start_main () from /lib/libc.so.6 |
86 |
#11 0x080488e1 in _start () |
87 |
|
88 |
|
89 |
|
90 |
|
91 |
--lf |
92 |
|
93 |
|
94 |
> |
95 |
> |
96 |
> > |
97 |
> > * You have a ton of USE flags. The more intricate/featureful your |
98 |
> > system, the more likely you are to get weird bugs. Consider paring it |
99 |
> > down to exactly what you need. |
100 |
> Ok, there are lots of USE flags there that are related to a bug on |
101 |
> gtkphoto2 which |
102 |
> I still haven't had the time to take a better look at (I've got a |
103 |
> canon camera, but the |
104 |
> canon useflag is not adding support for it, so I brute forced and set |
105 |
> all useflags |
106 |
> possible). I can cut down my USEflags, but that would involve rebuilding the |
107 |
> entire system, and I would really prefer another solution to finding |
108 |
> out what's wrong |
109 |
> if possible. |
110 |
> I mean, my idea with building gnustep is basically to test Étoilé for some time. |
111 |
> |
112 |
> cheers, |
113 |
> --lf |
114 |
> |
115 |
> > |
116 |
> > |
117 |
> > Good luck, |
118 |
> > |
119 |
> > Sourav |
120 |
> > |
121 |
> > |
122 |
> > -- |
123 |
> > Sourav K. Mandal |
124 |
> > http://sourav.net/ |
125 |
> > |
126 |
> > PGP: 7E7E 14CD A983 484C 8A43 55CA DBAC 539C 1814 3DAF |
127 |
> > |
128 |
> > -- |
129 |
> > gentoo-gnustep@g.o mailing list |
130 |
> > |
131 |
> > |
132 |
> |
133 |
> |
134 |
> -- |
135 |
> "People assume that time is a strict progression of cause to effect... |
136 |
> but actually, from a non-linear, non-subjective viewpoint, it's more |
137 |
> like a big ball of wibbly-wobbly...timey-wimey...stuff." - The Doctor |
138 |
> |
139 |
|
140 |
|
141 |
-- |
142 |
"People assume that time is a strict progression of cause to effect... |
143 |
but actually, from a non-linear, non-subjective viewpoint, it's more |
144 |
like a big ball of wibbly-wobbly...timey-wimey...stuff." - The Doctor |
145 |
-- |
146 |
gentoo-gnustep@g.o mailing list |