Advertisement
Guest User

sstate

a guest
May 2nd, 2024
141
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 15.84 KB | None | 0 0
  1. $ bitbake core-image-sato
  2. ERROR: Attempting to set server environment: Unable to update the server configuration with local parameters: Traceback (most recent call last):
  3. File "/home/andy/projects/yocto/test/poky/bitbake/lib/bb/command.py", line 90, in runCommand
  4. result = command_method(self, commandline)
  5. File "/home/andy/projects/yocto/test/poky/bitbake/lib/bb/command.py", line 290, in updateConfig
  6. command.cooker.updateConfigOpts(options, environment, cmdline)
  7. File "/home/andy/projects/yocto/test/poky/bitbake/lib/bb/cooker.py", line 461, in updateConfigOpts
  8. self.reset()
  9. File "/home/andy/projects/yocto/test/poky/bitbake/lib/bb/cooker.py", line 1736, in reset
  10. self.handlePRServ()
  11. File "/home/andy/projects/yocto/test/poky/bitbake/lib/bb/cooker.py", line 320, in handlePRServ
  12. client.ping()
  13. File "/home/andy/projects/yocto/test/poky/bitbake/lib/bb/asyncrpc/client.py", line 201, in wrapper
  14. return self.loop.run_until_complete(downcall(*args, **kwargs))
  15. File "/usr/lib/python3.10/asyncio/base_events.py", line 649, in run_until_complete
  16. return future.result()
  17. File "/home/andy/projects/yocto/test/poky/bitbake/lib/bb/asyncrpc/client.py", line 169, in ping
  18. return await self.invoke({"ping": {}})
  19. File "/home/andy/projects/yocto/test/poky/bitbake/lib/hashserv/client.py", line 51, in invoke
  20. return await super().invoke(*args, **kwargs)
  21. File "/home/andy/projects/yocto/test/poky/bitbake/lib/bb/asyncrpc/client.py", line 164, in invoke
  22. result = await self._send_wrapper(proc)
  23. File "/home/andy/projects/yocto/test/poky/bitbake/lib/bb/asyncrpc/client.py", line 138, in _send_wrapper
  24. await self.connect()
  25. File "/home/andy/projects/yocto/test/poky/bitbake/lib/bb/asyncrpc/client.py", line 123, in connect
  26. self.socket = await self._connect_sock()
  27. File "/home/andy/projects/yocto/test/poky/bitbake/lib/bb/asyncrpc/client.py", line 90, in connect_sock
  28. websocket = await websockets.connect(uri, ping_interval=None)
  29. File "/usr/lib/python3/dist-packages/websockets/legacy/client.py", line 622, in __await_impl__
  30. transport, protocol = await self._create_connection()
  31. File "/usr/lib/python3.10/asyncio/base_events.py", line 1103, in create_connection
  32. transport, protocol = await self._create_connection_transport(
  33. File "/usr/lib/python3.10/asyncio/base_events.py", line 1121, in _create_connection_transport
  34. protocol = protocol_factory()
  35. File "/usr/lib/python3/dist-packages/websockets/legacy/client.py", line 160, in __init__
  36. super().__init__(**kwargs)
  37. File "/usr/lib/python3/dist-packages/websockets/legacy/protocol.py", line 154, in __init__
  38. self._drain_lock = asyncio.Lock(
  39. File "/usr/lib/python3.10/asyncio/locks.py", line 78, in __init__
  40. super().__init__(loop=loop)
  41. File "/usr/lib/python3.10/asyncio/mixins.py", line 17, in __init__
  42. raise TypeError(
  43. TypeError: As of 3.10, the *loop* parameter was removed from Lock() since it is no longer necessary
  44.  
  45. $ cat conf/local.conf
  46. #
  47. # This file is your local configuration file and is where all local user settings
  48. # are placed. The comments in this file give some guide to the options a new user
  49. # to the system might want to change but pretty much any configuration option can
  50. # be set in this file. More adventurous users can look at
  51. # local.conf.sample.extended which contains other examples of configuration which
  52. # can be placed in this file but new users likely won't need any of them
  53. # initially. There's also site.conf.sample which contains examples of site specific
  54. # information such as proxy server addresses.
  55. #
  56. # Lines starting with the '#' character are commented out and in some cases the
  57. # default values are provided as comments to show people example syntax. Enabling
  58. # the option is a question of removing the # character and making any change to the
  59. # variable as required.
  60.  
  61. #
  62. # Machine Selection
  63. #
  64. # You need to select a specific machine to target the build with. There are a selection
  65. # of emulated machines available which can boot and run in the QEMU emulator:
  66. #
  67. #MACHINE ?= "qemuarm"
  68. #MACHINE ?= "qemuarm64"
  69. #MACHINE ?= "qemumips"
  70. #MACHINE ?= "qemumips64"
  71. #MACHINE ?= "qemuppc"
  72. #MACHINE ?= "qemux86"
  73. #MACHINE ?= "qemux86-64"
  74. #
  75. # There are also the following hardware board target machines included for
  76. # demonstration purposes:
  77. #
  78. #MACHINE ?= "beaglebone-yocto"
  79. #MACHINE ?= "genericarm64"
  80. #MACHINE ?= "genericx86"
  81. #MACHINE ?= "genericx86-64"
  82. #
  83. # This sets the default machine to be qemux86-64 if no other machine is selected:
  84. MACHINE ??= "qemux86-64"
  85.  
  86. # These are some of the more commonly used values. Looking at the files in the
  87. # meta/conf/machine directory, or the conf/machine directory of any additional layers
  88. # you add in will show all the available machines.
  89.  
  90. #
  91. # Where to place downloads
  92. #
  93. # During a first build the system will download many different source code tarballs
  94. # from various upstream projects. This can take a while, particularly if your network
  95. # connection is slow. These are all stored in DL_DIR. When wiping and rebuilding you
  96. # can preserve this directory to speed up this part of subsequent builds. This directory
  97. # is safe to share between multiple builds on the same machine too.
  98. #
  99. # The default is a downloads directory under TOPDIR which is the build directory.
  100. #
  101. #DL_DIR ?= "${TOPDIR}/downloads"
  102.  
  103. #
  104. # Where to place shared-state files
  105. #
  106. # BitBake has the capability to accelerate builds based on previously built output.
  107. # This is done using "shared state" files which can be thought of as cache objects
  108. # and this option determines where those files are placed.
  109. #
  110. # You can wipe out TMPDIR leaving this directory intact and the build would regenerate
  111. # from these files if no changes were made to the configuration. If changes were made
  112. # to the configuration, only shared state files where the state was still valid would
  113. # be used (done using checksums).
  114. #
  115. # The default is a sstate-cache directory under TOPDIR.
  116. #
  117. #SSTATE_DIR ?= "${TOPDIR}/sstate-cache"
  118.  
  119. #
  120. # Where to place the build output
  121. #
  122. # This option specifies where the bulk of the building work should be done and
  123. # where BitBake should place its temporary files and output. Keep in mind that
  124. # this includes the extraction and compilation of many applications and the toolchain
  125. # which can use Gigabytes of hard disk space.
  126. #
  127. # The default is a tmp directory under TOPDIR.
  128. #
  129. #TMPDIR = "${TOPDIR}/tmp"
  130.  
  131. #
  132. # Default policy config
  133. #
  134. # The distribution setting controls which policy settings are used as defaults.
  135. # The default value is fine for general Yocto project use, at least initially.
  136. # Ultimately when creating custom policy, people will likely end up subclassing
  137. # these defaults.
  138. #
  139. DISTRO ?= "poky"
  140. # As an example of a subclass there is a "bleeding" edge policy configuration
  141. # where many versions are set to the absolute latest code from the upstream
  142. # source control systems. This is just mentioned here as an example, its not
  143. # useful to most new users.
  144. # DISTRO ?= "poky-bleeding"
  145.  
  146. #
  147. # Package Management configuration
  148. #
  149. # This variable lists which packaging formats to enable. Multiple package backends
  150. # can be enabled at once and the first item listed in the variable will be used
  151. # to generate the root filesystems.
  152. # Options are:
  153. # - 'package_deb' for debian style deb files
  154. # - 'package_ipk' for ipk files are used by opkg (a debian style embedded package manager)
  155. # - 'package_rpm' for rpm style packages
  156. # E.g.: PACKAGE_CLASSES ?= "package_rpm package_deb package_ipk"
  157. # OE-Core defaults to ipkg, whilst Poky defaults to rpm:
  158. # PACKAGE_CLASSES ?= "package_rpm"
  159.  
  160. #
  161. # SDK target architecture
  162. #
  163. # This variable specifies the architecture to build SDK items for and means
  164. # you can build the SDK packages for architectures other than the machine you are
  165. # running the build on (i.e. building i686 packages on an x86_64 host).
  166. # Supported values are i686, x86_64, aarch64
  167. #SDKMACHINE ?= "i686"
  168.  
  169. #
  170. # Extra image configuration defaults
  171. #
  172. # The EXTRA_IMAGE_FEATURES variable allows extra packages to be added to the generated
  173. # images. Some of these options are added to certain image types automatically. The
  174. # variable can contain the following options:
  175. # "dbg-pkgs" - add -dbg packages for all installed packages
  176. # (adds symbol information for debugging/profiling)
  177. # "src-pkgs" - add -src packages for all installed packages
  178. # (adds source code for debugging)
  179. # "dev-pkgs" - add -dev packages for all installed packages
  180. # (useful if you want to develop against libs in the image)
  181. # "ptest-pkgs" - add -ptest packages for all ptest-enabled packages
  182. # (useful if you want to run the package test suites)
  183. # "tools-sdk" - add development tools (gcc, make, pkgconfig etc.)
  184. # "tools-debug" - add debugging tools (gdb, strace)
  185. # "eclipse-debug" - add Eclipse remote debugging support
  186. # "tools-profile" - add profiling tools (oprofile, lttng, valgrind)
  187. # "tools-testapps" - add useful testing tools (ts_print, aplay, arecord etc.)
  188. # "debug-tweaks" - make an image suitable for development
  189. # e.g. ssh root access has a blank password
  190. # There are other application targets that can be used here too, see
  191. # meta/classes-recipe/image.bbclass and
  192. # meta/classes-recipe/core-image.bbclass for more details.
  193. # We default to enabling the debugging tweaks.
  194. EXTRA_IMAGE_FEATURES ?= "debug-tweaks"
  195.  
  196. #
  197. # Additional image features
  198. #
  199. # The following is a list of additional classes to use when building images which
  200. # enable extra features. Some available options which can be included in this variable
  201. # are:
  202. # - 'buildstats' collect build statistics
  203. USER_CLASSES ?= "buildstats"
  204.  
  205. #
  206. # Runtime testing of images
  207. #
  208. # The build system can test booting virtual machine images under qemu (an emulator)
  209. # after any root filesystems are created and run tests against those images. It can also
  210. # run tests against any SDK that are built. To enable this uncomment these lines.
  211. # See meta/classes-recipe/test{image,sdk}.bbclass for further details.
  212. #IMAGE_CLASSES += "testimage testsdk"
  213. #TESTIMAGE_AUTO:qemuall = "1"
  214.  
  215. #
  216. # Interactive shell configuration
  217. #
  218. # Under certain circumstances the system may need input from you and to do this it
  219. # can launch an interactive shell. It needs to do this since the build is
  220. # multithreaded and needs to be able to handle the case where more than one parallel
  221. # process may require the user's attention. The default is iterate over the available
  222. # terminal types to find one that works.
  223. #
  224. # Examples of the occasions this may happen are when resolving patches which cannot
  225. # be applied, to use the devshell or the kernel menuconfig
  226. #
  227. # Supported values are auto, gnome, xfce, rxvt, screen, konsole (KDE 3.x only), none
  228. # Note: currently, Konsole support only works for KDE 3.x due to the way
  229. # newer Konsole versions behave
  230. #OE_TERMINAL = "auto"
  231. # By default disable interactive patch resolution (tasks will just fail instead):
  232. PATCHRESOLVE = "noop"
  233.  
  234. #
  235. # Disk Space Monitoring during the build
  236. #
  237. # Monitor the disk space during the build. If there is less that 1GB of space or less
  238. # than 100K inodes in any key build location (TMPDIR, DL_DIR, SSTATE_DIR), gracefully
  239. # shutdown the build. If there is less than 100MB or 1K inodes, perform a hard halt
  240. # of the build. The reason for this is that running completely out of space can corrupt
  241. # files and damages the build in ways which may not be easily recoverable.
  242. # It's necessary to monitor /tmp, if there is no space left the build will fail
  243. # with very exotic errors.
  244. BB_DISKMON_DIRS ??= "\
  245. STOPTASKS,${TMPDIR},1G,100K \
  246. STOPTASKS,${DL_DIR},1G,100K \
  247. STOPTASKS,${SSTATE_DIR},1G,100K \
  248. STOPTASKS,/tmp,100M,100K \
  249. HALT,${TMPDIR},100M,1K \
  250. HALT,${DL_DIR},100M,1K \
  251. HALT,${SSTATE_DIR},100M,1K \
  252. HALT,/tmp,10M,1K"
  253.  
  254. #
  255. # Shared-state files from other locations
  256. #
  257. # As mentioned above, shared state files are prebuilt cache data objects which can be
  258. # used to accelerate build time. This variable can be used to configure the system
  259. # to search other mirror locations for these objects before it builds the data itself.
  260. #
  261. # This can be a filesystem directory, or a remote url such as https or ftp. These
  262. # would contain the sstate-cache results from previous builds (possibly from other
  263. # machines). This variable works like fetcher MIRRORS/PREMIRRORS and points to the
  264. # cache locations to check for the shared objects.
  265. # NOTE: if the mirror uses the same structure as SSTATE_DIR, you need to add PATH
  266. # at the end as shown in the examples below. This will be substituted with the
  267. # correct path within the directory structure.
  268. #SSTATE_MIRRORS ?= "\
  269. #file://.* https://someserver.tld/share/sstate/PATH;downloadfilename=PATH \
  270. #file://.* file:///some/local/dir/sstate/PATH"
  271.  
  272. #
  273. # Yocto Project SState Mirror
  274. #
  275. # The Yocto Project has prebuilt artefacts available for its releases, you can enable
  276. # use of these by uncommenting some of the following lines. This will mean the build uses
  277. # the network to check for artefacts at the start of builds, which does slow it down
  278. # initially but it will then speed up the builds by not having to build things if they are
  279. # present in the cache. It assumes you can download something faster than you can build it
  280. # which will depend on your network.
  281. # Note: For this to work you also need hash-equivalence passthrough to the matching server
  282. # There is a choice between our sstate server directly and a faster content delivery network
  283. # (CDN) kindly provided by JSDelivr, uncomment one of the SSTATE_MIRRORS lines, not both.
  284. # Using the CDN rather than the yoctoproject.org address is suggested/preferred.
  285. #
  286. #BB_HASHSERVE_UPSTREAM = 'wss://hashserv.yoctoproject.org/ws'
  287. #SSTATE_MIRRORS ?= "file://.* http://cdn.jsdelivr.net/yocto/sstate/all/PATH;downloadfilename=PATH"
  288. #
  289. ###SSTATE_MIRRORS ?= "file://.* http://sstate.yoctoproject.org/all/PATH;downloadfilename=PATH"
  290.  
  291. BB_HASHSERVE_UPSTREAM = "wss://hashserv.yoctoproject.org/ws"
  292. SSTATE_MIRRORS ?= "file://.* http://cdn.jsdelivr.net/yocto/sstate/all/PATH;downloadfilename=PATH"
  293. BB_HASHSERVE = "auto"
  294. BB_SIGNATURE_HANDLER = "OEEquivHash"
  295.  
  296.  
  297. #
  298. # Qemu configuration
  299. #
  300. # By default native qemu will build with a builtin VNC server where graphical output can be
  301. # seen. The line below enables the SDL UI frontend too.
  302. PACKAGECONFIG:append:pn-qemu-system-native = " sdl"
  303. # By default libsdl2-native will be built, if you want to use your host's libSDL instead of
  304. # the minimal libsdl built by libsdl2-native then uncomment the ASSUME_PROVIDED line below.
  305. #ASSUME_PROVIDED += "libsdl2-native"
  306.  
  307. # You can also enable the Gtk UI frontend, which takes somewhat longer to build, but adds
  308. # a handy set of menus for controlling the emulator.
  309. #PACKAGECONFIG:append:pn-qemu-system-native = " gtk+"
  310.  
  311. #
  312. # Hash Equivalence
  313. #
  314. # Enable support for automatically running a local hash equivalence server and
  315. # instruct bitbake to use a hash equivalence aware signature generator. Hash
  316. # equivalence improves reuse of sstate by detecting when a given sstate
  317. # artifact can be reused as equivalent, even if the current task hash doesn't
  318. # match the one that generated the artifact.
  319. #
  320. # A shared hash equivalent server can be set with "<HOSTNAME>:<PORT>" format
  321. #
  322. #BB_HASHSERVE = "auto"
  323. #BB_SIGNATURE_HANDLER = "OEEquivHash"
  324.  
  325. #
  326. # Memory Resident Bitbake
  327. #
  328. # Bitbake's server component can stay in memory after the UI for the current command
  329. # has completed. This means subsequent commands can run faster since there is no need
  330. # for bitbake to reload cache files and so on. Number is in seconds, after which the
  331. # server will shut down.
  332. #
  333. #BB_SERVER_TIMEOUT = "60"
  334.  
  335. # CONF_VERSION is increased each time build/conf/ changes incompatibly and is used to
  336. # track the version of this file when it was generated. This can safely be ignored if
  337. # this doesn't mean anything to you.
  338. CONF_VERSION = "2"
  339.  
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement