From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 10355 invoked by alias); 26 Dec 2011 21:30:46 -0000 Received: (qmail 10339 invoked by uid 22791); 26 Dec 2011 21:30:44 -0000 X-SWARE-Spam-Status: No, hits=-1.6 required=5.0 tests=AWL,BAYES_00,RCVD_IN_DNSWL_NONE X-Spam-Check-By: sourceware.org Received: from smtp04.smtpout.orange.fr (HELO smtp.smtpout.orange.fr) (80.12.242.126) by sourceware.org (qpsmtpd/0.43rc1) with ESMTP; Mon, 26 Dec 2011 21:30:28 +0000 Received: from treguer.localnet ([90.32.2.129]) by mwinf5d27 with ME id DxWQ1i0062n0NGy03xWQYc; Mon, 26 Dec 2011 22:30:27 +0100 From: "Yann E. MORIN" To: crossgcc@sourceware.org Subject: Re: [PATCH 1/1] Add multilib build support for libc target. Libc is build -times in seperate sysroot directories. In a last step links are created to reflect the expected multilib structure. Date: Mon, 26 Dec 2011 21:30:00 -0000 User-Agent: KMail/1.13.5 (Linux/3.1.6-treguer; KDE/4.4.5; x86_64; ; ) Cc: "konrad.gaisler" References: <1321267079-14623-1-git-send-email-konrad@gaisler.com> <201112261756.46706.yann.morin.1998@anciens.enib.fr> <4EF8C533.9010104@gaisler.com> In-Reply-To: <4EF8C533.9010104@gaisler.com> MIME-Version: 1.0 Content-Type: Text/Plain; charset="iso-8859-15" Content-Transfer-Encoding: 7bit Message-Id: <201112262230.23785.yann.morin.1998@anciens.enib.fr> Mailing-List: contact crossgcc-help@sourceware.org; run by ezmlm Precedence: bulk List-Id: List-Subscribe: List-Archive: List-Post: List-Help: , Sender: crossgcc-owner@sourceware.org X-SW-Source: 2011-12/txt/msg00082.txt.bz2 Konrad, All, On Monday 26 December 2011 20:04:19 konrad.gaisler wrote: > On 12/26/2011 05:56 PM, Yann E. MORIN wrote: > > That is something we'll have to check later: is it possible to have more > > than one multilib running on the target? I believe that would need some > > non-trivial hackery to work properly... > No, not multiple multilibs, but one of the multilibs subdirs. For example > for the leon-sparc toolchain, the toolchain would have 4 subdirs: ./ > msoft-float/ > mv8 and mv8/msoft-float. > on hardware without fpu but mv8 you would only copy and use the > mv8/msoft-float multilib-subdir at /usr/lib, the others will not be used. So, it is not possible to have (hypthetical setup for ARM with neon): - the basic system (eg. /bin/busybox ;-)) using the default multilib from "sysroot/lib" and "sysroot/usr/lib" (resp as "/lib" and "/usr/lib" at runtime) - some 'optimised' components (eg. mp3 player) using the float-optimised multilib from "sysroot/neon/lib" and "sysroot/usr/lib/neon" (resp as "/lib/neon" and "/usr/lib/neon" at runtime) That would require that: - the linker 'ld' sets the proper path to the dynamic linker, at _built-time_ - the dynamic linker looks in the proper search-path Sounds like it's not too easy... :-/ But I agree with you, the most common setup would probably be to use only one variant on the target, either everything from the defaults /lib and /usr/lib, or everything from a sub-dir (eg. /lib/neon and usr/lib/neon) and not a mix... Let's make that work first! ;-) Thanks again! Regards, Yann E. MORIN. -- .-----------------.--------------------.------------------.--------------------. | Yann E. MORIN | Real-Time Embedded | /"\ ASCII RIBBON | Erics' conspiracy: | | +33 662 376 056 | Software Designer | \ / CAMPAIGN | ___ | | +33 223 225 172 `------------.-------: X AGAINST | \e/ There is no | | http://ymorin.is-a-geek.org/ | _/*\_ | / \ HTML MAIL | v conspiracy. | '------------------------------^-------^------------------^--------------------' -- For unsubscribe information see http://sourceware.org/lists.html#faq