Skip to contentSkip to conversation

svn commit: trunk/buildroot/toolchain/gcc: 4.3.1

Buildroot jacmet at uclibc.org 3 participants 12 messages Jun 19, 2008 – Jun 25, 2008

lore
Share & tools
lore
#0 lore raw

Author: jacmet
Date: 2008-06-19 12:06:04 -0700 (Thu, 19 Jun 2008) New Revision: 22453

Log:
toolchain/gcc: add 4.3.1

Based on Bernhards tree.

Added:
trunk/buildroot/toolchain/gcc/4.3.1/ trunk/buildroot/toolchain/gcc/4.3.1/100-uclibc-conf.patch trunk/buildroot/toolchain/gcc/4.3.1/104-gnuhurd-uclibc-conf.patch trunk/buildroot/toolchain/gcc/4.3.1/301-missing-execinfo_h.patch trunk/buildroot/toolchain/gcc/4.3.1/302-c99-snprintf.patch trunk/buildroot/toolchain/gcc/4.3.1/305-libmudflap-susv3-legacy.patch trunk/buildroot/toolchain/gcc/4.3.1/810-arm-softfloat-libgcc.patch trunk/buildroot/toolchain/gcc/4.3.1/993-arm_insn-opinit-RTX_CODE-fixup.patch trunk/buildroot/toolchain/gcc/4.3.1/995-short-enums.diff trunk/buildroot/toolchain/gcc/4.3.1/998-gcc-4.3.0-fix-header.00.patch

Modified:
trunk/buildroot/toolchain/gcc/Config.in trunk/buildroot/toolchain/gcc/gcc-uclibc-4.x.mk

Changeset:
Added: trunk/buildroot/toolchain/gcc/4.3.1/100-uclibc-conf.patch
===================================================================

buildroot/toolchain/gcc/4.3.1/100-uclibc-conf.patch +33 -0
@@ -0,0 +1,33 @@
+--- gcc/gcc/config/--- gcc/contrib/regression/objs-gcc.sh
++++ gcc/contrib/regression/objs-gcc.sh
+@@ -105,6 +105,10 @@
+  then
+   make all-gdb all-dejagnu all-ld || exit 1
+   make install-gdb install-dejagnu install-ld || exit 1
++elif [ $H_REAL_TARGET = $H_REAL_HOST -a $H_REAL_TARGET = i686-pc-linux-uclibc ]
++ then
++  make all-gdb all-dejagnu all-ld || exit 1
++  make install-gdb install-dejagnu install-ld || exit 1
+ elif [ $H_REAL_TARGET = $H_REAL_HOST ] ; then
+   make bootstrap || exit 1
+   make install || exit 1
+--- gcc/libjava/classpath/ltconfig
++++ gcc/libjava/classpath/ltconfig
+@@ -603,7 +603,7 @@
+ 
+ # Transform linux* to *-*-linux-gnu*, to support old configure scripts.
+ case $host_os in
+-linux-gnu*) ;;
++linux-gnu*|linux-uclibc*) ;;
+ linux*) host=`echo $host | sed 's/^\(.*-.*-linux\)\(.*\)$/\1-gnu\2/'`
+ esac
+ 
+@@ -1251,7 +1251,7 @@
+   ;;
+ 
+ # This must be Linux ELF.
+-linux-gnu*)
++linux*)
+   version_type=linux
+   need_lib_prefix=no
+   need_version=no

Added: trunk/buildroot/toolchain/gcc/4.3.1/104-gnuhurd-uclibc-conf.patch
===================================================================

buildroot/toolchain/gcc/4.3.1/104-gnuhurd-uclibc-conf.patch +13 -0
@@ -0,0 +1,13 @@
+diff -rdup gcc-4.2.1.oorig/gcc/config.gcc gcc-4.2.1/gcc/config.gcc
+--- gcc-4.2.1.oorig/gcc/config.gcc	2007-10-01 11:52:52.000000000 +0200
++++ gcc-4.2.1/gcc/config.gcc	2007-10-01 13:22:12.000000000 +0200
+@@ -494,6 +494,9 @@ case ${target} in
+     alpha*)
+       tm_file="${cpu_type}/${cpu_type}.h alpha/elf.h alpha/linux.h alpha/linux-elf.h gnu.h ${tm_file}"
+       ;;
++    i[34567]86-*hurd*-*)
++      tm_file="${cpu_type}/${cpu_type}.h i386/unix.h i386/att.h dbxelf.h elfos.h svr4.h i386/gnu.h gnu.h ${tm_file}"
++      ;;
+     i[34567]86-*-*)
+       tm_file="${cpu_type}/${cpu_type}.h i386/unix.h i386/att.h dbxelf.h elfos.h svr4.h linux.h i386/linux.h gnu.h ${tm_file}"
+       ;;

Added: trunk/buildroot/toolchain/gcc/4.3.1/301-missing-execinfo_h.patch
===================================================================

buildroot/toolchain/gcc/4.3.1/301-missing-execinfo_h.patch +11 -0
@@ -0,0 +1,11 @@
+--- gcc-4.0.0/boehm-gc/include/gc.h-orig	2005-04-28 22:28:57.000000000 -0500
++++ gcc-4.0.0/boehm-gc/include/gc.h	2005-04-28 22:30:38.000000000 -0500
+@@ -500,7 +500,7 @@
+ #ifdef __linux__
+ # include <features.h>
+ # if (__GLIBC__ == 2 && __GLIBC_MINOR__ >= 1 || __GLIBC__ > 2) \
+-     && !defined(__ia64__)
++     && !defined(__ia64__) && !defined(__UCLIBC__)
+ #   ifndef GC_HAVE_BUILTIN_BACKTRACE
+ #     define GC_HAVE_BUILTIN_BACKTRACE
+ #   endif

Added: trunk/buildroot/toolchain/gcc/4.3.1/302-c99-snprintf.patch
===================================================================

buildroot/toolchain/gcc/4.3.1/302-c99-snprintf.patch +13 -0
@@ -0,0 +1,13 @@
+Index: gcc-4.3.0/libstdc++-v3/include/c_global/cstdio
+===================================================================
+--- gcc-4.3.0/libstdc++-v3/include/c_global/cstdio	(revision 129202)
++++ gcc-4.3.0/libstdc++-v3/include/c_global/cstdio	(working copy)
+@@ -144,7 +144,7 @@
+ 
+ _GLIBCXX_END_NAMESPACE
+ 
+-#if _GLIBCXX_USE_C99
++#if _GLIBCXX_USE_C99 || defined __UCLIBC__
+ 
+ #undef snprintf
+ #undef vfscanf

Added: trunk/buildroot/toolchain/gcc/4.3.1/305-libmudflap-susv3-legacy.patch
===================================================================

buildroot/toolchain/gcc/4.3.1/305-libmudflap-susv3-legacy.patch +49 -0

49 lines not on this page · raw message

Added: trunk/buildroot/toolchain/gcc/4.3.1/810-arm-softfloat-libgcc.patch
===================================================================

