Re: [CMake] How to determine a ABI version of the arm-linux-gcc?

2010-01-29 Thread Hendrik Sattler
Zitat von Yegor Yefremov : Alexander Neundorf wrote: On Thursday 28 January 2010, Hendrik Sattler wrote: Zitat von Yegor Yefremov : are these two statements not doubled? +#elif defined(__GNU__) && defined(__ELF__) && defined(__ARMEL__) +# define ABI_ID "ELF ARM" +#elif defined(__GNU__) && de

Re: [CMake] How to determine a ABI version of the arm-linux-gcc?

2010-01-29 Thread Yegor Yefremov
Alexander Neundorf wrote: > On Thursday 28 January 2010, Hendrik Sattler wrote: >> Zitat von Yegor Yefremov : >>> are these two statements not doubled? >>> >>> +#elif defined(__GNU__) && defined(__ELF__) && defined(__ARMEL__) >>> +# define ABI_ID "ELF ARM" >>> +#elif defined(__GNU__) && defined(__E

Re: [CMake] How to determine a ABI version of the arm-linux-gcc?

2010-01-28 Thread Alexander Neundorf
On Thursday 28 January 2010, Hendrik Sattler wrote: > Zitat von Yegor Yefremov : > > are these two statements not doubled? > > > > +#elif defined(__GNU__) && defined(__ELF__) && defined(__ARMEL__) > > +# define ABI_ID "ELF ARM" > > +#elif defined(__GNU__) && defined(__ELF__) && defined(__ARMEL__) >

Re: [CMake] How to determine a ABI version of the arm-linux-gcc?

2010-01-28 Thread Hendrik Sattler
Zitat von Yegor Yefremov : are these two statements not doubled? +#elif defined(__GNU__) && defined(__ELF__) && defined(__ARMEL__) +# define ABI_ID "ELF ARM" +#elif defined(__GNU__) && defined(__ELF__) && defined(__ARMEL__) +# define ABI_ID "ELF ARM" One of them should be __ARMEB__ instead of

Re: [CMake] How to determine a ABI version of the arm-linux-gcc?

2010-01-28 Thread Yegor Yefremov
O.K. Here are some lines of my CMakeLists.txt: set (CMAKE_C_COMPILER arm-linux-gcc) set (CMAKE_STRIP arm-linux-strip) > > Oh, if you do that in CMakeLists.txt this is quite late. You should use a > toolchain file as described in the wiki. I'll try it later. message (ST

Re: [CMake] How to determine a ABI version of the arm-linux-gcc?

2010-01-27 Thread Alexander Neundorf
On Wednesday 27 January 2010, Yegor Yefremov wrote: > Brad King wrote: > > Yegor Yefremov wrote: > >> O.K. Here are some lines of my CMakeLists.txt: > >> > >> set (CMAKE_C_COMPILER arm-linux-gcc) > >> set (CMAKE_STRIP arm-linux-strip) Oh, if you do that in CMakeLists.txt this is quite late. You sh

Re: [CMake] How to determine a ABI version of the arm-linux-gcc?

2010-01-27 Thread Yegor Yefremov
Brad King wrote: > Yegor Yefremov wrote: >> O.K. Here are some lines of my CMakeLists.txt: >> >> set (CMAKE_C_COMPILER arm-linux-gcc) >> set (CMAKE_STRIP arm-linux-strip) >> message (STATUS "ABI ${CMAKE_C_COMPILER_ABI}") >> >> After running cmake I see only ABI as output and CMakeCache.txt doesn'

Re: [CMake] How to determine a ABI version of the arm-linux-gcc?

2010-01-26 Thread Brad King
Yegor Yefremov wrote: > O.K. Here are some lines of my CMakeLists.txt: > > set (CMAKE_C_COMPILER arm-linux-gcc) > set (CMAKE_STRIP arm-linux-strip) > message (STATUS "ABI ${CMAKE_C_COMPILER_ABI}") > > After running cmake I see only ABI as output and CMakeCache.txt doesn't > contain CMAKE_C_COM

Re: [CMake] How to determine a ABI version of the arm-linux-gcc?

2010-01-26 Thread Yegor Yefremov
Brad King wrote: > Yegor Yefremov wrote: >> Alexander Neundorf wrote: >>> You should then get the variables CMAKE_(C|CXX)_COMPILER_ABI set to >>> either "ELF ARM" or "ELF ARMEABI". >> Do I see it right, that this variable is relevant when building CMake itself? > > No, it is set in each project t

Re: [CMake] How to determine a ABI version of the arm-linux-gcc?

2010-01-26 Thread Brad King
Yegor Yefremov wrote: > Alexander Neundorf wrote: >> You should then get the variables CMAKE_(C|CXX)_COMPILER_ABI set to >> either "ELF ARM" or "ELF ARMEABI". > > Do I see it right, that this variable is relevant when building CMake itself? No, it is set in each project that gets built. The rea

Re: [CMake] How to determine a ABI version of the arm-linux-gcc?

2010-01-26 Thread Yegor Yefremov
Alexander Neundorf wrote: > please apply the attached patch to Modules/CMakeCompilerABI.h (current CVS, > but 2.8.0 should work too). Thank you for the patch. I applied it to the 2.8.0. > You should then get the variables CMAKE_(C|CXX)_COMPILER_ABI set to > either "ELF ARM" or "ELF ARMEABI". D

Re: [CMake] How to determine a ABI version of the arm-linux-gcc?

2010-01-25 Thread Alexander Neundorf
Hi, please apply the attached patch to Modules/CMakeCompilerABI.h (current CVS, but 2.8.0 should work too). You should then get the variables CMAKE_(C|CXX)_COMPILER_ABI set to either "ELF ARM" or "ELF ARMEABI". Please let me know if this works for you and also whether you think these names are

Re: [CMake] How to determine a ABI version of the arm-linux-gcc?

2010-01-25 Thread Yegor Yefremov
Alexander Neundorf wrote: > On Friday 22 January 2010, Yegor Yefremov wrote: >> Hello, >> >> I have two toolchains to compile programs for ARM Debian: one supporting >> older ABI (Etch) and one for EABI (Lenny). How can I determine the ABI >> version using CMake? > > Please post the output of the

Re: [CMake] How to determine a ABI version of the arm-linux-gcc?

2010-01-22 Thread Alexander Neundorf
On Friday 22 January 2010, Yegor Yefremov wrote: > Hello, > > I have two toolchains to compile programs for ARM Debian: one supporting > older ABI (Etch) and one for EABI (Lenny). How can I determine the ABI > version using CMake? Please post the output of the following command for both versions:

Re: [CMake] How to determine a ABI version of the arm-linux-gcc?

2010-01-22 Thread Hendrik Sattler
Am Freitag 22 Januar 2010 12:59:23 schrieb Yegor Yefremov: > I have two toolchains to compile programs for ARM Debian: one supporting > older ABI (Etch) and one for EABI (Lenny). How can I determine the ABI > version using CMake? Why would that matter? You define a environment when cross-buildin

[CMake] How to determine a ABI version of the arm-linux-gcc?

2010-01-22 Thread Yegor Yefremov
Hello, I have two toolchains to compile programs for ARM Debian: one supporting older ABI (Etch) and one for EABI (Lenny). How can I determine the ABI version using CMake? Thank you in advance. Best regards, Yegor ___ Powered by www.kitware.com Visi