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 fails on Ubuntu with kernel 6.8.0 #363

Closed
mareklab opened this issue Nov 18, 2024 · 5 comments
Closed

Build fails on Ubuntu with kernel 6.8.0 #363

mareklab opened this issue Nov 18, 2024 · 5 comments

Comments

@mareklab
Copy link

Just to let you know, the build fails on Ubuntu 24.04 TLS with kernel 6.8.0, I've tried both the latest gcc-13 and older gcc-11

  CC [M]  /root/tbs-driver/media_build/v4l/solo6x10-i2c.o
  CC [M]  /root/tbs-driver/media_build/v4l/solo6x10-p2m.o
  CC [M]  /root/tbs-driver/media_build/v4l/solo6x10-v4l2.o
  CC [M]  /root/tbs-driver/media_build/v4l/solo6x10-tw28.o
  CC [M]  /root/tbs-driver/media_build/v4l/solo6x10-gpio.o
  CC [M]  /root/tbs-driver/media_build/v4l/solo6x10-disp.o
  CC [M]  /root/tbs-driver/media_build/v4l/solo6x10-enc.o
  CC [M]  /root/tbs-driver/media_build/v4l/solo6x10-v4l2-enc.o
gcc-13: fatal error: Killed signal terminated program cc1
compilation terminated.
make[4]: *** [scripts/Makefile.build:243: /root/tbs-driver/media_build/v4l/solo6x10-p2m.o] Error 1
make[4]: *** Waiting for unfinished jobs....
gcc-13: fatal error: Killed signal terminated program cc1
compilation terminated.
make[4]: *** [scripts/Makefile.build:243: /root/tbs-driver/media_build/v4l/solo6x10-core.o] Error 1
gcc-13: fatal error: Killed signal terminated program cc1
compilation terminated.
make[4]: *** [scripts/Makefile.build:243: /root/tbs-driver/media_build/v4l/solo6x10-enc.o] Error 1
make[3]: *** [/usr/src/linux-headers-6.8.0-48-generic/Makefile:1925: /root/tbs-driver/media_build/v4l] Error 2
make[2]: *** [Makefile:240: __sub-make] Error 2
make[2]: Leaving directory '/usr/src/linux-headers-6.8.0-48-generic'
make[1]: *** [Makefile:53: default] Error 2
make[1]: Leaving directory '/root/tbs-driver/media_build/v4l'

Then it works fine on the same Ubuntu 24.04 TLS with my previous kernel 5.15, built with gcc-13

@crazycat69
Copy link

Some compiler bug.
What arch and RAM size ?

@mareklab
Copy link
Author

mareklab commented Nov 18, 2024

64-bit, RAM 4 GB, CPU i3, SSD

If it's compiler bugs, why the same compiler works fine with kernel 5.15?

@crazycat69
Copy link

swap enabled ?
#358

@mareklab
Copy link
Author

Sure. Let me test the swap utilization when it fails... (update coming soon)

@mareklab
Copy link
Author

mareklab commented Nov 19, 2024

Okay, you were right. The problem is make -j4 - since it runs 4 processes at once, it requires a lot of RAM to finish all build tasks.

There are 2 solutions: either just run make, or increase swap size (5GB worked for me, it failed with my initial 1GB)

Thanks for the hint!

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

2 participants