buildroot/toolchain/gcc/4.3.1/810-arm-softfloat-libgcc.patch +29 -0
@@ -0,0 +1,29 @@
+Index: gcc-4.3.0/gcc/config/arm/t-linux
+===================================================================
+--- gcc-4.3.0/gcc/config/arm/t-linux	(revision 129896)
++++ gcc-4.3.0/gcc/config/arm/t-linux	(working copy)
+@@ -3,7 +3,10 @@
+ TARGET_LIBGCC2_CFLAGS = -fomit-frame-pointer -fPIC
+ 
+ LIB1ASMSRC = arm/lib1funcs.asm
+-LIB1ASMFUNCS = _udivsi3 _divsi3 _umodsi3 _modsi3 _dvmd_lnx
++LIB1ASMFUNCS = _udivsi3 _divsi3 _umodsi3 _modsi3 _dvmd_lnx \
++      _negdf2 _addsubdf3 _muldivdf3 _cmpdf2 _unorddf2 _fixdfsi _fixunsdfsi \
++      _truncdfsf2 _negsf2 _addsubsf3 _muldivsf3 _cmpsf2 _unordsf2 \
++      _fixsfsi _fixunssfsi _floatdidf _floatundidf _floatdisf _floatundisf
+ 
+ # MULTILIB_OPTIONS = mhard-float/msoft-float
+ # MULTILIB_DIRNAMES = hard-float soft-float
+Index: gcc-4.3.0/gcc/config/arm/linux-elf.h
+===================================================================
+--- gcc-4.3.0/gcc/config/arm/linux-elf.h	(revision 129896)
++++ gcc-4.3.0/gcc/config/arm/linux-elf.h	(working copy)
+@@ -48,7 +62,7 @@
+    %{shared:-lc} \
+    %{!shared:%{profile:-lc_p}%{!profile:-lc}}"
+ 
+-#define LIBGCC_SPEC "%{msoft-float:-lfloat} %{mfloat-abi=soft*:-lfloat} -lgcc"
++#define LIBGCC_SPEC "-lgcc"
+ 
+ #define GLIBC_DYNAMIC_LINKER "/lib/ld-linux.so.2"
+ 

Added: trunk/buildroot/toolchain/gcc/4.3.1/993-arm_insn-opinit-RTX_CODE-fixup.patch
===================================================================

buildroot/toolchain/gcc/4.3.1/993-arm_insn-opinit-RTX_CODE-fixup.patch +41 -0

41 lines not on this page · raw message

Added: trunk/buildroot/toolchain/gcc/4.3.1/995-short-enums.diff
===================================================================

buildroot/toolchain/gcc/4.3.1/995-short-enums.diff +42 -0

42 lines not on this page · raw message

Added: trunk/buildroot/toolchain/gcc/4.3.1/998-gcc-4.3.0-fix-header.00.patch
===================================================================

buildroot/toolchain/gcc/4.3.1/998-gcc-4.3.0-fix-header.00.patch +15 -0
@@ -0,0 +1,15 @@
+\\\\
+\\ gcc PR33200
+Index: gcc-4.3.0/gcc/config.gcc
+===================================================================
+--- gcc-4.3.0/gcc/config.gcc	(revision 131628)
++++ gcc-4.3.0/gcc/config.gcc	(working copy)
+@@ -2302,7 +2305,7 @@ sh-*-symbianelf* | sh[12346l]*-*-symbian
+ 	if test x${enable_incomplete_targets} = xyes ; then
+ 		tm_defines="$tm_defines SUPPORT_SH1=1 SUPPORT_SH2E=1 SUPPORT_SH4=1 SUPPORT_SH4_SINGLE=1 SUPPORT_SH2A=1 SUPPORT_SH2A_SINGLE=1 SUPPORT_SH5_32MEDIA=1 SUPPORT_SH5_32MEDIA_NOFPU=1 SUPPORT_SH5_64MEDIA=1 SUPPORT_SH5_64MEDIA_NOFPU=1"
+ 	fi
+-	use_fixproto=yes
++	# XXX: why? use_fixproto=yes
+ 	;;
+ sh-*-rtemscoff*)
+ 	tmake_file="sh/t-sh t-rtems sh/t-rtems"

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

buildroot/toolchain/gcc/Config.in +5 -0
@@ -38,6 +38,10 @@
 		depends on !BR2_avr32 && !BR2_nios2
 		bool "gcc 4.2.4"
 
+	config BR2_GCC_VERSION_4_3_1
+		depends on !BR2_avr32 && !BR2_nios2
+		bool "gcc 4.3.1"
+
 #	config BR2_GCC_VERSION_4_3
 #		depends !BR2_avr32 && !BR2_nios2
 #		select BR2_GCC_IS_SNAP
@@ -75,6 +79,7 @@
 	default "4.2.1"     if BR2_GCC_VERSION_4_2_1
 	default "4.2.3"     if BR2_GCC_VERSION_4_2_3
 	default "4.2.4"     if BR2_GCC_VERSION_4_2_4
