iMx6 ROM Build Failure
Mike Howard (479) 216 posts |
So, gnu grep from PackMan is no good for this build (neither the older or newest versions) as it uses the unix folder notation. I had the older PackMan version installed. Upgrading that actually removed egrep and fgrep altogether, leaving only grep. I now know that grep/egrep is also provided with the source and is presumably copied during the ‘prepare’ process or maybe just expected to be found before any other version. However, here, the existing version of egrep installed on the system was found first during the build. Haven’t tried another build as I’m off to bed but I’m confident that using the ‘source’ version will cure this problem as it does work in the manner expected by the Makefile. |
Sprow (202) 1158 posts |
Ah ha – so right idea (another copy of a tool elsewhere outside the build tree) but wrong tool (grep rather than perl). The copy of egrep used should be unambiguous because that’s called out in StdTools as Unix.egrep, however egrep just shuffles the arguments into the order grep wants them then calls grep, but it does so as Run:grep, so if you happen to have another grep somewhere earlier on your Run$Path that’d win. |
Mike Howard (479) 216 posts |
Just to confirm that the issue was indeed the PackMan version of grep being found before the version from within the build tree. Build now successful. Thanks to all that helped. Edited to say, maybe Unix.grep should be called with the ‘-E’. |