Skip to contentSkip to conversation

svn commit: trunk/buildroot/toolchain/gcc

Buildroot ulf at uclibc.org 5 participants 11 messages Jul 29, 2007 – Jul 30, 2007

lore
Share & tools
lore
#0 lore raw

Author: ulf
Date: 2007-07-29 10:43:50 -0700 (Sun, 29 Jul 2007) New Revision: 19332

Log:
gcc target config for AVR32

Modified:
trunk/buildroot/toolchain/gcc/Config.in.2

Changeset:
Modified: trunk/buildroot/toolchain/gcc/Config.in.2
===================================================================

buildroot/toolchain/gcc/Config.in.2 +11 -0
@@ -5,9 +5,20 @@
 	  If you want the target system to be able to run 
 	  binutils/gcc and compile native code, say Y here.
 
+config BR2_GCC_TARGET_AVR32_CONFIGURATION
+	bool "Enable default AVR32 GCC configuration"
+	default y
+	depends BR2_avr32 && BR2_PACKAGE_GCC_TARGET
+	help
+	  For the AVR32 platform there is some configuration which are not
+	  supported.
+
+	  Currently this will add "--disable-libmudflap" to configure.
+
 config BR2_EXTRA_TARGET_GCC_CONFIG_OPTIONS
 	string "Additional target gcc options"
 	default ""
+	depends BR2_PACKAGE_GCC_TARGET
 	help
 	  Any additional target gcc options you may want to include....
 	  Including, but not limited to --disable-checking etc.
#1 lore raw
Quoted 20 lines · ulf at uclibc.org

Author: ulf
Date: 2007-07-29 10:43:50 -0700 (Sun, 29 Jul 2007) New Revision: 19332

Log:
gcc target config for AVR32

Modified:
trunk/buildroot/toolchain/gcc/Config.in.2

Changeset:
Modified: trunk/buildroot/toolchain/gcc/Config.in.2
===================================================================

buildroot/toolchain/gcc/Config.in.2 +0 -0
@@ -5,9 +5,20 @@
 	  If you want the target system to be able to run 
 	  binutils/gcc and compile native code, say Y here.
 

buildroot/toolchain/gcc/Config.in.2 line 17

Quoted 10 lines
buildroot/toolchain/gcc/Config.in.2 +10 -0
+config BR2_GCC_TARGET_AVR32_CONFIGURATION
+	bool "Enable default AVR32 GCC configuration"
+	default y
+	depends BR2_avr32 && BR2_PACKAGE_GCC_TARGET
+	help
+	  For the AVR32 platform there is some configuration which are not
+	  supported.
+
+	  Currently this will add "--disable-libmudflap" to configure.
+

I object to this change.
Please explain why you don't just add disable-mudflap if the target arch is BR2_avr32

Quoted 7 lines

config BR2_EXTRA_TARGET_GCC_CONFIG_OPTIONS
string "Additional target gcc options"
default ""

buildroot/toolchain/gcc/Config.in.2 +1 -0
+	depends BR2_PACKAGE_GCC_TARGET

help
Any additional target gcc options you may want to include.... Including, but not limited to --disable-checking etc.

#2 lore raw
Quoted 1 line · Bernhard Fischer

On Sun, Jul 29, 2007 at 10:43:50AM -0700, ulf at uclibc.org wrote:

<cut patch info header>

Quoted 6 lines
Quoted 6 lines
buildroot/toolchain/gcc/Config.in.2 +6 -0
+config BR2_GCC_TARGET_AVR32_CONFIGURATION
+	bool "Enable default AVR32 GCC configuration"
+	default y
+	depends BR2_avr32 && BR2_PACKAGE_GCC_TARGET
+	help
+	  For the AVR32 platform there is some configuration which are not
Quoted 8 lines

buildroot/toolchain/gcc/Config.in.2 line 17

Quoted 4 lines
buildroot/toolchain/gcc/Config.in.2 +4 -0
+	  supported.
+
+	  Currently this will add "--disable-libmudflap" to configure.
+

I object to this change.
Please explain why you don't just add disable-mudflap if the target arch is BR2_avr32

So a little patch to alter the toolchain/gcc/Makefile.in to modify EXTRA_TARGET_GCC_CONFIG_OPTIONS when ARCH is avr32 is a clean and nice solution?

And remove this stuff from Config.in.2?

If the solution above, I agree.

Quoted 7 lines
Quoted 7 lines

config BR2_EXTRA_TARGET_GCC_CONFIG_OPTIONS
string "Additional target gcc options"
default ""

buildroot/toolchain/gcc/Config.in.2 +1 -0
+	depends BR2_PACKAGE_GCC_TARGET

help
Any additional target gcc options you may want to include.... Including, but not limited to --disable-checking etc.

Signature · 2 lines
Regards
Hans-Christian Egtvedt
#3 lore raw
Quoted 21 lines · Hans-Christian Egtvedt
Quoted 1 line · Bernhard Fischer

On Sun, Jul 29, 2007 at 10:43:50AM -0700, ulf at uclibc.org wrote:

<cut patch info header>

Quoted 6 lines
Quoted 6 lines
buildroot/toolchain/gcc/Config.in.2 +6 -0
+config BR2_GCC_TARGET_AVR32_CONFIGURATION
+	bool "Enable default AVR32 GCC configuration"
+	default y
+	depends BR2_avr32 && BR2_PACKAGE_GCC_TARGET
+	help
+	  For the AVR32 platform there is some configuration which are not
Quoted 8 lines

buildroot/toolchain/gcc/Config.in.2 line 17

Quoted 4 lines
buildroot/toolchain/gcc/Config.in.2 +4 -0
+	  supported.
+
+	  Currently this will add "--disable-libmudflap" to configure.
+

I object to this change.
Please explain why you don't just add disable-mudflap if the target arch is BR2_avr32

Quoted 5 lines

So a little patch to alter the toolchain/gcc/Makefile.in to modify EXTRA_TARGET_GCC_CONFIG_OPTIONS when ARCH is avr32 is a clean and nice solution?

And remove this stuff from Config.in.2?

exactly, yes.

Quoted 10 lines

If the solution above, I agree.

Quoted 7 lines
Quoted 7 lines

config BR2_EXTRA_TARGET_GCC_CONFIG_OPTIONS
string "Additional target gcc options"
default ""

buildroot/toolchain/gcc/Config.in.2 +1 -0
+	depends BR2_PACKAGE_GCC_TARGET

help
Any additional target gcc options you may want to include.... Including, but not limited to --disable-checking etc.

#4 lore raw
Quoted 4 lines · Bernhard Fischer
Quoted 3 lines · Hans-Christian Egtvedt
Quoted 1 line · Bernhard Fischer

On Sun, Jul 29, 2007 at 10:43:50AM -0700, ulf at uclibc.org wrote:

<cut AVR32 configuration menu option>

Quoted 11 lines
Quoted 9 lines
Quoted 3 lines

I object to this change.
Please explain why you don't just add disable-mudflap if the target arch is BR2_avr32

So a little patch to alter the toolchain/gcc/Makefile.in to modify EXTRA_TARGET_GCC_CONFIG_OPTIONS when ARCH is avr32 is a clean and nice solution?

And remove this stuff from Config.in.2?

exactly, yes.

Please see the included patch.

Signature · 9 lines
Mvh
Hans-Christian Egtvedt
-------------- next part --------------
A non-text attachment was scrubbed...
Name: simplify-avr32-gcc-configuration.patch
Type: text/x-patch
Size: 2185 bytes
Desc: not available
Url : http://busybox.net/lists/buildroot/attachments/20070730/f3d7bec5/attachment.bin 
#5 lore raw
Quoted 83 lines · Hans-Christian Egtvedt
Quoted 4 lines · Bernhard Fischer
Quoted 3 lines · Hans-Christian Egtvedt
Quoted 1 line · Bernhard Fischer

On Sun, Jul 29, 2007 at 10:43:50AM -0700, ulf at uclibc.org wrote:

<cut AVR32 configuration menu option>

Quoted 11 lines
Quoted 9 lines
Quoted 3 lines

I object to this change.
Please explain why you don't just add disable-mudflap if the target arch is BR2_avr32

So a little patch to alter the toolchain/gcc/Makefile.in to modify EXTRA_TARGET_GCC_CONFIG_OPTIONS when ARCH is avr32 is a clean and nice solution?

And remove this stuff from Config.in.2?

exactly, yes.

Please see the included patch.

Signature · 2 lines
Mvh
Hans-Christian Egtvedt
toolchain/gcc/Config.in +0 -10
index 2c47f12..648ae7d 100644
@@ -140,16 +135,6 @@ config BR2_GCC_USE_SJLJ_EXCEPTIONS
 	  proper stack unwinding during exception handling.  Most people
 	  can leave this set to n.
 
-config BR2_GCC_AVR32_CONFIGURATION
-	bool "Enable default AVR32 GCC configuration"
-	default y
-	depends BR2_avr32
-	help
-	  For the AVR32 platform there is some configuration which are not
-	  supported.
-
-	  Currently this will add "--disable-libmudflap" to configure.
-

config BR2_EXTRA_GCC_CONFIG_OPTIONS
string "Additional gcc options"
default ""

toolchain/gcc/Config.in.2 +1 -11
index 0b209ec..e556392 100644
@@ -2,19 +2,9 @@ config BR2_PACKAGE_GCC_TARGET
 	bool "native toolchain in the target filesystem"
 	default n
 	help
-	  If you want the target system to be able to run 
+	  If you want the target system to be able to run
 	  binutils/gcc and compile native code, say Y here.
 
-config BR2_GCC_TARGET_AVR32_CONFIGURATION
-	bool "Enable default AVR32 GCC configuration"
-	default y
-	depends BR2_avr32 && BR2_PACKAGE_GCC_TARGET
-	help
-	  For the AVR32 platform there is some configuration which are not
-	  supported.
-
-	  Currently this will add "--disable-libmudflap" to configure.
-

config BR2_EXTRA_TARGET_GCC_CONFIG_OPTIONS
string "Additional target gcc options"
default ""

toolchain/gcc/Makefile.in +1 -1
index ec14b25..b087eb2 100644
@@ -12,7 +12,7 @@ EXTRA_GCC_CONFIG_OPTIONS:=$(strip $(subst ",, $(BR2_EXTRA_GCC_CONFIG_OPTIONS)))
 #"))
 
 # AVR32 GCC configuration
-ifeq ($(strip $(BR2_GCC_AVR32_CONFIGURATION)),y)
+ifeq ($(strip $(BR2_avr32)),y)
Quoted 2 lines

EXTRA_GCC_CONFIG_OPTIONS+=--disable-libmudflap
endif

This is the cross-compiler, isn't it? Why do you need to disable mudflap for the cross-compiler unconditionally?

Other than that it's ok to apply.

thanks,

Quoted 10 lines
toolchain/gcc/Makefile.in +0 -0
@@ -86,7 +86,7 @@ endif

endif # BR2_PREFER_IMA=y

# AVR32 target GCC configuration

toolchain/gcc/Makefile.in +1 -1
-ifeq ($(strip $(BR2_GCC_TARGET_AVR32_CONFIGURATION)),y)
+ifeq ($(strip $(BR2_avr32)),y)

EXTRA_TARGET_GCC_CONFIG_OPTIONS+=--disable-libmudflap endif

#6 lore raw
Quoted 7 lines · Bernhard Fischer
Quoted 6 lines · Hans-Christian Egtvedt
Quoted 4 lines · Bernhard Fischer
Quoted 3 lines · Hans-Christian Egtvedt
Quoted 1 line · Bernhard Fischer

On Sun, Jul 29, 2007 at 10:43:50AM -0700, ulf at uclibc.org wrote:

<cut>

Quoted 10 lines
Quoted 10 lines

config BR2_EXTRA_TARGET_GCC_CONFIG_OPTIONS
string "Additional target gcc options"
default ""

toolchain/gcc/Makefile.in +0 -0
index ec14b25..b087eb2 100644
@@ -12,7 +12,7 @@ EXTRA_GCC_CONFIG_OPTIONS:=$(strip $(subst ",, $(BR2_EXTRA_GCC_CONFIG_OPTIONS)))
 #"))
 
Quoted 8 lines
Quoted 5 lines
toolchain/gcc/Makefile.in +1 -1
 # AVR32 GCC configuration
-ifeq ($(strip $(BR2_GCC_AVR32_CONFIGURATION)),y)
+ifeq ($(strip $(BR2_avr32)),y)

EXTRA_GCC_CONFIG_OPTIONS+=--disable-libmudflap
endif

This is the cross-compiler, isn't it? Why do you need to disable mudflap for the cross-compiler unconditionally?

Because libmudflap does not build for AVR32 arch.

Quoted 1 line

Other than that it's ok to apply.

<cut>

Signature · 2 lines
Regards
Hans-Christian Egtvedt
#7 lore raw
Quoted 12 lines · Hans-Christian Egtvedt
Quoted 8 lines · Bernhard Fischer
Quoted 5 lines

# AVR32 GCC configuration

(quoted diff) +1 -1
-ifeq ($(strip $(BR2_GCC_AVR32_CONFIGURATION)),y)
+ifeq ($(strip $(BR2_avr32)),y)

EXTRA_GCC_CONFIG_OPTIONS+=--disable-libmudflap
endif

This is the cross-compiler, isn't it? Why do you need to disable mudflap for the cross-compiler unconditionally?

Quoted 1 line

Because libmudflap does not build for AVR32 arch.

http://gcc.gnu.org/bugzilla/buglist.cgi?bug_status=UNCONFIRMED&bug_status=NEW&bug_status=ASSIGNED&bug_status=REOPENED&bug_status=WAITING&bug_status=SUSPENDED&field0-0-0=product&type0-0-0=substring&value0-0-0=mudflap&field0-0-1=component&type0-0-1=substring&value0-0-1=mudflap&field0-0-2=short_desc&type0-0-2=substring&value0-0-2=mudflap&field0-0-3=status_whiteboard&type0-0-3=substring&value0-0-3=mudflap&field1-0-0=product&type1-0-0=substring&value1-0-0=avr32&field1-0-1=component&type1-0-1=substring&value1-0-1=avr32&field1-0-2=short_desc&type1-0-2=substring&value1-0-2=avr32&field1-0-3=status_whiteboard&type1-0-3=substring&value1-0-3=avr32

Can't seem to find a PR about this brokenness?

kind regards,
Bernhard

#8 lore raw
Quoted 13 lines · Bernhard Fischer
Quoted 12 lines · Hans-Christian Egtvedt
Quoted 8 lines · Bernhard Fischer
Quoted 5 lines

# AVR32 GCC configuration

(quoted diff) +1 -1
-ifeq ($(strip $(BR2_GCC_AVR32_CONFIGURATION)),y)
+ifeq ($(strip $(BR2_avr32)),y)

EXTRA_GCC_CONFIG_OPTIONS+=--disable-libmudflap
endif

This is the cross-compiler, isn't it? Why do you need to disable mudflap for the cross-compiler unconditionally?

Quoted 5 lines
Quoted 1 line

Because libmudflap does not build for AVR32 arch.

http://gcc.gnu.org/bugzilla/buglist.cgi?bug_status=UNCONFIRMED&bug_status=NEW&bug_status=ASSIGNED&bug_status=REOPENED&bug_status=WAITING&bug_status=SUSPENDED&field0-0-0=product&type0-0-0=substring&value0-0-0=mudflap&field0-0-1=component&type0-0-1=substring&value0-0-1=mudflap&field0-0-2=short_desc&type0-0-2=substring&value0-0-2=mudflap&field0-0-3=status_whiteboard&type0-0-3=substring&value0-0-3=mudflap&field1-0-0=product&type1-0-0=substring&value1-0-0=avr32&field1-0-1=component&type1-0-1=substring&value1-0-1=avr32&field1-0-2=short_desc&type1-0-2=substring&value1-0-2=avr32&field1-0-3=status_whiteboard&type1-0-3=substring&value1-0-3=avr32

Can't seem to find a PR about this brokenness?

There is a very easy answer to that, AVR32 architecture is not supported by upstream GCC (yet).

The same goes for binutils and uClibc.

Hence the discussion at the end of last week about Buildroot size after adding the AVR32 patches.

Signature · 2 lines
Mvh
Hans-Christian Egtvedt
#9 lore raw

[Buildroot] Kernel compilation fails while using uclibc toolchain

Hi,

I dont know where to post this.. so I apologize if this is not the correct list and pls point me to the same. I was trying to build the linux kernel 2.6.22 using the toolchain created with buildroot for arm (generic). I am getting the following errors:

CHK include/linux/version.h
SYMLINK include/asm-arm/arch -> include/asm-arm/arch-versatile Generating include/asm-arm/mach-types.h

  CHK     include/linux/utsrelease.h
  HOSTCC  scripts/basic/fixdep
  HOSTCC  scripts/basic/docproc
  CC      arch/arm/kernel/asm-offsets.s

In file included from include/linux/irqflags.h:46,
from include/asm/system.h:78,
from include/asm/bitops.h:23,
from include/linux/bitops.h:9,
from include/linux/thread_info.h:20,
from include/linux/preempt.h:9,
from include/linux/spinlock.h:49,
from include/linux/capability.h:47,
from include/linux/sched.h:46,
from arch/arm/kernel/asm-offsets.c:13:
include/asm/irqflags.h:11:5: warning: "__LINUX_ARM_ARCH__" is not defined
In file included from include/asm/bitops.h:23,
from include/linux/bitops.h:9,
from include/linux/thread_info.h:20,
from include/linux/preempt.h:9,
from include/linux/spinlock.h:49,
from include/linux/capability.h:47,
from include/linux/sched.h:46,
from arch/arm/kernel/asm-offsets.c:13:
include/asm/system.h:153:5: warning: "__LINUX_ARM_ARCH__" is not defined include/asm/system.h:159:5: warning: "__LINUX_ARM_ARCH__" is not defined include/asm/system.h:163:35: warning: "__LINUX_ARM_ARCH__" is not defined include/asm/system.h:293:5: warning: "__LINUX_ARM_ARCH__" is not defined include/asm/system.h:298:5: warning: "__LINUX_ARM_ARCH__" is not defined
In file included from include/linux/bitops.h:9,
from include/linux/thread_info.h:20,
from include/linux/preempt.h:9,
from include/linux/spinlock.h:49,
from include/linux/capability.h:47,
from include/linux/sched.h:46,
from arch/arm/kernel/asm-offsets.c:13:
include/asm/bitops.h:233:5: warning: "__LINUX_ARM_ARCH__" is not defined
In file included from include/asm/thread_info.h:16,
from include/linux/thread_info.h:21,
from include/linux/preempt.h:9,
from include/linux/spinlock.h:49,
from include/linux/capability.h:47,
from include/linux/sched.h:46,
from arch/arm/kernel/asm-offsets.c:13:
include/asm/fpstate.h:28:5: warning: "__LINUX_ARM_ARCH__" is not defined
In file included from include/linux/spinlock.h:326,
from include/linux/capability.h:47,
from include/linux/sched.h:46,
from arch/arm/kernel/asm-offsets.c:13:
include/asm/atomic.h:25:5: warning: "__LINUX_ARM_ARCH__" is not defined
In file included from include/linux/jiffies.h:4,
from include/linux/sched.h:51,
from arch/arm/kernel/asm-offsets.c:13:
include/linux/calc64.h: In function 'do_div_llr':
include/linux/calc64.h:25: error: '__LINUX_ARM_ARCH__' undeclared (first use in this function) include/linux/calc64.h:25: error: (Each undeclared identifier is reported only once include/linux/calc64.h:25: error: for each function it appears in.)
In file included from include/linux/prefetch.h:14,
from include/linux/list.h:8,
from include/linux/wait.h:22,
from include/asm/semaphore.h:9,
from include/linux/sched.h:59,
from arch/arm/kernel/asm-offsets.c:13:
include/asm/processor.h:103:5: warning: "__LINUX_ARM_ARCH__" is not defined
In file included from include/asm/semaphore.h:13,
from include/linux/sched.h:59,
from arch/arm/kernel/asm-offsets.c:13:
include/asm/locks.h:15:5: warning: "__LINUX_ARM_ARCH__" is not defined
In file included from include/asm/page.h:32,
from include/linux/sched.h:60,
from arch/arm/kernel/asm-offsets.c:13:
include/asm/glue.h:119:2: error: #error Unknown data abort handler type
In file included from include/linux/sched.h:60,
from arch/arm/kernel/asm-offsets.c:13:
include/asm/page.h:106:2: error: #error Unknown user operations model
make[1]: *** [arch/arm/kernel/asm-offsets.s] Error 1
make: *** [prepare0] Error 2

Regards,
Naren

---------------------------------
Get the Yahoo! toolbar and be alerted to new email wherever you're surfing. -------------- next part --------------
An HTML attachment was scrubbed...
URL: http://busybox.net/lists/buildroot/attachments/20070730/cf0895e9/attachment.htm

#10 lore raw
In reply to Bernhard Fischer

----- Original Message -----
From: "Bernhard Fischer" <[email protected]>
To: <[email protected]>
Cc: <[email protected]>
Sent: Monday, July 30, 2007 9:21 AM
Subject: Re: [Buildroot] svn commit: trunk/buildroot/toolchain/gcc

Quoted 21 lines · ulf at uclibc.org
Quoted 20 lines

Author: ulf
Date: 2007-07-29 10:43:50 -0700 (Sun, 29 Jul 2007) New Revision: 19332

Log:
gcc target config for AVR32

Modified:
trunk/buildroot/toolchain/gcc/Config.in.2

Changeset:
Modified: trunk/buildroot/toolchain/gcc/Config.in.2
===================================================================

buildroot/toolchain/gcc/Config.in.2 2007-07-29 17:43:50 UTC (rev 19332) renamed from buildroot/toolchain/gcc/Config.in.2 2007-07-29 17:40:42 UTC (rev 19331) +0 -0
@@ -5,9 +5,20 @@
  If you want the target system to be able to run 
  binutils/gcc and compile native code, say Y here.
 
Quoted 23 lines

buildroot/toolchain/gcc/Config.in.2 2007-07-29 17:43:50 UTC (rev 19332) line 17

Quoted 10 lines
buildroot/toolchain/gcc/Config.in.2 2007-07-29 17:43:50 UTC (rev 19332) renamed from buildroot/toolchain/gcc/Config.in.2 2007-07-29 17:40:42 UTC (rev 19331) +10 -0
+config BR2_GCC_TARGET_AVR32_CONFIGURATION
+ bool "Enable default AVR32 GCC configuration"
+ default y
+ depends BR2_avr32 && BR2_PACKAGE_GCC_TARGET
+ help
+   For the AVR32 platform there is some configuration which are not
+   supported.
+
+   Currently this will add "--disable-libmudflap" to configure.
+

I object to this change.
Please explain why you don't just add disable-mudflap if the target arch is BR2_avr32

Quoted 7 lines

config BR2_EXTRA_TARGET_GCC_CONFIG_OPTIONS
string "Additional target gcc options"
default ""
+ depends BR2_PACKAGE_GCC_TARGET
help
Any additional target gcc options you may want to include.... Including, but not limited to --disable-checking etc.

OK, no problem with me.
Guessed there would be comments :-)
Will read your comments for the rest of the patches and try to apply within the next few days. .

Best Regards
Ulf Samuelsson