+	default "4.3.1"     if BR2_GCC_VERSION_4_3_1
 	default "4.3"       if BR2_GCC_VERSION_4_3
 
 config BR2_TOOLCHAIN_SYSROOT

Modified: trunk/buildroot/toolchain/gcc/gcc-uclibc-4.x.mk
===================================================================

buildroot/toolchain/gcc/gcc-uclibc-4.x.mk +10 -0
@@ -219,12 +219,22 @@
 	touch $@
 
 $(GCC_BUILD_DIR1)/.compiled: $(GCC_BUILD_DIR1)/.configured
+	# gcc >= 4.3.0 have to also build all-target-libgcc
+ifeq ($(BR2_GCC_SUPPORTS_FINEGRAINEDMTUNE),y)
+	$(MAKE) -C $(GCC_BUILD_DIR1) all-gcc all-target-libgcc
+else
 	$(MAKE) -C $(GCC_BUILD_DIR1) all-gcc
+endif
 	touch $@
 
 gcc_initial=$(GCC_BUILD_DIR1)/.installed
 $(gcc_initial) $(STAGING_DIR)/usr/bin/$(REAL_GNU_TARGET_NAME)-gcc: $(GCC_BUILD_DIR1)/.compiled
+	# gcc >= 4.3.0 have to also install install-target-libgcc
+ifeq ($(BR2_GCC_SUPPORTS_FINEGRAINEDMTUNE),y)
+	PATH=$(TARGET_PATH) $(MAKE) -C $(GCC_BUILD_DIR1) install-gcc install-target-libgcc
+else
 	PATH=$(TARGET_PATH) $(MAKE) -C $(GCC_BUILD_DIR1) install-gcc
+endif
 	touch $(gcc_initial)
 
 gcc_initial: uclibc-configured binutils $(STAGING_DIR)/usr/bin/$(REAL_GNU_TARGET_NAME)-gcc
#1 lore raw

Hi

Author: jacmet

Quoted 9 lines

Date: 2008-06-19 12:06:04 -0700 (Thu, 19 Jun 2008) New Revision: 22453

Log:
toolchain/gcc: add 4.3.1

Based on Bernhards tree.

Could you add gcc-4.3.0 too ?

It seems gcc-4.3.1 cross-toolchain doesn't work on all architectures. This is just a guess because emdebian gcc-4.3.1 toolchains are successfully built for arm only.
It fails on powerpc, mips, etc..
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://busybox.net/lists/buildroot/attachments/20080620/0591320f/attachment.htm

#2 lore raw
Quoted 6 lines · Fathi Boudra

Could you add gcc-4.3.0 too ?

It seems gcc-4.3.1 cross-toolchain doesn't work on all architectures. This is just a guess because emdebian gcc-4.3.1 toolchains are successfully built for arm only.
It fails on powerpc, mips, etc..

If there are problems then it would make more sense to fixup 4.3.1, really.

just a thought.

#3 lore raw
Quoted 3 lines

If there are problems then it would make more sense to fixup 4.3.1, really.

I agree but there's no clue so far:

/opt/trunk/powerpc/gcc-4.3-4.3.1-2/build/./gcc/xgcc -B/opt/trunk/powerpc/gcc-4.3-4.3.1-2/build/./gcc/ -B/usr/powerpc-linux-gnu/bin/ -B/usr/powerpc-linux-gnu/lib/ -isystem /usr/powerpc-linux-gnu/include -isystem
/usr/powerpc-linux-gnu/sys-include -O2 -O2 -g -g -O2 -DIN_GCC
-DCROSS_DIRECTORY_STRUCTURE -W -Wall -Wwrite-strings
-Wstrict-prototypes -Wmissing-prototypes -Wold-style-definition -isystem ./include -fPIC -mno-minimal-toc -g -DHAVE_GTHR_DEFAULT -DIN_LIBGCC2 -D__GCC_FLOAT_NOT_NEEDED -Dinhibit_libc -shared -nodefaultlibs -Wl,--soname=libgcc_s.so.1 -Wl,--version-script=libgcc.map -o 64/libgcc_s.so.1.tmp -O2 -g -g -O2 -m64 -fPIC -mstrict-align -B./ _muldi3_s.o _negdi2_s.o _lshrdi3_s.o _ashldi3_s.o _ashrdi3_s.o _cmpdi2_s.o _ucmpdi2_s.o _clear_cache_s.o _enable_execute_stack_s.o _trampoline_s.o __main_s.o _absvsi2_s.o _absvdi2_s.o _addvsi3_s.o _addvdi3_s.o _subvsi3_s.o _subvdi3_s.o _mulvsi3_s.o _mulvdi3_s.o _negvsi2_s.o _negvdi2_s.o _ctors_s.o _ffssi2_s.o _ffsdi2_s.o _clz_s.o _clzsi2_s.o _clzdi2_s.o _ctzsi2_s.o _ctzdi2_s.o _popcount_tab_s.o _popcountsi2_s.o _popcountdi2_s.o _paritysi2_s.o _paritydi2_s.o _powisf2_s.o _powidf2_s.o _powixf2_s.o _powitf2_s.o _mulsc3_s.o _muldc3_s.o _mulxc3_s.o _multc3_s.o _divsc3_s.o _divdc3_s.o _divxc3_s.o _divtc3_s.o _bswapsi2_s.o _bswapdi2_s.o _fixunssfsi_s.o _fixunsdfsi_s.o _fixunsxfsi_s.o _fixsfdi_s.o _fixdfdi_s.o _fixxfdi_s.o _fixtfdi_s.o _fixunssfdi_s.o _fixunsdfdi_s.o _fixunsxfdi_s.o _fixunstfdi_s.o _floatdisf_s.o _floatdidf_s.o _floatdixf_s.o _floatditf_s.o _floatundisf_s.o _floatundidf_s.o _floatundixf_s.o _floatunditf_s.o _divdi3_s.o _moddi3_s.o _udivdi3_s.o _umoddi3_s.o _udiv_w_sdiv_s.o _udivmoddi4_s.o darwin-ldouble_s.o ppc64-fp_s.o adddf3_s.o addsf3_s.o divdf3_s.o divsf3_s.o eqdf2_s.o eqsf2_s.o extendsfdf2_s.o fixdfsi_s.o fixsfsi_s.o floatsidf_s.o floatsisf_s.o floatunsidf_s.o floatunsisf_s.o gedf2_s.o gesf2_s.o ledf2_s.o lesf2_s.o muldf3_s.o mulsf3_s.o negdf2_s.o negsf2_s.o subdf3_s.o subsf3_s.o truncdfsf2_s.o unorddf2_s.o unordsf2_s.o tramp_s.o unwind-dw2_s.o unwind-dw2-fde-glibc_s.o unwind-sjlj_s.o gthr-gnat_s.o unwind-c_s.o emutls_s.o -lc && rm -f 64/libgcc_s.so && if [ -f 64/libgcc_s.so.1 ]; then mv -f 64/libgcc_s.so.1 64/libgcc_s.so.1.backup; else true; fi && mv 64/libgcc_s.so.1.tmp 64/libgcc_s.so.1 && ln -s libgcc_s.so.1 64/libgcc_s.so
/usr/powerpc-linux-gnu/bin/ld: skipping incompatible /usr/powerpc-linux-gnu/lib/libc.so when searching for -lc /usr/powerpc-linux-gnu/bin/ld: skipping incompatible /usr/powerpc-linux-gnu/lib/libc.a when searching for -lc /usr/powerpc-linux-gnu/bin/ld: skipping incompatible /usr/powerpc-linux-gnu/bin/../../lib/libc.so when searching for -lc /usr/powerpc-linux-gnu/bin/ld: skipping incompatible /usr/powerpc-linux-gnu/bin/../../lib/libc.a when searching for -lc /usr/powerpc-linux-gnu/bin/ld: cannot find -lc
collect2: ld returned 1 exit status

