All of lore.kernel.org
 help / color / mirror / Atom feed
From: Marcin Juszkiewicz <marcin.juszkiewicz@linaro.org>
To: Patches and discussions about the oe-core layer
	<openembedded-core@lists.openembedded.org>
Subject: Re: Is target toolchain supposed to be working?
Date: Wed, 20 Jun 2012 14:12:54 +0200	[thread overview]
Message-ID: <4FE1BE46.4080507@linaro.org> (raw)
In-Reply-To: <CAMKF1so50NhTxaeeghsH8ogD=HUgmGDjR8rnh4yPbYv0JaU5tA@mail.gmail.com>

W dniu 20.06.2012 09:55, Khem Raj pisze:
> On Tue, Jun 19, 2012 at 9:25 AM, Marcin Juszkiewicz 
> <marcin.juszkiewicz@linaro.org> wrote:
>> W dniu 19.06.2012 18:19, Khem Raj pisze:
>> 
>>> includedir already has leading slash so I wonder if you changed 
>>> includedir in your setup somehow ?
>> 
>> bitbake gcc -e|grep ^includedir shown "/usr/include" value. G++
>> started on target as "g++ -v" shown
>> "--with-c++-includes=/usr/include/c++" so I was surprised when it
>> was not working.
>> 
>> Added extra slash and it works. But please check in your
>> configuration.
>> 
> 
> can you try the fixes from my branch
> 
> http://git.openembedded.org/openembedded-core-contrib/log/?h=kraj/misc-updates
>
>  this should fix both gcc and binutils on target

I am still building one image from scratch but my build with gcc-linaro
and your fix-g++-sysroot.patch applied works perfectly:

root@qemux86:~# g++ -v hello.cc -o hello
Using built-in specs.
COLLECT_GCC=g++
COLLECT_LTO_WRAPPER=/usr/libexec/gcc/i586-oe-linux/4.7.1/lto-wrapper
Target: i586-oe-linux
Configured with:
/home/hrw/HDD/devel/canonical/ci-linaro/oecore/build/tmp-eglibc/work-shared/gcc-linaro-4.7-r4/gcc-linaro-4.7-2012.06/configure
--build=x86_64-linux --host=i586-oe-linux --target=i586-oe-linux
--prefix=/usr --exec_prefix=/usr --bindir=/usr/bin --sbindir=/usr/sbin
--libexecdir=/usr/libexec --datadir=/usr/share --sysconfdir=/etc
--sharedstatedir=/com --localstatedir=/var --libdir=/usr/lib
--includedir=/usr/include --oldincludedir=/usr/include
--infodir=/usr/share/info --mandir=/usr/share/man --disable-silent-rules
--disable-dependency-tracking
--with-libtool-sysroot=/home/hrw/HDD/devel/canonical/ci-linaro/oecore/build/tmp-eglibc/sysroots/qemux86
--with-gnu-ld --enable-shared --enable-languages=c,c++
--enable-threads=posix --disable-multilib --enable-c99
--enable-long-long --enable-symvers=gnu --enable-libstdcxx-pch
--program-prefix=i586-oe-linux- --without-local-prefix
--enable-target-optspace --enable-lto --enable-libssp
--disable-bootstrap --disable-libgomp --disable-libmudflap
--with-system-zlib --with-linker-hash-style=gnu --with-ppl=no
--with-cloog=no --enable-checking=release --enable-cheaders=c_global
--with-sysroot=/
--with-build-sysroot=/home/hrw/HDD/devel/canonical/ci-linaro/oecore/build/tmp-eglibc/sysroots/qemux86
--with-gxx-include-dir=/usr/include/c++/ --enable-nls --enable-__cxa_atexit
Thread model: posix
gcc version 4.7.1 20120531 (prerelease) (Linaro GCC 4.7-2012.06)
COLLECT_GCC_OPTIONS='-v' '-o' 'hello' '-shared-libgcc' '-mtune=pentium'
'-march=pentium'
 /usr/libexec/gcc/i586-oe-linux/4.7.1/cc1plus -quiet -v -D_GNU_SOURCE
hello.cc -quiet -dumpbase hello.cc -mtune=pentium -march=pentium
-auxbase hello -version -o /tmp/ccDHhaba.s
GNU C++ (Linaro GCC 4.7-2012.06) version 4.7.1 20120531 (prerelease)
(i586-oe-linux)
        compiled by GNU C version 4.7.1 20120531 (prerelease), GMP
version 5.0.4, MPFR version 3.1.0, MPC version 0.8.2
GGC heuristics: --param ggc-min-expand=63 --param ggc-min-heapsize=63580
ignoring nonexistent directory "/usr/local/include"
ignoring nonexistent directory
"/usr/lib/gcc/i586-oe-linux/4.7.1/../../../../i586-oe-linux/include"
#include "..." search starts here:
#include <...> search starts here:
 /usr/include/c++/
 /usr/include/c++//i586-oe-linux
 /usr/include/c++//backward
 /usr/lib/gcc/i586-oe-linux/4.7.1/include
 /usr/lib/gcc/i586-oe-linux/4.7.1/include-fixed
 /usr/include
End of search list.
GNU C++ (Linaro GCC 4.7-2012.06) version 4.7.1 20120531 (prerelease)
(i586-oe-linux)
        compiled by GNU C version 4.7.1 20120531 (prerelease), GMP
version 5.0.4, MPFR version 3.1.0, MPC version 0.8.2
GGC heuristics: --param ggc-min-expand=63 --param ggc-min-heapsize=63580
Compiler executable checksum: 585670605c6fcd60b0d620e1dbed0fa5
COLLECT_GCC_OPTIONS='-v' '-o' 'hello' '-shared-libgcc' '-mtune=pentium'
'-march=pentium'
 /usr/lib/gcc/i586-oe-linux/4.7.1/../../../../i586-oe-linux/bin/as -v
--32 -o /tmp/ccqQP9HY.o /tmp/ccDHhaba.s
GNU assembler version 2.22 (i586-oe-linux) using BFD version (GNU
Binutils) 2.22
COMPILER_PATH=/usr/libexec/gcc/i586-oe-linux/4.7.1/:/usr/libexec/gcc/i586-oe-linux/4.7.1/:/usr/libexec/gcc/i586-oe-linux/:/usr/lib/gcc/i586-oe-linux/4.7.1/:/usr/lib/gcc/i586-oe-linux/:/usr/lib/gcc/i586-oe-linux/4.7.1/../../../../i586-oe-linux/bin/
LIBRARY_PATH=/usr/lib/gcc/i586-oe-linux/4.7.1/:/usr/lib/gcc/i586-oe-linux/4.7.1/../../../i586-oe-linux/4.7.1/:/usr/lib/gcc/i586-oe-linux/4.7.1/../../../:/lib/:/usr/lib/i586-oe-linux/4.7.1/:/usr/lib/
COLLECT_GCC_OPTIONS='-v' '-o' 'hello' '-shared-libgcc' '-mtune=pentium'
'-march=pentium'
 /usr/libexec/gcc/i586-oe-linux/4.7.1/collect2 --sysroot=/
--eh-frame-hdr --hash-style=gnu -m elf_i386 -dynamic-linker
/lib/ld-linux.so.2 -o hello
/usr/lib/gcc/i586-oe-linux/4.7.1/../../../crt1.o
/usr/lib/gcc/i586-oe-linux/4.7.1/../../../crti.o
/usr/lib/gcc/i586-oe-linux/4.7.1/../../../i586-oe-linux/4.7.1/crtbegin.o
-L/usr/lib/gcc/i586-oe-linux/4.7.1
-L/usr/lib/gcc/i586-oe-linux/4.7.1/../../../i586-oe-linux/4.7.1
-L/usr/lib/gcc/i586-oe-linux/4.7.1/../../..
-L/usr/lib/i586-oe-linux/4.7.1 /tmp/ccqQP9HY.o -lstdc++ -lm -lgcc_s
-lgcc -lc -lgcc_s -lgcc
/usr/lib/gcc/i586-oe-linux/4.7.1/../../../i586-oe-linux/4.7.1/crtend.o
/usr/lib/gcc/i586-oe-linux/4.7.1/../../../crtn.o
root@qemux86:~#




  reply	other threads:[~2012-06-20 12:24 UTC|newest]

Thread overview: 7+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2012-06-19 11:53 Is target toolchain supposed to be working? Marcin Juszkiewicz
2012-06-19 12:32 ` Marcin Juszkiewicz
2012-06-19 16:19   ` Khem Raj
2012-06-19 16:25     ` Marcin Juszkiewicz
2012-06-20  7:55       ` Khem Raj
2012-06-20 12:12         ` Marcin Juszkiewicz [this message]
2012-06-20 15:06           ` Khem Raj

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=4FE1BE46.4080507@linaro.org \
    --to=marcin.juszkiewicz@linaro.org \
    --cc=openembedded-core@lists.openembedded.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.