[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [microblaze-uclinux] PetaLinux compile error: cannot open W_RODAT



John,

PetalLinux was compiled without any error after the "." was removed from the path.

Thanks,
J-Y

John Williams wrote:
Hi Jean-Yves,

Jean-Yves Ouellet wrote:

[snip]

microblaze-uclinux-gcc -msoft-float -mno-xl-soft-mul -mxl-barrel-shift -mno-xl-soft-div -Wl,-elf2flt -o basename basename.o microblaze-uclinux-gcc -msoft-float -mno-xl-soft-mul -mxl-barrel-shift -mno-xl-soft-div -Wl,-elf2flt -o date date.o microblaze-uclinux-gcc -msoft-float -mno-xl-soft-mul -mxl-barrel-shift -mno-xl-soft-div -Wl,-elf2flt -o dirname dirname.o microblaze-uclinux-gcc -msoft-float -mno-xl-soft-mul -mxl-barrel-shift -mno-xl-soft-div -Wl,-elf2flt -o echo echo.o /home/jouellet/petalinux-v0.10-rc1/tools/linux-i386/microblaze-uclinux-tools/bin/../lib/gcc/microblaze-uclinux/3.4.1/../../../../microblaze-uclinux/bin/ld: line 1: ./dirname: cannot execute binary file /home/jouellet/petalinux-v0.10-rc1/tools/linux-i386/microblaze-uclinux-tools/bin/../lib/gcc/microblaze-uclinux/3.4.1/../../../../microblaze-uclinux/bin/ld.real: cannot open W_RODAT: No such file or directory

Do you have "." in the path (ahead of /usr/bin et al)?

If so, this will likely be the cause. You have just built an app called dirname, and it exists in the current directory. Chances are, Make is also using dirname to do its job. If you have "." in the path ahead of /usr/bin, then the local one will be picked up. Problem is, that's the MicroBlaze binary not an i386! :)

echo $PATH - tell us what you find.

As a rule, "." should never be in the path. If you want to run a binary from the current directory, you should be explicit about it! Worse, if . is in root's path, it's a security risk.

Regards,

John
___________________________
microblaze-uclinux mailing list
microblaze-uclinux@xxxxxxxxxxxxxx
Project Home Page : http://www.itee.uq.edu.au/~jwilliams/mblaze-uclinux
Mailing List Archive : http://www.itee.uq.edu.au/~listarch/microblaze-uclinux/

___________________________
microblaze-uclinux mailing list
microblaze-uclinux@xxxxxxxxxxxxxx
Project Home Page : http://www.itee.uq.edu.au/~jwilliams/mblaze-uclinux
Mailing List Archive : http://www.itee.uq.edu.au/~listarch/microblaze-uclinux/