Re: [PATCH COMMITTED]: Consolidate Sparc/Linux-GNU configurations.
David Miller writes:
>
> This patch rolls up some issues with sparc*-*-linux* configurations
> I've wanted to cure for years. The biggest two problems were:
>
> 1) Lack of use of config/linux.h, resulting in chronic problems
> because config/sparc/linux{,64}.h was not updated or updated
> incorrectly.
>
> 2) Distributions patch gcc in various ways for Sparc in order to
> get a biarch compiler defaulting to 32-bit output.
>
> And those are both cured here. The latter is addressed by fixing the
> ASM_CPU_DEFAULT_SPEC define in config/sparc/linux64.h, which should
> have been ASM_CPU64_DEFAULT_SPEC, and also adding support for
> "--enable-target=all" to sparc-*-linux* just like for powerpc and
> x86.
>
> I've regstrapped this using:
>
> sparc-*-linux*
> sparc-*-linux* + --enable-targets=all
> sparc64-*-linux*
Building GCC-4.3 with this patch (compared to the patch previously
used by debian [1]), I get differing symbol versions for the Debian build
on sparc in libgcc1. Both builds are configured --with-long-double-128.
The 32bit version has symbols where the symbol version did change from
GCC_LDBL_4.0.0 to GCC_4.0.0, the 64bit version some symbols version
did change from GLIBC_2.2 to GLIBC_2.0.
Matthias
[1] http://svn.debian.org/wsvn/gcccvs/branches/sid/gcc-4.3/debian/patches/sparc-biarch.dpatch?op=file&rev=0&sc=0
The diff is <current debian version> <version with posted patch>.
dpkg-gensymbols: warning: some new symbols appeared in the symbols file: see diff output below
dpkg-gensymbols: warning: some symbols disappeared in the symbols file: see diff output below
dpkg-gensymbols: warning: debian/libgcc1/DEBIAN/symbols doesn't match completely debian/libgcc1.symbols.sparc
--- dpkg-gensymbolsApyTYK 2008-05-17 10:05:36.000000000 +0000
+++ dpkg-gensymbolslI2rwx 2008-05-17 10:05:36.000000000 +0000
@@ -7,8 +7,8 @@
GCC_4.0.0@GCC_4.0.0 1:4.1.1-21
GCC_4.2.0@GCC_4.2.0 1:4.1.1-21
GCC_4.3.0@GCC_4.3.0 1:4.3
- GCC_LDBL_3.0@GCC_LDBL_3.0 1:4.2.1-4
- GCC_LDBL_4.0.0@GCC_LDBL_4.0.0 1:4.2.1-4
+#MISSING: 1:4.3.0-5# GCC_LDBL_3.0@GCC_LDBL_3.0 1:4.2.1-4
+#MISSING: 1:4.3.0-5# GCC_LDBL_4.0.0@GCC_LDBL_4.0.0 1:4.2.1-4
GLIBC_2.0@GLIBC_2.0 1:4.1.1-21
_Unwind_Backtrace@GCC_3.3 1:4.1.1-21
_Unwind_DeleteException@GCC_3.0 1:4.1.1-21
@@ -48,7 +48,8 @@
__divdc3@GCC_4.0.0 1:4.1.1-21
__divdi3@GLIBC_2.0 1:4.1.1-21
__divsc3@GCC_4.0.0 1:4.1.1-21
- __divtc3@GCC_LDBL_4.0.0 1:4.2.1-4
+ __divtc3@GCC_4.0.0 1:4.3.0-5
+#MISSING: 1:4.3.0-5# __divtc3@GCC_LDBL_4.0.0 1:4.2.1-4
__emutls_get_address@GCC_4.3.0 1:4.3
__emutls_register_common@GCC_4.3.0 1:4.3
__enable_execute_stack@GCC_3.4.2 1:4.1.1-21
@@ -56,15 +57,18 @@
__ffssi2@GCC_4.3.0 1:4.3
__fixdfdi@GCC_3.0 1:4.1.1-21
__fixsfdi@GCC_3.0 1:4.1.1-21
- __fixtfdi@GCC_LDBL_3.0 1:4.2.1-4
+ __fixtfdi@GCC_3.0 1:4.3.0-5
+#MISSING: 1:4.3.0-5# __fixtfdi@GCC_LDBL_3.0 1:4.2.1-4
__fixunsdfdi@GCC_3.0 1:4.1.1-21
__fixunsdfsi@GCC_3.0 1:4.1.1-21
__fixunssfdi@GCC_3.0 1:4.1.1-21
__fixunssfsi@GCC_3.0 1:4.1.1-21
- __fixunstfdi@GCC_LDBL_3.0 1:4.2.1-4
+ __fixunstfdi@GCC_3.0 1:4.3.0-5
+#MISSING: 1:4.3.0-5# __fixunstfdi@GCC_LDBL_3.0 1:4.2.1-4
__floatdidf@GCC_3.0 1:4.1.1-21
__floatdisf@GCC_3.0 1:4.1.1-21
- __floatditf@GCC_LDBL_3.0 1:4.2.1-4
+ __floatditf@GCC_3.0 1:4.3.0-5
+#MISSING: 1:4.3.0-5# __floatditf@GCC_LDBL_3.0 1:4.2.1-4
__floatundidf@GCC_4.2.0 1:4.2.1-4
__floatundisf@GCC_4.2.0 1:4.2.1-4
__floatunditf@GCC_4.2.0 1:4.2.1-4
@@ -75,7 +79,8 @@
__muldc3@GCC_4.0.0 1:4.1.1-21
__muldi3@GCC_3.0 1:4.1.1-21
__mulsc3@GCC_4.0.0 1:4.1.1-21
- __multc3@GCC_LDBL_4.0.0 1:4.2.1-4
+ __multc3@GCC_4.0.0 1:4.3.0-5
+#MISSING: 1:4.3.0-5# __multc3@GCC_LDBL_4.0.0 1:4.2.1-4
__mulvdi3@GCC_3.0 1:4.1.1-21
__mulvsi3@GCC_3.0 1:4.1.1-21
__negdi2@GCC_3.0 1:4.1.1-21
@@ -87,7 +92,8 @@
__popcountsi2@GCC_3.4 1:4.1.1-21
__powidf2@GCC_4.0.0 1:4.1.1-21
__powisf2@GCC_4.0.0 1:4.1.1-21
- __powitf2@GCC_LDBL_4.0.0 1:4.2.1-4
+ __powitf2@GCC_4.0.0 1:4.3.0-5
+#MISSING: 1:4.3.0-5# __powitf2@GCC_LDBL_4.0.0 1:4.2.1-4
__register_frame@GLIBC_2.0 1:4.1.1-21
__register_frame_info@GLIBC_2.0 1:4.1.1-21
__register_frame_info_bases@GCC_3.0 1:4.1.1-21
dpkg-gensymbols: warning: some new symbols appeared in the symbols file: see diff output below
dpkg-gensymbols: warning: some symbols disappeared in the symbols file: see diff output below
dpkg-gensymbols: warning: debian/lib64gcc1/DEBIAN/symbols doesn't match completely debian/lib64gcc1.symbols.sparc
--- dpkg-gensymbolsJ0wnU5 2008-05-17 10:05:56.000000000 +0000
+++ dpkg-gensymbolsArcwkV 2008-05-17 10:05:56.000000000 +0000
@@ -8,7 +8,8 @@
GCC_4.0.0@GCC_4.0.0 1:4.1.1-21
GCC_4.2.0@GCC_4.2.0 1:4.1.1-21
GCC_4.3.0@GCC_4.3.0 1:4.3
- GLIBC_2.2@GLIBC_2.2 1:4.1.1-21
+ GLIBC_2.0@GLIBC_2.0 1:4.3.0-5
+#MISSING: 1:4.3.0-5# GLIBC_2.2@GLIBC_2.2 1:4.1.1-21
_Unwind_Backtrace@GCC_3.3 1:4.1.1-21
_Unwind_DeleteException@GCC_3.0 1:4.1.1-21
_Unwind_FindEnclosingFunction@GCC_3.3 1:4.1.1-21
@@ -43,8 +44,10 @@
__cmpti2@GCC_3.0 1:4.1.1-21
__ctzdi2@GCC_3.4 1:4.1.1-21
__ctzti2@GCC_3.4 1:4.1.1-21
- __deregister_frame@GLIBC_2.2 1:4.1.1-21
- __deregister_frame_info@GLIBC_2.2 1:4.1.1-21
+ __deregister_frame@GLIBC_2.0 1:4.3.0-5
+#MISSING: 1:4.3.0-5# __deregister_frame@GLIBC_2.2 1:4.1.1-21
+ __deregister_frame_info@GLIBC_2.0 1:4.3.0-5
+#MISSING: 1:4.3.0-5# __deregister_frame_info@GLIBC_2.2 1:4.1.1-21
__deregister_frame_info_bases@GCC_3.0 1:4.1.1-21
__divdc3@GCC_4.0.0 1:4.1.1-21
__divsc3@GCC_4.0.0 1:4.1.1-21
@@ -69,7 +72,8 @@
__floatuntidf@GCC_4.2.0 1:4.2.1-4
__floatuntisf@GCC_4.2.0 1:4.2.1-4
__floatuntitf@GCC_4.2.0 1:4.2.1-4
- __frame_state_for@GLIBC_2.2 1:4.1.1-21
+ __frame_state_for@GLIBC_2.0 1:4.3.0-5
+#MISSING: 1:4.3.0-5# __frame_state_for@GLIBC_2.2 1:4.1.1-21
__gcc_personality_v0@GCC_3.3.1 1:4.1.1-21
__lshrti3@GCC_3.0 1:4.1.1-21
__modti3@GCC_3.0 1:4.1.1-21
@@ -91,12 +95,16 @@
__powidf2@GCC_4.0.0 1:4.1.1-21
__powisf2@GCC_4.0.0 1:4.1.1-21
__powitf2@GCC_4.0.0 1:4.1.1-21
- __register_frame@GLIBC_2.2 1:4.1.1-21
- __register_frame_info@GLIBC_2.2 1:4.1.1-21
+ __register_frame@GLIBC_2.0 1:4.3.0-5
+#MISSING: 1:4.3.0-5# __register_frame@GLIBC_2.2 1:4.1.1-21
+ __register_frame_info@GLIBC_2.0 1:4.3.0-5
+#MISSING: 1:4.3.0-5# __register_frame_info@GLIBC_2.2 1:4.1.1-21
__register_frame_info_bases@GCC_3.0 1:4.1.1-21
- __register_frame_info_table@GLIBC_2.2 1:4.1.1-21
+ __register_frame_info_table@GLIBC_2.0 1:4.3.0-5
+#MISSING: 1:4.3.0-5# __register_frame_info_table@GLIBC_2.2 1:4.1.1-21
__register_frame_info_table_bases@GCC_3.0 1:4.1.1-21
- __register_frame_table@GLIBC_2.2 1:4.1.1-21
+ __register_frame_table@GLIBC_2.0 1:4.3.0-5
+#MISSING: 1:4.3.0-5# __register_frame_table@GLIBC_2.2 1:4.1.1-21
__subvdi3@GCC_3.0 1:4.1.1-21
__subvsi3@GCC_3.0 1:4.1.1-21
__subvti3@GCC_3.4.4 1:4.1.1-21
Reply to: