[Bug 669912] Re: natty gcc-4.5 kernel (2.6.37-rc1) build failure

2011-01-24 Thread John Rigby
** Changed in: linux (Ubuntu)
   Status: Incomplete = Fix Released

-- 
You received this bug notification because you are a member of Ubuntu
Bugs, which is subscribed to Ubuntu.
https://bugs.launchpad.net/bugs/669912

Title:
  natty gcc-4.5 kernel (2.6.37-rc1) build failure

-- 
ubuntu-bugs mailing list
ubuntu-bugs@lists.ubuntu.com
https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs


[Bug 669912] Re: natty gcc-4.5 kernel (2.6.37-rc1) build failure

2011-01-12 Thread Jeremy Foshee
Hi Robert,

Please be sure to confirm this issue exists with the latest development release 
of Ubuntu.  ISO CD images are available from 
http://cdimage.ubuntu.com/daily/current/ .  If the issue remains, please run 
the following command from a Terminal (Applications-Accessories-Terminal).  
It will automatically gather and attach updated debug information to this 
report.

apport-collect -p linux 669912

Also, if you could test the latest upstream kernel available that would be 
great.  It will allow additional upstream developers to examine the issue.  
Refer to https://wiki.ubuntu.com/KernelMainlineBuilds .  Once you've tested the 
upstream kernel, please remove the 'needs-upstream-testing' tag.  This can be 
done by clicking on the yellow pencil icon next to the tag located at the 
bottom of the bug description and deleting the 'needs-upstream-testing' text.  
Please let us know your results.

Thanks in advance.

[This is an automated message.  Apologies if it has reached you 
inappropriately; please just reply to this message indicating so.]


** Tags added: needs-kernel-logs

** Tags added: needs-upstream-testing

** Tags added: kj-triage

** Changed in: linux (Ubuntu)
   Status: New = Incomplete

-- 
You received this bug notification because you are a member of Ubuntu
Bugs, which is subscribed to Ubuntu.
https://bugs.launchpad.net/bugs/669912

Title:
  natty gcc-4.5 kernel (2.6.37-rc1) build failure

-- 
ubuntu-bugs mailing list
ubuntu-bugs@lists.ubuntu.com
https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs


[Bug 669912] Re: natty gcc-4.5 kernel (2.6.37-rc1) build failure

2010-12-19 Thread Ricardo Salveti
Robert, were you able to check if these patches fix your issue?

-- 
You received this bug notification because you are a member of Ubuntu
Bugs, which is subscribed to Ubuntu.
https://bugs.launchpad.net/bugs/669912

Title:
  natty gcc-4.5 kernel (2.6.37-rc1) build failure

-- 
ubuntu-bugs mailing list
ubuntu-bugs@lists.ubuntu.com
https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs


[Bug 669912] Re: natty gcc-4.5 kernel (2.6.37-rc1) build failure

2010-12-19 Thread Robert Nelson
Hi Ricardo,

Yeap, this patch fixes the issue i was seeing with building both 2.6.35
and 2.6.37-rc's in natty..  and no regressions on the old userspaces,
(lenny/karmic)..

I haven't seen a need for the 2nd one, AFLAGS_sleep44xx.o
:=-Wa,-march=armv7-a$(plus_sec) as i don't have the omap4 power
management stuff as you guys..

With the merge 2.6.38 merge on the horizon, we better get this in.. ;)

-- 
You received this bug notification because you are a member of Ubuntu
Bugs, which is subscribed to Ubuntu.
https://bugs.launchpad.net/bugs/669912

Title:
  natty gcc-4.5 kernel (2.6.37-rc1) build failure

-- 
ubuntu-bugs mailing list
ubuntu-bugs@lists.ubuntu.com
https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs


[Bug 669912] Re: natty gcc-4.5 kernel (2.6.37-rc1) build failure

2010-12-14 Thread Ricardo Salveti
The change at comment #10 is the one now being used by natty's omap 4
kernel: http://kernel.ubuntu.com/git?p=ubuntu/ubuntu-
natty.git;a=commitdiff;h=1ebe13dea156358f1044a7a755f02945ad3890e4;hp=f31ff7673ef77d04e74e1a1e45bb2940781f35f0

Plus http://kernel.ubuntu.com/git?p=ubuntu/ubuntu-
natty.git;a=commitdiff;h=99340d7b23f3df75d9b752fb25088a10064cd0a6;hp=9523bd6810e0229a8147e8c3d6498e2f40b38974

-- 
You received this bug notification because you are a member of Ubuntu
Bugs, which is subscribed to Ubuntu.
https://bugs.launchpad.net/bugs/669912

Title:
  natty gcc-4.5 kernel (2.6.37-rc1) build failure

-- 
ubuntu-bugs mailing list
ubuntu-bugs@lists.ubuntu.com
https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs


[Bug 669912] Re: natty gcc-4.5 kernel (2.6.37-rc1) build failure

2010-12-10 Thread Matthias Klose
closing the gcc-4.5 task

** Changed in: gcc-4.5 (Ubuntu)
   Status: New = Invalid

-- 
You received this bug notification because you are a member of Ubuntu
Bugs, which is subscribed to Ubuntu.
https://bugs.launchpad.net/bugs/669912

Title:
  natty gcc-4.5 kernel (2.6.37-rc1) build failure

-- 
ubuntu-bugs mailing list
ubuntu-bugs@lists.ubuntu.com
https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs


[Bug 669912] Re: natty gcc-4.5 kernel (2.6.37-rc1) build failure

2010-11-30 Thread Anand Gadiyar
Does reverting commit df571c4ab32da9bc05a7db98516fc06ef3cdc5d1 (omap4:
Fix build break when used with gcc-4.4.1 (2009-q3) ) help?

-- 
natty gcc-4.5 kernel (2.6.37-rc1) build failure
https://bugs.launchpad.net/bugs/669912
You received this bug notification because you are a member of Ubuntu
Bugs, which is subscribed to Ubuntu.

-- 
ubuntu-bugs mailing list
ubuntu-bugs@lists.ubuntu.com
https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs


[Bug 669912] Re: natty gcc-4.5 kernel (2.6.37-rc1) build failure

2010-11-30 Thread Robert Nelson
Hi Anand,

