From mboxrd@z Thu Jan 1 00:00:00 1970 From: Thomas Petazzoni Date: Fri, 3 Aug 2012 15:03:31 +0200 Subject: [Buildroot] glibc instead of ulibc ? In-Reply-To: <1343998766.23838.YahooMailNeo@web164606.mail.gq1.yahoo.com> References: <1343854870.70701.YahooMailNeo@web164605.mail.gq1.yahoo.com> <20120801231635.08b7d808@skate> <1343913806.30162.YahooMailNeo@web164601.mail.gq1.yahoo.com> <20120802152640.5d9cca86@skate> <1343936315.31073.YahooMailNeo@web164603.mail.gq1.yahoo.com> <20120802214237.37ed2f82@skate> <1343998766.23838.YahooMailNeo@web164606.mail.gq1.yahoo.com> Message-ID: <20120803150331.2c7b80f7@skate> List-Id: MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit To: buildroot@busybox.net Hello, Le Fri, 3 Aug 2012 05:59:26 -0700 (PDT), Zoran Djordjevic a ?crit : > Regarding problem "undefined refernece?to c", I found, > using "nm" command that this function does not exist in uClibc, and > it does in glibc (although for i386, but I expect?also in ARM > case).Seems to me obvious that some file in my GUI project (as error > report declares) - ask for __libc_start_main function and certainly > not find it in libc.so (ie uClibc). This most likely means that you haven't built your program with the right compiler. If you had built it with the compiler generated by Buildroot, which generates programs linked against uClibc, you most likely wouldn't have this problem. Please double check how you're building your program. > So I intend to build root file > system with glibc and want to ask you if?it is OK to choose > (menuconfig): Toolchain type (CrosstoolNG- toolchain) and immediately > below: CrosstoolNG- C library (glibc) ? The?other adjustments I would > not change. Sounds good. > What confuses me is that my compiler asked at some moment > for?"ld-uClibc.so" library and I don't know what would happened if > I?build with?glibc. "at some moment" is way too vague to have any sort of useful technical discussion, unfortunately. > And at last - do I have to rebuild all if I change toolchain the way > I described ? You have to rebuild everything. Thomas -- Thomas Petazzoni, Free Electrons Kernel, drivers, real-time and embedded Linux development, consulting, training and support. http://free-electrons.com