Developer forums (C::B DEVELOPMENT STRICTLY!) > CodeCompletion redesign

Clang command line support for codecompletion

<< < (2/6) > >>

ollydbg:
updated:

Today, I have tried the method listed in
http://clang.llvm.org/get_started.html

to build a clang.exe, but no luck, all failed  :( :( :(.

1, one failed method.
under Msys mingw, check out the llvm and clang svn code, and configure. make. but the error occurred when I run the make,  such as:

--- Quote ---$ make
Makefile:130: /Makefile.rules: No such file or directory
make: *** No rule to make target `/Makefile.rules'.  Stop.


--- End quote ---


2. failed method two:

I just use the cmake, then generate the makefile for mingw, then just run the make command.
when at build stage 97%, I get these message:

--- Quote ---Linking CXX executable ..\..\..\..\bin\c-index-test.exe
CMakeFiles\c-index-test.dir\c-index-test.c.obj:c-index-test.c:(.text+0x47a4): un
defined reference to `_imp__pthread_create'
CMakeFiles\c-index-test.dir\c-index-test.c.obj:c-index-test.c:(.text+0x47e0): un
defined reference to `_imp__pthread_join'
collect2: ld returned 1 exit status
make[2]: *** [bin/c-index-test.exe] Error 1
make[1]: *** [tools/clang/tools/c-index-test/CMakeFiles/c-index-test.dir/all] Er
ror 2
make: *** [all] Error 2

E:\clang_build\build\tools\clang>

--- End quote ---
I have struggleed with the pthread for several hour,( copy some libs or shared libs...), and finally I still get stuck. :(


I hope some brave guy can help to build a clang distribution (windows). thanks.
currently, I can't find any clang binaries for windows.

thanks.

oBFusCATed:
Probably you should post on their mailing list :)

ollydbg:

--- Quote from: oBFusCATed on October 26, 2010, 12:27:54 pm ---Probably you should post on their mailing list :)

--- End quote ---
I asked there, but no replies. seems the devs are not interested in windows build.

my friend xunxun has build on for me (under mingw 4.5.1), he just some customized configure.


--- Code: ---./configure --prefix=/llvm --enable-optimized --enable-targets=host

--- End code ---

then manually change the file
Makefile.config


--- Quote ----O2
--- End quote ---

to


--- Code: ----pipe -O2 -DPTW32_STATIC_LIB

--- End code ---

But the built clang seems can't work correctly, it even crashed in a quite dummy test code

a.c

--- Code: ---main()
{
}

--- End code ---

then I run:

--- Code: ---clang.exe a.c -E

--- End code ---

then clang crashed....Too bad. :(

I don't want to test any more until it becomes stable and useful enough. :shock:

eranif:

--- Quote from: ollydbg on October 26, 2010, 02:33:46 am ---thanks eranif.
I will look into your links.

btw: did you know some Clang binaries which works under windows.
http://llvm.org/releases/2.8/llvm-gcc4.2-2.8-x86-mingw32.tar.bz2 seems is not a full package

thanks.

--- End quote ---
I compiled clang myself on my machine using SVN / MinGW - so I am not using those.

Eran

ollydbg:

--- Quote from: eranif on October 26, 2010, 03:21:47 pm ---
--- Quote from: ollydbg on October 26, 2010, 02:33:46 am ---thanks eranif.
I will look into your links.

btw: did you know some Clang binaries which works under windows.
http://llvm.org/releases/2.8/llvm-gcc4.2-2.8-x86-mingw32.tar.bz2 seems is not a full package

thanks.

--- End quote ---
I compiled clang myself on my machine using SVN / MinGW - so I am not using those.

Eran

--- End quote ---

Hi, eran. thanks.
 
could you tell me how to build the clang svn under mingw? I have tried this nearly half of the day, but no success.  :(
what the plan if clang becomes more powerful? I guess it could replace the codecompletion part of codeblocks or codelite (if clang becomes stable)

if possible, could you upload the whole package of the clang to some site?

Currently, I can't find any clang binaries on the internet.

thanks.

Navigation

[0] Message Index

[#] Next page

[*] Previous page

Go to full version