| Author |
Message |
yurenjie
Joined: 17 Jul 2009 Posts: 4
|
17 Oct 2009 6:16 post-simulation using VCS error "Argument list too lo |
|
|
|
|
HI,all!
when I implement an arm soc system post-simulation with VCS,therer is an error happans,as follows:
make:execvp:g++:Argument list too long
make:***[product_timestamp]Error 127
Make exited with status 2
---
can anyone tell me reason of this error and the solution?
Regards!!
|
|
| Back to top |
|
 |
skyfaye
Joined: 25 Feb 2008 Posts: 27 Helped: 2
|
17 Oct 2009 18:18 Re: post-simulation using VCS error "Argument list to |
|
|
|
|
Doc Id: 017218 Product: VCS
Last Modified: 04/07/2006 Print-Friendly Version Email Article
My Saved Articles
Rate this article: Not Useful Somewhat Useful Useful Very Useful
Argument list too long
Question:
I get the following message during linking:
make: execvp: gcc: Argument list too long
make: *** [product_timestamp] Error 127
Answer:
By default VCS compiles module definitions into individual object files
and sends all the object files in a command line to the linker. Some
platforms use a fixed-length buffer for the command line, and if VCS sends
too long a list of object files, this buffer overflows and the link fails.
A solution to this problem is to have the linker create temporary object
files containing more than one module definition so there are fewer object
files on the linker command line. You enable creating these temporary object
files, and specify how many module definitions are in these files, with the
following option
-Marchive=N
where N is the number of modules definitions to include in one temporary
object file.
i.e.
% vcs -f filelist.f -Marchive=100 ...
Using this option briefly doubles the amount of disk space used by the linker
because the object files containing more than one module definition are
copies of the object files for each module definition. After the linker
creates the simv executable it deletes the temporary object files.
|
|
| Back to top |
|
 |
ljxpjpjljx
Joined: 05 May 2008 Posts: 534 Helped: 12 Location: Shang Hai
|
18 Oct 2009 7:50 Re: post-simulation using VCS error "Argument list to |
|
|
|
|
| furthermore ,if you can spilt the module more clearly , you can avoid this problem!
|
|
| Back to top |
|
 |
Google AdSense

|
18 Oct 2009 7:50 Ads |
|
|
|
|
|
|
| Back to top |
|
 |
yurenjie
Joined: 17 Jul 2009 Posts: 4
|
20 Oct 2009 15:43 Re: post-simulation using VCS error "Argument list to |
|
|
|
|
| skyfaye wrote: |
Doc Id: 017218 Product: VCS
Last Modified: 04/07/2006 Print-Friendly Version Email Article
My Saved Articles
Rate this article: Not Useful Somewhat Useful Useful Very Useful
Argument list too long
Question:
I get the following message during linking:
make: execvp: gcc: Argument list too long
make: *** [product_timestamp] Error 127
Answer:
By default VCS compiles module definitions into individual object files
and sends all the object files in a command line to the linker. Some
platforms use a fixed-length buffer for the command line, and if VCS sends
too long a list of object files, this buffer overflows and the link fails.
A solution to this problem is to have the linker create temporary object
files containing more than one module definition so there are fewer object
files on the linker command line. You enable creating these temporary object
files, and specify how many module definitions are in these files, with the
following option
-Marchive=N
where N is the number of modules definitions to include in one temporary
object file.
i.e.
% vcs -f filelist.f -Marchive=100 ...
Using this option briefly doubles the amount of disk space used by the linker
because the object files containing more than one module definition are
copies of the object files for each module definition. After the linker
creates the simv executable it deletes the temporary object files. |
hi,thanks!!!
this question puzzeled me for a long time, thanks for your answer!
|
|
| Back to top |
|
 |