buildroot icon indicating copy to clipboard operation
buildroot copied to clipboard

Build failed

Open jcoonrod opened this issue 4 years ago • 23 comments

Describe the bug I followed the instructions to try a build today with the current master

What kind of a bug is it? Make halted To Reproduce Steps to reproduce the behavior:

  1. Followed instructions through the make command.

Expected behavior A clear and concise description of what you expected to happen. Expected a build Screenshots Halted with these error.. CC libgdk_3_la-gdkmarshalers.lo make[6]: *** No rule to make target 'Gdk-3.0.typelib', needed by 'all-am'. Stop. make[6]: *** Waiting for unfinished jobs.... CC libgdk_3_la-gdkresources.lo make[5]: *** [Makefile:1663: all-recursive] Error 1 make[4]: *** [Makefile:1092: all] Error 2 make[3]: *** [Makefile:746: all-recursive] Error 1 make[2]: *** [Makefile:619: all] Error 2 make[1]: *** [package/pkg-generic.mk:270: /home/john/buildroot/output/build/libgtk3-3.24.30/.stamp_built] Error 2 make: *** [Makefile:84: _all] Error 2

Desktop (please complete the following information):

  • OS: Ubuntu 20
  • Device: [Asus PN41 mini pc

Additional context Add any other context about the problem here.

jcoonrod avatar Feb 10 '22 03:02 jcoonrod

Are the GTK development libraries installed?

nmcain avatar Feb 10 '22 03:02 nmcain

For clarification, this is an issue with upstream GTK, it appears gobject-introspection is missing on the host device, as far as I can tell.

nmcain avatar Feb 10 '22 07:02 nmcain

Ok! I'll figure out how to add that and try again and revert! Thanks for the quick response.

jcoonrod avatar Feb 10 '22 16:02 jcoonrod

It should be a relatively quick sudo apt install gobject-introspection, I remember a related error when I was building regarding it, I'll have to look back and see what I did.

nmcain avatar Feb 10 '22 17:02 nmcain

Thanks - maybe good to add that to the pre-requisites list.

jcoonrod avatar Feb 10 '22 18:02 jcoonrod

Got a bit further.. d /home/john/buildroot/output/build/dap-latest&&dart pub get&&dart compile exe bin/pkg.dart&&cp bin/pkg.exe dap /bin/bash: dart: command not found make[1]: *** [package/pkg-generic.mk:270: /home/john/buildroot/output/build/dap-latest/.stamp_built] Error 127 make: *** [Makefile:84: _all] Error 2

Why would it be looking for a .exe file?

jcoonrod avatar Feb 10 '22 19:02 jcoonrod

If you use dart compile exe bin/pkg.dart it generates a file called pkg.exe. In your case you don't have dart installed and thats why it can't build and find pkg.exe. For more info see https://dart.dev/.

quintenvandamme avatar Feb 10 '22 19:02 quintenvandamme

but is that something I can control or do I need to change your build files?

jcoonrod avatar Feb 10 '22 20:02 jcoonrod

just install dart and rerun it

quintenvandamme avatar Feb 10 '22 20:02 quintenvandamme

The dap package can be disabled in menu config, make menuconfig, go to target packages - dahliaOS applications - and unselect dap

nmcain avatar Feb 10 '22 20:02 nmcain

Thanks for the quick responses! Installed dart. This is wonderfully mesmerizing watching it all stream by in the terminal. Have you all considered switching to the rust version of coreutils instead of the c ones?

jcoonrod avatar Feb 10 '22 20:02 jcoonrod

I'd certainly like to make the switch at some point, not sure how complete the rust coreutils are at this point, though.

nmcain avatar Feb 10 '22 20:02 nmcain

Oops - one more pre-requesite needed. /bin/bash: flutter: command not found make[1]: *** [package/pkg-generic.mk:270: /home/john/buildroot/output/build/pangolin_desktop/.stamp_built] Error 127 make: *** [Makefile:84: _all] Error 2

Try try again! Oops - this one has me baffled - do I need to delete stuff before restarting make? fatal: destination path 'pangolin_desktop' already exists and is not an empty directory. make[1]: *** [package/pkg-generic.mk:270: /home/john/buildroot/output/build/pangolin_desktop/.stamp_built] Error 128 make: *** [Makefile:84: _all] Error 2

jcoonrod avatar Feb 10 '22 21:02 jcoonrod

Ok - that sort of worked, then this happened: [ +4 ms] "flutter linux" took 2,668ms. [ +4 ms] Error: No pubspec.yaml file found. This command should be run from the root of your Flutter project. [ ]

jcoonrod avatar Feb 10 '22 21:02 jcoonrod

From here, when the pangolin step errors out, you'll need to rm -rf output/build/pangolin*, the script is not written to clean itself up.

nmcain avatar Feb 10 '22 22:02 nmcain

Yes, I did that - it led to some progress, but what do I do about the missing yaml file?

jcoonrod avatar Feb 10 '22 23:02 jcoonrod

The missing yaml file should not be causing a problem, you can try rm -rf dl/pangolin*&&rm -rf output/build/pangolin*

nmcain avatar Feb 11 '22 00:02 nmcain

Ok, had to issue another pre-requisite command: flutter config --enable-linux-desktop That let make get it to go pretty close to the end, and then it failed with make[1]: *** [fs/cpio/cpio.mk:75: /home/john/buildroot/output/images/rootfs.cpio] Error 137 make: *** [Makefile:84: _all] Error 2 Looked this up - an "Out of memory" error (I just have 4gig - will buy more tomorrow!)

jcoonrod avatar Feb 11 '22 04:02 jcoonrod

Yeah, this process is significantly resource intensive, but it looks like your build completed successfully and has moved on to image packaging. The CPIO image is only required for the legacy image - if you just want an EFI image, you can turn off CPIO and ISO9660 in filesystem options, I'm not sure how the BTRFS image tool works in low-memory environments. Thanks for making this issue, it will be a very helpful reference in making our builds completely reproducible :)

nmcain avatar Feb 11 '22 05:02 nmcain

Hello! OK! Installed more memory and the make completed with an iso and an img file in buildroot/output/images/dahliaOS - I used dd to create a bootable USB stick and it did a panic after finding no init. What should I try next PXL_20220213_205104607 ?

jcoonrod avatar Feb 13 '22 20:02 jcoonrod

Try source ~/.profile

larsb24 avatar Feb 13 '22 21:02 larsb24

On the build machine, check that an init system is selected under target options

nmcain avatar Feb 13 '22 21:02 nmcain

I could not find that option in the config manager - Target options were just machine types like x64...

jcoonrod avatar Feb 13 '22 22:02 jcoonrod