Mathieu Suen | 16 Apr 09:28 2010
Picon

Error during compilation: clang++: not found

Hi,

I am trying to build étoilé on Ubuntu 9.10 and got the following erro:

...
Build Project: CodeGen

Making all for framework LanguageKitCodeGen...
 Compiling file CGObjCGNU.cpp ...
/bin/sh: clang++: not found
make[5]: *** [obj/LanguageKitCodeGen.obj/CGObjCGNU.cpp.o] Error 127
make[4]: *** [internal-framework-run-compile-submake] Error 2
make[3]: *** [LanguageKitCodeGen.all.framework.variables] Error 2
make[2]: *** [internal-all] Error 2
make[1]: *** [internal-all] Error 2
make: *** [internal-all] Error 2

I have download the source code of llvm and clang latest release 2.6 and build it.
Any idea?

Thanks

      
Eric Wasylishen | 16 Apr 09:41 2010
Picon

Re: Error during compilation: clang++: not found

Hey Mathieu,

Unfortunately the LLVM 2.6 release will no longer work with LanguageKit, so you need to check out LLVM and Clang from trunk and build that.

Eric

On Fri, Apr 16, 2010 at 1:28 AM, Mathieu Suen <mathieusuen <at> yahoo.fr> wrote:
Hi,

I am trying to build étoilé on Ubuntu 9.10 and got the following erro:

...
Build Project: CodeGen

Making all for framework LanguageKitCodeGen...
 Compiling file CGObjCGNU.cpp ...
/bin/sh: clang++: not found
make[5]: *** [obj/LanguageKitCodeGen.obj/CGObjCGNU.cpp.o] Error 127
make[4]: *** [internal-framework-run-compile-submake] Error 2
make[3]: *** [LanguageKitCodeGen.all.framework.variables] Error 2
make[2]: *** [internal-all] Error 2
make[1]: *** [internal-all] Error 2
make: *** [internal-all] Error 2

I have download the source code of llvm and clang latest release 2.6 and build it.
Any idea?

Thanks




_______________________________________________
Etoile-discuss mailing list
Etoile-discuss <at> gna.org
https://mail.gna.org/listinfo/etoile-discuss

_______________________________________________
Etoile-discuss mailing list
Etoile-discuss <at> gna.org
https://mail.gna.org/listinfo/etoile-discuss
Mathieu Suen | 16 Apr 10:36 2010
Picon

Re : Error during compilation: clang++: not found

Thanks,

I finally get arround it but I still get errors.
The GNUStep I am using is the one from svn.


Build Project: CodeGen

Making all for framework LanguageKitCodeGen...
 Compiling file LKCompiler+JTL.mm ...
In file included from LKCompiler+JTL.mm:2:
In file included from /home/mathieu/Documents/src/Etoile/Build/EtoileFoundation/EtoileFoundation.h:38:
In file included from /home/mathieu/Documents/src/Etoile/Build/EtoileFoundation/ETByteSizeFormatter.h:13:
In file included from /usr/GNUstep/Local/Library/Headers/Foundation/Foundation.h:30:
In file included from /usr/GNUstep/Local/Library/Headers/GNUstepBase/GSVersionMacros.h:193:
In file included from /usr/GNUstep/Local/Library/Headers/GNUstepBase/GSConfig.h:226:
/usr/GNUstep/Local/Library/Headers/GNUstepBase/preface.h:81:11: fatal error: 'objc/objc.h' file not found
 #include <objc/objc.h>
          ^
1 error generated.
make[5]: *** [obj/LanguageKitCodeGen.obj/LKCompiler+JTL.mm.o] Error 1
make[4]: *** [internal-framework-run-compile-submake] Error 2
make[3]: *** [LanguageKitCodeGen.all.framework.variables] Error 2
make[2]: *** [internal-all] Error 2
make[1]: *** [internal-all] Error 2
make: *** [internal-all] Error 2


De : Eric Wasylishen <ewasylishen <at> gmail.com>
À : Discussion list for Étoilé desktop environment <etoile-discuss <at> gna.org>

Hey Mathieu,
Unfortunately the LLVM 2.6 release will no longer work with LanguageKit, so you need to check out LLVM and Clang from trunk and build that.

Eric

On Fri, Apr 16, 2010 at 1:28 AM, Mathieu Suen <mathieusuen <at> yahoo.fr> wrote:
Hi,

I am trying to build étoilé on Ubuntu 9.10 and got the following erro:

...
Build Project: CodeGen

Making all for framework LanguageKitCodeGen...
 Compiling file CGObjCGNU.cpp ...
/bin/sh: clang++: not found
make[5]: *** [obj/LanguageKitCodeGen.obj/CGObjCGNU.cpp.o] Error 127
make[4]: *** [internal-framework-run-compile-submake] Error 2
make[3]: *** [LanguageKitCodeGen.all.framework.variables] Error 2
make[2]: *** [internal-all] Error 2
make[1]: *** [internal-all] Error 2
make: *** [internal-all] Error 2

I have download the source code of llvm and clang latest release 2.6 and build it.
Any idea?

Thanks




_______________________________________________
Etoile-discuss mailing list
Etoile-discuss <at> gna.org
https://mail.gna.org/listinfo/etoile-discuss


_______________________________________________
Etoile-discuss mailing list
Etoile-discuss <at> gna.org
https://mail.gna.org/listinfo/etoile-discuss
Niels Grewe | 16 Apr 12:55 2010
Picon

Re: Re : Error during compilation: clang++: not found

On Fri, Apr 16, 2010 at 08:36:05AM +0000, Mathieu Suen wrote:
> In file included from /usr/GNUstep/Local/Library/Headers/GNUstepBase/
> GSConfig.h:226:
> /usr/GNUstep/Local/Library/Headers/GNUstepBase/preface.h:81:11: fatal error:
> 'objc/objc.h' file not found
>  #include <objc/objc.h>
>           ^

Am I correct to assume that you are not using libobjc2? If so, you are
probably on a platform where clang can't find the headers that ship with
gcc. As a workaround, you can add them manually to ADDITIONAL_OBJCFLAGS.
E.g. on my machine, the gcc header dir is
/usr/lib/gcc/x86_64-linux-gnu/4.3/include, and I would try to build by
invoking 'make CC=clang
ADDITIONAL_OBJCFLAGS+=-I/usr/lib/gcc/x86_64-linux-gnu/4.3/include'.

That being said, might as well try out libobjc2 and get all the shiny
new runtime features (I think other stuff will require it anyways).

Cheers,

Niels
Mathieu Suen | 26 Apr 13:25 2010
Picon

Re : Re : Error during compilation: clang++: not found

I am on ubuntu 9.10. and I have build llvm from svn. 
I don't know if clang is able to find libobjc2 but according to aptitude I have it installed.

----- Message d'origine ----
De : Niels Grewe <niels.grewe <at> halbordnung.de>
À : Discussion list for Ã?toilé desktop environment <etoile-discuss <at> gna.org>
Envoyé le : Ven 16 avril 2010, 12 h 55 min 15 s
Objet : Re: [Etoile-discuss] Re : Error during compilation: clang++: not found

On Fri, Apr 16, 2010 at 08:36:05AM +0000, Mathieu Suen wrote:
> In file included from /usr/GNUstep/Local/Library/Headers/GNUstepBase/
> GSConfig.h:226:
> /usr/GNUstep/Local/Library/Headers/GNUstepBase/preface.h:81:11: fatal error:
> 'objc/objc.h' file not found
>  #include <objc/objc.h>
>           ^

Am I correct to assume that you are not using libobjc2? If so, you are
probably on a platform where clang can't find the headers that ship with
gcc. As a workaround, you can add them manually to ADDITIONAL_OBJCFLAGS.
E.g. on my machine, the gcc header dir is
/usr/lib/gcc/x86_64-linux-gnu/4.3/include, and I would try to build by
invoking 'make CC=clang
ADDITIONAL_OBJCFLAGS+=-I/usr/lib/gcc/x86_64-linux-gnu/4.3/include'.

That being said, might as well try out libobjc2 and get all the shiny
new runtime features (I think other stuff will require it anyways).

Cheers,

Niels

_______________________________________________
Etoile-discuss mailing list
Etoile-discuss <at> gna.org
https://mail.gna.org/listinfo/etoile-discuss

_______________________________________________
Etoile-discuss mailing list
Etoile-discuss <at> gna.org
https://mail.gna.org/listinfo/etoile-discuss
David Chisnall | 26 Apr 13:28 2010

Re: Re : Re : Error during compilation: clang++: not found

On 26 Apr 2010, at 12:25, Mathieu Suen wrote:

> I don't know if clang is able to find libobjc2 but according to aptitude I have it installed.

Wait...

How did you install libobjc2?  I'd be VERY surprised if anyone has packaged it...

David

-- Sent from my Difference Engine
Mathieu Suen | 26 Apr 13:34 2010
Picon

Re : Re : Re : Error during compilation: clang++: not found

llvm  $ dpkg --get-selections | grep objc
gobjc-4.4                    install
libobjc2                    install

----- Message d'origine ----
De : David Chisnall <theraven <at> sucs.org>
À : Discussion list for Étoilé desktop environment <etoile-discuss <at> gna.org>
Envoyé le : Lun 26 avril 2010, 13 h 28 min 54 s
Objet : Re: [Etoile-discuss] Re : Re : Error during compilation: clang++: not found

On 26 Apr 2010, at 12:25, Mathieu Suen wrote:

> I don't know if clang is able to find libobjc2 but according to aptitude I have it installed.

Wait...

How did you install libobjc2?  I'd be VERY surprised if anyone has packaged it...

David

-- Sent from my Difference Engine

_______________________________________________
Etoile-discuss mailing list
Etoile-discuss <at> gna.org
https://mail.gna.org/listinfo/etoile-discuss

_______________________________________________
Etoile-discuss mailing list
Etoile-discuss <at> gna.org
https://mail.gna.org/listinfo/etoile-discuss
Niels Grewe | 26 Apr 13:36 2010
Picon

Re: Re : Re : Error during compilation: clang++: not found

On Mon, Apr 26, 2010 at 12:28:54PM +0100, David Chisnall wrote:
> On 26 Apr 2010, at 12:25, Mathieu Suen wrote:
> 
> > I don't know if clang is able to find libobjc2 but according to aptitude I have it installed.
> 
> Wait...
> 
> How did you install libobjc2?  I'd be VERY surprised if anyone has packaged it...

That's a packaging artifact stemming from Debians soname-versioning
scheme. Since gcc libobjc is libobjc.2.so, they package it as libobjc2.
Proper libobjc2 would probably be packaged as libobjc4. (And yes, it
does make my brain hurt…)

Niels

_______________________________________________
Etoile-discuss mailing list
Etoile-discuss <at> gna.org
https://mail.gna.org/listinfo/etoile-discuss
Mathieu Suen | 26 Apr 13:51 2010
Picon

Re : Re : Re : Error during compilation: clang++: not found

... :)
So now I am a bit confuse.
How do I get libobjc2. 
Is it something that come from llvm, GNUStep or GCC?

----- Message d'origine ----
De : Niels Grewe <niels.grewe <at> halbordnung.de>
À : Discussion list for Ã?toilé desktop environment <etoile-discuss <at> gna.org>
Envoyé le : Lun 26 avril 2010, 13 h 36 min 33 s
Objet : Re: [Etoile-discuss] Re : Re : Error during compilation: clang++: not found

On Mon, Apr 26, 2010 at 12:28:54PM +0100, David Chisnall wrote:
> On 26 Apr 2010, at 12:25, Mathieu Suen wrote:
> 
> > I don't know if clang is able to find libobjc2 but according to aptitude I have it installed.
> 
> Wait...
> 
> How did you install libobjc2?  I'd be VERY surprised if anyone has packaged it...

That's a packaging artifact stemming from Debians soname-versioning
scheme. Since gcc libobjc is libobjc.2.so, they package it as libobjc2.
Proper libobjc2 would probably be packaged as libobjc4. (And yes, it
does make my brain hurt…)

Niels

_______________________________________________
Etoile-discuss mailing list
Etoile-discuss <at> gna.org
https://mail.gna.org/listinfo/etoile-discuss

_______________________________________________
Etoile-discuss mailing list
Etoile-discuss <at> gna.org
https://mail.gna.org/listinfo/etoile-discuss
David Chisnall | 26 Apr 13:55 2010

Re: Re : Re : Re : Error during compilation: clang++: not found

On 26 Apr 2010, at 12:51, Mathieu Suen wrote:

> ... :)
> So now I am a bit confuse.
> How do I get libobjc2. 
> Is it something that come from llvm, GNUStep or GCC?

libobjc2 is from GNUstep.

$ svn co svn://svn.gna.org/svn/gnustep/libs/libobjc2/trunk libobjc2
$ cd libobjc2
$ gmake
$ su
# gmake install

David

-- Sent from my PDP-11
Mathieu Suen | 26 Apr 14:41 2010
Picon

Re : Re : Re : Re : Error during compilation: clang++: not found

Ok thank.
After that do I need to recompile llvm and/or GNUStep?

----- Message d'origine ----
De : David Chisnall <theraven <at> sucs.org>
À : Discussion list for Étoilé desktop environment <etoile-discuss <at> gna.org>
Envoyé le : Lun 26 avril 2010, 13 h 55 min 20 s
Objet : Re: [Etoile-discuss] Re : Re : Re : Error during compilation: clang++: not found

On 26 Apr 2010, at 12:51, Mathieu Suen wrote:

> ... :)
> So now I am a bit confuse.
> How do I get libobjc2. 
> Is it something that come from llvm, GNUStep or GCC?

libobjc2 is from GNUstep.

$ svn co svn://svn.gna.org/svn/gnustep/libs/libobjc2/trunk libobjc2
$ cd libobjc2
$ gmake
$ su
# gmake install

David

-- Sent from my PDP-11

_______________________________________________
Etoile-discuss mailing list
Etoile-discuss <at> gna.org
https://mail.gna.org/listinfo/etoile-discuss

_______________________________________________
Etoile-discuss mailing list
Etoile-discuss <at> gna.org
https://mail.gna.org/listinfo/etoile-discuss
David Chisnall | 26 Apr 14:57 2010

Re: Re : Re : Re : Re : Error during compilation: clang++: not found

On 26 Apr 2010, at 13:41, Mathieu Suen wrote:

> Ok thank.
> After that do I need to recompile llvm and/or GNUStep?
> 

You don't need to recompile either, but if you reconfigure / recompile GNUstep to use the non-fragile ABI
then you will get support for accelerated proxies.

David
Mathieu Suen | 26 Apr 15:40 2010
Picon

Re : Re : Re : Re : Re : Error during compilation: clang++: not found

Now when I compile Etoilé I get this error:

Build Project: CodeGen

Making all for framework LanguageKitCodeGen...
 Compiling file CGObjCGNU.cpp ...
 Compiling file CodeGenBlock.cpp ...
 Compiling file CodeGenModule.cpp ...
 Compiling file CodeGenLexicalScope.cpp ...
 Compiling file LLVMCodeGen.cpp ...
 Compiling file LKCompiler+JTL.mm ...
 Compiling file LLVMCodeGen.mm ...
clang: Mangle.cpp:310: const clang::DeclContext* IgnoreLinkageSpecDecls(const
clang::DeclContext*): Assertion `cast<LinkageSpecDecl>(DC)->getLanguage() ==
LinkageSpecDecl::lang_cxx && "Unexpected linkage decl!"' failed.
0  clang     0x08ffccd2
1  clang     0x08ffcba3
2            0x4001d400 __kernel_sigreturn + 0
3  libc.so.6 0x401b6932 abort + 386
4  libc.so.6 0x401ac648 __assert_fail + 248
5  clang     0x081c21af
6  clang     0x081c2205
7  clang     0x081c6ef4
8  clang     0x081c68fc
9  clang     0x081c334f
10 clang     0x081c3094
11 clang     0x081c249e
12 clang     0x081c1ff2
13 clang     0x081c1f84
14 clang     0x081c735e
15 clang     0x081a68d9
16 clang     0x081a6805
17 clang     0x081a832d
18 clang     0x081abc19
19 clang     0x081a504e
20 clang     0x0805f857
21 clang     0x0845353b
22 clang     0x08454f49
23 clang     0x082c1df1
24 clang     0x08662236
25 clang     0x082bfafe
26 clang     0x0807a526
27 clang     0x0807a197
28 clang     0x08065bf9
29 clang     0x0804e78b
30 clang     0x080535e9 main + 267
31 libc.so.6 0x4019fb56 __libc_start_main + 230
32 clang     0x0804d231
Stack dump:
0.    Program arguments: /usr/local/bin/clang -cc1 -triple i386-pc-linux-gnu -S -disable-free
-main-file-name LLVMCodeGen.mm -pic-level 2 -mdisable-fp-elim -mconstructor-aliases -target-cpu
pentium4 -g -resource-dir /usr/local/lib/clang/1.5 -dependency-file
obj/LanguageKitCodeGen.obj/LLVMCodeGen.mm.d -MT obj/LanguageKitCodeGen.obj/LLVMCodeGen.mm.o
-MP -DGNU_RUNTIME_VERSION=2 -DGNU_RUNTIME_VERSION=2 -D_GNU_SOURCE -DGNU_RUNTIME_VERSION=2
-D_GNU_SOURCE -DGNU_RUNTIME_VERSION=2 -DGNUSTEP -DGNUSTEP_BASE_LIBRARY=1 -DGNU_GUI_LIBRARY=1
-DGNU_RUNTIME=1 -DGNUSTEP_BASE_LIBRARY=1 -DGSWARN -DGSDIAGNOSE -D_DEBUG -D_GNU_SOURCE
-D__STDC_LIMIT_MACROS -D__STDC_CONSTANT_MACROS -I/usr/local/include
-I/home/mathieu/Documents/src/Etoile/Build
-I/home/mathieu/Documents/src/Etoile/Languages/LanguageKit
-I/home/mathieu/Documents/src/Etoile/Languages/LanguageKit/Headers
-I/home/mathieu/Documents/src/Etoile/Build -I/home/mathieu/Documents/src/Etoile/Languages/LanguageKit/CodeGen
 -I/home/mathieu/Documents/src/Etoile/Languages/LanguageKit/CodeGen/Headers
-I/home/mathieu/Documents/src/Etoile/Build
-I/home/mathieu/Documents/src/Etoile/Languages/LanguageKit/CodeGen
-I/home/mathieu/Documents/src/Etoile/Languages/LanguageKit/CodeGen/Headers
-I/home/mathieu/Documents/src/Etoile/Build
-I/home/mathieu/Documents/src/Etoile/Languages/LanguageKit/CodeGen
-I/home/mathieu/Documents/src/Etoile/Languages/LanguageKit/CodeGen/Headers -I./derived_src
-I. -I/home/mathieu/GNUstep/Library/Headers -I/usr/GNUstep/Local/Library/Headers
-I/usr/GNUstep/System/Library/Headers -O2 -Wall -Wno-import -Woverloaded-virtual
-fconstant-string-class NSConstantString -ferror-limit 19 -fmessage-length 119 -fno-rtti
-fgnu-runtime -fdiagnostics-show-option -fcolor-diagnostics -o /tmp/cc-SnQn84.s -x
objective-c++ LLVMCodeGen.mm 
1.    <eof> parser at end of file
2.    /usr/include/c++/4.4/bits/basic_string.h:1624:7: instantiating function definition
'std::basic_string<char, std::char_traits<char>, std::allocator<char> >::data'
3.    /usr/include/c++/4.4/bits/basic_string.h:1624:7: LLVM IR generation of declaration
'std::basic_string<char, std::char_traits<char>, std::allocator<char> >::data'
4.    /usr/include/c++/4.4/bits/basic_string.h:1624:7: Mangling declaration
'std::basic_string<char, std::char_traits<char>, std::allocator<char> >::data'
clang: error: compiler command failed due to signal 6 (use -v to see invocation)
make[5]: *** [obj/LanguageKitCodeGen.obj/LLVMCodeGen.mm.o] Error 250
make[4]: *** [internal-framework-run-compile-submake] Error 2
make[3]: *** [LanguageKitCodeGen.all.framework.variables] Error 2
make[2]: *** [internal-all] Error 2
make[1]: *** [internal-all] Error 2
make: *** [internal-all] Error 2

_______________________________________________
Etoile-discuss mailing list
Etoile-discuss <at> gna.org
https://mail.gna.org/listinfo/etoile-discuss
Quentin Mathé | 2 May 14:05 2010
Picon

Re: Re : Re : Re : Re : Re : Error during compilation: clang++: not found

Hi Mathieu,

Le 26 avr. 2010 à 15:40, Mathieu Suen a écrit :

> Now when I compile Etoilé I get this error:
>
> Build Project: CodeGen
>
> Making all for framework LanguageKitCodeGen...
> Compiling file CGObjCGNU.cpp ...
> Compiling file CodeGenBlock.cpp ...
> Compiling file CodeGenModule.cpp ...
> Compiling file CodeGenLexicalScope.cpp ...
> Compiling file LLVMCodeGen.cpp ...
> Compiling file LKCompiler+JTL.mm ...
> Compiling file LLVMCodeGen.mm ...
> clang: Mangle.cpp:310: const clang::DeclContext*  
> IgnoreLinkageSpecDecls(const clang::DeclContext*): Assertion  
> `cast<LinkageSpecDecl>(DC)->getLanguage() ==  
> LinkageSpecDecl::lang_cxx && "Unexpected linkage decl!"' failed.
> [snip]

Sorry for the late reply.

I got some time to test the Étoilé trunk compilation with Clang on  
Linux this week-end. The repository appears to have been broken  
recently. I committed several fixes yesterday (some tweaks were  
necessary to compile with recent Clang versions). I updated the  
INSTALL file to mention the new requirements. I plan to write some  
more detailed install instructions too.

It also appears Clang 2.7 fails to compile LanguageKit on Linux. I get  
the following error which is not the same than yours: http://pastebin.com/3NuibBa0
However the current Clang trunk works just fine.
It's a pain we have missed this bug before the Clang release, but well  
we have to live with it now I suppose :-/

Cheers,
Quentin.
Mathieu Suen | 11 May 10:19 2010
Picon

Re : Error during compilation: clang++: not found

Hi Tanks for your answer.

So I try out to rebuild everything from the beginning:

- llvm 
- GNUStep (make bas gui back)
Here I used the compile-all script
- libobc2
- Etoile

All with a fresh checkout.

but when I compile Etoile I got the following error:

Compiling file NSFileHandle+Socket.m ...
 Compiling file ETByteSizeFormatter.m ...
 Compiling file ETClassMirror.m ...
In file included from /home/mathieu/Documents/src/Etoile/Frameworks/EtoileFoundation/EtoileFoundation/runtime.h:11,
                 from /home/mathieu/Documents/src/Etoile/Frameworks/EtoileFoundation/Headers/ETClassMirror.h:13,
                 from ETClassMirror.m:11:
