Skip to content
This repository has been archived by the owner on Feb 24, 2020. It is now read-only.

kvm: fix for breaking change in Debian Sid GCC default options #3354

Merged
merged 1 commit into from
Nov 9, 2016

Conversation

lukasredynk
Copy link
Contributor

@lukasredynk lukasredynk commented Nov 8, 2016

With change introduced to Debian Sid default gcc flags: https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=841368 both lkvm and linux kernel wouldn't compile, here is fix for this.

Fixes #3343

@lucab
Copy link
Member

lucab commented Nov 8, 2016

Thanks @jjlakis and @lukasredynk for the very quick investigation and fix.

Assigning to @s-urbaniak for the final review.

@s-urbaniak
Copy link
Contributor

I tested this with the 1.1.1 rkt-builder, and the build is working again, thanks a lot!

AS = $(CROSS_COMPILE)as
LD = $(CROSS_COMPILE)ld
-CC = $(CROSS_COMPILE)gcc
+CC = $(CROSS_COMPILE)gcc -no-pie -fno-pic
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

As this has been discussed also in https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=841368#36 and other places I am fine with this change, as the kernel apparently doesn't support pic mode.

@s-urbaniak s-urbaniak merged commit 76a94a3 into rkt:master Nov 9, 2016
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

lkvm stage1 doesn't build
3 participants