Re: [CMake] TI-C CMAKE_C_LINK_EXECUTABLE order

2015-07-27 Thread Florian Reinhard via CMake
Hi Falk, the TI Docs contains the following line: cl6x --run_linker {--rom_model | --ram_model} filenames [options] [--output_file= name.out] --library= library [lnk.cmd] therefore i'd suggest the following changes: set(CMAKE_C_LINK_EXECUTABLE " --run_linker --map_file=.map --output_file

Re: [CMake] TI-C CMAKE_C_LINK_EXECUTABLE order

2015-05-31 Thread Florian Reinhard
Hi Falk! I've read through the cl6x linker docs once again [1] SPRU187V Chapter 5, page 137 and following. >From my experience and the docs i'd say, yes you're right. To prove the solution to your problem, see page 138: "When you specify a library as linker input, the linker includes and links

Re: [CMake] Toolchain file: Texas Instrument C6000 Code Generation Tools

2013-03-18 Thread Florian Reinhard
2013/3/18 Laszlo Papp : > On Mon, Mar 18, 2013 at 1:10 PM, Florian Reinhard > wrote: >> >> In addition compilers upto 7.2 did not support anything else than coff >> abi. So i don't see any valid reason to add --abi=eabi. Even more you >> usually set your sil

Re: [CMake] Toolchain file: Texas Instrument C6000 Code Generation Tools

2013-03-18 Thread Florian Reinhard
2013/3/16 Laszlo Papp : > On Thu, Mar 14, 2013 at 6:48 PM, Alexander Neundorf > wrote: >> >> Please verify that it works, so I can still get it into 2.8.11 hopefully. > > > I just realized that the cmake files use the default ABI type which is still > the legacy COFF, and not EABI. > > That is a b

Re: [CMake] Toolchain file: Texas Instrument C6000 Code Generation Tools

2013-03-18 Thread Florian Reinhard
2013/3/17 Alexander Neundorf : > On Friday 15 March 2013, Florian Reinhard wrote: >> I'm testing the next branch at the moment. >> Changes i noticed: >> setting the following options is no longer required (yay!): >> SET (CMAKE_C_COMPILER_WORKS 1) >> SET (CM

Re: [CMake] Toolchain file: Texas Instrument C6000 Code Generation Tools

2013-03-15 Thread Florian Reinhard
I'm testing the next branch at the moment. Changes i noticed: setting the following options is no longer required (yay!): SET (CMAKE_C_COMPILER_WORKS 1) SET (CMAKE_CXX_COMPILER_WORKS 1) #skip ABI checks SET (CMAKE_DETERMINE_C_ABI_COMPILED 1) SET (CMAKE_DETERMINE_CXX_ABI_COMPILED 1) SET (CMAKE_D

Re: [CMake] Toolchain file: Texas Instrument C6000 Code Generation Tools

2013-03-14 Thread Florian Reinhard
If ARM and DSP toolchain are commandline compatible, there could be an option to specify the architecture, like C6000 (DSP core in OMAP processors), C2000, C6400 which map to the correct compiler/linker/archiver/strip names. 2013/3/14 Laszlo Papp : > On Wed, Mar 13, 2013 at 10:14 PM, Alexander Neu

Re: [CMake] Toolchain file: Texas Instrument C6000 Code Generation Tools

2013-03-12 Thread Florian Reinhard
NE_CXX_ABI_COMPILED 1) >> SET (CMAKE_DETERMINE_ASM_ABI_COMPILED 1) >> >> in my case on windows 7 with cl6x 6.2.*, cmake would just crash. i >> think this is what you encounter as well. maybe jom just hides that >> crash. unfortunately i have not the knowledge to i

Re: [CMake] Toolchain file: Texas Instrument C6000 Code Generation Tools

2013-03-12 Thread Florian Reinhard
MAKE_CXX_ARCHIVE_FINISH) Kind Regards, Florian Reinhard 2013/2/22 Laszlo Papp : > Hi, > > I am now trying to put a toolchain file together for the aforementioned > embedded environment on my Windows 7 workstation. You can see the file > contents I have, and the errors I get belo

Re: [CMake] Toolchain file: Texas Instrument C6000 Code Generation Tools

2013-03-02 Thread Florian Reinhard
Hi Lazlo, my setup: i'm using the MinGW makefile generator and build with make 3.82 on windows 7. I did disable all tests that cmake automatically does, in my case cmake just crashed and i was not able to debug that on windows, if you can digg into this, i'd appreciate this as well :). Conce

Re: [CMake] How to set own linker?

2011-09-23 Thread Florian Reinhard
here some points that should help you find a solution (just as a hint where or what to search) ENABLE_LANGUAGE(ASM_OCU) PROJECT (foo) SET(CMAKE_EXE_LINKER_FLAGS "-abcdfg" ) <-- does work for me! add_executable(foo_target ${FOO_SRC}) SET_TARGET_PROPERTIES(foo_target PROPERTIES LINKER_LANGUAGE C) SE

Re: [CMake] Proper way to build static binaries