btw, it's against libc and not uclibc. I tried against uclibc but I have another build failure.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://busybox.net/lists/buildroot/attachments/20080620/e6a39ab6/attachment.htm

#4 lore raw
Quoted 7 lines · Fathi Boudra
Quoted 3 lines

If there are problems then it would make more sense to fixup 4.3.1, really.

I agree but there's no clue so far:

btw, it's against libc and not uclibc.

Don't get me wrong, but i'm not interrested in glibc in this context.

Quoted 2 lines

I tried against uclibc but I
have another build failure.

That would be more interresting, yes.
What thing are you targeting? I could try a CHRP32 defconfig from the kernel, or is there some config that would actually run on e.g. qemu?

#11 lore raw
In reply to Bernhard Fischer
Quoted 1 line
Quoted 1 line
Quoted 1 line
Quoted 1 line
Quoted 1 line

"Bernhard" == Bernhard Fischer <[email protected]> writes:

Quoted 6 lines · Fathi Boudra
Quoted 6 lines

Could you add gcc-4.3.0 too ?

It seems gcc-4.3.1 cross-toolchain doesn't work on all architectures. This is just a guess because emdebian gcc-4.3.1 toolchains are successfully built for arm only.
It fails on powerpc, mips, etc..

Bernhard> If there are problems then it would make more sense to Bernhard> fixup 4.3.1, really.

Me too. I like to keep the number of package versions to support (not just gcc) to a minimum. It's hard enough to test the packages we have, without multiplying the number of combinations with X versions.

Signature · 1 line
Bye, Peter Korsgaard
#5 lore raw
In reply to Fathi Boudra
Quoted 1 line
Quoted 1 line
Quoted 1 line
Quoted 1 line
Quoted 1 line

"Fathi" == Fathi Boudra <[email protected]> writes:

Fathi> /usr/powerpc-linux-gnu/bin/ld: cannot find -lc Fathi> collect2: ld returned 1 exit status

Fathi> btw, it's against libc and not uclibc. I tried against uclibc Fathi> but I have another build failure.

I also seem to have problems on powerpc, but haven't looked at it yet in detail:

/home/peko/source/buildroot/toolchain_build_powerpc/gcc-4.3.1/libgcc/../libdecnumber/decExcept.c:30:18: error: fenv.h: No such file or directory make[2]: *** [decExcept.o] Error 1
make[2]: Leaving directory `/home/peko/source/buildroot/toolchain_build_powerpc/gcc-4.3.1-initial/powerpc-linux-uclibc/libgcc' make[1]: *** [all-target-libgcc] Error 2
make[1]: Leaving directory
`/home/peko/source/buildroot/toolchain_build_powerpc/gcc-4.3.1-initial'

Signature · 1 line
Bye, Peter Korsgaard
#6 lore raw
Quoted 11 lines · On Friday 20 June 2008 20:32:07 Peter Korsgaard wrote:

I also seem to have problems on powerpc, but haven't looked at it yet in detail:

/home/peko/source/buildroot/toolchain_build_powerpc/gcc-4.3.1/libgcc/../lib decnumber/decExcept.c:30:18: error: fenv.h: No such file or directory make[2]: *** [decExcept.o] Error 1
make[2]: Leaving directory /home/peko/source/buildroot/toolchain_build_powerpc/gcc-4.3.1-initial/powe rpc-linux-uclibc/libgcc' make[1]: *** [all-target-libgcc] Error 2 make[1]: Leaving directory /home/peko/source/buildroot/toolchain_build_powerpc/gcc-4.3.1-initial'

That's it. I retried right now and got same issue with a defconfig (except arch + gcc switch):

ld_powerpc/gcc-4.3.1/libgcc -I/buildd/build-area/toolchain/buildroot-chrp32/toolchain_build_powerpc/gcc-4.3.1/libgcc/. -I/buildd/build-area/toolchain/buildroot-chrp32/toolchain_build_powerpc/gcc-4.3.1/libgcc/../gcc -I/buildd/build-area/toolchain/buildroot-chrp32/toolchain_build_powerpc/gcc-4.3.1/libgcc/../include -I/buildd/build-area/toolchain/buildroot-chrp32/toolchain_build_powerpc/gcc-4.3.1/libgcc/../libdecnumber/dpd -I/buildd/build-area/toolchain/buildroot-chrp32/toolchain_build_powerpc/gcc-4.3.1/libgcc/../libdecnumber -I../../libdecnumber -DHAVE_CC_TLS -o decExcept.o-MT decExcept.o -MD -MP -MF
decExcept.dep -c /buildd/build-area/toolchain/buildroot-chrp32/toolchain_build_powerpc/gcc-4.3.1/libgcc/../libdecnumber/decExcept.c
/buildd/build-area/toolchain/buildroot-chrp32/toolchain_build_powerpc/gcc-4.3.1/libgcc/../libdecnumber/decExcept.c:30:18:
error: fenv.h: No such file or directory
make[2]: *** [decExcept.o] Error 1
make[2]: *** Waiting for unfinished jobs....
make[2]: Leaving directory
`/buildd/build-area/toolchain/buildroot-chrp32/toolchain_build_powerpc/gcc-4.3.1-initial/powerpc-linux-uclibc/libgcc'
make[1]: *** [all-target-libgcc] Error 2
make[1]: Leaving directory
`/buildd/build-area/toolchain/buildroot-chrp32/toolchain_build_powerpc/gcc-4.3.1-initial'
make: ***
[/buildd/build-area/toolchain/buildroot-chrp32/toolchain_build_powerpc/gcc-4.3.1-initial/.compiled]
Error 2

$ find . -name fenv.h
./toolchain_build_powerpc/uClibc_dev/usr/include/bits/fenv.h
./toolchain_build_powerpc/gcc-4.3.1/libstdc++-v3/include/tr1/fenv.h
./toolchain_build_powerpc/gcc-4.3.1/libstdc++-v3/include/c_compatibility/fenv.h
./toolchain_build_powerpc/uClibc-0.9.29/libc/sysdeps/linux/mips/bits/fenv.h
./toolchain_build_powerpc/uClibc-0.9.29/libc/sysdeps/linux/ia64/bits/fenv.h
./toolchain_build_powerpc/uClibc-0.9.29/libc/sysdeps/linux/e1/bits/fenv.h
./toolchain_build_powerpc/uClibc-0.9.29/libc/sysdeps/linux/sparc/bits/fenv.h
./toolchain_build_powerpc/uClibc-0.9.29/libc/sysdeps/linux/powerpc/bits/fenv.h
./toolchain_build_powerpc/uClibc-0.9.29/libc/sysdeps/linux/powerpc/fenv.h
./toolchain_build_powerpc/uClibc-0.9.29/libc/sysdeps/linux/sh/bits/fenv.h
./toolchain_build_powerpc/uClibc-0.9.29/libc/sysdeps/linux/i386/bits/fenv.h
./toolchain_build_powerpc/uClibc-0.9.29/libc/sysdeps/linux/common/bits/fenv.h
./toolchain_build_powerpc/uClibc-0.9.29/libc/sysdeps/linux/arm/bits/fenv.h
./toolchain_build_powerpc/uClibc-0.9.29/libc/sysdeps/linux/m68k/bits/fenv.h
./toolchain_build_powerpc/uClibc-0.9.29/libc/sysdeps/linux/alpha/bits/fenv.h
./toolchain_build_powerpc/uClibc-0.9.29/libc/sysdeps/linux/hppa/bits/fenv.h
./toolchain_build_powerpc/uClibc-0.9.29/libc/sysdeps/linux/x86_64/bits/fenv.h
./toolchain_build_powerpc/uClibc-0.9.29/test/math/fenv.h
#7 lore raw

using --disable-decimal-float workaround the issue.

uclibc fails to build later:

CC libc/sysdeps/linux/common/chdir.os
In file included from ./include/sys/param.h:22,
from libc/sysdeps/linux/common/chdir.c:13:
./include/limits.h:124:26: error: limits.h: No such file or directory make[2]: *** [libc/sysdeps/linux/common/chdir.os] Error 1
make[1]: *** [lib/libc.so.0] Error 2
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://busybox.net/lists/buildroot/attachments/20080620/a968e758/attachment.htm

#10 lore raw
In reply to Fathi Boudra
Quoted 14 lines · Fathi Boudra
Quoted 11 lines · On Friday 20 June 2008 20:32:07 Peter Korsgaard wrote:

I also seem to have problems on powerpc, but haven't looked at it yet in detail:

/home/peko/source/buildroot/toolchain_build_powerpc/gcc-4.3.1/libgcc/../lib decnumber/decExcept.c:30:18: error: fenv.h: No such file or directory make[2]: *** [decExcept.o] Error 1
make[2]: Leaving directory /home/peko/source/buildroot/toolchain_build_powerpc/gcc-4.3.1-initial/powe rpc-linux-uclibc/libgcc' make[1]: *** [all-target-libgcc] Error 2 make[1]: Leaving directory /home/peko/source/buildroot/toolchain_build_powerpc/gcc-4.3.1-initial'

Quoted 8 lines

That's it. I retried right now and got same issue with a defconfig (except arch + gcc switch):

ld_powerpc/gcc-4.3.1/libgcc -I/buildd/build-area/toolchain/buildroot-chrp32/toolchain_build_powerpc/gcc-4.3.1/libgcc/. -I/buildd/build-area/toolchain/buildroot-chrp32/toolchain_build_powerpc/gcc-4.3.1/libgcc/../gcc -I/buildd/build-area/toolchain/buildroot-chrp32/toolchain_build_powerpc/gcc-4.3.1/libgcc/../include -I/buildd/build-area/toolchain/buildroot-chrp32/toolchain_build_powerpc/gcc-4.3.1/libgcc/../libdecnumber/dpd -I/buildd/build-area/toolchain/buildroot-chrp32/toolchain_build_powerpc/gcc-4.3.1/libgcc/../libdecnumber -I../../libdecnumber -DHAVE_CC_TLS -o decExcept.o-MT decExcept.o -MD -MP -MF
decExcept.dep -c /buildd/build-area/toolchain/buildroot-chrp32/toolchain_build_powerpc/gcc-4.3.1/libgcc/../libdecnumber/decExcept.c
/buildd/build-area/toolchain/buildroot-chrp32/toolchain_build_powerpc/gcc-4.3.1/libgcc/../libdecnumber/decExcept.c:30:18:
error: fenv.h: No such file or directory

so why don't you just disable it?
I've only added fexcept*() for my personal use on i386, no other arch has it, currently. This is expected behaviour.

#8 lore raw
In reply to Fathi Boudra
Quoted 1 line · Fathi Boudra

using --disable-decimal-float workaround the issue.

exactly. I've added a knob behind the scenes that takes care of it. I'll commit it sometimes next week.

Quoted 7 lines

uclibc fails to build later:

CC libc/sysdeps/linux/common/chdir.os
In file included from ./include/sys/param.h:22,
from libc/sysdeps/linux/common/chdir.c:13:
./include/limits.h:124:26: error: limits.h: No such file or directory

I'm not sure why you see this (works for me). Please show me your

$ egrep -v "(^#|^$)" .config
from buildroot
#9 lore raw
Quoted 4 lines · Bernhard Fischer

I'm not sure why you see this (works for me). Please show me your

$ egrep -v "(^#|^$)" .config
from buildroot

default config, select powerpc architecture and gcc 4.3.1.
find attached buildroot config.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://busybox.net/lists/buildroot/attachments/20080625/9c122a85/attachment.htm
-------------- next part --------------
A non-text attachment was scrubbed...
Name: my.config
Type: application/octet-stream
Size: 2524 bytes
Desc: not available
Url : http://busybox.net/lists/buildroot/attachments/20080625/9c122a85/attachment.obj