ARMmbed / mbed-cli

Arm Mbed Command Line Interface
https://os.mbed.com
Apache License 2.0
333 stars 176 forks source link

Unable to install mbed Client #124

Closed teetak01 closed 8 years ago

teetak01 commented 8 years ago

Following the README, was doing this:

mbed import https://developer.mbed.org/teams/Morpheus/code/mbed-Client-Morpheus-from-source/ cd mbed-Client-Morpheus-from-source

teetak01@machine:~/dev/mbed-cli/mbed-Client-Morpheus-from-source (master)$ mbed compile -t GCC_ARM -m K64F -j 0

[mbed ERROR] The mbed-os codebase and tools were not found.

README does not mention anything that I should install something else still?

Using Ubuntu 14.04 on virtualbox.

teetak01 commented 8 years ago

$ env | grep GCC GCC_ARM_PATH=/usr/bin/arm-none-eabi-gcc

$ which arm-none-eabi-gcc /usr/bin/arm-none-eabi-gcc

$ arm-none-eabi-gcc --version arm-none-eabi-gcc (GNU Tools for ARM Embedded Processors) 4.9.3 20150529 (release) [ARM/embedded-4_9-branch revision 227977] Copyright (C) 2014 Free Software Foundation, Inc. This is free software; see the source for copying conditions. There is NO warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.

teetak01 commented 8 years ago

My file-structure: home/teetak01/dev/mbed-cli Trying to import to dev/ => The mbed-os codebase and tools were not found.

Import to => home/teetak01/Morpheus-client/ => Clones all repos and builds.

Is this working correctly? Why I cannot have both mbed-cli and the module under /home/teetak01/dev ?

teetak01 commented 8 years ago

The build folder is hidden for some reason. Probably should be visible.

screamerbg commented 8 years ago

Hi @teetak01, are you trying to build mbed Client without mbed OS?

teetak01 commented 8 years ago

Nope, only observed really strange problems while I was trying to build mbed Client for K64F for the first time. Is there some limitations on the directory structures with morpheus?

For clarification, I did get it to build and running on K64F just fine.

screamerbg commented 8 years ago

@teetak01 do you still experience this issue? Can you update to the latest mbed CLI and re-test?

teetak01 commented 8 years ago

updated mbed-cli but still having very strange problem with one folder. I can build under $HOME/morpheus-dev/ but not under $HOME/dev/ ??? Is there something in the /dev/ folder that is causing conflicts with mbed-cli?

teetak01@machine:~/morpheus-dev/mbed-Client-Morpheus-from-source$ mbed compile -t GCC_ARM -m K64F -j 0  -v
[mbed] Working path "/home/teetak01/morpheus-dev/mbed-Client-Morpheus-from-source" (program)
[mbed] Exec "python /home/teetak01/morpheus-dev/mbed-Client-Morpheus-from-source/mbed-os/tools/make.py -D TARGET_LIKE_MBED -t GCC_ARM -m K64F --source . --build ./.build/K64F/GCC_ARM -v -j 0"" in /home/teetak01/morpheus-dev/mbed-Client-Morpheus-from-source
Building project mbed-Client-Morpheus-from-source (K64F, GCC_ARM)
Image: ./.build/K64F/GCC_ARM/mbed-Client-Morpheus-from-source.bin
teetak01@machine:~/morpheus-dev/mbed-Client-Morpheus-from-source$ 
teetak01@machine:~/dev$ cp -r ../morpheus-dev/mbed-Client-Morpheus-from-source/ .
teetak01@machine:~/dev$ cd mbed-Client-Morpheus-from-source/
teetak01@machine:~/dev/mbed-Client-Morpheus-from-source$ mbed compile -t GCC_ARM -m K64F -j 0  -v
[mbed] Working path "/home/teetak01/dev/mbed-Client-Morpheus-from-source" (library)
[mbed ERROR] The mbed OS codebase or tools were not found in "/home/teetak01/dev".
---

My mbed-cli resides in $HOME/dev/mbed-cli. All my yotta-stuff is also under $HOME/dev/

Is there possibility to get more debug out of mbed-cli? Yotta had the -vvv.

This is not affecting my development, but very strange issue which I would like to understand.

teetak01 commented 8 years ago

New laptop, running natively Ubuntu 14.04, no previous Neo/Moprheus components on this

Just cloned ´mbed-cli´ to root of $HOME (sudo python setup.py install)

Cloned my program to root of $HOME Tried to build with morpheus, claims that mbed tools were not found

Made a new folder under $HOME, cloned my program under it => Now mbed tools work.

Very strange behavior. Is there something in the build-scripts that it cannot handle same root folder for ´mbed-cli´ and the program you are building? Cannot really figure out what I could be doing wrong.

teetak01 commented 8 years ago

Debugged this with @screamerbg . The issue was an broken .git repo in my $HOME/dev/ folder.

Another issue I hade (on the other laptop) was that I was expecting (in yotta-way) that when I try to build a program, it will automatically also download all required components. Instead it checked if it can find any mbed-os components, it did not, and gave a fail.

Thanks for help, I'll leave this open, but you can close this if you have no follow-up questions.

screamerbg commented 8 years ago

Thanks for the time and the feedback @teetak01.