On Wed, Apr 6, 2016 at 8:15 AM, Gunnar Arndt <gunnar.ar...@vacos.de> wrote:

> embedded/gcc-linaro-5.3-2016.02-i686-mingw32_arm-linux-gnueabihf/bin/../lib/gcc/arm-linux-gnueabihf/5.3.1/../../../../arm-linux-gnueabihf/lib/libstdc++.so:
> file format not recognized; treating as linker script
> c:/program files (x86)/gnu tools arm
> embedded/gcc-linaro-5.3-2016.02-i686-mingw32_arm-linux-gnueabihf/bin/../lib/gcc/arm-linux-gnueabihf/5.3.1/../../../../arm-linux-gnueabihf/bin/ld.exe:c:/program
> files (x86)/gnu tools arm
> embedded/gcc-linaro-5.3-2016.02-i686-mingw32_arm-linux-gnueabihf/bin/../lib/gcc/arm-linux-gnueabihf/5.3.1/../../../../arm-linux-gnueabihf/lib/libstdc++.so:1:
> syntax error
> collect2.exe: error: ld returned 1 exit status

I get a slightly different error when I try this.  I get the file
format not recognized error, but then it quits instead of trying to
read it as a linker script.

The file in question is a symlink.  If you use a cygwin tar binary to
extract the tar.xz file on the windows machine, then cygwin by default
creates cygwin style symlinks, which can only be understood by cygwin
programs.  The toolchain we released is not a cygwin binary, so it
can't follow these symlinks, and you get the error.  I see two ways to
solve this problem.

1) In cygwin, you can do "export CYGWIN=winsymlinks" before extracting
the tar.xz file.  You will then get a windows short-cut instead of a
cygwin style symlink, and the toolchain will work.
    https://cygwin.com/faq.html#faq.api.symlinks
The faq mentions different ls output, but I didn't see that.  I do see
a difference in file explorer.  The cygwin so symlink appears as type
"SO File", where as the windows short-cut appears as type "Shortcut".

2) Use a non-cygwin program to extract the package.  I don't know if
there is a non-cygwin tar available, but you could extract on a linux
machine, use zip to create a zip/pkzip archive, and then use a windows
unzip/pkzip program to extract it.  I didn't try this, but this should
in theory work.

Jim
_______________________________________________
linaro-toolchain mailing list
linaro-toolchain@lists.linaro.org
https://lists.linaro.org/mailman/listinfo/linaro-toolchain

Reply via email to