Author Topic: Problem with a call to ar  (Read 13114 times)

Offline gd_on

  • Lives here!
  • ****
  • Posts: 796
Re: Problem with a call to ar
« Reply #15 on: February 17, 2013, 10:59:47 am »
Thanks.
As I told, for the first patch, it's OK for me. I don't know for the second one.

gd_on
Windows 11 64 bits (23H2), svn C::B (last version or almost!), wxWidgets 3.2.4 (tests with 3.3), Msys2 Compilers 13.2.0, 64 bits (seh, posix : gcc, g++ and gfortran in C:\msys64\mingw64) or 32 bits (dwarf2, posix  in C:\msys64\mingw32).

Offline oBFusCATed

  • Developer
  • Lives here!
  • *****
  • Posts: 13413
    • Travis build status
Re: Problem with a call to ar
« Reply #16 on: February 23, 2013, 12:27:01 am »
It seems that the second patch causes a build failure of the cb-unix.cbp project (for tinyxml target) on linux :(

Alpha: Do you know the reason?
(most of the time I ignore long posts)
[strangers don't send me private messages, I'll ignore them; post a topic in the forum, but first read the rules!]

Offline Alpha

  • Developer
  • Lives here!
  • *****
  • Posts: 1513
Re: Problem with a call to ar
« Reply #17 on: February 23, 2013, 12:53:47 am »
The command test modifies the exit code, and I forgot to reset it.  (Sorry for not noticing sooner; I do not often do full rebuilds.)
Code
Index: src/plugins/compilergcc/resources/compilers/options_gcc.xml
===================================================================
--- src/plugins/compilergcc/resources/compilers/options_gcc.xml (revision 8853)
+++ src/plugins/compilergcc/resources/compilers/options_gcc.xml (working copy)
@@ -133,7 +133,7 @@
         <Command name="LinkDynamic"
                  value="$linker -shared $libdirs $link_objects $link_resobjects -o $exe_output $link_options $libs"/>
         <Command name="LinkStatic"
-                 value="test -w $static_output &amp;&amp; rm -f $static_output\n$lib_linker -r -s $static_output $link_objects"/>
+                 value="test -w $static_output &amp;&amp; rm -f $static_output; echo -n\n$lib_linker -r -s $static_output $link_objects"/>
     </else>
     <Common name="cmds"/>
 

Offline oBFusCATed

  • Developer
  • Lives here!
  • *****
  • Posts: 13413
    • Travis build status
Re: Problem with a call to ar
« Reply #18 on: February 23, 2013, 01:44:15 am »
I've fixed it without the test, r8854...
(most of the time I ignore long posts)
[strangers don't send me private messages, I'll ignore them; post a topic in the forum, but first read the rules!]