Re: [cmake-developers] How to deal with assembler files

2011-03-10 Thread Alexander Neundorf
On Wednesday 09 March 2011, Brad King wrote: > On 03/09/2011 02:27 PM, Alexander Neundorf wrote: > > On Tuesday 08 March 2011, Brad King wrote: > >> $ icl -S main.c > >> $ icl main.asm > >> (errors) > >> I was able to fix the errors for (3) by replacing "." with "_" in a few > >> labels

Re: [cmake-developers] How to deal with assembler files

2011-03-09 Thread Brad King
On 03/09/2011 02:27 PM, Alexander Neundorf wrote: > On Tuesday 08 March 2011, Brad King wrote: >> $ icl -S main.c >> $ icl main.asm >> (errors) >> I was able to fix the errors for (3) by replacing "." with "_" in a few >> labels. Then the build produces HelloAsm.exe which runs as expect

Re: [cmake-developers] How to deal with assembler files

2011-03-09 Thread Alexander Neundorf
On Tuesday 08 March 2011, Brad King wrote: > On 03/07/2011 03:44 PM, Alexander Neundorf wrote: > > Testing the Intel compiler under Windows... > > I just tried this but have no time to work further on it now. The compiler > does use -S to generate assembly, but there are at least 3 problems: > > (

Re: [cmake-developers] How to deal with assembler files

2011-03-08 Thread Brad King
On 03/07/2011 03:44 PM, Alexander Neundorf wrote: > Testing the Intel compiler under Windows... I just tried this but have no time to work further on it now. The compiler does use -S to generate assembly, but there are at least 3 problems: (1) The command line needs "-Fo" instead of "-o" to spec

Re: [cmake-developers] How to deal with assembler files

2011-03-07 Thread Alexander Neundorf
On Friday 04 March 2011, Brad King wrote: > On 03/03/2011 05:04 PM, Alexander Neundorf wrote: > > On Thursday 03 March 2011, Brad King wrote: > >> Hi Alex, > >> > >> The Sun compiler still fails: > >> http://www.cdash.org/CDash/testDetails.php?test=85204365&build=888421 > >> > >> It's because the e

Re: [cmake-developers] How to deal with assembler files

2011-03-04 Thread Brad King
On 03/03/2011 05:04 PM, Alexander Neundorf wrote: > On Thursday 03 March 2011, Brad King wrote: >> Hi Alex, >> >> The Sun compiler still fails: >> http://www.cdash.org/CDash/testDetails.php?test=85204365&build=888421 >> >> It's because the execute_process in the CMakeLists.txt file of the test >> d

Re: [cmake-developers] How to deal with assembler files

2011-03-03 Thread Alexander Neundorf
On Thursday 03 March 2011, Brad King wrote: > Hi Alex, > > The Sun compiler still fails: > http://www.cdash.org/CDash/testDetails.php?test=85204365&build=888421 > > It's because the execute_process in the CMakeLists.txt file of the test > does not use the C compiler flags. Therefore 32-bit assembl

Re: [cmake-developers] How to deal with assembler files

2011-03-03 Thread Alexander Neundorf
On Tuesday 01 March 2011, Brad King wrote: > On 03/01/2011 04:40 PM, Alexander Neundorf wrote: > > Do you think when enabling the C compiler as ASM compiler it should > > also check for $ENV{CFLAGS} ? Or should I added $ENV{ASMFLAGS} ? > > Often the C compiler is the C++ compiler too but we still

Re: [cmake-developers] How to deal with assembler files

2011-03-03 Thread Brad King
Hi Alex, The Sun compiler still fails: http://www.cdash.org/CDash/testDetails.php?test=85204365&build=888421 It's because the execute_process in the CMakeLists.txt file of the test does not use the C compiler flags. Therefore 32-bit assembly code is generated and then it tries to compile it with

Re: [cmake-developers] How to deal with assembler files

2011-03-02 Thread Brad King
On 03/02/2011 01:54 PM, Brad King wrote: > On 03/02/2011 10:50 AM, Alexander Neundorf wrote: >> Leaves mostly the HP compiler: >> http://www.cdash.org/CDash/testDetails.php?test=85923158&build=886969 > > I'm still looking at this one. > >> and the IBM compiler: >> http://www.cdash.org/CDash/testD

Re: [cmake-developers] How to deal with assembler files

2011-03-02 Thread Brad King
On 03/02/2011 10:50 AM, Alexander Neundorf wrote: > Leaves mostly the HP compiler: > http://www.cdash.org/CDash/testDetails.php?test=85923158&build=886969 I'm still looking at this one. > and the IBM compiler: > http://www.cdash.org/CDash/testDetails.php?test=85918066&build=886882 The RPATH flag

Re: [cmake-developers] How to deal with assembler files

2011-03-02 Thread Alexander Neundorf
On Tuesday 01 March 2011, Brad King wrote: > On 03/01/2011 04:40 PM, Alexander Neundorf wrote: > > Do you think when enabling the C compiler as ASM compiler it should > > also check for $ENV{CFLAGS} ? Or should I added $ENV{ASMFLAGS} ? > > Often the C compiler is the C++ compiler too but we still

Re: [cmake-developers] How to deal with assembler files

2011-03-01 Thread Bill Hoffman
On 3/1/2011 4:47 PM, Brad King wrote: On 03/01/2011 04:40 PM, Alexander Neundorf wrote: Do you think when enabling the C compiler as ASM compiler it should also check for $ENV{CFLAGS} ? Or should I added $ENV{ASMFLAGS} ? Often the C compiler is the C++ compiler too but we still have a separat

Re: [cmake-developers] How to deal with assembler files

2011-03-01 Thread Brad King
On 03/01/2011 04:40 PM, Alexander Neundorf wrote: > Do you think when enabling the C compiler as ASM compiler it should > also check for $ENV{CFLAGS} ? Or should I added $ENV{ASMFLAGS} ? Often the C compiler is the C++ compiler too but we still have a separate CXXFLAGS. Let's use ASMFLAGS. -Bra

Re: [cmake-developers] How to deal with assembler files

2011-03-01 Thread Alexander Neundorf
On Tuesday 01 March 2011, Brad King wrote: > On 03/01/2011 03:44 PM, Alexander Neundorf wrote: > > The SunPro tests both failed: > > http://www.cdash.org/CDash/testDetails.php?test=85204365&build=884706 > > http://www.cdash.org/CDash/testDetails.php?test=85247010&build=884931 > > The assembler file

Re: [cmake-developers] How to deal with assembler files

2011-03-01 Thread Brad King
On 03/01/2011 03:44 PM, Alexander Neundorf wrote: > The SunPro tests both failed: > http://www.cdash.org/CDash/testDetails.php?test=85204365&build=884706 > http://www.cdash.org/CDash/testDetails.php?test=85247010&build=884931 > The assembler file was generated in both cases, but could not be linked

Re: [cmake-developers] How to deal with assembler files

2011-03-01 Thread Alexander Neundorf
On Tuesday 01 March 2011, Brad King wrote: > On 02/24/2011 02:58 PM, Alexander Neundorf wrote: > > I merged this now into next on stage. > > The Assembler test fails on several platforms: > > http://www.cdash.org/CDash/testSummary.php?project=1&name=Assembler&date=20 >11-03-01 Oops, sorry. I'll fi

Re: [cmake-developers] How to deal with assembler files

2011-03-01 Thread Brad King
On 02/24/2011 02:58 PM, Alexander Neundorf wrote: > I merged this now into next on stage. The Assembler test fails on several platforms: http://www.cdash.org/CDash/testSummary.php?project=1&name=Assembler&date=2011-03-01 Please take a look. Let me know if you need help on a specific platform.

Re: [cmake-developers] How to deal with assembler files

2011-02-24 Thread Alexander Neundorf
On Wednesday 23 February 2011, Brad King wrote: > On 02/23/2011 03:36 PM, Alexander Neundorf wrote: > > This is now on stage in the "ReworkedAsmSupport" branch. > > I'd like to merge this into next, if there are no objections. > > It implements what we discussed here, i.e. if there is already a C/C

Re: [cmake-developers] How to deal with assembler files

2011-02-23 Thread Brad King
On 02/23/2011 03:36 PM, Alexander Neundorf wrote: > This is now on stage in the "ReworkedAsmSupport" branch. > I'd like to merge this into next, if there are no objections. > It implements what we discussed here, i.e. if there is already a C/CXX > compiler it tries to use that too for assembler, i

Re: [cmake-developers] How to deal with assembler files

2011-02-23 Thread Alexander Neundorf
On Wednesday 18 August 2010, Brad King wrote: > On 08/18/2010 01:03 PM, Alexander Neundorf wrote: > > If the files are written that way (and built without cmake before), the > > developers want to have them processed with the actual compiler, because > > that's what they are always doing. > > IMO t

Re: [cmake-developers] How to deal with assembler files

2010-08-18 Thread Brad King
On 08/18/2010 01:03 PM, Alexander Neundorf wrote: > If the files are written that way (and built without cmake before), the > developers want to have them processed with the actual compiler, because > that's what they are always doing. > IMO that's not wrong, because if the compiler can also proc

Re: [cmake-developers] How to deal with assembler files

2010-08-18 Thread Alexander Neundorf
On Tuesday 17 August 2010, Brad King wrote: > On 08/17/2010 04:39 PM, Alexander Neundorf wrote: > > Still, there is the preprocessing bug. > > I think some Fortran compilers need help with this too but we ignore > them right now. I prefer a solution that may work for both, but just > for ASM for n

Re: [cmake-developers] How to deal with assembler files

2010-08-17 Thread Brad King
On 08/17/2010 04:39 PM, Alexander Neundorf wrote: > Still, there is the preprocessing bug. I think some Fortran compilers need help with this too but we ignore them right now. I prefer a solution that may work for both, but just for ASM for now. In general the languages should be independent. B

[cmake-developers] How to deal with assembler files

2010-08-17 Thread Alexander Neundorf
Hi, current support for assembler has the shortcoming that in all cases the assembler is called directly (e.g. as, gas, masm, nasm, etc.). This works as long as the assembler files don't have preprocessor directives in them. But if that's the case, the assembler files should be actually processe