Bug List: (This bug is not in your last search results)   Show last search results      Search page      Enter new bug
Bug#: 175264
Alias:
Product:
Component:
Status: RESOLVED
Resolution: FIXED
Assigned To: Daniel Drake <dsd@gentoo.org>
Hardware:
OS:
Version:
Priority:
Severity:
Reporter: Bryan Østergaard (RETIRED) <kloeri@gentoo.org>
Add CC:
CC:
Remove selected CCs
URL:
Summary:
Status Whiteboard:
Keywords:

Filename Description Type Creator Created Size Actions
alpha-mcpu.patch Suggested patch changing mcpu for generic system type patch Bryan Østergaard (RETIRED) 2007-04-19 19:56 0000 424 bytes Details | Diff
linux-headers-asm.diff Alpha linux-headers diff to fix asm patch Brian Evans 2007-04-20 12:45 0000 681 bytes Details | Diff
gentoo-sources-asm-patch.diff Alpha kernel sources asm patch patch Brian Evans 2007-04-20 12:46 0000 502 bytes Details | Diff
Create a New Attachment (proposed patch, testcase, etc.) View All

Bug 175264 depends on: Show dependency tree
Bug 175264 blocks:
Votes: 0    Show votes for this bug    Vote for this bug

Additional Comments: (this is where you put emerge --info)


Not eligible to see or edit group visibility for this bug.






View Bug Activity   |   Format For Printing   |   XML   |   Clone This Bug


Description:   Opened: 2007-04-19 19:55 0000
gcc-4.1 emits .arch ev5 directives when using -mcpu less than ev56 which in
turn breaks compiling of generic system type alpha kernels.

See http://lists.debian.org/debian-alpha/2006/11/msg00014.html and
http://gcc.gnu.org/ml/gcc/2005-07/msg00371.html threads for lots of details on
this problem.

I suggest simply changing mcpu=ev5 to mcpu=ev56 in arch/alpha/Makefile for
generic system type to solve this.

------- Comment #1 From Bryan Østergaard (RETIRED) 2007-04-19 19:56:44 0000 -------
Created an attachment (id=116756) [details]
Suggested patch changing mcpu for generic system type

------- Comment #2 From Brian Evans 2007-04-20 12:42:46 0000 -------
Hi, I've been working with kloeri on this as I'm soon to be an AT for alpha.

I read through the posts mentioned in kloeri's comments.

It seems that gcc4+ ignores the compile as (-Wa,m(arch)) when -mcpu=(arch) is
used.  Many times this would not be an issue due to greater than or equal
arches.

Alpha Kernel is done differently and compiles for a lesser arch than the
assembler is looking for.  As such, propose 2 diffs to fix this issue.

One for linux-headers and another for sources.

------- Comment #3 From Brian Evans 2007-04-20 12:45:32 0000 -------
Created an attachment (id=116790) [details]
Alpha linux-headers diff to fix asm

------- Comment #4 From Brian Evans 2007-04-20 12:46:16 0000 -------
Created an attachment (id=116791) [details]
Alpha kernel sources asm patch

------- Comment #5 From Bryan Østergaard (RETIRED) 2007-04-23 13:19:14 0000 -------
(From update of attachment 116756 [details])
First patch obsoleted by new patches from Brian Evans.

------- Comment #6 From Brian Evans 2007-04-30 13:20:10 0000 -------
vanilla-sources 2.6.21 fixes this issue

------- Comment #7 From Ricardo Salveti 2007-05-04 02:07:43 0000 -------
I searched at the Linus' tree and found the commit that probably fix this
problem:
http://git.kernel.org/?p=linux/kernel/git/torvalds/linux-2.6.git;a=commitdiff_plain;h=88ed39b064575b4f42ecb737ec2daa66717de173;hp=7fc1a1abc1eca1278d6d37ec54b72005d15b5c1e

I download it and the patch was successfully applied on 2.6.20.

------- Comment #8 From Daniel Drake 2007-06-12 13:24:19 0000 -------
alpha marked 2.6.21 stable so I assume we can close this now

Bug List: (This bug is not in your last search results)   Show last search results      Search page      Enter new bug