When ar is asked to act on a file whose path includes the '~' character, ar rejects this with a syntax error. E.g.: (echo create /build/buildd/u-boot-linaro-2010.09~rc1.1/debian/build/omap4_panda/post/libpost.a; for lib in ; \ do echo addlib $lib; done; echo save) \ | ar -M ~Syntax error in archive script, line 1 This bug was identified using u-boot, but it's probably reproducible with any number of pieces of software if built in a parent directory with the appropriate characteristics. Patch to follow.
Created attachment 4989 [details] add ~ to the set of valid filename chars Solution to this issue courtesy of Zygmunt Krynicki <zygmunt.krynicki@linaro.org>.