Skip to contentSkip to conversation

lshw package not getting added to the resulting image

Buildroot a 3 participants 9 messages Nov 13, 2019 – Nov 18, 2019

lore
Share & tools
lore
#1 lore raw

Hello Anushka,

Quoted 3 lines · On Wed, 13 Nov 2019 05:41:55 -0600 (CST), a <[email protected]> wrote:

I wanna run lshw from my resulting image,
I have selected hwdata but lshw pacakge is not getting added to output/build after the compilation is over.

Why do you believe the command 'lshw' is in the selected package hwdata? Try package lshw (BR2_PACKAGE_LSHW=y) instead...

Regards,
Peter

Quoted 9 lines

--
Sent from: http://buildroot-busybox.2317881.n4.nabble.com/
_______________________________________________
buildroot mailing list
buildroot at busybox.net
http://lists.busybox.net/mailman/listinfo/buildroot

author
#2 lore raw

Actually I can't find BR2_PACKAGE_LSHW variable in .config file as it is not visible in buildroot config tool under hardware handling packages. Can't figure out why?
I tried setting BR2_PACKAGE_LSHW=y manually, it doesn't seem to work!

--
Sent from: http://buildroot-busybox.2317881.n4.nabble.com/

#3 lore raw

Hello Anushka,

Quoted 4 lines · On Thu, 14 Nov 2019 01:29:47 -0600 (CST), a <[email protected]> wrote:

Actually I can't find BR2_PACKAGE_LSHW variable in .config file as it is not visible in buildroot config tool under hardware handling packages. Can't figure out why?
I tried setting BR2_PACKAGE_LSHW=y manually, it doesn't seem to work!

According to git log the lshw package was added 2012..., which buildroot version do you use?

If in doubt, attach your .config file...

Regards,
Peter

Quoted 9 lines

--
Sent from: http://buildroot-busybox.2317881.n4.nabble.com/
_______________________________________________
buildroot mailing list
buildroot at busybox.net
http://lists.busybox.net/mailman/listinfo/buildroot

author
#4 lore raw

Hi!

I'm using buildroot-2019.02.6

PFA .config file and build.log

*.config file* is the file before I set BR2_PACKAGE_LSHW=y, and

*build.log file* is the log after I set BR2_PACKAGE_LSHW=y and now it's showing the following error while building lshw B.02.18 package:
make[1]:
/root/buildroot-hello/output/host/bin/x86_64-buildroot-linux-uclibc-g++:
Command not found
make[1]: *** [lshw.o] Error 127
make[1]: *** Waiting for unfinished jobs....
make[2]: Entering directory `/root/buildroot-hello/output/build/lshw-B.02.18/src/core' /root/buildroot-hello/output/host/bin/x86_64-buildroot-linux-uclibc-g++ -g -Wall -g -I./core/ -DPREFIX=\"/usr\" -DSBINDIR=\"/usr/sbin\" -DMANDIR=\"/usr/share/man\" -DDATADIR=\"/usr/share\" -D_LARGEFILE_SOURCE
-D_LARGEFILE64_SOURCE -D_FILE_OFFSET_BITS=64 -Os -c hw.cc -o hw.o
make[2]:
/root/buildroot-hello/output/host/bin/x86_64-buildroot-linux-uclibc-g++:
Command not found
make[2]: *** [hw.o] Error 127
make[2]: Leaving directory `/root/buildroot-hello/output/build/lshw-B.02.18/src/core' make[1]: *** [core] Error 2
make[1]: Leaving directory `/root/buildroot-hello/output/build/lshw-B.02.18/src'
make: *** [/root/buildroot-hello/output/build/lshw-B.02.18/.stamp_built] Error 2

--
Sent from: http://buildroot-busybox.2317881.n4.nabble.com/

#5 lore raw

Hello,

Quoted 9 lines · On Thu, 14 Nov 2019 23:13:39 -0600 (CST), a <[email protected]> wrote:

Hi!

I'm using buildroot-2019.02.6

PFA .config file and build.log

*.config file* is the file before I set BR2_PACKAGE_LSHW=y, and

*build.log file* is the log after I set BR2_PACKAGE_LSHW=y and now it's

Sorry, no config/build.log files attached to the e-mail...

Regards,
Peter

Quoted 33 lines

showing the following error while building lshw B.02.18 package:
make[1]:
/root/buildroot-hello/output/host/bin/x86_64-buildroot-linux-uclibc-g++:
Command not found
make[1]: *** [lshw.o] Error 127
make[1]: *** Waiting for unfinished jobs....
make[2]: Entering directory `/root/buildroot-hello/output/build/lshw-B.02.18/src/core' /root/buildroot-hello/output/host/bin/x86_64-buildroot-linux-uclibc-g++ -g

(quoted diff) +0 -3
-Wall -g -I./core/ -DPREFIX=\"/usr\" -DSBINDIR=\"/usr/sbin\"
-DMANDIR=\"/usr/share/man\" -DDATADIR=\"/usr/share\" -D_LARGEFILE_SOURCE
-D_LARGEFILE64_SOURCE -D_FILE_OFFSET_BITS=64  -Os   -c hw.cc -o hw.o

make[2]:
/root/buildroot-hello/output/host/bin/x86_64-buildroot-linux-uclibc-g++:
Command not found
make[2]: *** [hw.o] Error 127
make[2]: Leaving directory `/root/buildroot-hello/output/build/lshw-B.02.18/src/core' make[1]: *** [core] Error 2
make[1]: Leaving directory `/root/buildroot-hello/output/build/lshw-B.02.18/src'
make: *** [/root/buildroot-hello/output/build/lshw-B.02.18/.stamp_built] Error 2

--
Sent from: http://buildroot-busybox.2317881.n4.nabble.com/
_______________________________________________
buildroot mailing list
buildroot at busybox.net
http://lists.busybox.net/mailman/listinfo/buildroot

#6 lore raw
Quoted 20 lines · Peter Seiderer

Hello,

Quoted 9 lines · On Thu, 14 Nov 2019 23:13:39 -0600 (CST), a <[email protected]> wrote:

Hi!

I'm using buildroot-2019.02.6

PFA .config file and build.log

*.config file* is the file before I set BR2_PACKAGE_LSHW=y, and

*build.log file* is the log after I set BR2_PACKAGE_LSHW=y and now it's

Sorry, no config/build.log files attached to the e-mail...

Regards,
Peter

Quoted 15 lines
Quoted 12 lines

showing the following error while building lshw B.02.18 package:
make[1]:
/root/buildroot-hello/output/host/bin/x86_64-buildroot-linux-uclibc-g++:
Command not found
make[1]: *** [lshw.o] Error 127
make[1]: *** Waiting for unfinished jobs....
make[2]: Entering directory `/root/buildroot-hello/output/build/lshw-B.02.18/src/core' /root/buildroot-hello/output/host/bin/x86_64-buildroot-linux-uclibc-g++ -g

(quoted diff) +0 -3
-Wall -g -I./core/ -DPREFIX=\"/usr\" -DSBINDIR=\"/usr/sbin\"
-DMANDIR=\"/usr/share/man\" -DDATADIR=\"/usr/share\" -D_LARGEFILE_SOURCE
-D_LARGEFILE64_SOURCE -D_FILE_OFFSET_BITS=64  -Os   -c hw.cc -o hw.o
Quoted 3 lines

make[2]:
/root/buildroot-hello/output/host/bin/x86_64-buildroot-linux-uclibc-g++:
Command not found

Your toolchain does not have C++

Signature · 1 line
Carlos Santos <[email protected]>
#7 lore raw

Hello,

Quoted 30 lines · Carlos Santos
Quoted 29 lines · Peter Seiderer

Hello,

Quoted 9 lines · On Thu, 14 Nov 2019 23:13:39 -0600 (CST), a <[email protected]> wrote:

Hi!

I'm using buildroot-2019.02.6

PFA .config file and build.log

*.config file* is the file before I set BR2_PACKAGE_LSHW=y, and

*build.log file* is the log after I set BR2_PACKAGE_LSHW=y and now it's

Sorry, no config/build.log files attached to the e-mail...

Regards,
Peter

Quoted 9 lines

showing the following error while building lshw B.02.18 package:
make[1]:
/root/buildroot-hello/output/host/bin/x86_64-buildroot-linux-uclibc-g++:
Command not found
make[1]: *** [lshw.o] Error 127
make[1]: *** Waiting for unfinished jobs....
make[2]: Entering directory `/root/buildroot-hello/output/build/lshw-B.02.18/src/core' /root/buildroot-hello/output/host/bin/x86_64-buildroot-linux-uclibc-g++ -g

Quoted 9 lines
Quoted 6 lines
Quoted 6 lines
(quoted diff) +0 -3
-Wall -g -I./core/ -DPREFIX=\"/usr\" -DSBINDIR=\"/usr/sbin\"
-DMANDIR=\"/usr/share/man\" -DDATADIR=\"/usr/share\" -D_LARGEFILE_SOURCE
-D_LARGEFILE64_SOURCE -D_FILE_OFFSET_BITS=64  -Os   -c hw.cc -o hw.o

make[2]:
/root/buildroot-hello/output/host/bin/x86_64-buildroot-linux-uclibc-g++:
Command not found

Your toolchain does not have C++

In case you changed your .config already to enable C++, a full re-build will maybe fix the problem, see [1] for details...

Regards,
Peter

[1] http://nightly.buildroot.org/manual.html#full-rebuild