Skip to contentSkip to conversation

Package dbus-sensors build fail

DISCUSSION Duke Du (杜祥嘉) 2 participants 5 messages Sep 10, 2019 – Sep 16, 2019

lore
Share & tools
lore
#0 lore raw

Hi All,
I bitbake package dbus-sensors in openbmc repo fd4f753 is OK [1], but in openbmc repo c68388f is fail [2]. And I got some errors such as compile errors, for example, tmp/work/armv7a-openbmc-linux-gnueabi/dbus-sensors/0.1+gitAUTOINC+3546adb92b-r0/recipe-sysroot/usr/include/c++/9.2.0/complex:1955:8: error: expected unqualified-id before 'namespace'

|  1955 | inline namespace literals {
|       |        ^~~~~~~~~
| ninja: build stopped: subcommand failed.

Do I lose some settings for dbus-sensors package, could you give me some suggestions, thanks.

[1] https://github.com/openbmc/openbmc/commit/fd4f7537ebeee494d4dd91b7438ed9512eeda303

[2] https://github.com/openbmc/openbmc/commit/c68388fccb8c0b5bf4d6b8efff91203796be98b2

Thanks.
Duke, Du

#1 lore raw
Quoted 11 lines · Duke Du (杜祥嘉)

Hi All,
I bitbake package dbus-sensors in openbmc repo fd4f753 is OK [1], but in openbmc repo c68388f is fail [2]. And I got some errors such as compile errors, for example, tmp/work/armv7a-openbmc-linux-gnueabi/dbus-sensors/0.1+gitAUTOINC+3546adb92b-r0/recipe-sysroot/usr/include/c++/9.2.0/complex:1955:8: error: expected unqualified-id before 'namespace'

|  1955 | inline namespace literals {
|       |        ^~~~~~~~~
| ninja: build stopped: subcommand failed.

Do I lose some settings for dbus-sensors package, could you give me some suggestions, thanks.

[1] https://github.com/openbmc/openbmc/commit/fd4f7537ebeee494d4dd91b7438ed9512eeda303

[2] https://github.com/openbmc/openbmc/commit/c68388fccb8c0b5bf4d6b8efff91203796be98b2

Can you prove the commits of dbus-sensors you are using? This issue was fixed quite some time ago I believe. I would suggest trying the latest version of dbus-sensors.

Quoted 4 lines

Thanks.
Duke, Du

#2 lore raw
Quoted 31 lines

-----Original Message-----
From: James Feist [mailto:[email protected]]
Sent: Tuesday, September 10, 2019 11:51 PM
To: Duke Du (杜祥嘉) <[email protected]>; [email protected]
Subject: Re: Package dbus-sensors build fail

Quoted 2 lines · Duke Du (杜祥嘉)

Hi All,
I bitbake package dbus-sensors in openbmc repo fd4f753 is OK [1], but

in openbmc repo c68388f is fail [2]. And I got some errors such as compile errors, for example, tmp/work/armv7a-openbmc-linux-gnueabi/dbus-sensors/0.1+gitAUTOINC+35 46adb92b-r0/recipe-sysroot/usr/include/c++/9.2.0/complex:1955:8: error:
expected unqualified-id before 'namespace'

Quoted 5 lines
|  1955 | inline namespace literals {
|       |        ^~~~~~~~~
| ninja: build stopped: subcommand failed.

Do I lose some settings for dbus-sensors package, could you give me

some suggestions, thanks.

Quoted 3 lines

[1]

https://github.com/openbmc/openbmc/commit/fd4f7537ebeee494d4dd91b
7438e

Quoted 4 lines

d9512eeda303

[2]

Quoted 7 lines

https://github.com/openbmc/openbmc/commit/c68388fccb8c0b5bf4d6b8eff
f91

Quoted 1 line

203796be98b2

Can you prove the commits of dbus-sensors you are using? This issue was fixed quite some time ago I believe. I would suggest trying the latest version of dbus-sensors.

Hi James,
Thanks for your suggestion, I use the latest commit 7fa17c48 of dbus-sensors, but still get the same error as follows :

       tmp/work/armv7a-openbmc-linux-gnueabi/dbus-sensors/0.1+gitAUTOINC+7fa17c4880-r0/recipe-sysroot/usr/include/c++/9.2.0/complex:1955:8: error: expected unqualified-id before 'namespace'
 1955 | inline namespace literals {
      |        ^~~~~~~~~

ninja: build stopped: subcommand failed.
WARNING: exit code 1 from a shell command.

ERROR: Logfile of failure stored in: tmp/work/armv7a-openbmc-linux-gnueabi/dbus-sensors/0.1+gitAUTOINC+7fa17c4880-r0/temp/log.do_compile.6900

ERROR: Task (openbmc/meta-phosphor/recipes-phosphor/sensors/dbus-sensors_git.bb:do_compile) failed with exit code '1'

Quoted 4 lines
Quoted 4 lines

Thanks.
Duke, Du

#3 lore raw
Quoted 44 lines · Duke Du (杜祥嘉)
Quoted 31 lines

-----Original Message-----
From: James Feist [mailto:[email protected]]
Sent: Tuesday, September 10, 2019 11:51 PM
To: Duke Du (杜祥嘉) <[email protected]>; [email protected]
Subject: Re: Package dbus-sensors build fail

Quoted 2 lines · Duke Du (杜祥嘉)

Hi All,
I bitbake package dbus-sensors in openbmc repo fd4f753 is OK [1], but

in openbmc repo c68388f is fail [2]. And I got some errors such as compile errors, for example, tmp/work/armv7a-openbmc-linux-gnueabi/dbus-sensors/0.1+gitAUTOINC+35 46adb92b-r0/recipe-sysroot/usr/include/c++/9.2.0/complex:1955:8: error:
expected unqualified-id before 'namespace'

Quoted 5 lines
|  1955 | inline namespace literals {
|       |        ^~~~~~~~~
| ninja: build stopped: subcommand failed.

Do I lose some settings for dbus-sensors package, could you give me

some suggestions, thanks.

Quoted 3 lines

[1]

https://github.com/openbmc/openbmc/commit/fd4f7537ebeee494d4dd91b
7438e

Quoted 4 lines

d9512eeda303

[2]

Quoted 7 lines

https://github.com/openbmc/openbmc/commit/c68388fccb8c0b5bf4d6b8eff
f91

Quoted 1 line

203796be98b2

Can you prove the commits of dbus-sensors you are using? This issue was fixed quite some time ago I believe. I would suggest trying the latest version of dbus-sensors.

Hi James,
Thanks for your suggestion, I use the latest commit 7fa17c48 of dbus-sensors, but still get the same error as follows :

        tmp/work/armv7a-openbmc-linux-gnueabi/dbus-sensors/0.1+gitAUTOINC+7fa17c4880-r0/recipe-sysroot/usr/include/c++/9.2.0/complex:1955:8: error: expected unqualified-id before 'namespace'
  1955 | inline namespace literals {
       |        ^~~~~~~~~
Quoted 6 lines

ninja: build stopped: subcommand failed.
WARNING: exit code 1 from a shell command.

ERROR: Logfile of failure stored in: tmp/work/armv7a-openbmc-linux-gnueabi/dbus-sensors/0.1+gitAUTOINC+7fa17c4880-r0/temp/log.do_compile.6900

ERROR: Task (openbmc/meta-phosphor/recipes-phosphor/sensors/dbus-sensors_git.bb:do_compile) failed with exit code '1'

I'm based off of
https://github.com/openbmc/openbmc/commit/9d227052bf562afd4d547fbc17ace3202c5cf80c and it builds for me. Is the target you're building for upstream? Could be some compiler difference.

Quoted 5 lines
Quoted 5 lines
Quoted 5 lines

Thanks.
Duke, Du

#4 lore raw
Quoted 74 lines

-----Original Message-----
From: James Feist [mailto:[email protected]]
Sent: Friday, September 13, 2019 12:20 AM
To: Duke Du (杜祥嘉) <[email protected]>
Cc: [email protected]
Subject: Re: Package dbus-sensors build fail

Quoted 6 lines · Duke Du (杜祥嘉)
Quoted 6 lines

-----Original Message-----
From: James Feist [mailto:[email protected]]
Sent: Tuesday, September 10, 2019 11:51 PM
To: Duke Du (杜祥嘉) <[email protected]>;

[email protected]

Quoted 9 lines
Quoted 9 lines

Subject: Re: Package dbus-sensors build fail

Quoted 3 lines · Duke Du (杜祥嘉)

Hi All,
I bitbake package dbus-sensors in openbmc repo fd4f753 is OK
[1], but

in openbmc repo c68388f is fail [2]. And I got some errors such as compile errors, for example,

tmp/work/armv7a-openbmc-linux-gnueabi/dbus-sensors/0.1+gitAUTOINC+35

Quoted 6 lines
Quoted 6 lines

46adb92b-r0/recipe-sysroot/usr/include/c++/9.2.0/complex:1955:8: error:
expected unqualified-id before 'namespace'

Quoted 4 lines
|  1955 | inline namespace literals {
|       |        ^~~~~~~~~
| ninja: build stopped: subcommand failed.
Quoted 7 lines
Quoted 7 lines
Quoted 2 lines

Do I lose some settings for dbus-sensors package, could you give
me

some suggestions, thanks.

Quoted 3 lines

[1]

https://github.com/openbmc/openbmc/commit/fd4f7537ebeee494d4dd91b

Quoted 6 lines
Quoted 6 lines

7438e

Quoted 4 lines

d9512eeda303

[2]

https://github.com/openbmc/openbmc/commit/c68388fccb8c0b5bf4d6b8eff

Quoted 9 lines
Quoted 6 lines

f91

Quoted 1 line

203796be98b2

Can you prove the commits of dbus-sensors you are using? This issue was fixed quite some time ago I believe. I would suggest trying the latest version of dbus-sensors.

Hi James,
Thanks for your suggestion, I use the latest commit 7fa17c48 of

dbus-sensors, but still get the same error as follows :

Quoted 1 line

tmp/work/armv7a-openbmc-linux-gnueabi/dbus-sensors/0.1+gitAUTOINC+7fa 17c4880-r0/recipe-sysroot/usr/include/c++/9.2.0/complex:1955:8: error:
expected unqualified-id before 'namespace'

Quoted 7 lines
  1955 | inline namespace literals {
       |        ^~~~~~~~~

ninja: build stopped: subcommand failed.
WARNING: exit code 1 from a shell command.

ERROR: Logfile of failure stored in:

tmp/work/armv7a-openbmc-linux-gnueabi/dbus-sensors/0.1+gitAUTOINC+7fa 1

Quoted 3 lines

7c4880-r0/temp/log.do_compile.6900

ERROR: Task

Quoted 8 lines

(openbmc/meta-phosphor/recipes-phosphor/sensors/dbus-sensors_git.bb:do _compile) failed with exit code '1'

I'm based off of
https://github.com/openbmc/openbmc/commit/9d227052bf562afd4d547fbc
17ace3202c5cf80c
and it builds for me. Is the target you're building for upstream? Could be some compiler difference.

Hi James,
Sorry for the delay in responding to your mail. I have upgraded this based of https://github.com/openbmc/openbmc/commit/9d227052bf562afd4d547fbc17ace3202c5cf80c to build successfully. Thanks for your reply, sincerely.

Quoted 9 lines
Quoted 9 lines
Quoted 9 lines
Quoted 9 lines

Thanks.
Duke, Du