All of lore.kernel.org
 help / color / mirror / Atom feed
* rsk7203_defconfig build error
@ 2008-08-05 15:44 ` Adrian Bunk
  0 siblings, 0 replies; 8+ messages in thread
From: Adrian Bunk @ 2008-08-05 15:44 UTC (permalink / raw)
  To: lethal; +Cc: linux-sh, linux-kernel

Hi Paul,

rsk7203_defconfig fails to build with the following error:

<--  snip  -->

...
  LD      .tmp_vmlinux1
arch/sh/kernel/built-in.o:(__ksymtab+0xb8): undefined reference to `__udivsi3_i4i'
arch/sh/kernel/built-in.o:(__ksymtab+0xc8): undefined reference to `__sdivsi3_i4i'
make[1]: *** [.tmp_vmlinux1] Error 1

<--  snip  -->

That worked with 2.6.26, and these are far less undefined references 
than in the cases where libgcc was missing.

Does it build with your toolchain?
Do you have any clue what's going wrong here?

cu
Adrian

-- 

       "Is there not promise of rain?" Ling Tan asked suddenly out
        of the darkness. There had been need of rain for many days.
       "Only a promise," Lao Er said.
                                       Pearl S. Buck - Dragon Seed


^ permalink raw reply	[flat|nested] 8+ messages in thread

* rsk7203_defconfig build error
@ 2008-08-05 15:44 ` Adrian Bunk
  0 siblings, 0 replies; 8+ messages in thread
From: Adrian Bunk @ 2008-08-05 15:44 UTC (permalink / raw)
  To: lethal; +Cc: linux-sh, linux-kernel

Hi Paul,

rsk7203_defconfig fails to build with the following error:

<--  snip  -->

...
  LD      .tmp_vmlinux1
arch/sh/kernel/built-in.o:(__ksymtab+0xb8): undefined reference to `__udivsi3_i4i'
arch/sh/kernel/built-in.o:(__ksymtab+0xc8): undefined reference to `__sdivsi3_i4i'
make[1]: *** [.tmp_vmlinux1] Error 1

<--  snip  -->

That worked with 2.6.26, and these are far less undefined references 
than in the cases where libgcc was missing.

Does it build with your toolchain?
Do you have any clue what's going wrong here?

cu
Adrian

-- 

       "Is there not promise of rain?" Ling Tan asked suddenly out
        of the darkness. There had been need of rain for many days.
       "Only a promise," Lao Er said.
                                       Pearl S. Buck - Dragon Seed


^ permalink raw reply	[flat|nested] 8+ messages in thread

* Re: rsk7203_defconfig build error
  2008-08-05 15:44 ` Adrian Bunk
@ 2008-08-05 20:22   ` Yoshinori Sato
  -1 siblings, 0 replies; 8+ messages in thread
From: Yoshinori Sato @ 2008-08-05 20:22 UTC (permalink / raw)
  To: lethal, Adrian Bunk; +Cc: linux-sh, linux-kernel

At Tue, 5 Aug 2008 18:44:29 +0300,
Adrian Bunk wrote:
> 
> Hi Paul,
> 
> rsk7203_defconfig fails to build with the following error:
> 
> <--  snip  -->
> 
> ...
>   LD      .tmp_vmlinux1
> arch/sh/kernel/built-in.o:(__ksymtab+0xb8): undefined reference to `__udivsi3_i4i'
> arch/sh/kernel/built-in.o:(__ksymtab+0xc8): undefined reference to `__sdivsi3_i4i'
> make[1]: *** [.tmp_vmlinux1] Error 1
> 
> <--  snip  -->
> 
> That worked with 2.6.26, and these are far less undefined references 
> than in the cases where libgcc was missing.

This functions is not defined sh2 and sh2a.
See gcc-4.3.1/gcc/config/sh/lib1funcs.asm

Sorry I forget report.

This patch not tested.
Please test and apply.

Signed-off-by: Yoshinori Sato <ysato@users.sourceforge.jp>

diff --git a/arch/sh/kernel/sh_ksyms_32.c b/arch/sh/kernel/sh_ksyms_32.c
index 8f91653..6e1b1c2 100644
--- a/arch/sh/kernel/sh_ksyms_32.c
+++ b/arch/sh/kernel/sh_ksyms_32.c
@@ -107,10 +107,12 @@ DECLARE_EXPORT(__movmemSI12_i4);
  * GCC >= 4.2 emits these for division, as do GCC 4.1.x versions of the ST
  * compiler which include backported patches.
  */
-DECLARE_EXPORT(__sdivsi3_i4i);
 DECLARE_EXPORT(__udiv_qrnnd_16);
+#if !defined(CONFIG_CPU_SH2)
+DECLARE_EXPORT(__sdivsi3_i4i);
 DECLARE_EXPORT(__udivsi3_i4i);
 #endif
+#endif
 #else /* GCC 3.x */
 DECLARE_EXPORT(__movstr_i4_even);
 DECLARE_EXPORT(__movstr_i4_odd);

> Does it build with your toolchain?
> Do you have any clue what's going wrong here?
> 
> cu
> Adrian
> 
> -- 
> 
>        "Is there not promise of rain?" Ling Tan asked suddenly out
>         of the darkness. There had been need of rain for many days.
>        "Only a promise," Lao Er said.
>                                        Pearl S. Buck - Dragon Seed
> 
> --
> To unsubscribe from this list: send the line "unsubscribe linux-sh" in
> the body of a message to majordomo@vger.kernel.org
> More majordomo info at  http://vger.kernel.org/majordomo-info.html

-- 
Yoshinori Sato
<ysato@users.sourceforge.jp>

^ permalink raw reply related	[flat|nested] 8+ messages in thread

* Re: rsk7203_defconfig build error
@ 2008-08-05 20:22   ` Yoshinori Sato
  0 siblings, 0 replies; 8+ messages in thread
From: Yoshinori Sato @ 2008-08-05 20:22 UTC (permalink / raw)
  To: lethal, Adrian Bunk; +Cc: linux-sh, linux-kernel

At Tue, 5 Aug 2008 18:44:29 +0300,
Adrian Bunk wrote:
> 
> Hi Paul,
> 
> rsk7203_defconfig fails to build with the following error:
> 
> <--  snip  -->
> 
> ...
>   LD      .tmp_vmlinux1
> arch/sh/kernel/built-in.o:(__ksymtab+0xb8): undefined reference to `__udivsi3_i4i'
> arch/sh/kernel/built-in.o:(__ksymtab+0xc8): undefined reference to `__sdivsi3_i4i'
> make[1]: *** [.tmp_vmlinux1] Error 1
> 
> <--  snip  -->
> 
> That worked with 2.6.26, and these are far less undefined references 
> than in the cases where libgcc was missing.

This functions is not defined sh2 and sh2a.
See gcc-4.3.1/gcc/config/sh/lib1funcs.asm

Sorry I forget report.

This patch not tested.
Please test and apply.

Signed-off-by: Yoshinori Sato <ysato@users.sourceforge.jp>

diff --git a/arch/sh/kernel/sh_ksyms_32.c b/arch/sh/kernel/sh_ksyms_32.c
index 8f91653..6e1b1c2 100644
--- a/arch/sh/kernel/sh_ksyms_32.c
+++ b/arch/sh/kernel/sh_ksyms_32.c
@@ -107,10 +107,12 @@ DECLARE_EXPORT(__movmemSI12_i4);
  * GCC >= 4.2 emits these for division, as do GCC 4.1.x versions of the ST
  * compiler which include backported patches.
  */
-DECLARE_EXPORT(__sdivsi3_i4i);
 DECLARE_EXPORT(__udiv_qrnnd_16);
+#if !defined(CONFIG_CPU_SH2)
+DECLARE_EXPORT(__sdivsi3_i4i);
 DECLARE_EXPORT(__udivsi3_i4i);
 #endif
+#endif
 #else /* GCC 3.x */
 DECLARE_EXPORT(__movstr_i4_even);
 DECLARE_EXPORT(__movstr_i4_odd);

> Does it build with your toolchain?
> Do you have any clue what's going wrong here?
> 
> cu
> Adrian
> 
> -- 
> 
>        "Is there not promise of rain?" Ling Tan asked suddenly out
>         of the darkness. There had been need of rain for many days.
>        "Only a promise," Lao Er said.
>                                        Pearl S. Buck - Dragon Seed
> 
> --
> To unsubscribe from this list: send the line "unsubscribe linux-sh" in
> the body of a message to majordomo@vger.kernel.org
> More majordomo info at  http://vger.kernel.org/majordomo-info.html

-- 
Yoshinori Sato
<ysato@users.sourceforge.jp>

^ permalink raw reply related	[flat|nested] 8+ messages in thread

* Re: rsk7203_defconfig build error
  2008-08-05 20:22   ` Yoshinori Sato
@ 2008-08-06  6:03     ` Paul Mundt
  -1 siblings, 0 replies; 8+ messages in thread
From: Paul Mundt @ 2008-08-06  6:03 UTC (permalink / raw)
  To: Yoshinori Sato; +Cc: Adrian Bunk, linux-sh, linux-kernel

On Tue, Aug 05, 2008 at 04:22:54PM -0400, Yoshinori Sato wrote:
> At Tue, 5 Aug 2008 18:44:29 +0300,
> Adrian Bunk wrote:
> > 
> > Hi Paul,
> > 
> > rsk7203_defconfig fails to build with the following error:
> > 
> > <--  snip  -->
> > 
> > ...
> >   LD      .tmp_vmlinux1
> > arch/sh/kernel/built-in.o:(__ksymtab+0xb8): undefined reference to `__udivsi3_i4i'
> > arch/sh/kernel/built-in.o:(__ksymtab+0xc8): undefined reference to `__sdivsi3_i4i'
> > make[1]: *** [.tmp_vmlinux1] Error 1
> > 
> > <--  snip  -->
> > 
> > That worked with 2.6.26, and these are far less undefined references 
> > than in the cases where libgcc was missing.
> 
> This functions is not defined sh2 and sh2a.
> See gcc-4.3.1/gcc/config/sh/lib1funcs.asm
> 
> Sorry I forget report.
> 
> This patch not tested.
> Please test and apply.
> 
> Signed-off-by: Yoshinori Sato <ysato@users.sourceforge.jp>
> 
This works fine for my toolchains at least, so I'll apply it.

^ permalink raw reply	[flat|nested] 8+ messages in thread

* Re: rsk7203_defconfig build error
@ 2008-08-06  6:03     ` Paul Mundt
  0 siblings, 0 replies; 8+ messages in thread
From: Paul Mundt @ 2008-08-06  6:03 UTC (permalink / raw)
  To: Yoshinori Sato; +Cc: Adrian Bunk, linux-sh, linux-kernel

On Tue, Aug 05, 2008 at 04:22:54PM -0400, Yoshinori Sato wrote:
> At Tue, 5 Aug 2008 18:44:29 +0300,
> Adrian Bunk wrote:
> > 
> > Hi Paul,
> > 
> > rsk7203_defconfig fails to build with the following error:
> > 
> > <--  snip  -->
> > 
> > ...
> >   LD      .tmp_vmlinux1
> > arch/sh/kernel/built-in.o:(__ksymtab+0xb8): undefined reference to `__udivsi3_i4i'
> > arch/sh/kernel/built-in.o:(__ksymtab+0xc8): undefined reference to `__sdivsi3_i4i'
> > make[1]: *** [.tmp_vmlinux1] Error 1
> > 
> > <--  snip  -->
> > 
> > That worked with 2.6.26, and these are far less undefined references 
> > than in the cases where libgcc was missing.
> 
> This functions is not defined sh2 and sh2a.
> See gcc-4.3.1/gcc/config/sh/lib1funcs.asm
> 
> Sorry I forget report.
> 
> This patch not tested.
> Please test and apply.
> 
> Signed-off-by: Yoshinori Sato <ysato@users.sourceforge.jp>
> 
This works fine for my toolchains at least, so I'll apply it.

^ permalink raw reply	[flat|nested] 8+ messages in thread

* Re: rsk7203_defconfig build error
  2008-08-05 20:22   ` Yoshinori Sato
@ 2008-08-06 17:29     ` Adrian Bunk
  -1 siblings, 0 replies; 8+ messages in thread
From: Adrian Bunk @ 2008-08-06 17:29 UTC (permalink / raw)
  To: Yoshinori Sato; +Cc: lethal, linux-sh, linux-kernel

On Tue, Aug 05, 2008 at 04:22:54PM -0400, Yoshinori Sato wrote:
> At Tue, 5 Aug 2008 18:44:29 +0300,
> Adrian Bunk wrote:
> > 
> > Hi Paul,
> > 
> > rsk7203_defconfig fails to build with the following error:
> > 
> > <--  snip  -->
> > 
> > ...
> >   LD      .tmp_vmlinux1
> > arch/sh/kernel/built-in.o:(__ksymtab+0xb8): undefined reference to `__udivsi3_i4i'
> > arch/sh/kernel/built-in.o:(__ksymtab+0xc8): undefined reference to `__sdivsi3_i4i'
> > make[1]: *** [.tmp_vmlinux1] Error 1
> > 
> > <--  snip  -->
> > 
> > That worked with 2.6.26, and these are far less undefined references 
> > than in the cases where libgcc was missing.
> 
> This functions is not defined sh2 and sh2a.
> See gcc-4.3.1/gcc/config/sh/lib1funcs.asm
> 
> Sorry I forget report.
> 
> This patch not tested.
> Please test and apply.
>...

Thanks, that fixed the compilation for me.

cu
Adrian

-- 

       "Is there not promise of rain?" Ling Tan asked suddenly out
        of the darkness. There had been need of rain for many days.
       "Only a promise," Lao Er said.
                                       Pearl S. Buck - Dragon Seed


^ permalink raw reply	[flat|nested] 8+ messages in thread

* Re: rsk7203_defconfig build error
@ 2008-08-06 17:29     ` Adrian Bunk
  0 siblings, 0 replies; 8+ messages in thread
From: Adrian Bunk @ 2008-08-06 17:29 UTC (permalink / raw)
  To: Yoshinori Sato; +Cc: lethal, linux-sh, linux-kernel

On Tue, Aug 05, 2008 at 04:22:54PM -0400, Yoshinori Sato wrote:
> At Tue, 5 Aug 2008 18:44:29 +0300,
> Adrian Bunk wrote:
> > 
> > Hi Paul,
> > 
> > rsk7203_defconfig fails to build with the following error:
> > 
> > <--  snip  -->
> > 
> > ...
> >   LD      .tmp_vmlinux1
> > arch/sh/kernel/built-in.o:(__ksymtab+0xb8): undefined reference to `__udivsi3_i4i'
> > arch/sh/kernel/built-in.o:(__ksymtab+0xc8): undefined reference to `__sdivsi3_i4i'
> > make[1]: *** [.tmp_vmlinux1] Error 1
> > 
> > <--  snip  -->
> > 
> > That worked with 2.6.26, and these are far less undefined references 
> > than in the cases where libgcc was missing.
> 
> This functions is not defined sh2 and sh2a.
> See gcc-4.3.1/gcc/config/sh/lib1funcs.asm
> 
> Sorry I forget report.
> 
> This patch not tested.
> Please test and apply.
>...

Thanks, that fixed the compilation for me.

cu
Adrian

-- 

       "Is there not promise of rain?" Ling Tan asked suddenly out
        of the darkness. There had been need of rain for many days.
       "Only a promise," Lao Er said.
                                       Pearl S. Buck - Dragon Seed


^ permalink raw reply	[flat|nested] 8+ messages in thread

end of thread, other threads:[~2008-08-06 17:32 UTC | newest]

Thread overview: 8+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2008-08-05 15:44 rsk7203_defconfig build error Adrian Bunk
2008-08-05 15:44 ` Adrian Bunk
2008-08-05 20:22 ` Yoshinori Sato
2008-08-05 20:22   ` Yoshinori Sato
2008-08-06  6:03   ` Paul Mundt
2008-08-06  6:03     ` Paul Mundt
2008-08-06 17:29   ` Adrian Bunk
2008-08-06 17:29     ` Adrian Bunk

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.