discuss-gnustep
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: gnustep compiled with clang and gworkspace problem


From: Fred Kiefer
Subject: Re: gnustep compiled with clang and gworkspace problem
Date: Mon, 03 Oct 2011 12:50:48 +0200
User-agent: Mozilla/5.0 (X11; U; Linux x86_64; de; rv:1.9.2.22) Gecko/20110907 SUSE/3.1.14 Thunderbird/3.1.14

The failed test for gui are unrelated to the GWorkspace issue. We shoudl start to flag tests that are expected to fail in gui, just as this was doen in base. The tests in gui are still somewhat minimal, any help with these is highly welcome. For me (with gcc) only one of the NSBrowser tests fails, but there are also two NSView tests that are expected to fail.

The problem with GSColorSliderCell is that the same class gets used by different bundles and that we therefore load it multiple times. This has worked fine for a long time with the gcc Objective-C runtime but caused some trouble with other runtimes. I think David changed the new libobjc2 runtime specifically for this case to allow the same class being loaded twice. Perhaps we could try to rearrange the code here. And seven of the ten colour modes could be handled by a gradient anyway...

I don't know anything about the other errors you are getting. Here a back trace from gdb could help. Just set a break point on [NSException raise] and report back.


On 03.10.2011 12:13, Sebastian Reitenbach wrote:
I completely uninstalled gnustep from my OpenBSD box, and changed the
ports to build with clang instead of gcc.
I have gnustep-make-1.6.1, gnustep-base-1.22.1, gnustep-gui-0.20.0,
gnustep-back-0.20.1, llvm/clang-2.9.
Since the other strange problems I saw, I did not installed the libobjc2
for now.

I ran gnustep_test on gnustep-base and it reported:
2793 Paased tests
     13 Dashed hopes
       1 Skipped test

so far so good, and ran it on gnustep-gui I get:

733 Passed tests
     4 Failed tests

in the tests.log I see:

Testing setDelegate_reload.m...
Running gnustep-gui-0.20.0/Tests/gui/NSSavePanel/setDelegate_reload.m...
Failed test:     browser initially contains all files
Failed test:     browser is reloaded after -setDelegate:
Failed test:     browser contains all files after resetting delegate
Failed test:     browser is reloaded after -setDelegate: (2)
Completed file:  setDelegate_reload.m

the reason for my check is, when I start GWorkspace, then I get the
following to read on the console:

2011-10-03 11:43:56.020 GWorkspace[2219] XShm not supported,
XShmAttach() failed.
2011-10-03 11:43:56.054 GWorkspace[2219] Falling back to normal XImage
(will be slower).
2011-10-03 11:43:57.490 fswatcher[6960] register client 2
2011-10-03 11:43:57.771 GWorkspace[2219] Volumes ({dir = "/"; name =
"/dev/wd0a"; type = ffs; }, {dir = "/home"; name = "/dev/wd0k"; type =
ffs; }, {dir = "/tmp"; name = "/dev/wd0d"; type = ffs; }, {dir = "/usr";
name = "/dev/wd0f"; type = ffs; }, {dir = "/usr/X11R6"; name =
"/dev/wd0g"; type = ffs; }, {dir = "/usr/local"; name = "/dev/wd0h";
type = ffs; }, {dir = "/usr/obj"; name = "/dev/wd0j"; type = ffs; },
{dir = "/usr/src"; name = "/dev/wd0i"; type = ffs; }, {dir = "/var";
name = "/dev/wd0e"; type = ffs; })
2011-10-03 11:43:58.594 GWorkspace[2219] Exception occured while loading
model: GSColorSliderCell(instance) does not recognize
_setColorSliderCellMode:
2011-10-03 11:43:58.595 GWorkspace[2219] Failed to load Gorm
2011-10-03 11:43:58.783 GWorkspace[2219] failed to load FModuleAnnotations!
2011-10-03 11:43:58.784 GWorkspace[2219] Problem posting notification:
<NSException: 0x86b881a8>  NAME:NSInvalidArgumentException REASON:Tried
to add nil to array INFO:(null)
2011-10-03 11:43:59.644 GWorkspace[2219] Unable to obtain lock (null)

but GSColorSliderCell.m seems to compile fine:
clang GSColorSliderCell.m -c \
       -MMD -MP -DGNUSTEP -DGNUSTEP_BASE_LIBRARY=1 -DGNU_GUI_LIBRARY=1
-DGNU_RUNTIME=1 -DGNUSTEP_BASE_LIBRARY=1 -fno-strict-ali
asing -fPIC -DDEBUG -fno-omit-frame-pointer -Wall -DGSWARN -DGSDIAGNOSE
-Wno-import -O2 -pipe -g -O0 -fgnu-runtime -fconstant-
string-class=NSConstantString -I../Headers/Additions -I../Headers -I.
-I/usr/local/include -I/gnustep-gui-0.20.0_writes_to_HOM
E/GNUstep/Library/Headers -I/usr/local/include \
        -o obj/StandardPicker.obj/GSColorSliderCell.m.o
clang -shared -fPIC  -Wl,-E       -o
./StandardPicker.bundle/./StandardPicker
./obj/StandardPicker.obj/GSStandardColorPicker.m
.o ./obj/StandardPicker.obj/GSRGBColorPicker.m.o
./obj/StandardPicker.obj/GSCMYKColorPicker.m.o
./obj/StandardPicker.obj/GSHSB
ColorPicker.m.o ./obj/StandardPicker.obj/GSGrayColorPicker.m.o
./obj/StandardPicker.obj/GSColorSliderCell.m.o   -L../Source/./
obj -L../Models/./obj
-L/gnustep-gui-0.20.0_writes_to_HOME/GNUstep/Library/Libraries
-L/usr/local/lib  -L/usr/local/lib
-lgnustep-gui    -lgnustep-base   -pthread -lobjc   -lm

I'm not sure whether the failed tests have anything to do with the
GSColorSliderCell problem of GWorkspace. I'll rerun the testsuites with
just using gcc instead of clang, forgot to do it before.
checked out clang from svn, but on my slow box it may take a couple of
hours to compile it...




reply via email to

[Prev in Thread] Current Thread [Next in Thread]