[haiku-bugs] [Haiku] #10227: gcc4 "response file" handling broken.

  • From: "pulkomandy" <trac@xxxxxxxxxxxx>
  • Date: Thu, 21 Nov 2013 17:14:30 -0000

#10227: gcc4 "response file" handling broken.
--------------------------+------------------------------
 Reporter:  pulkomandy    |        Owner:  zooey
     Type:  bug           |       Status:  new
 Priority:  normal        |    Milestone:  R1
Component:  Build System  |      Version:  R1/Development
 Keywords:                |   Blocked By:
 Blocking:                |  Has a Patch:  0
 Platform:  All           |
--------------------------+------------------------------
 This is hrev46383.

 Trying to link WebKit shared libraries (these have a lot of files). A
 response file is used to avoid hittng the command line limit.

 But gcc unfolds the command-line before passing it to collect2.

 FAILED: : && /bin/distcc  g++-x86 -fPIC -march=pentium4 -msse2
 -mfpmath=sse   -std=gnu++0x -O3 -DNDEBUG  -Wl,--no-undefined -shared
 -Wl,-soname,libWebCore.so.1 -o lib/x86/libWebCore.so.1.2.0
 @CMakeFiles/WebCore.rsp  && :
 [17:56] <PulkoMandy>  g++-x86: error trying to exec
 '/boot/system/develop/tools/x86/bin/../lib/gcc/i586-pc-
 haiku/4.7.3/collect2': execv: Argument too big

 This should work since gcc 4.5.0 but may require the --with-gnu-ld option
 when configuring gcc:
 http://gcc.gnu.org/bugzilla/show_bug.cgi?id=45749

 Or this may be another problem, as the issue happens when running
 collect2, not ld.

--
Ticket URL: <http://dev.haiku-os.org/ticket/10227>
Haiku <http://dev.haiku-os.org>
Haiku - the operating system.

Other related posts: