Bug 1034897 - RFE support building 64 bit kernel on 32 bit OS
Summary: RFE support building 64 bit kernel on 32 bit OS
Keywords:
Status: CLOSED NOTABUG
Alias: None
Product: Fedora
Classification: Fedora
Component: gcc
Version: rawhide
Hardware: Unspecified
OS: Unspecified
unspecified
unspecified
Target Milestone: ---
Assignee: Jakub Jelinek
QA Contact: Fedora Extras Quality Assurance
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2013-11-26 16:45 UTC by Michael S. Tsirkin
Modified: 2013-12-07 08:42 UTC (History)
2 users (show)

Fixed In Version:
Doc Type: Bug Fix
Doc Text:
Clone Of:
Environment:
Last Closed: 2013-12-07 08:42:45 UTC
Type: Bug


Attachments (Terms of Use)

Description Michael S. Tsirkin 2013-11-26 16:45:39 UTC
Description of problem:
on debian/ubuntu, gcc supports -m 64 flag well enough to
cross-build a 64 bit kernel on a 32 bit OS by using 

Version-Release number of selected component (if applicable):
gcc (GCC) 4.8.2 20131017 (Red Hat 4.8.2-1)


How reproducible:
always

Steps to Reproduce:
1. create a small c file e.g. echo 'void foo(void) {}' > x.c
2. compile with -m 64: gcc -c -m64 -o x.o x.c
3
Actual results:
$ gcc -c -m64 x.c
x.c:1:0: sorry, unimplemented: 64-bit mode not compiled in


Expected results:
create 64 bit object file

Additional info:
this is a requirement for using 64 bit kernels in 32 bit
fedora which I'd like to make work again:
you must be able to build the kernel you are using.

Comment 1 Michael S. Tsirkin 2013-11-26 16:46:11 UTC
note: works on debian and ubuntu

Comment 2 Jakub Jelinek 2013-12-07 08:42:45 UTC
Just install cross-gcc then.


Note You need to log in before you can comment on or make changes to this bug.