From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mail-pd0-f175.google.com (mail-pd0-f175.google.com [209.85.192.175]) by kanga.kvack.org (Postfix) with ESMTP id 900796B0032 for ; Tue, 31 Mar 2015 03:47:44 -0400 (EDT) Received: by pdrw1 with SMTP id w1so4226734pdr.0 for ; Tue, 31 Mar 2015 00:47:44 -0700 (PDT) Received: from mail.sfc.wide.ad.jp (shonan.sfc.wide.ad.jp. [203.178.142.130]) by mx.google.com with ESMTPS id cz7si18296258pad.49.2015.03.31.00.47.43 for (version=TLSv1.2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Tue, 31 Mar 2015 00:47:43 -0700 (PDT) Date: Tue, 31 Mar 2015 16:47:40 +0900 Message-ID: From: Hajime Tazaki Subject: Re: [RFC PATCH 00/11] an introduction of library operating system for Linux (LibOS) In-Reply-To: <5518F030.4040003@nod.at> References: <1427202642-1716-1-git-send-email-tazaki@sfc.wide.ad.jp> <551164ED.5000907@nod.at> <55117565.6080002@nod.at> <55118277.5070909@nod.at> <55133BAF.30301@nod.at> <5514560A.7040707@nod.at> <55152137.20405@nod.at> <5518F030.4040003@nod.at> MIME-Version: 1.0 (generated by SEMI 1.14.6 - "Maruoka") Content-Type: text/plain; charset=US-ASCII Sender: owner-linux-mm@kvack.org List-ID: To: richard@nod.at Cc: linux-arch@vger.kernel.org, arnd@arndb.de, corbet@lwn.net, cl@linux.com, penberg@kernel.org, rientjes@google.com, iamjoonsoo.kim@lge.com, akpm@linux-foundation.org, linux-kernel@vger.kernel.org, linux-doc@vger.kernel.org, netdev@vger.kernel.org, linux-mm@kvack.org, jdike@addtoit.com, rusty@rustcorp.com.au, mathieu.lacage@gmail.com At Mon, 30 Mar 2015 08:41:52 +0200, Richard Weinberger wrote: > > one more concern on the out-of-arch-tree design is that how > > to handle our asm-generic-based header files > > (arch/lib/include/asm). we have been heavily used > > 'generic-y' in the Kbuild file to reuse header files. > > As noted before, libos is something in between. Maybe the asm-generic > stuff needs some modifications to make it work for libos. okay. > BTW: There is something really fishy wrt to your build process. > I did a ARCH=i386 build due to my regular kernel work and later a ARCH=lib build. > It seems to pickup old/unrelated object files. > After a make clean ARCH=i386 it build fine. > > ---cut--- > LIB liblinux-4.0.0-rc5.so > /usr/lib64/gcc/x86_64-suse-linux/4.8/../../../../x86_64-suse-linux/bin/ld: Warning: size of symbol `skb_copy_bits' changed from 10 in ./kernel/bpf/core.o to 441 in ./net/core/skbuff.o > ./net/ipv6/fib6_rules.o: In function `fib6_rule_lookup': > /home/rw/linux/net/ipv6/fib6_rules.c:34: multiple definition of `fib6_rule_lookup' (snip) right now arch/lib/Makefile isn't fully on the Kbuild system: build file dependency is not tracked at all. while I should learn more about Kbuild, I'd be happy if you would suggest how the Makefile should be. > ---cut--- > > While we're talking about the build process, how can I cross build libos? > Say a i386 libos on x86_64. For UML we have use SUBARCH. > i.e. make linux ARCH=um SUBARCH=i386 the cross build is not either implemented. if libos needs it, I'd start to think about the design: maybe SUBARCH-like mechanism is required. -- Hajime -- To unsubscribe, send a message with 'unsubscribe linux-mm' in the body to majordomo@kvack.org. For more info on Linux MM, see: http://www.linux-mm.org/ . Don't email: email@kvack.org