* [Buildroot] Error with libusb-0.1.12
@ 2007-08-21 16:08 Emil Krüper
2007-08-21 18:17 ` Bernhard Fischer
0 siblings, 1 reply; 6+ messages in thread
From: Emil Krüper @ 2007-08-21 16:08 UTC (permalink / raw)
To: buildroot
Hej!
Builtroot stops building with an error, I tried several different
snapshots from July to August and all break with complaining about
libtool and unrecognized option `-DHAVE_CONFIG_H'.
It happens even when I build an almost clean config with the only change
to libusb enabled. Then I tried the same with 386. No difference, same
fault.
Best regards,
Emil Kr?per
(cd .libs && rm -f libusb.so && ln -s libusb-0.1.so.4.4.4 libusb.so)
/home/buildroot/buildroot-20070821/build_i586/staging_dir/usr/bin/i586-linux-uclibc-ar cru .libs/libusb.a usb.o error.o descriptors.o linux.o
/home/buildroot/buildroot-20070821/build_i586/staging_dir/usr/bin/i586-linux-uclibc-ranlib .libs/libusb.a
creating libusb.la
(cd .libs && rm -f libusb.la && ln -s ../libusb.la libusb.la)
if /bin/sh ./libtool --mode=compile -DHAVE_CONFIG_H -I. -g -O2 -MT
usbpp.lo -MD -MP -MF ".deps/usbpp.Tpo" -c -o usbpp.lo usbpp.cpp; \
then mv -f ".deps/usbpp.Tpo" ".deps/usbpp.Plo"; else rm -f
".deps/usbpp.Tpo"; exit 1; fi
libtool: unrecognized option `-DHAVE_CONFIG_H'
Try `libtool --help' for more information.
make[3]: *** [usbpp.lo] Error 1
make[3]: Leaving directory
`/home/buildroot/buildroot-20070821/build_i586/libusb-0.1.12'
make[2]: *** [all-recursive] Error 1
make[2]: Leaving directory
`/home/buildroot/buildroot-20070821/build_i586/libusb-0.1.12'
make[1]: *** [all] Error 2
make[1]: Leaving directory
`/home/buildroot/buildroot-20070821/build_i586/libusb-0.1.12'
make: ***
[/home/buildroot/buildroot-20070821/build_i586/staging_dir/lib/libusb.so] Error 2
PC-EK:/home/buildroot/buildroot-20070821#
^ permalink raw reply [flat|nested] 6+ messages in thread* [Buildroot] Error with libusb-0.1.12
2007-08-21 16:08 [Buildroot] Error with libusb-0.1.12 Emil Krüper
@ 2007-08-21 18:17 ` Bernhard Fischer
2007-08-22 8:18 ` Emil Krüper
0 siblings, 1 reply; 6+ messages in thread
From: Bernhard Fischer @ 2007-08-21 18:17 UTC (permalink / raw)
To: buildroot
On Tue, Aug 21, 2007 at 06:08:25PM +0200, Emil Kr?per wrote:
>Hej!
>Builtroot stops building with an error, I tried several different
>snapshots from July to August and all break with complaining about
>libtool and unrecognized option `-DHAVE_CONFIG_H'.
>It happens even when I build an almost clean config with the only change
>to libusb enabled. Then I tried the same with 386. No difference, same
>fault.
Builds fine for me (>= r19625). Please confirm
^ permalink raw reply [flat|nested] 6+ messages in thread
* [Buildroot] Error with libusb-0.1.12
2007-08-21 18:17 ` Bernhard Fischer
@ 2007-08-22 8:18 ` Emil Krüper
0 siblings, 0 replies; 6+ messages in thread
From: Emil Krüper @ 2007-08-22 8:18 UTC (permalink / raw)
To: buildroot
On Tue, 2007-08-21 at 20:17 +0200, Bernhard Fischer wrote:
> On Tue, Aug 21, 2007 at 06:08:25PM +0200, Emil Kr?per wrote:
> >Hej!
> >Builtroot stops building with an error, I tried several different
> >snapshots from July to August and all break with complaining about
> >libtool and unrecognized option `-DHAVE_CONFIG_H'.
> >It happens even when I build an almost clean config with the only change
> >to libusb enabled. Then I tried the same with 386. No difference, same
> >fault.
>
> Builds fine for me (>= r19625). Please confirm
At first, my apologies for starting a new thread, I am not that familiar
with the use of mailingslist and hope this one goes where it belongs.
So now I am back at work again and tried building r19625 at my debian
etch x86 box and the only change to the default config was activating
libusb.
Best regards
Emil Kr?per
And here comes the error:
config.status: creating config.h
config.status: config.h is unchanged
/usr/bin/make all-recursive
make[2]: Entering directory
`/home/buildroot/buildroot_r19625/build_i386/libusb-0.1.12'
Making all in .
make[3]: Entering directory
`/home/buildroot/buildroot_r19625/build_i386/libusb-0.1.12'
if /bin/sh ./libtool
--mode=compile /home/buildroot/buildroot_r19625/build_i386/libusb-0.1.12/compile /home/buildroot/buildroot_r19625/build_i386/staging_dir/usr/bin/i386-linux-uclibc-gcc -Os -pipe -I/home/buildroot/buildroot_r19625/build_i386/staging_dir/usr/include -I/home/buildroot/buildroot_r19625/build_i386/staging_dir/include --sysroot=/home/buildroot/buildroot_r19625/build_i386/staging_dir/ -isysroot /home/buildroot/buildroot_r19625/build_i386/staging_dir -mtune=i386 -march=i386 -DHAVE_CONFIG_H -I. -Werror -g -O2 -Wall -MT usb.lo -MD -MP -MF ".deps/usb.Tpo" -c -o usb.lo usb.c; \
then mv -f ".deps/usb.Tpo" ".deps/usb.Plo"; else rm -f
".deps/usb.Tpo"; exit 1; fi
libtool: compile: unable to infer tagged configuration
libtool: compile: specify a tag with `--tag'
make[3]: *** [usb.lo] Error 1
make[3]: Leaving directory
`/home/buildroot/buildroot_r19625/build_i386/libusb-0.1.12'
make[2]: *** [all-recursive] Error 1
make[2]: Leaving directory
`/home/buildroot/buildroot_r19625/build_i386/libusb-0.1.12'
make[1]: *** [all] Error 2
make[1]: Leaving directory
`/home/buildroot/buildroot_r19625/build_i386/libusb-0.1.12'
make: ***
[/home/buildroot/buildroot_r19625/build_i386/staging_dir/lib/libusb.so]
Error 2
real 31m19.975s
user 19m16.216s
sys 3m24.281s
PC-EK:/home/buildroot/buildroot_r19625#
^ permalink raw reply [flat|nested] 6+ messages in thread
* [Buildroot] Error with libusb-0.1.12
@ 2007-08-21 21:14 e.krueper at solcon-systemtechnik.de
2007-08-22 0:18 ` softa at ttechgroup.com
0 siblings, 1 reply; 6+ messages in thread
From: e.krueper at solcon-systemtechnik.de @ 2007-08-21 21:14 UTC (permalink / raw)
To: buildroot
I am at home now and have tried the r19625 and r19630 revisions. Both compile and break again at libusb. But this time it's another error. At work I use debian etch x86 with default packages and here at home I am running a x86_64 gentoo system. So back at work I'll get the same revisions once again and test it running in debian.
Nevertheless, here's the error I got now:
config.status: executing default commands
touch /home/emil/buldroot/root/buildroot/build_i386/libusb-0.1.12/.configured
/usr/bin/make -j1 -C /home/emil/buldroot/root/buildroot/build_i386/libusb-0.1.12
make[1]: Entering directory `/home/emil/buldroot/root/buildroot/build_i386/libusb-0.1.12'
cd . && /bin/sh /home/emil/buldroot/root/buildroot/build_i386/libusb-0.1.12/missing --run autoheader
rm -f stamp-h1
touch config.h.in
cd . && /bin/sh ./config.status config.h
config.status: creating config.h
config.status: config.h is unchanged
/usr/bin/make all-recursive
make[2]: Entering directory `/home/emil/buldroot/root/buildroot/build_i386/libusb-0.1.12'
Making all in .
make[3]: Entering directory `/home/emil/buldroot/root/buildroot/build_i386/libusb-0.1.12'
if /bin/sh ./libtool --mode=compile /home/emil/buldroot/root/buildroot/build_i386/libusb-0.1.12/compile /home/emil/buldroot/root/buildroot/build_i386/staging_dir/usr/bin/i386-linux-uclibc-gcc -Os -pipe -I/home/emil/buldroot/root/buildroot/build_i386/staging_dir/usr/include -I/home/emil/buldroot/root/buildroot/build_i386/staging_dir/include --sysroot=/home/emil/buldroot/root/buildroot/build_i386/staging_dir/ -isysroot /home/emil/buldroot/root/buildroot/build_i386/staging_dir -mtune=i386 -march=i386 -DHAVE_CONFIG_H -I. -Werror -g -O2 -Wall -MT usb.lo -MD -MP -MF ".deps/usb.Tpo" -c -o usb.lo usb.c; \
then mv -f ".deps/usb.Tpo" ".deps/usb.Plo"; else rm -f ".deps/usb.Tpo"; exit 1; fi
libtool: compile: unable to infer tagged configuration
libtool: compile: specify a tag with `--tag'
make[3]: *** [usb.lo] Error 1
make[3]: Leaving directory `/home/emil/buldroot/root/buildroot/build_i386/libusb-0.1.12'
make[2]: *** [all-recursive] Error 1
make[2]: Leaving directory `/home/emil/buldroot/root/buildroot/build_i386/libusb-0.1.12'
make[1]: *** [all] Error 2
make[1]: Leaving directory `/home/emil/buldroot/root/buildroot/build_i386/libusb-0.1.12'
make: *** [/home/emil/buldroot/root/buildroot/build_i386/staging_dir/lib/libusb.so] Error 2
emil buildroot #
^ permalink raw reply [flat|nested] 6+ messages in thread* [Buildroot] Error with libusb-0.1.12
2007-08-21 21:14 e.krueper at solcon-systemtechnik.de
@ 2007-08-22 0:18 ` softa at ttechgroup.com
2007-08-23 9:53 ` Emil Krüper
0 siblings, 1 reply; 6+ messages in thread
From: softa at ttechgroup.com @ 2007-08-22 0:18 UTC (permalink / raw)
To: buildroot
This is very old problem ... libusb contains 2 libraries, one in pure C, and
other in CPP .... if you enable the CPP compiler in toolchain everyting will
be ok, but in the other case you must modify libusb makefiles ....
for example: at least add CXX=""
...
$(LIBUSB_DIR)/.configured: $(LIBUSB_DIR)/.unpacked
(cd $(LIBUSB_DIR); rm -rf config.cache; \
$(AUTORECONF) && \
$(TARGET_CONFIGURE_OPTS) \
$(TARGET_CONFIGURE_ARGS) \
ac_cv_header_regex_h=no \
CXX="" \
./configure \
--target=$(GNU_TARGET_NAME) \
--host=$(GNU_TARGET_NAME) \
--build=$(GNU_HOST_NAME) \
--prefix=/usr \
--disable-debug \
--disable-build-docs \
);
touch $(LIBUSB_DIR)/.configured
...
BR,
Assen Stoyanov
----- Original Message -----
From: <e.krueper@solcon-systemtechnik.de>
To: <buildroot@uclibc.org>
Sent: Wednesday, August 22, 2007 12:14 AM
Subject: [Buildroot] Error with libusb-0.1.12
>I am at home now and have tried the r19625 and r19630 revisions. Both
>compile and break again at libusb. But this time it's another error. At
>work I use debian etch x86 with default packages and here at home I am
>running a x86_64 gentoo system. So back at work I'll get the same revisions
>once again and test it running in debian.
> Nevertheless, here's the error I got now:
>
>
> config.status: executing default commands
> touch
> /home/emil/buldroot/root/buildroot/build_i386/libusb-0.1.12/.configured
> /usr/bin/make -j1 -C
> /home/emil/buldroot/root/buildroot/build_i386/libusb-0.1.12
> make[1]: Entering directory
> `/home/emil/buldroot/root/buildroot/build_i386/libusb-0.1.12'
> cd . && /bin/sh
> /home/emil/buldroot/root/buildroot/build_i386/libusb-0.1.12/missing --run
> autoheader
> rm -f stamp-h1
> touch config.h.in
> cd . && /bin/sh ./config.status config.h
> config.status: creating config.h
> config.status: config.h is unchanged
> /usr/bin/make all-recursive
> make[2]: Entering directory
> `/home/emil/buldroot/root/buildroot/build_i386/libusb-0.1.12'
> Making all in .
> make[3]: Entering directory
> `/home/emil/buldroot/root/buildroot/build_i386/libusb-0.1.12'
> if /bin/sh ./libtool --mode=compile
> /home/emil/buldroot/root/buildroot/build_i386/libusb-0.1.12/compile
> /home/emil/buldroot/root/buildroot/build_i386/staging_dir/usr/bin/i386-linux-uclibc-gcc
> -Os -pipe -I/home/emil/buldroot/root/buildroot/build_i386/staging_dir/usr/include
> -I/home/emil/buldroot/root/buildroot/build_i386/staging_dir/include --sysroot=/home/emil/buldroot/root/buildroot/build_i386/staging_dir/
> -isysroot
> /home/emil/buldroot/root/buildroot/build_i386/staging_dir -mtune=i386 -march=i386
> -DHAVE_CONFIG_H -I. -Werror -g -O2 -Wall -MT usb.lo -MD -MP -MF
> ".deps/usb.Tpo" -c -o usb.lo usb.c; \
> then mv -f ".deps/usb.Tpo" ".deps/usb.Plo"; else rm -f
> ".deps/usb.Tpo"; exit 1; fi
> libtool: compile: unable to infer tagged configuration
> libtool: compile: specify a tag with `--tag'
> make[3]: *** [usb.lo] Error 1
> make[3]: Leaving directory
> `/home/emil/buldroot/root/buildroot/build_i386/libusb-0.1.12'
> make[2]: *** [all-recursive] Error 1
> make[2]: Leaving directory
> `/home/emil/buldroot/root/buildroot/build_i386/libusb-0.1.12'
> make[1]: *** [all] Error 2
> make[1]: Leaving directory
> `/home/emil/buldroot/root/buildroot/build_i386/libusb-0.1.12'
> make: ***
> [/home/emil/buldroot/root/buildroot/build_i386/staging_dir/lib/libusb.so]
> Error 2
>
> emil buildroot #
> _______________________________________________
> buildroot mailing list
> buildroot at uclibc.org
> http://busybox.net/mailman/listinfo/buildroot
-------------- next part --------------
A non-text attachment was scrubbed...
Name: libusb.mk.diff
Type: application/octet-stream
Size: 1675 bytes
Desc: not available
Url : http://busybox.net/lists/buildroot/attachments/20070822/0eb7df6a/attachment-0001.obj
^ permalink raw reply [flat|nested] 6+ messages in thread* [Buildroot] Error with libusb-0.1.12
2007-08-22 0:18 ` softa at ttechgroup.com
@ 2007-08-23 9:53 ` Emil Krüper
0 siblings, 0 replies; 6+ messages in thread
From: Emil Krüper @ 2007-08-23 9:53 UTC (permalink / raw)
To: buildroot
Thanks a lot, that solved it. Yesterday I tried it in FC 7 and
encountered the same problems, so I was pretty sure it's a missing
dependency in my config. Maybe there should be done a permanent fix by
resolving the correct dependencies when activating libusb or patching
the makefile? Is there any reason why it hasn't been done yet?
I am just curious.
Best regards,
Emil Kr?per
On Wed, 2007-08-22 at 03:18 +0300, softa at ttechgroup.com wrote:
> This is very old problem ... libusb contains 2 libraries, one in pure C, and
> other in CPP .... if you enable the CPP compiler in toolchain everyting will
> be ok, but in the other case you must modify libusb makefiles ....
>
> for example: at least add CXX=""
>
> ...
> $(LIBUSB_DIR)/.configured: $(LIBUSB_DIR)/.unpacked
> (cd $(LIBUSB_DIR); rm -rf config.cache; \
> $(AUTORECONF) && \
> $(TARGET_CONFIGURE_OPTS) \
> $(TARGET_CONFIGURE_ARGS) \
> ac_cv_header_regex_h=no \
> CXX="" \
> ./configure \
> --target=$(GNU_TARGET_NAME) \
> --host=$(GNU_TARGET_NAME) \
> --build=$(GNU_HOST_NAME) \
> --prefix=/usr \
> --disable-debug \
> --disable-build-docs \
> );
> touch $(LIBUSB_DIR)/.configured
> ...
>
> BR,
> Assen Stoyanov
>
> ----- Original Message -----
> From: <e.krueper@solcon-systemtechnik.de>
> To: <buildroot@uclibc.org>
> Sent: Wednesday, August 22, 2007 12:14 AM
> Subject: [Buildroot] Error with libusb-0.1.12
>
>
> >I am at home now and have tried the r19625 and r19630 revisions. Both
> >compile and break again at libusb. But this time it's another error. At
> >work I use debian etch x86 with default packages and here at home I am
> >running a x86_64 gentoo system. So back at work I'll get the same revisions
> >once again and test it running in debian.
> > Nevertheless, here's the error I got now:
> >
> >
> > config.status: executing default commands
> > touch
> > /home/emil/buldroot/root/buildroot/build_i386/libusb-0.1.12/.configured
> > /usr/bin/make -j1 -C
> > /home/emil/buldroot/root/buildroot/build_i386/libusb-0.1.12
> > make[1]: Entering directory
> > `/home/emil/buldroot/root/buildroot/build_i386/libusb-0.1.12'
> > cd . && /bin/sh
> > /home/emil/buldroot/root/buildroot/build_i386/libusb-0.1.12/missing --run
> > autoheader
> > rm -f stamp-h1
> > touch config.h.in
> > cd . && /bin/sh ./config.status config.h
> > config.status: creating config.h
> > config.status: config.h is unchanged
> > /usr/bin/make all-recursive
> > make[2]: Entering directory
> > `/home/emil/buldroot/root/buildroot/build_i386/libusb-0.1.12'
> > Making all in .
> > make[3]: Entering directory
> > `/home/emil/buldroot/root/buildroot/build_i386/libusb-0.1.12'
> > if /bin/sh ./libtool --mode=compile
> > /home/emil/buldroot/root/buildroot/build_i386/libusb-0.1.12/compile
> > /home/emil/buldroot/root/buildroot/build_i386/staging_dir/usr/bin/i386-linux-uclibc-gcc
> > -Os -pipe -I/home/emil/buldroot/root/buildroot/build_i386/staging_dir/usr/include
> > -I/home/emil/buldroot/root/buildroot/build_i386/staging_dir/include --sysroot=/home/emil/buldroot/root/buildroot/build_i386/staging_dir/
> > -isysroot
> > /home/emil/buldroot/root/buildroot/build_i386/staging_dir -mtune=i386 -march=i386
> > -DHAVE_CONFIG_H -I. -Werror -g -O2 -Wall -MT usb.lo -MD -MP -MF
> > ".deps/usb.Tpo" -c -o usb.lo usb.c; \
> > then mv -f ".deps/usb.Tpo" ".deps/usb.Plo"; else rm -f
> > ".deps/usb.Tpo"; exit 1; fi
> > libtool: compile: unable to infer tagged configuration
> > libtool: compile: specify a tag with `--tag'
> > make[3]: *** [usb.lo] Error 1
> > make[3]: Leaving directory
> > `/home/emil/buldroot/root/buildroot/build_i386/libusb-0.1.12'
> > make[2]: *** [all-recursive] Error 1
> > make[2]: Leaving directory
> > `/home/emil/buldroot/root/buildroot/build_i386/libusb-0.1.12'
> > make[1]: *** [all] Error 2
> > make[1]: Leaving directory
> > `/home/emil/buldroot/root/buildroot/build_i386/libusb-0.1.12'
> > make: ***
> > [/home/emil/buldroot/root/buildroot/build_i386/staging_dir/lib/libusb.so]
> > Error 2
> >
> > emil buildroot #
> > _______________________________________________
> > buildroot mailing list
> > buildroot at uclibc.org
> > http://busybox.net/mailman/listinfo/buildroot
^ permalink raw reply [flat|nested] 6+ messages in thread
end of thread, other threads:[~2007-08-23 9:53 UTC | newest]
Thread overview: 6+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2007-08-21 16:08 [Buildroot] Error with libusb-0.1.12 Emil Krüper
2007-08-21 18:17 ` Bernhard Fischer
2007-08-22 8:18 ` Emil Krüper
-- strict thread matches above, loose matches on Subject: below --
2007-08-21 21:14 e.krueper at solcon-systemtechnik.de
2007-08-22 0:18 ` softa at ttechgroup.com
2007-08-23 9:53 ` Emil Krüper
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox