[Before you Start]
-
STOP the ‘Antimalware Service Executable’ process
This process gets too excited (CPU & Disk usage at 40~60%) because tons of files are pumping in and extracted and will slow down the whole process 2 to 3 times if not more. It won’t do anything for those linux binaries and code text in anyway, so, disable it. (gosh. Sooo quiet now…)
Run ‘regedit’ (Windows key + R)
Find HKEY_LOCAL_MACHINE\SOFTWARE\Policies\Microsoft\Windows Defender
Create registry entry named DisableAntiSpyware, New > DWORD (32 bit) Value and set to 1.
And, Reboot the Windows. -
Update WSL with the latest packages
sudo apt-get update && sudo apt-get upgrade -y
[ERROR: Unable to parse /home/sundew/build-webos/meta-raspberrypi/recipes-kernel/linux/linux-raspberrypi_4.9.bb]
Alright. Please Be warned in advance for a lengthy and boring narratives for a potentially simple error with obvious solution.
I only have guess one of the following activities fixed the error, at least it seems like it for now.
After investing the error message (incl. in the orig post down below), I wanted to see how the post build process will be affected if I just comment out the line where the exception occurred.
I did:
nano +646 /home/sundew/build-webos/bitbake/lib/bb/pysh/pyshyacc.py
and commented the line:
raise sherrors.ShellSyntaxError(’’.join(msg))
And I repeated ‘bitbake webos-image
’ and the build up continued without any error. Of course.
Possibility-1: Then I did ‘updatedb
’ hoping locating something like ‘meta-yocto’ file to fix possible simple error in reference of: https://lists.yoctoproject.org/pipermail/yocto-builds/2012-February/012748.html
I still believe this didn’t actively fix anything but am sharing simply because I did it in between.
Possibility-2: Then I tried to simple printf for the joined msg array for quick visual check to see any abnormality and uncommented the below line, ‘#raise sherrors.ShellSyntaxError(’’.join(msg))
’, and bitbake-ed again. It was supposed to halted with the same error, but it didn’t. (oing??)
Finally I deleted the printf I put, and re-bitbaked, and since then, the error condition itself seems to be long gone…
If you can shed some light, that would be wonderful for the record, so I can delete this story of a bushy kicking in the darkest night…
[ERROR on bulding gcc-source-6.2.0-6.2.0-r0: remove the strings of Windows systems’ paths in PATH env var]
I first tried to fix adding escape char (’\’) in front of all the spaces and parentheses but eventually fed up finding solution for something like ‘Files\ \(x86\)’.
(WSL. I told you this will happen some day…)
Anyway, just deleted all those strings of Windows paths and gcc-source-6.2.0-6.2.0-r0 successfully compiled.
I did (this won’t work for you 'cause of ‘/home/sundew/’):
export PATH=/home/sundew/build-webos/meta-webosose/meta-webos/scripts:/home/sundew/build-webos/oe-core/scripts:/home/sundew/build-webos/BUILD/sysroots/x86_64-linux/usr/bin/arm-webos-linux-gnueabi:/home/sundew/build-webos/BUILD/sysroots/raspberrypi3/usr/bin/crossscripts:/home/sundew/build-webos/BUILD/sysroots/x86_64-linux/usr/sbin:/home/sundew/build-webos/BUILD/sysroots/x86_64-linux/usr/bin:/home/sundew/build-webos/BUILD/sysroots/x86_64-linux/sbin:/home/sundew/build-webos/BUILD/sysroots/x86_64-linux/bin:/home/sundew/build-webos/oe-core/scripts:/home/sundew/build-webos/bitbake/bin:/home/sundew/bin:/home/sundew/.local/bin:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/usr/games:/usr/local/games
[original post]
Have anyone tried to compile using WSL (Windows Subsystem for Linux)?
It’s Ubuntu 14.04 so I’m giving it a try.
Everything was smooth until I hit an error at ‘bitbake webos-image’:
There was single ERROR:
ERROR: Unable to parse /home/sundew/build-webos/meta-raspberrypi/recipes-kernel/linux/linux-raspberrypi_4.9.bb
But I confirmed that the file does exist at the specified path:
sundew@lenovo:~/build-webos$ ls -l /home/sundew/build-webos/meta-raspberrypi/recipes-kernel/linux/linux-raspberrypi_4.9.bb
-rw-rw-rw- 1 sundew sundew 509 Mar 20 16:06 /home/sundew/build-webos/meta-raspberrypi/recipes-kernel/linux/linux-raspberrypi_4.9.bb
I searched and here’s the closest I found though am not sure how to apply the proposed method ‘ignore and see what breaks’ for this codebase:
https://www.mail-archive.com/yocto@yoctoproject.org/msg38880.html
Maybe WSL falls into the same bucket as “NOT to use Linux virtual machine on Windows.” I don’t know.
Anything will help. Thanks.
[error dump]
sundew@lenovo:~/build-webos$ bitbake webos-image
Loading cache: 100% |####################################################################################| Time: 0:00:00
Loaded 17 entries from dependency cache.
WARNING: /home/sundew/build-webos/meta-raspberrypi/recipes-kernel/linux/linux-raspberrypi_4.9.bb: Exception during build_dependencies for do_kernel_metadata
WARNING: /home/sundew/build-webos/meta-raspberrypi/recipes-kernel/linux/linux-raspberrypi_4.9.bb: Error during finalise of /home/sundew/build-webos/meta-raspberrypi/recipes-kernel/linux/linux-raspberrypi_4.9.bb
WARNING: /home/sundew/build-webos/meta-raspberrypi/recipes-kernel/linux/linux-raspberrypi_4.4.bb: Exception during build_dependencies for do_kernel_metadata
WARNING: /home/sundew/build-webos/meta-raspberrypi/recipes-kernel/linux/linux-raspberrypi_4.4.bb: Error during finalise of /home/sundew/build-webos/meta-raspberrypi/recipes-kernel/linux/linux-raspberrypi_4.4.bb
ERROR: Unable to parse /home/sundew/build-webos/meta-raspberrypi/recipes-kernel/linux/linux-raspberrypi_4.9.bb
Traceback (most recent call last):
File “/home/sundew/build-webos/bitbake/lib/bb/codeparser.py”, line 341, in
[blah blah. not important…]
File “/home/sundew/build-webos/bitbake/lib/ply/yacc.py”, line 267, in LRParser.parse(input=None, lexer=<bb.pysh.pyshlex.PLYLexer object at 0x7ffa510755c0>, debug=False, tracking=0, tokenfunc=None):
else:
> return self.parseopt_notrack(input,lexer,debug,tracking,tokenfunc)
File “/home/sundew/build-webos/bitbake/lib/ply/yacc.py”, line 1049, in LRParser.parseopt_notrack(input=None, lexer=<bb.pysh.pyshlex.PLYLexer object at 0x7ffa510755c0>, debug=False, tracking=0, tokenfunc=None):
errtoken.lexer = lexer
> tok = self.errorfunc(errtoken)
del errok, token, restart # Delete special functions
File “/home/sundew/build-webos/bitbake/lib/bb/pysh/pyshyacc.py”, line 646, in p_error(p=LexToken(LPARENS,’(’,0,0)):
w(’ %r\n’ % n)
> raise sherrors.ShellSyntaxError(’’.join(msg))
bb.pysh.sherrors.ShellSyntaxError: LexToken(LPARENS,’(’,0,0)
followed by:
LexToken(TOKEN,‘x86’,0,0)
LexToken(RPARENS,’)’,0,0)
LexToken(TOKEN,’/Intel/iCLS’,0,0)
LexToken(TOKEN,‘Client:/mnt/c/Program’,0,0)
LexToken(TOKEN,‘Files/Intel/iCLS’,0,0)
Summary: There were 4 WARNING messages shown.
Summary: There was 1 ERROR message shown, returning a non-zero exit code.