-
Notifications
You must be signed in to change notification settings - Fork 1.2k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Ubuntu 16.04 ARM version is missing the step for compiling st-flash and then errors in st-info #621
Comments
Thats odd and there is something wrong with your linux install. The C library is not good for some odd reason. Could you try as below (https://stackoverflow.com/a/8084376/1836746)
|
Thanks xor-gate - I got the same result after removing and re-installing libc-dev and running make clean and then make release. I can add some more info - the build/Release/CMakeFiles/st-flash.dir/src/tools has two files in the Ubuntu 14.04 PC, but in the banana pi running Ubuntu 16.04, that directory is empty :( |
However, as mentioned by @xor-gate before, the observed problems appear to have their origin in a broken toolchain. Hence this issue is not related to the |
NOTICE: The issue may be closed without notice when not enough information is provided!
Thank you for giving feedback to the stlink project. Take some time to fill out
check boxes with a X in the following items so developers and other people can try to
to find out what is going on. And add/remove what is appropriate to your problem.
When submitting a feature request, try to reuse the list and add/remove what is appropriate.
Place a
X
between the brackets[X]
to mark the list item.A as-detailed description possible of the problem with debug output when available.
Output:
make release
With Ubuntu 14.04 PC compiled output:
[ 20%] Building C object CMakeFiles/stlink-shared.dir/src/logging.c.o
[ 25%] Building C object CMakeFiles/stlink-shared.dir/src/flash_loader.c.o
Linking C shared library libstlink-shared.so
[ 25%] Built target stlink-shared
Scanning dependencies of target st-flash
[ 29%] Building C object CMakeFiles/st-flash.dir/src/tools/flash.c.o
[ 33%] Building C object CMakeFiles/st-flash.dir/src/tools/flash_opts.c.o
Linking C executable st-flash
[ 33%] Built target st-flash
Scanning dependencies of target st-info
[ 37%] Building C object CMakeFiles/st-info.dir/src/tools/info.c.o
Linking C executable st-info
[ 37%] Built target st-info
Scanning dependencies of target stlink-static
make release
With banana pi m2-ultra running Ubuntu 16.04:
[ 17%] Building C object CMakeFiles/stlink-shared.dir/src/flash_loader.c.o
[ 20%] Linking C shared library libstlink-shared.so
[ 20%] Built target stlink-shared
Scanning dependencies of target st-info
[ 23%] Building C object CMakeFiles/st-info.dir/src/tools/info.c.o
[ 26%] Linking C executable st-info
/usr/lib/gcc/arm-linux-gnueabihf/5/../../../arm-linux-gnueabihf/crt1.o: In function
_start': (.text+0x1c): undefined reference to
__libc_start_main'/usr/lib/gcc/arm-linux-gnueabihf/5/../../../arm-linux-gnueabihf/crt1.o: In function
_start': (.text+0x20): undefined reference to
abort'Expected/description:
short description of the expected value
It seems the make release for Ubuntu 16.04 ARM version is missing the step for compiling st-flash and then errors in st-info while the PC version running on Ubuntu 14.04 compiles OK.
The source was downloaded as a zip file.
Any ideas what needs fixing?
Thank you,
The stlink project maintainers
The text was updated successfully, but these errors were encountered: