linux-arm-kernel.lists.infradead.org archive mirror
 help / color / mirror / Atom feed
* kernel 3.8 make problem
@ 2013-01-30 11:55 Jean-Francois Moine
       [not found] ` <2822D1C2B9B19F4A8261F756A13373F8CAF61C@DFLE12.ent.ti.com>
  0 siblings, 1 reply; 9+ messages in thread
From: Jean-Francois Moine @ 2013-01-30 11:55 UTC (permalink / raw)
  To: linux-arm-kernel

Hi,

I build the kernels in my Cubox (Marvel Dove), and it is no more
possible with kernels 3.8 while it works well with a kernel 3.5
(on the same machine - the kernels 3.5 and 3.8 have quite the
same .config).

Doing:

make oldconfig

returns:

Makefile:495: /home/jef/kernel/arch//Makefile: No such file or directory
make: *** No rule to make target `/home/jef/kernel/arch//Makefile'.  Stop.

Going further, it seems that it is because the make command 'shell'
returns nothing. A simple Makefile as:

# Makefile
var=$(shell echo toto)
$(info var:$(var))

returns:

var:
make: *** No targets.  Stop.

With strace, I get:

...
read(3, "var=$(shell echo toto)\n$(info va"..., 4096) = 43
pipe([4, 5])                            = 0
vfork()                                 = 3545
close(5)                                = 0
read(4, "", 200)                        = 0
close(4)                                = 0
wait4(-1, [{WIFSIGNALED(s) && WTERMSIG(s) == SIGSEGV}], 0, NULL) = 3545
--- SIGCHLD (Child exited) @ 0 (0) ---
sigreturn()                             = ? (mask now [])
fstat64(1, {st_mode=S_IFCHR|0620, st_rdev=makedev(136, 1), ...}) = 0
mmap2(NULL, 4096, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_ANONYMOUS, -1, 0) = 0x76f70000
write(1, "var:\n", 5var:
)                   = 5
...

What did I miss?

-- 
Ken ar c'henta?	|	      ** Breizh ha Linux atav! **
Jef		|		http://moinejf.free.fr/

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

* kernel 3.8 make problem
       [not found]     ` <bedmt81oibwyqccqjqgpshjv.1359552548411@email.android.com>
@ 2013-01-30 14:00       ` Jean-Francois Moine
  0 siblings, 0 replies; 9+ messages in thread
From: Jean-Francois Moine @ 2013-01-30 14:00 UTC (permalink / raw)
  To: linux-arm-kernel

On Wed, 30 Jan 2013 13:29:11 +0000
"Menon, Nishanth" <nm@ti.com> wrote:

> I do a cross compile on x86 for omap(I am TI ;) ).
> 
> Looks like an setup issue IMHO.

What are you thinking about?

For more information, I can say that everything else is working fine
in my system: X11, network (mail, web browsing, ssh), compilation,
edition, scripting (bash, busybox, javascript, tcl/tk, ghostscript..)...
There is just a 'shell' problem with 'make'!

-- 
Ken ar c'henta?	|	      ** Breizh ha Linux atav! **
Jef		|		http://moinejf.free.fr/

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

* kernel 3.8 make problem
       [not found] <ttxj4oytvg02pxivwnruketi.1359554350723@email.android.com>
@ 2013-01-30 14:07 ` Jean-Francois Moine
  2013-01-30 14:59   ` Florian Fainelli
  0 siblings, 1 reply; 9+ messages in thread
From: Jean-Francois Moine @ 2013-01-30 14:07 UTC (permalink / raw)
  To: linux-arm-kernel

On Wed, 30 Jan 2013 13:59:12 +0000
"Menon, Nishanth" <nm@ti.com> wrote:

> Not completely sure.. I was thinking rebuilt binutils or the like.. An abi breakage would be a sad story though. Let's see what the list says..

Maybe. I am using Debian sid, and the libc is rather old (2.13). Are
there some changes in kernels > 3.5 which could ask for a newer libc?

-- 
Ken ar c'henta?	|	      ** Breizh ha Linux atav! **
Jef		|		http://moinejf.free.fr/

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

* kernel 3.8 make problem
  2013-01-30 14:07 ` Jean-Francois Moine
@ 2013-01-30 14:59   ` Florian Fainelli
  2013-01-30 15:35     ` Jean-Francois Moine
  2013-02-06 17:03     ` Jean-Francois Moine
  0 siblings, 2 replies; 9+ messages in thread
From: Florian Fainelli @ 2013-01-30 14:59 UTC (permalink / raw)
  To: linux-arm-kernel



On 01/30/2013 03:07 PM, Jean-Francois Moine wrote:
> On Wed, 30 Jan 2013 13:59:12 +0000
> "Menon, Nishanth" <nm@ti.com> wrote:
>
>> Not completely sure.. I was thinking rebuilt binutils or the like.. An abi breakage would be a sad story though. Let's see what the list says..
>
> Maybe. I am using Debian sid, and the libc is rather old (2.13). Are
> there some changes in kernels > 3.5 which could ask for a newer libc?
>

Are you using make 3.82 by chance?

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

* kernel 3.8 make problem
  2013-01-30 14:59   ` Florian Fainelli
@ 2013-01-30 15:35     ` Jean-Francois Moine
  2013-02-06 17:03     ` Jean-Francois Moine
  1 sibling, 0 replies; 9+ messages in thread
From: Jean-Francois Moine @ 2013-01-30 15:35 UTC (permalink / raw)
  To: linux-arm-kernel

On Wed, 30 Jan 2013 15:59:13 +0100
Florian Fainelli <florian@openwrt.org> wrote:

> > Maybe. I am using Debian sid, and the libc is rather old (2.13). Are
> > there some changes in kernels > 3.5 which could ask for a newer libc?
> 
> Are you using make 3.82 by chance?

No, it is 3.81 dated 2006-04-01.

-- 
Ken ar c'henta?	|	      ** Breizh ha Linux atav! **
Jef		|		http://moinejf.free.fr/

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

* kernel 3.8 make problem
  2013-01-30 14:59   ` Florian Fainelli
  2013-01-30 15:35     ` Jean-Francois Moine
@ 2013-02-06 17:03     ` Jean-Francois Moine
  2013-02-06 17:06       ` Russell King - ARM Linux
  1 sibling, 1 reply; 9+ messages in thread
From: Jean-Francois Moine @ 2013-02-06 17:03 UTC (permalink / raw)
  To: linux-arm-kernel

On Wed, 30 Jan 2013 15:59:13 +0100
Florian Fainelli <florian@openwrt.org> wrote:

> Are you using make 3.82 by chance?

I moved to make 3.82 and also libc6 2.17 (my Cubox runs Debian armhf
with kernel 3.8-rc6), and I can now make some programs (with make 2.81,
I was getting a seg fault of the child after the first vfork), but I
get the same errors when building a kernel. Does anybody have such a
problem?

-- 
Ken ar c'henta?	|	      ** Breizh ha Linux atav! **
Jef		|		http://moinejf.free.fr/

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

* kernel 3.8 make problem
  2013-02-06 17:03     ` Jean-Francois Moine
@ 2013-02-06 17:06       ` Russell King - ARM Linux
  2013-02-07 10:12         ` Jean-Francois Moine
  0 siblings, 1 reply; 9+ messages in thread
From: Russell King - ARM Linux @ 2013-02-06 17:06 UTC (permalink / raw)
  To: linux-arm-kernel

On Wed, Feb 06, 2013 at 06:03:05PM +0100, Jean-Francois Moine wrote:
> On Wed, 30 Jan 2013 15:59:13 +0100
> Florian Fainelli <florian@openwrt.org> wrote:
> 
> > Are you using make 3.82 by chance?
> 
> I moved to make 3.82 and also libc6 2.17 (my Cubox runs Debian armhf
> with kernel 3.8-rc6), and I can now make some programs (with make 2.81,
> I was getting a seg fault of the child after the first vfork), but I
> get the same errors when building a kernel. Does anybody have such a
> problem?

Are you using a 2G:2G VM split?  If so, don't (really no reason to use
that on the cubox.)

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

* kernel 3.8 make problem
  2013-02-06 17:06       ` Russell King - ARM Linux
@ 2013-02-07 10:12         ` Jean-Francois Moine
  2013-02-07 11:03           ` Will Deacon
  0 siblings, 1 reply; 9+ messages in thread
From: Jean-Francois Moine @ 2013-02-07 10:12 UTC (permalink / raw)
  To: linux-arm-kernel

On Wed, 6 Feb 2013 17:06:38 +0000
Russell King - ARM Linux <linux@arm.linux.org.uk> wrote:

> On Wed, Feb 06, 2013 at 06:03:05PM +0100, Jean-Francois Moine wrote:
> > I moved to make 3.82 and also libc6 2.17 (my Cubox runs Debian armhf
> > with kernel 3.8-rc6), and I can now make some programs (with make 2.81,
> > I was getting a seg fault of the child after the first vfork), but I
> > get the same errors when building a kernel. Does anybody have such a
> > problem?
> 
> Are you using a 2G:2G VM split?  If so, don't (really no reason to use
> that on the cubox.)

With 3/1 VM split, you cannot use at least 128Mb.

But, thanks, you are right: 'make' works with 3/1, but not with 2/2 nor 1/3.
The strangest thing is that all other programs seem to work fine.

What is the devil with make?

-- 
Ken ar c'henta?	|	      ** Breizh ha Linux atav! **
Jef		|		http://moinejf.free.fr/

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

* kernel 3.8 make problem
  2013-02-07 10:12         ` Jean-Francois Moine
@ 2013-02-07 11:03           ` Will Deacon
  0 siblings, 0 replies; 9+ messages in thread
From: Will Deacon @ 2013-02-07 11:03 UTC (permalink / raw)
  To: linux-arm-kernel

On Thu, Feb 07, 2013 at 10:12:06AM +0000, Jean-Francois Moine wrote:
> On Wed, 6 Feb 2013 17:06:38 +0000
> Russell King - ARM Linux <linux@arm.linux.org.uk> wrote:
> 
> > On Wed, Feb 06, 2013 at 06:03:05PM +0100, Jean-Francois Moine wrote:
> > > I moved to make 3.82 and also libc6 2.17 (my Cubox runs Debian armhf
> > > with kernel 3.8-rc6), and I can now make some programs (with make 2.81,
> > > I was getting a seg fault of the child after the first vfork), but I
> > > get the same errors when building a kernel. Does anybody have such a
> > > problem?
> > 
> > Are you using a 2G:2G VM split?  If so, don't (really no reason to use
> > that on the cubox.)
> 
> With 3/1 VM split, you cannot use at least 128Mb.
> 
> But, thanks, you are right: 'make' works with 3/1, but not with 2/2 nor 1/3.
> The strangest thing is that all other programs seem to work fine.
> 
> What is the devil with make?

It uses bottom-up mmap (guessing it changes the stack rlimit) which is
currently broken with 2:2 split. There's a fix queued in rmk's tree
[dcef4c760f ("ARM: 7638/1: memory: define TASK_UNMAPPED_BASE in terms of
TASK_SIZE")].

Will

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

end of thread, other threads:[~2013-02-07 11:03 UTC | newest]

Thread overview: 9+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2013-01-30 11:55 kernel 3.8 make problem Jean-Francois Moine
     [not found] ` <2822D1C2B9B19F4A8261F756A13373F8CAF61C@DFLE12.ent.ti.com>
     [not found]   ` <20130130142515.0600bf1e@armhf>
     [not found]     ` <bedmt81oibwyqccqjqgpshjv.1359552548411@email.android.com>
2013-01-30 14:00       ` Jean-Francois Moine
     [not found] <ttxj4oytvg02pxivwnruketi.1359554350723@email.android.com>
2013-01-30 14:07 ` Jean-Francois Moine
2013-01-30 14:59   ` Florian Fainelli
2013-01-30 15:35     ` Jean-Francois Moine
2013-02-06 17:03     ` Jean-Francois Moine
2013-02-06 17:06       ` Russell King - ARM Linux
2013-02-07 10:12         ` Jean-Francois Moine
2013-02-07 11:03           ` Will Deacon

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).