×

Discussion Board

Results 1 to 8 of 8
  1. #1
    Registered User
    Join Date
    Oct 2006
    Posts
    1

    "The input line is too long" error when linking in Carbide c++

    Hello,

    I am using Carbide c++ Developer edition to build a rather large project (300+ files). Needless to say, that creates a lot of object files, that all have to be
    passed as arguments to the linker. Everything compiles fine, but when I get to the link stage of the build process, I get the following error:

    Code:
    'Invoking: GCCE Linker'
    The input line is too long.
    make: *** [MyProject.sym] Error 255
    After many hours investigatingthe problem, I have come to the conclusion that the error is caused my the generated makefile trying to print the link command to the screen, and not the link actually failing. To prove this, I modified the makefile generated by Carbide c++ and removed the folowing line:

    Code:
    @echo arm-none-symbianelf-ld.exe --check-sections --no-undefined 
    --no-allow-shlib-undefined -nostdlib -shared --entry _E32Startup 
    -Tdata 0x400000 -Ttext 0x8000 --target1-abs --discard-locals 
    --default-symver -u_E32Startup -L"${GCCELIB}" -L"${GCCELINKLIB}"  
    -soname $(basename $(notdir "$@")){000a0000}.exe" 
    "${EPOCROOT}EPOC32\RELEASE\ARMV5\UREL\eexe.lib"  
    ${EPOCROOT}EPOC32\RELEASE\ARMV5\LIB\dfpaeabi.dso  
    ${EPOCROOT}EPOC32\RELEASE\ARMV5\LIB\drtaeabi.dso  
    ${EPOCROOT}EPOC32\RELEASE\ARMV5\LIB\dfprvct2_2.dso  
    ${EPOCROOT}EPOC32\RELEASE\ARMV5\LIB\scppnwdl.dso  
    ${EPOCROOT}EPOC32\RELEASE\ARMV5\LIB\drtrvct2_2.dso  
    ${EPOCROOT}EPOC32\RELEASE\ARMV5\UREL\usrt2_2.lib -o 
    "C:\Symbian\9.1\S60_3rd_MR\epoc32\release\GCCE\UDEB\$(strip $@)" -Map 
    C:\Symbian\9.1\S60_3rd_MR\epoc32\release\GCCE\UDEB\\MyProject.exe.map
     $(OBJS) $(USER_OBJS) 
    "C:\Symbian\9.1\S60_3rd_MR\epoc32\release\ARMV5\LIB\euser.dso" 
    "C:\Symbian\9.1\S60_3rd_MR\epoc32\release\ARMV5\LIB\dfpaeabi.dso" 
    "C:\Symbian\9.1\S60_3rd_MR\epoc32\release\ARMV5\UDEB\eexe.lib" 
    "C:\Symbian\9.1\S60_3rd_MR\epoc32\release\ARMV5\UDEB\usrt2_2.lib" 
    "C:\Symbian\9.1\S60_3rd_MR\epoc32\release\ARMV5\LIB\drtaeabi.dso" 
    "C:\Symbian\9.1\S60_3rd_MR\epoc32\release\ARMV5\LIB\scppnwdl.dso" 
    "C:\Symbian\9.1\S60_3rd_MR\epoc32\release\ARMV5\LIB\efsrv.dso" 
    "C:\Symbian\9.1\S60_3rd_MR\epoc32\release\ARMV5\LIB\estlib.dso" 
    "C:\Symbian\9.1\S60_3rd_MR\epoc32\release\ARMV5\LIB\insock.dso" 
    "C:\Symbian\9.1\S60_3rd_MR\epoc32\release\ARMV5\LIB\esock.dso" 
    "C:\Symbian\9.1\S60_3rd_MR\epoc32\release\ARMV5\LIB\hal.dso"  
    -lsupc++ -lgcc
    I then modified the makefile so that it does not need the ${GCCELIB} and ${GCCELINKLIB} variables and proceeded to invoke make from the command line. The result is a linked executable, minus the output on the command line of the command used to link.

    So, my question is the following:
    Is there any way to disable the @echo commands in makefiles generated by Carbide c++?
    I think this is a rather major issue that greatly affects the scalability of Carbide c++ as a development environment.

  2. #2
    Regular Contributor
    Join Date
    Sep 2003
    Posts
    134

    Re: "The input line is too long" error when linking in Carbide c++

    This error was major stopper for me to use Carbide.C++ and I was forced to move at Visual Studio.Net

  3. #3
    Registered User
    Join Date
    Sep 2006
    Location
    Oslo, Norway
    Posts
    4

    Re: "The input line is too long" error when linking in Carbide c++

    Hi, has anyone figured out how to solve this problem ?

    --
    Thomas

  4. #4
    Registered User
    Join Date
    Jun 2004
    Posts
    19

    Re: "The input line is too long" error when linking in Carbide c++

    Hi can anyone tell me
    Is this the long path issues or is it number of file issues??

    Is there any work-around , I am stuck with carbide 1.1 version with same issues.

  5. #5
    Registered User
    Join Date
    Sep 2006
    Location
    Oslo, Norway
    Posts
    4

    Re: "The input line is too long" error when linking in Carbide c++

    Quote Originally Posted by apu_rath
    Is there any work-around , I am stuck with carbide 1.1 version with same issues.
    What I did was I subst'ed EPOCROOT, that shortend my linker line a bit, at least enough to get the work done, I have reported the issue to Nokia a while ago but I didn't get any answers, anyways the issue seems to be solved in carbide 1.2

    --
    Thomas

  6. #6
    Regular Contributor
    Join Date
    Nov 2005
    Location
    Aalborg, Denmark
    Posts
    296

    Re: "The input line is too long" error when linking in Carbide c++

    This issue is also mentioned in the release notes of Carbide.c++

    GCCE builds fail because the command-line is too long. This is most apparent on Windows 2000 machines where the command-limit can be 2048 characters. This happens most often on GCCE builds because the full path to archives must be specified on the command-line because the -L parameter does not work.
    As a workaround you can try to subst your SDK to shorten the paths to libraries.

  7. #7
    Registered User
    Join Date
    Jun 2004
    Posts
    19

    Re: "The input line is too long" error when linking in Carbide c++

    Hi ,
    I could solve this problem by copying all the files to root and change the mmp file accrodingly. so that path length is basically zero , But i belive this should be work around. nokia has to fix this isues ASAP.
    Regards,
    Anupam

  8. #8
    Registered User
    Join Date
    Mar 2007
    Posts
    3

    Re: "The input line is too long" error when linking in Carbide c++

    I was able to workaround this problem by using make -k -i instead of just make -k as the default build command under Project, Propreties, C/C++ Build, Build Settings. This will ignore the Error 255 and keep going.

Similar Threads

  1. carbide build problem help please
    By berkcekisbas in forum Carbide.c++ IDE and plug-ins (Closed)
    Replies: 1
    Last Post: 2006-09-26, 19:41
  2. problem with Code Warrior 5.2
    By mayankkedia in forum Symbian
    Replies: 4
    Last Post: 2006-06-22, 08:26
  3. My BuilderX (with S60 SDK 2.1.NET MS version) cannot build ARMI UREL
    By danielvidonyi@hotmail.com in forum Symbian Tools & SDKs
    Replies: 1
    Last Post: 2006-05-04, 21:30
  4. Carbide.c++ Express don't want build HelloWorld
    By azarov-it in forum Carbide.c++ IDE and plug-ins (Closed)
    Replies: 7
    Last Post: 2006-04-09, 11:00
  5. problem with codewarrior 5.2
    By mayankkedia in forum Symbian Tools & SDKs
    Replies: 3
    Last Post: 2004-09-27, 16:08

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
×