Replies: 4 comments 4 replies
-
Dealing with this will likely require changes to the B2 toolsets. There's a built-in feature to automatically switch to response files when command lines get too long. But unfortunately that's only used on Windows commands as that's where the limitations are most restrictive. It could be fairly easily get used universally though. As for what to do to deal with it now.. In addition to Could you post the length of the lines you are having problems with? |
Beta Was this translation helpful? Give feedback.
-
Both the '--hash' and '--abbreviate-paths' options help to reduce the link command line where you are referring to the files within the b2 output directory structure. What they don't help with is reducing the compile command line where you are including many paths from the workspace. This is fundamentally the issue I have. In the problem case I'm having, the compile command line is 3500 characters long. The majority of this is the many, many The setup we have for b2 uses an absolute path for every As we are having a failing build at the moment, any suggestions on how to resolve ASAP would be much appreciated. |
Beta Was this translation helpful? Give feedback.
-
We specify the include paths as relative within each project, but we have many different projects. All the projects are defined within the workspace root. Feel free to ask more questions, I'm not a B2 expert but I'm more than happy to elaborate where I can! |
Beta Was this translation helpful? Give feedback.
-
Just to try and clarify what we are doing. We have one parent project that contains many sub-projects. The sub-projects are often included in other sub-projects. Within each project we define the includes as being a relative path. It is the case that when we include another sub-project, the include path on the compile line is given as an absolute path. |
Beta Was this translation helpful? Give feedback.
-
Hi there,
I'm having problems using B2 with a very large software project and compilation command lines that are too long. The issue we have is the number of includes '-I' which makes the command line length very long. In our case, we do use the '--abbreviate-paths' b2 option but this helps with linking and not compilation command line lengths.
At first glance, an ideal solution would be to switch from absolute paths for the includes, but I'm not clear if this is easily possible from the B2 manual.
Does anyone have any suggestions on how to resolve this issue?
Edited to add that I'm on a Linux system and use a combination of GCC, PGI, and Intel compilers.
Thanks,
Ewan
Beta Was this translation helpful? Give feedback.
All reactions