2011-09-16 Thread Florian Reinhard
Hi! For GNU/MinGW gcc i do use this: # MinGW / GNU Compiler IF( ${CMAKE_COMPILER_IS_GNUCXX} ) # link libstdc++ and others statically SET (CMAKE_EXE_LINKER_FLAGS"-static-libstdc++ -static-libgcc --disable-shared --enable-static --static") ENDIF( ${CMAKE_COMPILER_IS_GNUCXX} ) Regards, Flori

[CMake] remove compile flag with set_source_file_properties

2011-08-17 Thread Florian Reinhard
e? using SET_SOURCE_FILES_PROPERTIES( ${LIST_OF_FILES} PROPERTIES COMPILE_FLAGS "-O3") would add -O3 again no matter what configuration, which would be fine, but i couldn't find out how to set per file C(XX)_FLAGS_DEBUG so i'd be able to remove the -

Re: [CMake] Assembler handling in 2.8.5 vs 2.8.4

2011-08-08 Thread Florian Reinhard
2011/8/1 Alexander Neundorf : >> I attached the gdb output i got. I've been running gdb from a minGW32 >> installation on a normal windows cmd.exe on windows7 x64. >> Unfortunately there's no backtrace (or i'm just don't know gdb well >> enough) and as soon as i execute "strace" after the cmake cra

Re: [CMake] Assembler handling in 2.8.5 vs 2.8.4

2011-08-01 Thread Florian Reinhard
2011/7/29 Alexander Neundorf : > On Friday 29 July 2011, Florian Reinhard wrote: >> 2011/7/22 Alexander Neundorf : >> > Can you build cmake from this branch I just created ? >> > http://cmake.org/gitweb?p=stage/cmake.git;a=shortlog;h=refs/heads/TI_DSP_ >> &

Re: [CMake] Assembler handling in 2.8.5 vs 2.8.4

2011-07-21 Thread Florian Reinhard
Hi Alex, Thank you for the quick response, 2011/7/20 Alexander Neundorf : > Damn, I was so sure I updated the wiki, but apparently I didn't. > So here are the old docs, but this changed quite a bit for 2.8.5: > http://www.vtk.org/Wiki/CMake/Assembler > > What it does now: > the language "ASM" is

Re: [CMake] Add linker command file to object files

2011-07-20 Thread Florian Reinhard
Hi Michael, Thank you for that long and well explained resonse! I just gave your EXTERNAL_OBJECT approach with a patched cmake version a try. Unfortunately this is just almost a solution. That way the linker.cmd appears in the list of files that are fed to the linker, but it doesn't keep the sam

[CMake] Assembler handling in 2.8.5 vs 2.8.4

2011-07-20 Thread Florian Reinhard
Hi, in 2.8.4 i added these lines to my project and had .asm files compiled correctly: ...set C/CXX compiler and how they are called... ENABLE_LANGUAGE(ASM) SET (CMAKE_ASM_COMPILE_OBJECT " -fr= -eo=.asm.obj ") PROJECT (myproject) ...add soruces, libraries and executables etc... with 2.8.5 i g

Re: [CMake] failures on windows INSTALL target: "file INSTALL cannot copy file"

2011-07-20 Thread Florian Reinhard
2011/7/20 Lecourt Maxime : > Changing to another directory without special characters ( ) solved the > problem for me. Thank you, overriding the default install prefix for cmake fixed this for me too. Maybe this should be added to the Readme.txt as long as there is no fix for it? I just wonder wh

[CMake] failures on windows INSTALL target: "file INSTALL cannot copy file"

2011-07-20 Thread Florian Reinhard
Hi! I just compiled cmake on windows7 x64 with MinGW but the make install fails: -- Installing: C:/Program Files (x86)/CMake/share/cmake-2.8/Modules/SquishRunTestCase.bat CMake Error at cmake_install.cmake:35 (FILE): file INSTALL cannot copy file "C:/source/cmake-2.8.5/Modules/SquishRunTestCa

Re: [CMake] cmake on MS Windows with GNU make ignores number of jobs

2011-07-13 Thread Florian Reinhard
Hi Bill, Thank you for your quick reponse and the link! 2011/7/12 Bill Hoffman : > Here is a link to the thread: > > http://comments.gmane.org/gmane.comp.gnu.make.windows/3223 Unfortunately that patch doesn't work for me gmake doesn't start any jobs. if i comment line 256 (in the patch) job_slo

[CMake] Add linker command file to object files

2011-07-13 Thread Florian Reinhard
Hi! Problem: I need to have a linker command file among the list of object files in a fixed order. Setup: Cmake 2.8.5 custom non-gnu texas instruments cl6x toolchain Ideas: I figured that the object files list which one specifies as in CMAKE_C_LINK_EXECUTABLE are sorted in the way they are fed

[CMake] cmake on MS Windows with GNU make ignores number of jobs

2011-07-12 Thread Florian Reinhard
Hi! Problem: * GNU make doesn't make use of "number of jobs" (-j) Setup: * windows 7 x64 * cmake 2.8.4 * GNU make 3.81 (gnuwin32) * custom toolchain (Texas Instruments cl6x) I tried the following generators: * MinGW Makefiles * Unix Makefiles Does parallel compiling not work in general or is t