kuronosan / KK-Kernel-MT6572

Kernel source for 4.4.2 for MediaTek devices running MT6572
7 stars 20 forks source link

Spaces in absolute path #3

Open joylyft opened 6 years ago

joylyft commented 6 years ago

I'm new to building and I keep getting a spaces in absolute path error. There are no spaces in my build directory.

ghost commented 6 years ago

please show your log.

joylyft commented 6 years ago

Thanks for your quick response. I believe it's filesystem related (I'm using btrfs with subvolumes) but how do I post a log. makeMtk doesn't show any verbose logging or print a logfile with the -t option...

ghost commented 6 years ago

The log is your terminal stdout, I need your error message.

joylyft commented 6 years ago

kingdom% ./makeMtk -t mt6572 n k sh: grep: command not found sh: env: command not found


You are building in a directory whose absolute path contains a space character:

Please move your source tree to a path that does not contain any spaces.


Directory names containing spaces not supported kingdom%

Removing the culprit code from makeMtk doesn't work; I just keep getting the "help" options.

joylyft commented 6 years ago

I first set my PATH variable to the toolchain in ./prebuilt. If I don't do that I just get the help options after running makeMtk. If I remove the code in makeMtk that checks for spaces, it won't compile anything or print errors it just gives me the help file.

ghost commented 6 years ago

what's your os? your system can't find grep & env command. you can check your system path.

joylyft commented 6 years ago

I'm using arch with plasma5. My normal PATH variable is /usr/bin where env and grep are located. But for compiling this kernel the readme says to set the PATH variable to the toolchain folder.

joylyft commented 6 years ago

My android repo folder is /var/sdk/. Inside here is my "android" folder where this kernel is located.

ghost commented 6 years ago

Sorry, English is not my native language; please excuse typing errors.

You can use export PATH=$PATH:\you\tools\path add new path. but you must't delete old path.

joylyft commented 6 years ago

That's fine. It warms my heart that you desire to help :) I'll give this a shot.

joylyft commented 6 years ago

It warms my heart means it makes me happy :)

ghost commented 6 years ago

If you shell is bash, you can add this command to ~/.bashrc, autoload system env, Good lucky!