/usr/GNUstep/Local/Library/Headers/objc/runtime.h:35: error: redefinition of typedef ‘Ivar’
/usr/GNUstep/System/Library/Headers/ObjectiveC2/runtime.h:39: note: previous declaration of
‘Ivar’ was here
/usr/GNUstep/Local/Library/Headers/objc/runtime.h:77: error: redefinition of typedef ‘objc_property_t’
/usr/GNUstep/System/Library/Headers/ObjectiveC2/runtime.h:80: note: previous declaration of
‘objc_property_t’ was here
In file included from /home/mathieu/Documents/src/Etoile/Frameworks/EtoileFoundation/EtoileFoundation/runtime.h:11,
                 from /home/mathieu/Documents/src/Etoile/Frameworks/EtoileFoundation/Headers/ETClassMirror.h:13,
                 from ETClassMirror.m:11:
/usr/GNUstep/Local/Library/Headers/objc/runtime.h:344:1: error: "objc_msgSend" redefined
In file included from /usr/GNUstep/System/Library/Headers/GNUstepBase/GSObjCRuntime.h:47,
                 from /usr/GNUstep/System/Library/Headers/Foundation/NSObjCRuntime.h:82,
                 from /usr/GNUstep/System/Library/Headers/Foundation/NSObject.h:30,
                 from /usr/GNUstep/System/Library/Headers/Foundation/FoundationErrors.h:29,
                 from /usr/GNUstep/System/Library/Headers/Foundation/Foundation.h:33,
                 from /home/mathieu/Documents/src/Etoile/Frameworks/EtoileFoundation/Headers/ETClassMirror.h:11,
                 from ETClassMirror.m:11:
/usr/GNUstep/System/Library/Headers/ObjectiveC2/runtime.h:285:1: error: this is the location of
the previous definition
In file included from /home/mathieu/Documents/src/Etoile/Frameworks/EtoileFoundation/EtoileFoundation/runtime.h:11,
                 from /home/mathieu/Documents/src/Etoile/Frameworks/EtoileFoundation/Headers/ETClassMirror.h:13,
                 from ETClassMirror.m:11:
/usr/GNUstep/Local/Library/Headers/objc/runtime.h:351:1: error: "objc_msgSendSuper" redefined
In file included from /usr/GNUstep/System/Library/Headers/GNUstepBase/GSObjCRuntime.h:47,
                 from /usr/GNUstep/System/Library/Headers/Foundation/NSObjCRuntime.h:82,
                 from /usr/GNUstep/System/Library/Headers/Foundation/NSObject.h:30,
                 from /usr/GNUstep/System/Library/Headers/Foundation/FoundationErrors.h:29,
                 from /usr/GNUstep/System/Library/Headers/Foundation/Foundation.h:33,
                 from /home/mathieu/Documents/src/Etoile/Frameworks/EtoileFoundation/Headers/ETClassMirror.h:11,
                 from ETClassMirror.m:11:
/usr/GNUstep/System/Library/Headers/ObjectiveC2/runtime.h:286:1: error: this is the location of
the previous definition
make[5]: *** [obj/libEtoileFoundation.obj/ETClassMirror.m.o] Error 1
make[4]: *** [internal-subproject-all_] Error 2
make[3]: *** [libEtoileFoundation.all.subproject.variables] Error 2
make[2]: *** [EtoileFoundation.all.framework.variables] Error 2
make[1]: *** [internal-all] Error 2
make: *** [internal-all] Error 2

----- Message d'origine ----
De : Quentin Mathé <qmathe <at> gmail.com>

Sorry for the late reply.

I got some time to test the Étoilé trunk compilation with Clang on  
Linux this week-end. The repository appears to have been broken  
recently. I committed several fixes yesterday (some tweaks were  
necessary to compile with recent Clang versions). I updated the  
INSTALL file to mention the new requirements. I plan to write some  
more detailed install instructions too.

It also appears Clang 2.7 fails to compile LanguageKit on Linux. I get  
the following error which is not the same than yours: http://pastebin.com/3NuibBa0
However the current Clang trunk works just fine.
It's a pain we have missed this bug before the Clang release, but well  
we have to live with it now I suppose :-/

Cheers,
Quentin.

_______________________________________________
Etoile-discuss mailing list
Etoile-discuss <at> gna.org
https://mail.gna.org/listinfo/etoile-discuss

_______________________________________________
Etoile-discuss mailing list
Etoile-discuss <at> gna.org
https://mail.gna.org/listinfo/etoile-discuss
Niels Grewe | 11 May 10:34 2010
Picon

Re: Re : Error during compilation: clang++: not found

Hi Mathieu,

On Tue, May 11, 2010 at 08:19:22AM +0000, Mathieu Suen wrote:
> /usr/GNUstep/Local/Library/Headers/objc/runtime.h:35: error: redefinition of typedef ‘Ivar’
> /usr/GNUstep/System/Library/Headers/ObjectiveC2/runtime.h:39: note: previous declaration of
‘Ivar’ was here

This looks like you have two versions of the Objective-C runtime headers
installed: One from the ObjectiveC2 compatibility framework (lives in
Sources/ObjectiveC2 in gnustep-base) and one from libobjc2. Now this can
mean two things:
(a) You just have ObjectiveC2 sitting around from an old build. In this
    case, running `GNUSTEP_INSTALLATION_DOMAIN=SYSTEM make uninstall` in
    $GSBASE_ROOT/Sources/ObjectiveC2 will get things going again.
(b) You built and installed libobjc2 after gnustep-base, in which case
    it will have been linked to ObjectiveC2 and will stop working once
    you uninstall the framework. The correct build-order would be
    gnustep-make, libobjc2, gnustep-base. That way, the gnustep-base
    configure-script will know about the new runtime and not build the
    compatibility layer.

I hope this helps a bit,

Niels
_______________________________________________
Etoile-discuss mailing list
Etoile-discuss <at> gna.org
https://mail.gna.org/listinfo/etoile-discuss
Mathieu Suen | 11 May 12:01 2010
Picon

Re : Re : Error during compilation: clang++: not found

Ok now I manage to fix the objc2 dependency.
But I still have an issue  :(

Build Project: CodeGen

Making all for framework LanguageKitCodeGen...
ls: cannot access /usr/local/lib/libGNUObjCRuntime.so: No such file or directory
ls: cannot access /usr/local/lib/libGNUObjCRuntime.so: No such file or directory
 Compiling file CGObjCGNU.cpp ...
clang: /home/mathieu/Documents/src/llvm/llvm/include/llvm/ADT/SmallVector.h:153: T&
llvm::SmallVectorTemplateCommon<T>::operator[](unsigned int) [with T = unsigned int]: Assertion
`begin() + idx < end()' failed.
0  clang     0x0902fcda
1  clang     0x0902fb97
2            0x4001d400 __kernel_sigreturn + 0
3  libc.so.6 0x401bea82 abort + 386
4  libc.so.6 0x401b4718 __assert_fail + 248
5  clang     0x080e8e96
6  clang     0x080e6fa9
7  clang     0x085effa6
8  clang     0x0846b68b
9  clang     0x08431084
10 clang     0x08451f5f
11 clang     0x08438cd0
12 clang     0x084491d1
13 clang     0x0843758f
14 clang     0x084492db
15 clang     0x0843758f
16 clang     0x084427ae
17 clang     0x08436506
18 clang     0x08454abe
19 clang     0x0843ed18
20 clang     0x08435d76
21 clang     0x08434069
22 clang     0x08469d80
23 clang     0x0846b8e7
24 clang     0x082cf8bf
25 clang     0x086845e2
26 clang     0x082cd5e0
27 clang     0x0807ddc6
28 clang     0x0807da37
29 clang     0x08069589
30 clang     0x0804eac5
31 clang     0x08053715 main + 267
32 libc.so.6 0x401a7bd6 __libc_start_main + 230
33 clang     0x0804d531
Stack dump:
0.    Program arguments: /usr/local/bin/clang -cc1 -triple i386-pc-linux-gnu -S -disable-free
-main-file-name CGObjCGNU.cpp -pic-level 2 -mdisable-fp-elim -mconstructor-aliases -target-cpu
pentium4 -g -resource-dir /usr/local/lib/clang/2.0 -dependency-file
obj/LanguageKitCodeGen.obj/CGObjCGNU.cpp.d -MT obj/LanguageKitCodeGen.obj/CGObjCGNU.cpp.o
-MP -DGNU_RUNTIME_VERSION=2 -DGNU_RUNTIME_VERSION=2 -D_GNU_SOURCE -DGNU_RUNTIME_VERSION=2
-D_GNU_SOURCE -DGNU_RUNTIME_VERSION=2 -DGNUSTEP -DGNUSTEP_BASE_LIBRARY=1 -DGNU_GUI_LIBRARY=1
-DGNU_RUNTIME=1 -DGNUSTEP_BASE_LIBRARY=1 -D_REENTRANT -DGSWARN -DGSDIAGNOSE -D_DEBUG
-D_GNU_SOURCE -D__STDC_LIMIT_MACROS -D__STDC_CONSTANT_MACROS
-I/home/mathieu/Documents/src/Etoile/Build
-I/home/mathieu/Documents/src/Etoile/Languages/LanguageKit
-I/home/mathieu/Documents/src/Etoile/Languages/LanguageKit/Headers
-I/usr/include/i486-linux-gnu/ -I/home/mathieu/Documents/src/Etoile/Build
 -I/home/mathieu/Documents/src/Etoile/Languages/LanguageKit/CodeGen
-I/home/mathieu/Documents/src/Etoile/Languages/LanguageKit/CodeGen/Headers
-I/usr/include/i486-linux-gnu/ -I/home/mathieu/Documents/src/Etoile/Build
-I/home/mathieu/Documents/src/Etoile/Languages/LanguageKit/CodeGen
-I/home/mathieu/Documents/src/Etoile/Languages/LanguageKit/CodeGen/Headers
-I/usr/include/i486-linux-gnu/ -I/home/mathieu/Documents/src/Etoile/Build
-I/home/mathieu/Documents/src/Etoile/Languages/LanguageKit/CodeGen
-I/home/mathieu/Documents/src/Etoile/Languages/LanguageKit/CodeGen/Headers
-I/usr/include/i486-linux-gnu/ -I./derived_src -I. -I/home/mathieu/GNUstep/Library/Headers
-I/usr/GNUstep/Local/Library/Headers -I/usr/GNUstep/System/Library/Headers
-I/usr/local/include -O2 -Wall -Wno-import -Wno-implicit -Woverloaded-virtual -Wcast-qual
-ferror-limit 19 -fmessage-length 139 -fno-rtti -fgnu-runtime -fdiagnostics-show-option
-fcolor-diagnostics -o /tmp/cc-FwKP24.s -x c++
 CGObjCGNU.cpp 
1.    <eof> parser at end of file
2.    /usr/local/include/llvm/ADT/ilist.h:519:13: instantiating function definition
'llvm::iplist<llvm::NamedMDNode, llvm::ilist_traits<llvm::NamedMDNode> >::size'
clang: error: compiler command failed due to signal 6 (use -v to see invocation)
make[5]: *** [obj/LanguageKitCodeGen.obj/CGObjCGNU.cpp.o] Error 250
make[4]: *** [internal-framework-run-compile-submake] Error 2
make[3]: *** [LanguageKitCodeGen.all.framework.variables] Error 2
make[2]: *** [internal-all] Error 2
make[1]: *** [internal-all] Error 2
make: *** [internal-all] Error 2

----- Message d'origine ----
De : Niels Grewe <niels.grewe <at> halbordnung.de>
À : Discussion list for Ã?toilé desktop environment <etoile-discuss <at> gna.org>
Envoyé le : Mar 11 mai 2010, 10h 34min 43s
Objet : Re: [Etoile-discuss] Re : Error during compilation: clang++: not found

Hi Mathieu,

On Tue, May 11, 2010 at 08:19:22AM +0000, Mathieu Suen wrote:
> /usr/GNUstep/Local/Library/Headers/objc/runtime.h:35: error: redefinition of typedef ‘Ivar’
> /usr/GNUstep/System/Library/Headers/ObjectiveC2/runtime.h:39: note: previous declaration of
‘Ivar’ was here

This looks like you have two versions of the Objective-C runtime headers
installed: One from the ObjectiveC2 compatibility framework (lives in
Sources/ObjectiveC2 in gnustep-base) and one from libobjc2. Now this can
mean two things:
(a) You just have ObjectiveC2 sitting around from an old build. In this
    case, running `GNUSTEP_INSTALLATION_DOMAIN=SYSTEM make uninstall` in
    $GSBASE_ROOT/Sources/ObjectiveC2 will get things going again.
(b) You built and installed libobjc2 after gnustep-base, in which case
    it will have been linked to ObjectiveC2 and will stop working once
    you uninstall the framework. The correct build-order would be
    gnustep-make, libobjc2, gnustep-base. That way, the gnustep-base
    configure-script will know about the new runtime and not build the
    compatibility layer.

I hope this helps a bit,

Niels

_______________________________________________
Etoile-discuss mailing list
Etoile-discuss <at> gna.org
https://mail.gna.org/listinfo/etoile-discuss
David Chisnall | 11 May 13:11 2010

Re: Re : Re : Error during compilation: clang++: not found

If clang is crashing, then I will need some more info to help you.  Please can you recompile LLVM / Clang with
debugging symbols (this is the default, just don't do whatever you did to strip them) and try again, then
show me what the back trace says?

David

P.S.  What svn revision of LLVM are you using?

On 11 May 2010, at 11:01, Mathieu Suen wrote:

> Ok now I manage to fix the objc2 dependency.
> But I still have an issue  :(
> 
> Build Project: CodeGen
> 
> Making all for framework LanguageKitCodeGen...
> ls: cannot access /usr/local/lib/libGNUObjCRuntime.so: No such file or directory
> ls: cannot access /usr/local/lib/libGNUObjCRuntime.so: No such file or directory
> Compiling file CGObjCGNU.cpp ...
> clang: /home/mathieu/Documents/src/llvm/llvm/include/llvm/ADT/SmallVector.h:153: T&
llvm::SmallVectorTemplateCommon<T>::operator[](unsigned int) [with T = unsigned int]: Assertion
`begin() + idx < end()' failed.
> 0  clang     0x0902fcda
> 1  clang     0x0902fb97
> 2            0x4001d400 __kernel_sigreturn + 0
> 3  libc.so.6 0x401bea82 abort + 386
> 4  libc.so.6 0x401b4718 __assert_fail + 248
> 5  clang     0x080e8e96
> 6  clang     0x080e6fa9
> 7  clang     0x085effa6
> 8  clang     0x0846b68b
> 9  clang     0x08431084
> 10 clang     0x08451f5f
> 11 clang     0x08438cd0
> 12 clang     0x084491d1
> 13 clang     0x0843758f
> 14 clang     0x084492db
> 15 clang     0x0843758f
> 16 clang     0x084427ae
> 17 clang     0x08436506
> 18 clang     0x08454abe
> 19 clang     0x0843ed18
> 20 clang     0x08435d76
> 21 clang     0x08434069
> 22 clang     0x08469d80
> 23 clang     0x0846b8e7
> 24 clang     0x082cf8bf
> 25 clang     0x086845e2
> 26 clang     0x082cd5e0
> 27 clang     0x0807ddc6
> 28 clang     0x0807da37
> 29 clang     0x08069589
> 30 clang     0x0804eac5
> 31 clang     0x08053715 main + 267
> 32 libc.so.6 0x401a7bd6 __libc_start_main + 230
> 33 clang     0x0804d531
> Stack dump:
> 0.    Program arguments: /usr/local/bin/clang -cc1 -triple i386-pc-linux-gnu -S -disable-free
-main-file-name CGObjCGNU.cpp -pic-level 2 -mdisable-fp-elim -mconstructor-aliases -target-cpu
pentium4 -g -resource-dir /usr/local/lib/clang/2.0 -dependency-file
obj/LanguageKitCodeGen.obj/CGObjCGNU.cpp.d -MT obj/LanguageKitCodeGen.obj/CGObjCGNU.cpp.o
-MP -DGNU_RUNTIME_VERSION=2 -DGNU_RUNTIME_VERSION=2 -D_GNU_SOURCE -DGNU_RUNTIME_VERSION=2
-D_GNU_SOURCE -DGNU_RUNTIME_VERSION=2 -DGNUSTEP -DGNUSTEP_BASE_LIBRARY=1 -DGNU_GUI_LIBRARY=1
-DGNU_RUNTIME=1 -DGNUSTEP_BASE_LIBRARY=1 -D_REENTRANT -DGSWARN -DGSDIAGNOSE -D_DEBUG
-D_GNU_SOURCE -D__STDC_LIMIT_MACROS -D__STDC_CONSTANT_MACROS
-I/home/mathieu/Documents/src/Etoile/Build
-I/home/mathieu/Documents/src/Etoile/Languages/LanguageKit
-I/home/mathieu/Documents/src/Etoile/Languages/LanguageKit/Headers
-I/usr/include/i486-linux-gnu/ -I/home/mathieu/Documents/src/Etoile/Build
> -I/home/mathieu/Documents/src/Etoile/Languages/LanguageKit/CodeGen
-I/home/mathieu/Documents/src/Etoile/Languages/LanguageKit/CodeGen/Headers
-I/usr/include/i486-linux-gnu/ -I/home/mathieu/Documents/src/Etoile/Build
-I/home/mathieu/Documents/src/Etoile/Languages/LanguageKit/CodeGen
-I/home/mathieu/Documents/src/Etoile/Languages/LanguageKit/CodeGen/Headers
-I/usr/include/i486-linux-gnu/ -I/home/mathieu/Documents/src/Etoile/Build
-I/home/mathieu/Documents/src/Etoile/Languages/LanguageKit/CodeGen
-I/home/mathieu/Documents/src/Etoile/Languages/LanguageKit/CodeGen/Headers
-I/usr/include/i486-linux-gnu/ -I./derived_src -I. -I/home/mathieu/GNUstep/Library/Headers
-I/usr/GNUstep/Local/Library/Headers -I/usr/GNUstep/System/Library/Headers
-I/usr/local/include -O2 -Wall -Wno-import -Wno-implicit -Woverloaded-virtual -Wcast-qual
-ferror-limit 19 -fmessage-length 139 -fno-rtti -fgnu-runtime -fdiagnostics-show-option
-fcolor-diagnostics -o /tmp/cc-FwKP24.s -x c++
> CGObjCGNU.cpp 
> 1.    <eof> parser at end of file
> 2.    /usr/local/include/llvm/ADT/ilist.h:519:13: instantiating function definition
'llvm::iplist<llvm::NamedMDNode, llvm::ilist_traits<llvm::NamedMDNode> >::size'
> clang: error: compiler command failed due to signal 6 (use -v to see invocation)
> make[5]: *** [obj/LanguageKitCodeGen.obj/CGObjCGNU.cpp.o] Error 250
> make[4]: *** [internal-framework-run-compile-submake] Error 2
> make[3]: *** [LanguageKitCodeGen.all.framework.variables] Error 2
> make[2]: *** [internal-all] Error 2
> make[1]: *** [internal-all] Error 2
> make: *** [internal-all] Error 2
> 
> 
> 
> 
> 
> ----- Message d'origine ----
> De : Niels Grewe <niels.grewe <at> halbordnung.de>
> À : Discussion list for Ã?toilé desktop environment <etoile-discuss <at> gna.org>
> Envoyé le : Mar 11 mai 2010, 10h 34min 43s
> Objet : Re: [Etoile-discuss] Re : Error during compilation: clang++: not found
> 
> Hi Mathieu,
> 
> On Tue, May 11, 2010 at 08:19:22AM +0000, Mathieu Suen wrote:
>> /usr/GNUstep/Local/Library/Headers/objc/runtime.h:35: error: redefinition of typedef ‘Ivar’
>> /usr/GNUstep/System/Library/Headers/ObjectiveC2/runtime.h:39: note: previous declaration of
‘Ivar’ was here
> 
> This looks like you have two versions of the Objective-C runtime headers
> installed: One from the ObjectiveC2 compatibility framework (lives in
> Sources/ObjectiveC2 in gnustep-base) and one from libobjc2. Now this can
> mean two things:
> (a) You just have ObjectiveC2 sitting around from an old build. In this
>    case, running `GNUSTEP_INSTALLATION_DOMAIN=SYSTEM make uninstall` in
>    $GSBASE_ROOT/Sources/ObjectiveC2 will get things going again.
> (b) You built and installed libobjc2 after gnustep-base, in which case
>    it will have been linked to ObjectiveC2 and will stop working once
>    you uninstall the framework. The correct build-order would be
>    gnustep-make, libobjc2, gnustep-base. That way, the gnustep-base
>    configure-script will know about the new runtime and not build the
>    compatibility layer.
> 
> I hope this helps a bit,
> 
> 
> Niels
> 
> 
> 
> 
> 
> _______________________________________________
> Etoile-discuss mailing list
> Etoile-discuss <at> gna.org
> https://mail.gna.org/listinfo/etoile-discuss

-- Sent from my PDP-11
Mathieu Suen | 11 May 17:41 2010
Picon

Re : Re : Re : Error during compilation: clang++: not found

mm..
Actually I did not strip out symbole.
So I try to compile llvm with:

llvm $ ./configure  CFLAGS=-g

And still get the same error

The svn version of LLVM is the one from the trunk

Thanks

----- Message d'origine ----
De : David Chisnall <theraven <at> sucs.org>
À : Discussion list for Étoilé desktop environment <etoile-discuss <at> gna.org>
Envoyé le : Mar 11 mai 2010, 13h 11min 45s
Objet : Re: [Etoile-discuss] Re : Re : Error during compilation: clang++: not found

If clang is crashing, then I will need some more info to help you.  Please can you recompile LLVM / Clang with
debugging symbols (this is the default, just don't do whatever you did to strip them) and try again, then
show me what the back trace says?

David

P.S.  What svn revision of LLVM are you using?

_______________________________________________
Etoile-discuss mailing list
Etoile-discuss <at> gna.org
https://mail.gna.org/listinfo/etoile-discuss
David Chisnall | 12 May 18:06 2010

Re: Re : Re : Re : Error during compilation: clang++: not found

In that case, please can you run it in gdb and give me a back trace?

David

On 11 May 2010, at 16:41, Mathieu Suen wrote:

> mm..
> Actually I did not strip out symbole.
> So I try to compile llvm with:
> 
> llvm $ ./configure  CFLAGS=-g
> 
> And still get the same error
> 
> The svn version of LLVM is the one from the trunk
> 
> Thanks
> 
> 
> ----- Message d'origine ----
> De : David Chisnall <theraven <at> sucs.org>
> À : Discussion list for Étoilé desktop environment <etoile-discuss <at> gna.org>
> Envoyé le : Mar 11 mai 2010, 13h 11min 45s
> Objet : Re: [Etoile-discuss] Re : Re : Error during compilation: clang++: not found
> 
> If clang is crashing, then I will need some more info to help you.  Please can you recompile LLVM / Clang with
debugging symbols (this is the default, just don't do whatever you did to strip them) and try again, then
show me what the back trace says?
> 
> David
> 
> P.S.  What svn revision of LLVM are you using?
> 
> 
> 
> 
> 
> _______________________________________________
> Etoile-discuss mailing list
> Etoile-discuss <at> gna.org
> https://mail.gna.org/listinfo/etoile-discuss

--
This email complies with ISO 3103

Gmane