Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Build failed #15

Open
jcoonrod opened this issue Feb 10, 2022 · 23 comments
Open

Build failed #15

jcoonrod opened this issue Feb 10, 2022 · 23 comments

Comments

@jcoonrod
Copy link

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.

@nmcain
Copy link
Member

nmcain commented Feb 10, 2022

Are the GTK development libraries installed?

@nmcain
Copy link
Member

nmcain commented Feb 10, 2022

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.

@jcoonrod
Copy link
Author

jcoonrod commented Feb 10, 2022

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

@nmcain
Copy link
Member

nmcain commented Feb 10, 2022

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.

@jcoonrod
Copy link
Author

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

@jcoonrod
Copy link
Author

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?

@quintenvandamme
Copy link
Member

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/.

@jcoonrod
Copy link
Author

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

@quintenvandamme
Copy link
Member

just install dart and rerun it

@nmcain
Copy link
Member

nmcain commented Feb 10, 2022

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

@jcoonrod
Copy link
Author

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?

@nmcain
Copy link
Member

nmcain commented Feb 10, 2022

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

@jcoonrod
Copy link
Author

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
Copy link
Author

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.
[ ]

@nmcain
Copy link
Member

nmcain commented Feb 10, 2022

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.

@jcoonrod
Copy link
Author

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

@nmcain
Copy link
Member

nmcain commented Feb 11, 2022

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

@jcoonrod
Copy link
Author

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!)

@nmcain
Copy link
Member

nmcain commented Feb 11, 2022

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 :)

@jcoonrod
Copy link
Author

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
?

@larsb24
Copy link
Member

larsb24 commented Feb 13, 2022

Try source ~/.profile

@nmcain
Copy link
Member

nmcain commented Feb 13, 2022

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

@jcoonrod
Copy link
Author

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

4 participants