sparc 4.11 tools build failure on CentOS 6.x

Joel Sherrill joel.sherrill at OARcorp.com
Wed Jan 29 23:52:27 UTC 2014


On 1/29/2014 5:48 PM, Chris Johns wrote:
> On 30/01/2014 9:55 am, Joel Sherrill wrote:
>> On 01/28/2014 10:04 PM, Alan Cudmore wrote:
>>> I was just able to build the sparc-rtems4.11 toolchain on Centos 6.5 ,
>>> 64 bit
>>> This was on a fresh Centos 6.x VM with all updates, no previous RTEMS
>>> tools installed.
>> OK. I have solved it but it was a weird one. My PATH accidentally
>> had :: in it and that let "." (the current directory) be in my PATH.
>> GCC creates a shell script called "as" which invokes the cross
>> assembler. It meant to get the native as but got the script for
>> the cross.
>>
>> Having . in a PATH is bad and apparently :: gives you the same
>> effect in at least bash.
>>
>> Should I file a PR to request that sb-check or the source builder
>> check this condition?
>>
> Yes or a patch :).
You will be lucky to get a PR out of me. I feel swamped.
> This was asked for recently. I think sb-check is internally involved 
> each build which means the path is checked each time.
That's great. "." in a directory is bad and I didn't realize that :: in
a PATH would
do that.
> Chris

-- 
Joel Sherrill, Ph.D.             Director of Research & Development
joel.sherrill at OARcorp.com        On-Line Applications Research
Ask me about RTEMS: a free RTOS  Huntsville AL 35805
Support Available                (256) 722-9985




More information about the devel mailing list