No luck, using 2.6.37-rc3, and manually reverting that commit (changed
smc #0 to smc)..

  CC  arch/arm/mach-omap2/prm44xx.o
  CC  arch/arm/mach-omap2/mcbsp.o
  CC  arch/arm/mach-omap2/omap-smp.o
  AS  arch/arm/mach-omap2/omap-headsmp.o
arch/arm/mach-omap2/omap-headsmp.S: Assembler messages:
arch/arm/mach-omap2/omap-headsmp.S:36: Error: selected processor does not 
support ARM mode `smc'
make[1]: *** [arch/arm/mach-omap2/omap-headsmp.o] Error 1
make: *** [arch/arm/mach-omap2] Error 2
voo...@beagle-256mb-1:~/omap4-kernel/linux-2.6.37-rc3$ cat 
arch/arm/mach-omap2/omap-headsmp.S | grep smc
smc @ read from AuxCoreBoot0

using natty's: gcc version 4.5.2 (Ubuntu/Linaro 4.5.1-10ubuntu3)

-- 
natty gcc-4.5 kernel (2.6.37-rc1) build failure
https://bugs.launchpad.net/bugs/669912
You received this bug notification because you are a member of Ubuntu
Bugs, which is subscribed to Ubuntu.

-- 
ubuntu-bugs mailing list
ubuntu-bugs@lists.ubuntu.com
https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs


[Bug 669912] Re: natty gcc-4.5 kernel (2.6.37-rc1) build failure

2010-11-30 Thread Robert Nelson
It might be the wrong rabbit hole, but there were some tweaks to 'smc'
in binutils's changelog:

http://bazaar.launchpad.net/~vcs-imports/binutils/master/revision/22100

http://sourceware.org/cgi-bin/cvsweb.cgi/src/gas/config/tc-
arm.c.diff?r1=1.464r2=1.465cvsroot=srcf=h

-- 
natty gcc-4.5 kernel (2.6.37-rc1) build failure
https://bugs.launchpad.net/bugs/669912
You received this bug notification because you are a member of Ubuntu
Bugs, which is subscribed to Ubuntu.

-- 
ubuntu-bugs mailing list
ubuntu-bugs@lists.ubuntu.com
https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs


[Bug 669912] Re: natty gcc-4.5 kernel (2.6.37-rc1) build failure

2010-11-30 Thread Michael Hope
My reading of this is that 'smc' isn't in the base Cortex-A profile but
requires the security extensions present.  I think this can be enabled
using '-march=armv7-a+sec' or (preferably) adding '.arch_extension sec'
to the assembly code.

-- 
natty gcc-4.5 kernel (2.6.37-rc1) build failure
https://bugs.launchpad.net/bugs/669912
You received this bug notification because you are a member of Ubuntu
Bugs, which is subscribed to Ubuntu.

-- 
ubuntu-bugs mailing list
ubuntu-bugs@lists.ubuntu.com
https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs


[Bug 669912] Re: natty gcc-4.5 kernel (2.6.37-rc1) build failure

2010-11-30 Thread Robert Nelson
Interesting Michael,

  AS  arch/arm/mach-omap2/omap-headsmp.o
  CC  arch/arm/mach-omap2/omap-hotplug.o
  AS  arch/arm/mach-omap2/omap44xx-smc.o
  CC  arch/arm/mach-omap2/omap4-common.o
  AS  arch/arm/mach-omap2/sram34xx.o

diff --git a/arch/arm/mach-omap2/Makefile b/arch/arm/mach-omap2/Makefile
index 60e51bc..1b931b4 100644
--- a/arch/arm/mach-omap2/Makefile
+++ b/arch/arm/mach-omap2/Makefile
@@ -26,8 +26,8 @@ obj-$(CONFIG_LOCAL_TIMERS)+= timer-mpu.o
 obj-$(CONFIG_HOTPLUG_CPU)  += omap-hotplug.o
 obj-$(CONFIG_ARCH_OMAP4)   += omap44xx-smc.o omap4-common.o
 
-AFLAGS_omap-headsmp.o  :=-Wa,-march=armv7-a
-AFLAGS_omap44xx-smc.o  :=-Wa,-march=armv7-a
+AFLAGS_omap-headsmp.o  :=-Wa,-march=armv7-a+sec
+AFLAGS_omap44xx-smc.o  :=-Wa,-march=armv7-a+sec
 
 # Functions loaded to SRAM
 obj-$(CONFIG_ARCH_OMAP2420)+= sram242x.o

I'll play around with it a little more when i get home in just a little
bit...  This shouldn't break anything before natty?

-- 
natty gcc-4.5 kernel (2.6.37-rc1) build failure
https://bugs.launchpad.net/bugs/669912
You received this bug notification because you are a member of Ubuntu
Bugs, which is subscribed to Ubuntu.

-- 
ubuntu-bugs mailing list
ubuntu-bugs@lists.ubuntu.com
https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs


[Bug 669912] Re: natty gcc-4.5 kernel (2.6.37-rc1) build failure

2010-11-30 Thread Robert Nelson
it'll take 4-5 hours for build and test of the image..

One big limitation with this patch, it breaks older binutils..

Assembler messages:
Error: unknown architecture `armv7-a+sec'

Error: unrecognized option -march=armv7-a+sec
make[1]: *** [arch/arm/mach-omap2/omap-headsmp.o] Error 1
make: *** [arch/arm/mach-omap2] Error 2
make: *** Waiting for unfinished jobs

This was with maverick's cross gcc
gcc version 4.5.1 (Ubuntu/Linaro 4.5.1-7ubuntu1)
GNU assembler version 2.20.51 (arm-linux-gnueabi) using BFD version (GNU 
Binutils for Ubuntu) 2.20.51.20100908

-- 
natty gcc-4.5 kernel (2.6.37-rc1) build failure
https://bugs.launchpad.net/bugs/669912
You received this bug notification because you are a member of Ubuntu
Bugs, which is subscribed to Ubuntu.

-- 
ubuntu-bugs mailing list
ubuntu-bugs@lists.ubuntu.com
https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs


[Bug 669912] Re: natty gcc-4.5 kernel (2.6.37-rc1) build failure

2010-11-30 Thread John Rigby
The following is compatible with old and new binutils:

diff --git a/arch/arm/mach-omap2/Makefile b/arch/arm/mach-omap2/Makefile
index 60e51bc..ee9ef4f 100644
--- a/arch/arm/mach-omap2/Makefile
+++ b/arch/arm/mach-omap2/Makefile
@@ -26,8 +26,9 @@ obj-$(CONFIG_LOCAL_TIMERS)+= timer-mpu.o
 obj-$(CONFIG_HOTPLUG_CPU)  += omap-hotplug.o
 obj-$(CONFIG_ARCH_OMAP4)   += omap44xx-smc.o omap4-common.o
 
-AFLAGS_omap-headsmp.o  :=-Wa,-march=armv7-a
-AFLAGS_omap44xx-smc.o  :=-Wa,-march=armv7-a
+plus_sec := $(call as-instr,.arch_extension sec,+sec)
+AFLAGS_omap-headsmp.o  :=-Wa,-march=armv7-a$(plus_sec)
+AFLAGS_omap44xx-smc.o  :=-Wa,-march=armv7-a$(plus_sec)
 
 # Functions loaded to SRAM
 obj-$(CONFIG_ARCH_OMAP2420)+= sram242x.o

-- 
natty gcc-4.5 kernel (2.6.37-rc1) build failure
https://bugs.launchpad.net/bugs/669912
You received this bug notification because you are a member of Ubuntu
Bugs, which is subscribed to Ubuntu.

-- 
ubuntu-bugs mailing list
ubuntu-bugs@lists.ubuntu.com
https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs


[Bug 669912] Re: natty gcc-4.5 kernel (2.6.37-rc1) build failure

2010-11-13 Thread Matthias Klose
** Also affects: linux (Ubuntu)
   Importance: Undecided
   Status: New

-- 
natty gcc-4.5 kernel (2.6.37-rc1) build failure
https://bugs.launchpad.net/bugs/669912
You received this bug notification because you are a member of Ubuntu
Bugs, which is subscribed to Ubuntu.

-- 
ubuntu-bugs mailing list
ubuntu-bugs@lists.ubuntu.com
https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs


[Bug 669912] Re: natty gcc-4.5 kernel (2.6.37-rc1) build failure

2010-11-13 Thread Robert Nelson
Hi Matthias,

Thank you for taking some time to look at this..

Versions:
gcc-4.5: gcc version 4.5.1 (Ubuntu/Linaro 4.5.1-9ubuntu1)
gcc-4.4: gcc version 4.4.5 (Ubuntu/Linaro 4.4.5-7ubuntu1) 
as: GNU assembler version 2.20.90

So grepping the (arch/arm/Makfile) there's one occurance of 'mimplicit-
it', and it's in the build kernel in thumb2 mode config which i
usually don't enable..

ifeq ($(CONFIG_THUMB2_KERNEL),y)
AFLAGS_AUTOIT   :=$(call 
as-option,-Wa$(comma)-mimplicit-it=always,-Wa$(comma)-mauto-it)
AFLAGS_NOWARN   :=$(call 
as-option,-Wa$(comma)-mno-warn-deprecated,-Wa$(comma)-W)
CFLAGS_THUMB2   :=-mthumb $(AFLAGS_AUTOIT) $(AFLAGS_NOWARN)
AFLAGS_THUMB2   :=$(CFLAGS_THUMB2) -Wa$(comma)-mthumb
endif

So with that config enabled, it fails much sooner at:

  AS  arch/arm/nwfpe/entry.o
arch/arm/nwfpe/entry.S: Assembler messages:
arch/arm/nwfpe/entry.S:96: Error: cannot use post-indexing with this 
instruction -- `ldrt r6,[r5],#4'
make[1]: *** [arch/arm/nwfpe/entry.o] Error 1
make: *** [arch/arm/nwfpe] Error 2

So playing around with different things, i forced gcc-4.4 over gcc-4.5
in the kernel Makfile with:

HOSTCC   = gcc-4.4
HOSTCXX  = g++-4.4

and it still fails...

  AS  arch/arm/mach-omap2/omap-headsmp.o
arch/arm/mach-omap2/omap-headsmp.S: Assembler messages:
arch/arm/mach-omap2/omap-headsmp.S:36: Error: selected processor does not 
support ARM mode `smc #0'
make[1]: *** [arch/arm/mach-omap2/omap-headsmp.o] Error 1
make: *** [arch/arm/mach-omap2] Error 2

Makes me wonder if this might be a binutils issue instead of gcc-4.5?

Regards,

-- 
natty gcc-4.5 kernel (2.6.37-rc1) build failure
https://bugs.launchpad.net/bugs/669912
You received this bug notification because you are a member of Ubuntu
Bugs, which is subscribed to Ubuntu.

-- 
ubuntu-bugs mailing list
ubuntu-bugs@lists.ubuntu.com
https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs


[Bug 669912] Re: natty gcc-4.5 kernel (2.6.37-rc1) build failure

2010-11-13 Thread Robert Nelson
Clarity Note: the playing around with gcc-4.4 is back with the original
config mentioned in this bug.. (thumb2 kernel disabled)

-- 
natty gcc-4.5 kernel (2.6.37-rc1) build failure
https://bugs.launchpad.net/bugs/669912
You received this bug notification because you are a member of Ubuntu
Bugs, which is subscribed to Ubuntu.

-- 
ubuntu-bugs mailing list
ubuntu-bugs@lists.ubuntu.com
https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs


[Bug 669912] Re: natty gcc-4.5 kernel (2.6.37-rc1) build failure

2010-11-12 Thread Matthias Klose
that might be related to bug #673085, however somebody did tell me that the 
kernel builds with 
-Wa,-mimplicit-it=thumb by default.

-- 
natty gcc-4.5 kernel (2.6.37-rc1) build failure
https://bugs.launchpad.net/bugs/669912
You received this bug notification because you are a member of Ubuntu
Bugs, which is subscribed to Ubuntu.

-- 
ubuntu-bugs mailing list
ubuntu-bugs@lists.ubuntu.com
https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs