Buildroot Archive on lore.kernel.org
 help / color / mirror / Atom feed
* [Buildroot] [Bug 693] New: setting an external toolchain makes the compilation fail
@ 2009-11-06 15:46 bugzilla at busybox.net
  2009-11-06 15:47 ` [Buildroot] [Bug 693] " bugzilla at busybox.net
                   ` (4 more replies)
  0 siblings, 5 replies; 6+ messages in thread
From: bugzilla at busybox.net @ 2009-11-06 15:46 UTC (permalink / raw)
  To: buildroot

https://bugs.busybox.net/show_bug.cgi?id=693

           Summary: setting an external toolchain makes the compilation fail
           Product: buildroot
           Version: unspecified
          Platform: PC
        OS/Version: Linux
            Status: NEW
          Severity: normal
          Priority: P5
         Component: Other
        AssignedTo: unassigned at buildroot.uclibc.org
        ReportedBy: damien.courousse.logica at gmail.com
                CC: buildroot at uclibc.org
   Estimated Hours: 0.0


Created an attachment (id=719)
 --> (https://bugs.busybox.net/attachment.cgi?id=719)
buildroot config file

Hello all,


I started a new project where I wanted to use an external toolchain previously
built with buildroot. For further details please read the buildroot
configuration file attached to this report.

make fails with these settings because with this toolchain 'arm-linux-gcc -v'
returns three occurrences of --sysroot ("Configured" // "(reconfigured)" //
"(reconfigured)" ). I guess (yet not sure) this happens because this toolchain
has been rebuild a few times.

Hence you might consider the bug comes from my toolchain, or not ;) 
My patch comes with the next report.

Best regards,
Damien


=================================
Here is the result of buildroot make:
buildroot$ make V=1

Checking build system dependencies:
BUILDROOT_DL_DIR clean:                         Ok
CC clean:                                       Ok
CXX clean:                                      Ok
CPP clean:                                      Ok
CFLAGS clean:                                   Ok
INCLUDES clean:                                 Ok
CXXFLAGS clean:                                 Ok
which installed:                                Ok
sed works:                                      Ok (/bin/sed)
GNU make version '3.81':                        Ok
C compiler '/usr/bin/gcc'
C compiler version '4.3.2':                     Ok
C++ compiler '/usr/bin/g++'
C++ compiler version '4.3.2':                   Ok
awk installed:                                  Ok
bash installed:                                 Ok
bison installed:                                Ok
flex installed:                                 Ok
gettext installed:                              Ok
makeinfo installed:                             Ok
patch installed:                                Ok
Build system dependencies:                      Ok

rm -rf /mnt/fractal/buildroot/temp/buildroot/output/build/buildroot-config
mkdir -p /mnt/fractal/buildroot/temp/buildroot/output/build
cp -dpRf package/config/buildroot-config
/mnt/fractal/buildroot/temp/buildroot/output/build/buildroot-config
Checking external toolchain settings
if ! test -x
/mnt/fractal/buildroot/buildroot/output/staging/usr/bin/arm-linux-gcc ; then
echo "Cannot find cross-compiler
/mnt/fractal/buildroot/buildroot/output/staging/usr/bin/arm-linux-gcc" ; exit 1
; fi ; 
EXT_TOOLCHAIN_TARGET=arm-linux-uclibcgnueabi ; if echo ${EXT_TOOLCHAIN_TARGET}
| grep -q 'eabi$' ; then EXT_TOOLCHAIN_ABI="eabi" ; else
EXT_TOOLCHAIN_ABI="oabi" ; fi ; if [ x == x"y" -a ${EXT_TOOLCHAIN_ABI} ==
"eabi" ] ; then echo "Incorrect ABI setting" ; exit 1 ; fi ; if [ xy == x"y" -a
${EXT_TOOLCHAIN_ABI} == "oabi" ] ; then echo "Incorrect ABI setting" ; exit 1 ;
fi ; 
SYSROOT_DIR="/mnt/fractal/buildroot/buildroot/output/staging
/mnt/fractal/buildroot/buildroot/output/staging
/mnt/fractal/buildroot/buildroot/output/staging"; if ! test -f
${SYSROOT_DIR}/lib/ld-uClibc.so.* ; then echo "Incorrect selection of the C
library"; exit -1; fi;
UCLIBC_CONFIG_FILE=${SYSROOT_DIR}/usr/include/bits/uClibc_config.h ;
IS_IN_LIBC=`grep -q "#define __UCLIBC_HAS_LFS__ 1" ${UCLIBC_CONFIG_FILE} &&
echo y` ; if [ x != x"y" -a x${IS_IN_LIBC} == x"y" ] ; then echo "Large file
support available in C library, please enable BR2_LARGEFILE" ; exit 1 ; fi ; if
[ x == x"y" -a x${IS_IN_LIBC} != x"y" ] ; then echo "Large file support not
available in C library, please disable BR2_LARGEFILE" ; exit 1 ; fi ;
IS_IN_LIBC=`grep -q "#define __UCLIBC_HAS_IPV6__ 1" ${UCLIBC_CONFIG_FILE} &&
echo y` ; if [ x != x"y" -a x${IS_IN_LIBC} == x"y" ] ; then echo "IPv6 support
available in C library, please enable BR2_INET_IPV6" ; exit 1 ; fi ; if [ x ==
x"y" -a x${IS_IN_LIBC} != x"y" ] ; then echo "IPv6 support not available in C
library, please disable BR2_INET_IPV6" ; exit 1 ; fi ; IS_IN_LIBC=`grep -q
"#define __UCLIBC_HAS_RPC__ 1" ${UCLIBC_CONFIG_FILE} && echo y` ; if [ x !=
x"y" -a x${IS_IN_LIBC} == x"y" ] ; then echo "RPC support available in C
library, please enable BR2_INET_RPC" ; exit 1 ; fi ; if [ x == x"y" -a
x${IS_IN_LIBC} != x"y" ] ; then echo "RPC support not available in C library,
please disable BR2_INET_RPC" ; exit 1 ; fi ; IS_IN_LIBC=`grep -q "#define
__UCLIBC_HAS_LOCALE__ 1" ${UCLIBC_CONFIG_FILE} && echo y` ; if [ x != x"y" -a
x${IS_IN_LIBC} == x"y" ] ; then echo "Locale support available in C library,
please enable BR2_ENABLE_LOCALE" ; exit 1 ; fi ; if [ x == x"y" -a
x${IS_IN_LIBC} != x"y" ] ; then echo "Locale support not available in C
library, please disable BR2_ENABLE_LOCALE" ; exit 1 ; fi ; IS_IN_LIBC=`grep -q
"#define __UCLIBC_HAS_WCHAR__ 1" ${UCLIBC_CONFIG_FILE} && echo y` ; if [ x !=
x"y" -a x${IS_IN_LIBC} == x"y" ] ; then echo "Wide char support available in C
library, please enable BR2_USE_WCHAR" ; exit 1 ; fi ; if [ x == x"y" -a
x${IS_IN_LIBC} != x"y" ] ; then echo "Wide char support not available in C
library, please disable BR2_USE_WCHAR" ; exit 1 ; fi ; IS_IN_LIBC=`grep -q
"#define __UCLIBC_HAS_PROGRAM_INVOCATION_NAME__ 1" ${UCLIBC_CONFIG_FILE} &&
echo y` ; if [ x != x"y" -a x${IS_IN_LIBC} == x"y" ] ; then echo "Program
invocation support available in C library, please enable
BR2_PROGRAM_INVOCATION" ; exit 1 ; fi ; if [ x == x"y" -a x${IS_IN_LIBC} !=
x"y" ] ; then echo "Program invocation support not available in C library,
please disable BR2_PROGRAM_INVOCATION" ; exit 1 ; fi ; 
/bin/sh: line 0: test: too many arguments
Incorrect selection of the C library
make: ***
[/mnt/fractal/buildroot/temp/buildroot/output/stamps/ext-toolchain-installed]
Erreur 255


-- 
Configure bugmail: https://bugs.busybox.net/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are on the CC list for the bug.

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

* [Buildroot] [Bug 693] setting an external toolchain makes the compilation fail
  2009-11-06 15:46 [Buildroot] [Bug 693] New: setting an external toolchain makes the compilation fail bugzilla at busybox.net
@ 2009-11-06 15:47 ` bugzilla at busybox.net
  2009-11-09  9:48 ` bugzilla at busybox.net
                   ` (3 subsequent siblings)
  4 siblings, 0 replies; 6+ messages in thread
From: bugzilla at busybox.net @ 2009-11-06 15:47 UTC (permalink / raw)
  To: buildroot

https://bugs.busybox.net/show_bug.cgi?id=693





--- Comment #1 from Damien Courouss? <damien.courousse.logica@gmail.com>  2009-11-06 15:47:40 UTC ---
Created an attachment (id=721)
 --> (https://bugs.busybox.net/attachment.cgi?id=721)
Here is the patch.

Here is the patch.


-- 
Configure bugmail: https://bugs.busybox.net/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are on the CC list for the bug.

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

* [Buildroot] [Bug 693] setting an external toolchain makes the compilation fail
  2009-11-06 15:46 [Buildroot] [Bug 693] New: setting an external toolchain makes the compilation fail bugzilla at busybox.net
  2009-11-06 15:47 ` [Buildroot] [Bug 693] " bugzilla at busybox.net
@ 2009-11-09  9:48 ` bugzilla at busybox.net
  2010-02-21 18:13 ` bugzilla at busybox.net
                   ` (2 subsequent siblings)
  4 siblings, 0 replies; 6+ messages in thread
From: bugzilla at busybox.net @ 2009-11-09  9:48 UTC (permalink / raw)
  To: buildroot

https://bugs.busybox.net/show_bug.cgi?id=693


Damien Courouss? <damien.courousse.logica@gmail.com> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
 Attachment #721 is|0                           |1
           obsolete|                            |




--- Comment #2 from Damien Courouss? <damien.courousse.logica@gmail.com>  2009-11-09 09:48:55 UTC ---
Created an attachment (id=725)
 --> (https://bugs.busybox.net/attachment.cgi?id=725)
new patch

The first patch used 'sort -u' to remove duplicate values of sysroot lines in
SYSROOT_DIR; hence I deliberately intended to make it fail if $(GCC) -v
contained several different values for the option --with-sysroot.

However the last value of --with-sysroot corresponds to the actual
configuration of GCC and we should remember this one only. So the attached
patch.


-- 
Configure bugmail: https://bugs.busybox.net/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are on the CC list for the bug.

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

* [Buildroot] [Bug 693] setting an external toolchain makes the compilation fail
  2009-11-06 15:46 [Buildroot] [Bug 693] New: setting an external toolchain makes the compilation fail bugzilla at busybox.net
  2009-11-06 15:47 ` [Buildroot] [Bug 693] " bugzilla at busybox.net
  2009-11-09  9:48 ` bugzilla at busybox.net
@ 2010-02-21 18:13 ` bugzilla at busybox.net
  2010-02-21 18:51 ` bugzilla at busybox.net
  2010-04-09 14:48 ` bugzilla at busybox.net
  4 siblings, 0 replies; 6+ messages in thread
From: bugzilla at busybox.net @ 2010-02-21 18:13 UTC (permalink / raw)
  To: buildroot

https://bugs.busybox.net/show_bug.cgi?id=693


Thomas Petazzoni <thomas.petazzoni@free-electrons.com> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |maksim.rayskiy at conexant.com




--- Comment #3 from Thomas Petazzoni <thomas.petazzoni@free-electrons.com>  2010-02-21 18:13:11 UTC ---
*** Bug 695 has been marked as a duplicate of this bug. ***


-- 
Configure bugmail: https://bugs.busybox.net/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are on the CC list for the bug.

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

* [Buildroot] [Bug 693] setting an external toolchain makes the compilation fail
  2009-11-06 15:46 [Buildroot] [Bug 693] New: setting an external toolchain makes the compilation fail bugzilla at busybox.net
                   ` (2 preceding siblings ...)
  2010-02-21 18:13 ` bugzilla at busybox.net
@ 2010-02-21 18:51 ` bugzilla at busybox.net
  2010-04-09 14:48 ` bugzilla at busybox.net
  4 siblings, 0 replies; 6+ messages in thread
From: bugzilla at busybox.net @ 2010-02-21 18:51 UTC (permalink / raw)
  To: buildroot

https://bugs.busybox.net/show_bug.cgi?id=693


Thomas Petazzoni <thomas.petazzoni@free-electrons.com> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
   Target Milestone|---                         |2010.02




-- 
Configure bugmail: https://bugs.busybox.net/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are on the CC list for the bug.

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

* [Buildroot] [Bug 693] setting an external toolchain makes the compilation fail
  2009-11-06 15:46 [Buildroot] [Bug 693] New: setting an external toolchain makes the compilation fail bugzilla at busybox.net
                   ` (3 preceding siblings ...)
  2010-02-21 18:51 ` bugzilla at busybox.net
@ 2010-04-09 14:48 ` bugzilla at busybox.net
  4 siblings, 0 replies; 6+ messages in thread
From: bugzilla at busybox.net @ 2010-04-09 14:48 UTC (permalink / raw)
  To: buildroot

https://bugs.busybox.net/show_bug.cgi?id=693


Thomas Petazzoni <thomas.petazzoni@free-electrons.com> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|NEW                         |RESOLVED
         Resolution|                            |FIXED




--- Comment #4 from Thomas Petazzoni <thomas.petazzoni@free-electrons.com>  2010-04-09 14:48:00 UTC ---
This has been fixed by
http://git.buildroot.net/buildroot/commit/?id=6db57c69360087b3b7b8fc2b7764d2911ec24d43.


-- 
Configure bugmail: https://bugs.busybox.net/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are on the CC list for the bug.

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

end of thread, other threads:[~2010-04-09 14:48 UTC | newest]

Thread overview: 6+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2009-11-06 15:46 [Buildroot] [Bug 693] New: setting an external toolchain makes the compilation fail bugzilla at busybox.net
2009-11-06 15:47 ` [Buildroot] [Bug 693] " bugzilla at busybox.net
2009-11-09  9:48 ` bugzilla at busybox.net
2010-02-21 18:13 ` bugzilla at busybox.net
2010-02-21 18:51 ` bugzilla at busybox.net
2010-04-09 14:48 ` bugzilla at busybox.net

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox