* SPARC64 2.6.23-rc8 binfmt_aout32 error
@ 2007-09-30 23:44 Sunil Amitkumar Janki
2007-09-30 23:50 ` David Miller
` (2 more replies)
0 siblings, 3 replies; 4+ messages in thread
From: Sunil Amitkumar Janki @ 2007-09-30 23:44 UTC (permalink / raw)
To: sparclinux
When I'm building 2.6.23-rc8 on SPARC64 (using a 64-bit CLFS
SVN tool chain consisting of GCC 4.2.1, Binutils 2.18 and Glibc
2.6.1) I get the following error:
> CC arch/sparc64/kernel/binfmt_aout32.o
> cc1: warnings being treated as errors
> arch/sparc64/kernel/binfmt_aout32.c: In function 'create_aout32_tables':
> arch/sparc64/kernel/binfmt_aout32.c:180: warning: cast from pointer to
> integer of different size
> arch/sparc64/kernel/binfmt_aout32.c:180: warning: cast from pointer to
> integer of different size
> arch/sparc64/kernel/binfmt_aout32.c:180: warning: cast from pointer to
> integer of different size
> arch/sparc64/kernel/binfmt_aout32.c:180: warning: cast from pointer to
> integer of different size
> arch/sparc64/kernel/binfmt_aout32.c:189: warning: cast from pointer to
> integer of different size
> arch/sparc64/kernel/binfmt_aout32.c:189: warning: cast from pointer to
> integer of different size
> arch/sparc64/kernel/binfmt_aout32.c:189: warning: cast from pointer to
> integer of different size
> arch/sparc64/kernel/binfmt_aout32.c:189: warning: cast from pointer to
> integer of different size
> make[1]: *** [arch/sparc64/kernel/binfmt_aout32.o] Error 1
> make: *** [arch/sparc64/kernel] Error 2
I don't know what the solution is (I don't know much about
kernel internals yet) but I hope this is enough to solve this
particular error. Otherwise I could also send my kernel config.
Sunil
^ permalink raw reply [flat|nested] 4+ messages in thread
* Re: SPARC64 2.6.23-rc8 binfmt_aout32 error
2007-09-30 23:44 SPARC64 2.6.23-rc8 binfmt_aout32 error Sunil Amitkumar Janki
@ 2007-09-30 23:50 ` David Miller
2007-09-30 23:59 ` David Miller
2007-10-01 10:24 ` Sunil Amitkumar Janki
2 siblings, 0 replies; 4+ messages in thread
From: David Miller @ 2007-09-30 23:50 UTC (permalink / raw)
To: sparclinux
From: Sunil Amitkumar Janki <devel.sjanki@gmail.com>
Date: Mon, 01 Oct 2007 01:44:42 +0200
> > CC arch/sparc64/kernel/binfmt_aout32.o
> > cc1: warnings being treated as errors
> > arch/sparc64/kernel/binfmt_aout32.c: In function 'create_aout32_tables':
> > arch/sparc64/kernel/binfmt_aout32.c:180: warning: cast from pointer to
> > integer of different size
> > arch/sparc64/kernel/binfmt_aout32.c:180: warning: cast from pointer to
> > integer of different size
> > arch/sparc64/kernel/binfmt_aout32.c:180: warning: cast from pointer to
> > integer of different size
> > arch/sparc64/kernel/binfmt_aout32.c:180: warning: cast from pointer to
> > integer of different size
> > arch/sparc64/kernel/binfmt_aout32.c:189: warning: cast from pointer to
> > integer of different size
> > arch/sparc64/kernel/binfmt_aout32.c:189: warning: cast from pointer to
> > integer of different size
> > arch/sparc64/kernel/binfmt_aout32.c:189: warning: cast from pointer to
> > integer of different size
> > arch/sparc64/kernel/binfmt_aout32.c:189: warning: cast from pointer to
> > integer of different size
> > make[1]: *** [arch/sparc64/kernel/binfmt_aout32.o] Error 1
> > make: *** [arch/sparc64/kernel] Error 2
>
> I don't know what the solution is (I don't know much about
> kernel internals yet) but I hope this is enough to solve this
> particular error. Otherwise I could also send my kernel config.
Turn off BINFMT_AOUT32 is a quick way to get a successful build,
I wonder if considered that :-)
I've never seen this build failure before, but will try to
reproduce with some gcc-4.2 compiler setups I have here.
^ permalink raw reply [flat|nested] 4+ messages in thread
* Re: SPARC64 2.6.23-rc8 binfmt_aout32 error
2007-09-30 23:44 SPARC64 2.6.23-rc8 binfmt_aout32 error Sunil Amitkumar Janki
2007-09-30 23:50 ` David Miller
@ 2007-09-30 23:59 ` David Miller
2007-10-01 10:24 ` Sunil Amitkumar Janki
2 siblings, 0 replies; 4+ messages in thread
From: David Miller @ 2007-09-30 23:59 UTC (permalink / raw)
To: sparclinux
From: Sunil Amitkumar Janki <devel.sjanki@gmail.com>
Date: Mon, 01 Oct 2007 01:44:42 +0200
> When I'm building 2.6.23-rc8 on SPARC64 (using a 64-bit CLFS
> SVN tool chain consisting of GCC 4.2.1, Binutils 2.18 and Glibc
> 2.6.1) I get the following error:
>
> > CC arch/sparc64/kernel/binfmt_aout32.o
> > cc1: warnings being treated as errors
> > arch/sparc64/kernel/binfmt_aout32.c: In function 'create_aout32_tables':
> > arch/sparc64/kernel/binfmt_aout32.c:180: warning: cast from pointer to
> > integer of different size
This patch below will likely fix the build failure.
But note that gcc-4.2.x is very widely known to miscompile
the sparc64 kernel, particularly on SMP, so even if you get
a build the kernel you end up will be mostly unusable.
I would really recommend you stay with gcc-4.1.x unless you are going
to work on fixing those gcc-4.2.x miscompilations, and I'm already on
the hook for that :-)
diff --git a/arch/sparc64/kernel/binfmt_aout32.c b/arch/sparc64/kernel/binfmt_aout32.c
index f205fc7..d208cc7 100644
--- a/arch/sparc64/kernel/binfmt_aout32.c
+++ b/arch/sparc64/kernel/binfmt_aout32.c
@@ -177,7 +177,7 @@ static u32 __user *create_aout32_tables(char __user *p, struct linux_binprm *bpr
get_user(c,p++);
} while (c);
}
- put_user(NULL,argv);
+ put_user(0,argv);
current->mm->arg_end = current->mm->env_start = (unsigned long) p;
while (envc-->0) {
char c;
@@ -186,7 +186,7 @@ static u32 __user *create_aout32_tables(char __user *p, struct linux_binprm *bpr
get_user(c,p++);
} while (c);
}
- put_user(NULL,envp);
+ put_user(0,envp);
current->mm->env_end = (unsigned long) p;
return sp;
}
^ permalink raw reply related [flat|nested] 4+ messages in thread
* Re: SPARC64 2.6.23-rc8 binfmt_aout32 error
2007-09-30 23:44 SPARC64 2.6.23-rc8 binfmt_aout32 error Sunil Amitkumar Janki
2007-09-30 23:50 ` David Miller
2007-09-30 23:59 ` David Miller
@ 2007-10-01 10:24 ` Sunil Amitkumar Janki
2 siblings, 0 replies; 4+ messages in thread
From: Sunil Amitkumar Janki @ 2007-10-01 10:24 UTC (permalink / raw)
To: sparclinux
David Miller wrote:
> Turn off BINFMT_AOUT32 is a quick way to get a successful build,
> I wonder if considered that :-)
>
> I've never seen this build failure before, but will try to
> reproduce with some gcc-4.2 compiler setups I have here.
>
I haven't got much more than a tool chain yet so then
I would have to build a GCC 4.1.2 compiler. Now with
your information I should and probably will do so.
I already tried to disable all other executable formats
but that didn't help much either. Thanks for the patch,
I will try building with it and report my findings.
Sunil
^ permalink raw reply [flat|nested] 4+ messages in thread
end of thread, other threads:[~2007-10-01 10:24 UTC | newest]
Thread overview: 4+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2007-09-30 23:44 SPARC64 2.6.23-rc8 binfmt_aout32 error Sunil Amitkumar Janki
2007-09-30 23:50 ` David Miller
2007-09-30 23:59 ` David Miller
2007-10-01 10:24 ` Sunil Amitkumar Janki
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.