René Rebe | 13 Aug 14:32
Favicon

Re: Libusb stopped building


Hi,

Marian Aldenhövel wrote:
> Hi,
>
>> I noticed this uclibc related build error, likewise. If you do not need
>> the libusb C++ binding you could configure libusb in your target
>> with --disable-cxx (or so)
>
> I'll try that. To be honest I don't know whether I need them as I'm only
> building it as required by other packages IIRC.
>
>> or alternatively take a look at the uclibc gcc/g++ STL patches to 
> > fix this for real.
>
> That is frightening :-). I don't think I can do that, but will propably
> take a look anyway.
Ok, this was not uclibc's fault, but a generic G++ (STL) cross compile
regression (in the upstream, GCC header files).

This should be addressed with r30044.

Just SVN updating the package/base/gcc and rebuilding just the cross
built gcc including STL should be enough:

./scripts/Build-Target  -cfg sparc64-glibc-cross  -job 1-gcc

your -cfg might vary

(Continue reading)

Marian Aldenhövel | 14 Aug 06:47
Favicon

Re: Libusb stopped building

Hi,

> Ok, this was not uclibc's fault, but a generic G++ (STL) cross compile
> regression (in the upstream, GCC header files).
> 
> This should be addressed with r30044.

Unfortunately not. ERROR-LOG is attached. To confirm it was not a mixup
I also tried a complete build.

stdarg.h exists as:

root <at> kboxdev:/home/kbox/t2# find build/kbox-8.0-trunk-kbox-x86-cross/ -name 
stdarg.h
build/kbox-8.0-trunk-kbox-x86-cross/usr/include/c++/4.3.1/tr1/stdarg.h
build/kbox-8.0-trunk-kbox-x86-cross/usr/share/syslinux/com32/include/stdarg.h
build/kbox-8.0-trunk-kbox-x86-cross/usr/lib/gcc/i686-t2-linux-uclibc/4.3.1/include/stdarg.h
build/kbox-8.0-trunk-kbox-x86-cross/TOOLCHAIN/tools.cross/lib/gcc/i686-t2-linux-uclibc/4.3.1/include/stdarg.h

Ciao, MM
--

-- 
Marian Aldenhövel, Rosenhain 23, 53123 Bonn
http://www.marian-aldenhoevel.de
"I ran some quick calculations on it. He's about 80% on the right
  track.  That leaves him only 20% dead when he crashes." Bob C
Command Wrapper Debug: running 'i686-t2-linux-uclibc-gcc --version' ..
i686-t2-linux-uclibc-gcc is /home/kbox/t2/build/kbox-8.0-trunk-kbox-x86-cross/TOOLCHAIN/tools.cross/wrapper/i686-t2-linux-uclibc-gcc
Old Command: i686-t2-linux-uclibc-gcc --version
(Continue reading)

Marian Aldenhövel | 15 Aug 10:13
Favicon

Re: Libusb stopped building

Hi,

>> Ok, this was not uclibc's fault, but a generic G++ (STL) cross compile
>> regression (in the upstream, GCC header files).

Apparently this still is an C++-issue unrelated to libusb. I have a custom
program packaged for T2 now that is written in C++. And it shows a similar
problem regarding stdarg.h not being found.

Is that a clue?

Ciao, MM
--

-- 
Marian Aldenhövel, Rosenhain 23, 53123 Bonn
http://www.marian-aldenhoevel.de
"I ran some quick calculations on it. He's about 80% on the right
  track.  That leaves him only 20% dead when he crashes." Bob C
Command Wrapper Debug: running 'i686-t2-linux-uclibc-gcc --version' ..
i686-t2-linux-uclibc-gcc is /home/kbox/t2/build/kbox-8.0-trunk-kbox-x86-cross/TOOLCHAIN/tools.cross/wrapper/i686-t2-linux-uclibc-gcc
Old Command: i686-t2-linux-uclibc-gcc --version
ENVPREFIX = 'CMD'
OTHERS = ''
INSERT = '--help?:-pipe -Os'
REMOVE = '-O -O[0-9s] -mtune* -march* -mcpu* -g*'
APPEND = '-s */X11R6/include?-I/usr/X11/include */X11R6/lib?-L/usr/X11/lib */X11R6/lib64?-L/usr/X11/lib64'
FILTER = 'sed -e 's,^\(-[LI]\)*\(/\|/usr/\|/usr/[^/]*/\|/opt/[^/]*/\)\(include\|lib\),\1/home/kbox/t2/build/kbox-8.0-trunk-kbox-x86-cross\2\3,''
conditonal arg: --help?:-pipe.
conditonal: --help, lhs: , rhs: -pipe.
(Continue reading)

René Rebe | 15 Aug 12:40
Favicon

Re: Libusb stopped building


Hi,

Marian Aldenhövel wrote:
> Hi,
>
>>> Ok, this was not uclibc's fault, but a generic G++ (STL) cross compile
>>> regression (in the upstream, GCC header files).
>
> Apparently this still is an C++-issue unrelated to libusb. I have a 
> custom
> program packaged for T2 now that is written in C++. And it shows a 
> similar
> problem regarding stdarg.h not being found.
>
> Is that a clue?
Not yet, but I noticed the same for uclibc based builds (with glibc C++ 
cross
building and libusb works, now, again in trunk:HEAD).

I'll continue to debug this issue later, maybe tonight. Patches welcome, 
though :-)

Yours,

--

-- 
  René Rebe - ExactCODE GmbH - Europe, Germany, Berlin
  http://exactcode.de | http://t2-project.org | http://rene.rebe.name

----------------------------------------------------------- 
(Continue reading)


Gmane