Dear Ron:

I can compile my program(USEPA CMAQ Model: cctm) with version 11.1. But I bumped into libiomp5.s0 error.
I cannot compile with version composerxe-2011.2.137. I got fpp error.

Enclosed are my 11.1.073) and
Enclosed is compilation log for composerxe-2011.2.137. is the run log for version 11.1.073.

Thanks again for your time and effort.


4 posts / 0 new
Last post
For more complete information about compiler optimizations, see our Optimization Notice.

Another CMAQ user reported this "command line too long for FPP" problem with 12.0.2 earlier:

"command line too long for buffer" by Russell Winans


You have 2 problems going on here.

For the 12.0 compiler: the buffer overflow is a known and reported bug that is not fixed at this time. Jim provided a good workaround: instead of putting a bunch of -D defines on the command line, create a file and use (example)

#define SUBST_GRID_ID=42

for all of the defines. Name the file '' or somthing like that. Then, in your code:


OK, that is for version 12.0. With 12.0, 12.0 Update 1, and 12.0 Update 2 there is a 4K character limit in FPP. This example just exceeded that ever so slightly. In a future update this limit will double to 8K which gives plenty of room for this command line. In 12.1 there will be a permanent fix to allow virtually unlimited command lines.

Now, your second problem with 11.x. That is a runtime error, most likely you are exceeding stack space. the easy fix is it enter

ulimit -s unlimited

prior to running the code. Now, if you use a batch subsystem to submit job, either the batch script should have this OR you could put that in your .bashrc file to make sure that the spawn shell for your batch job unlimits the stack. Batch shells don't always inherit the env of their parent shells.

Read this article on stack:

Hi Ron,
While compiling the CMAQ model, I have a rather long strong of characters (>7300) I am trying to pass to mpiifort, and I get a buffer overflow error. I was hoping this would have been fixed with the latest updates to the compilers, but the problem is still there. Any idea when the buffer will be increased? Is it possible the next update to IMPI will include a fix?

BTW, I can work around the problem by compiling everything in my home directory. This reduces the lengths of the paths to the files and reduces the string to less than 4000 characters.


Leave a Comment

Please sign in to add a comment. Not a member? Join today