bfgroup / b2

B2 makes it easy to build C++ projects, everywhere.
https://www.bfgroup.xyz/b2/
Boost Software License 1.0
76 stars 228 forks source link

Archiving several files into static library fails on linux if the project is within a long nested path #143

Closed psandana closed 2 years ago

psandana commented 2 years ago

Environment and version details

Steps to reproduce the issue

Create a library to be linked statically on a long-nested path with multiple targets.

# long/nested/path/..../..../..../project
lib mylib
   :
      # several targets
   :
      <link>static
   ;

Actual behavior summary

Failure on linux, unless the project is relocated or the out folder is moved to a short path.

Expected behavior summary

ar command should work in unix. We recommend to double the size from 102400 to 204800

https://github.com/bfgroup/b2/blob/ddecd777bd39ff180d214193871a93ddb47c03ca/src/engine/jam.h#L454

psandana commented 2 years ago

Thanks for the fix!