Skip to contentSkip to conversation

package/bullet: needs wchar

PATCH New Fabrice Fontaine 2 participants 6 messages May 14, 2021 – May 16, 2021

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 package/bullet: needs wchar

bullet needs wchar since bump to version 3.09 in commit 28b4947ed8f53c4edfbf8fef9304dc76480c01ca:

/home/giuliobenetti/autobuild/run/instance-0/output-1/build/bullet-3.09/examples/ThirdPartyLibs/Gwen/Structures.h:42:14: error: 'wstring' in namespace 'std' does not name a type

   42 | typedef std::wstring UnicodeString;
      |              ^~~~~~~

Fixes:
- http://autobuild.buildroot.org/results/2b1158970fc45e9ebd4be4d726352166ed417a1f

---
 package/bullet/Config.in | 6 ++++--
 1 file changed, 4 insertions(+), 2 deletions(-)
package/bullet/Config.in +4 -2
index 5d8a57aa47..1f632b8931 100644
@@ -2,11 +2,13 @@ config BR2_PACKAGE_BULLET
 	bool "bullet"
 	depends on BR2_INSTALL_LIBSTDCPP
 	depends on !BR2_STATIC_LIBS # dlfcn.h
+	depends on BR2_USE_WCHAR
 	help
 	  Bullet is a Collision Detection and Rigid Body Dynamics
 	  Library.
 
 	  http://bulletphysics.org
 
-comment "bullet needs a toolchain w/ C++, dynamic library"
-	depends on !BR2_INSTALL_LIBSTDCPP || BR2_STATIC_LIBS
+comment "bullet needs a toolchain w/ C++, dynamic library, wchar"
+	depends on !BR2_INSTALL_LIBSTDCPP || BR2_STATIC_LIBS || \
+		!BR2_USE_WCHAR
Signature · 1 line
2.30.2
#1 lore raw

PATCH 1/1 package/bullet: needs wchar

Fabrice, All,

On 2021-05-14 23:18 +0200, Fabrice Fontaine spake thusly:

Quoted 6 lines

bullet needs wchar since bump to version 3.09 in commit 28b4947ed8f53c4edfbf8fef9304dc76480c01ca:

/home/giuliobenetti/autobuild/run/instance-0/output-1/build/bullet-3.09/examples/ThirdPartyLibs/Gwen/Structures.h:42:14: error: 'wstring' in namespace 'std' does not name a type

   42 | typedef std::wstring UnicodeString;
      |              ^~~~~~~

wstring is only ever used in tests and examples, and it seems we can disable both. Tests are already disabled, and it should be possible to disable exampels as well with -DBUILD_BULLET2_DEMOS=OFF

Regards,
Yann E. MORIN.

Quoted 35 lines

Fixes:
- http://autobuild.buildroot.org/results/2b1158970fc45e9ebd4be4d726352166ed417a1f

---
 package/bullet/Config.in | 6 ++++--
 1 file changed, 4 insertions(+), 2 deletions(-)
package/bullet/Config.in +4 -2
index 5d8a57aa47..1f632b8931 100644
@@ -2,11 +2,13 @@ config BR2_PACKAGE_BULLET
 	bool "bullet"
 	depends on BR2_INSTALL_LIBSTDCPP
 	depends on !BR2_STATIC_LIBS # dlfcn.h
+	depends on BR2_USE_WCHAR
 	help
 	  Bullet is a Collision Detection and Rigid Body Dynamics
 	  Library.
 
 	  http://bulletphysics.org
 
-comment "bullet needs a toolchain w/ C++, dynamic library"
-	depends on !BR2_INSTALL_LIBSTDCPP || BR2_STATIC_LIBS
+comment "bullet needs a toolchain w/ C++, dynamic library, wchar"
+	depends on !BR2_INSTALL_LIBSTDCPP || BR2_STATIC_LIBS || \
+		!BR2_USE_WCHAR
Signature · 6 lines
2.30.2

_______________________________________________
buildroot mailing list
buildroot at busybox.net
http://lists.busybox.net/mailman/listinfo/buildroot
Signature · 6 lines
.-----------------.--------------------.------------------.--------------------.
|  Yann E. MORIN  | Real-Time Embedded | /"\ ASCII RIBBON | Erics' conspiracy: |
| +33 662 376 056 | Software  Designer | \ / CAMPAIGN     |  ___               |
| +33 561 099 427 `------------.-------:  X  AGAINST      |  \e/  There is no  |
| http://ymorin.is-a-geek.org/ | _/*\_ | / \ HTML MAIL    |   v   conspiracy.  |
'------------------------------^-------^------------------^--------------------'
#2 lore raw

PATCH 1/1 package/bullet: needs wchar

On 2021-05-15 19:15 +0200, Yann E. MORIN spake thusly:

Quoted 6 lines

Fabrice, All,

On 2021-05-14 23:18 +0200, Fabrice Fontaine spake thusly:

Quoted 3 lines

bullet needs wchar since bump to version 3.09 in commit 28b4947ed8f53c4edfbf8fef9304dc76480c01ca:

Quoted 7 lines
Quoted 3 lines

/home/giuliobenetti/autobuild/run/instance-0/output-1/build/bullet-3.09/examples/ThirdPartyLibs/Gwen/Structures.h:42:14: error: 'wstring' in namespace 'std' does not name a type

   42 | typedef std::wstring UnicodeString;
      |              ^~~~~~~

wstring is only ever used in tests and examples, and it seems we can disable both. Tests are already disabled, and it should be possible to disable exampels as well with -DBUILD_BULLET2_DEMOS=OFF

I mean, of course, if other wchar related stuff are not used in the core...

Quoted 50 lines

Regards,
Yann E. MORIN.

Quoted 35 lines

Fixes:
- http://autobuild.buildroot.org/results/2b1158970fc45e9ebd4be4d726352166ed417a1f

---
 package/bullet/Config.in | 6 ++++--
 1 file changed, 4 insertions(+), 2 deletions(-)
package/bullet/Config.in +4 -2
index 5d8a57aa47..1f632b8931 100644
@@ -2,11 +2,13 @@ config BR2_PACKAGE_BULLET
 	bool "bullet"
 	depends on BR2_INSTALL_LIBSTDCPP
 	depends on !BR2_STATIC_LIBS # dlfcn.h
+	depends on BR2_USE_WCHAR
 	help
 	  Bullet is a Collision Detection and Rigid Body Dynamics
 	  Library.
 
 	  http://bulletphysics.org
 
-comment "bullet needs a toolchain w/ C++, dynamic library"
-	depends on !BR2_INSTALL_LIBSTDCPP || BR2_STATIC_LIBS
+comment "bullet needs a toolchain w/ C++, dynamic library, wchar"
+	depends on !BR2_INSTALL_LIBSTDCPP || BR2_STATIC_LIBS || \
+		!BR2_USE_WCHAR
Signature · 6 lines
2.30.2

_______________________________________________
buildroot mailing list
buildroot at busybox.net
http://lists.busybox.net/mailman/listinfo/buildroot
Signature · 10 lines
.-----------------.--------------------.------------------.--------------------.
|  Yann E. MORIN  | Real-Time Embedded | /"\ ASCII RIBBON | Erics' conspiracy: |
| +33 662 376 056 | Software  Designer | \ / CAMPAIGN     |  ___               |
| +33 561 099 427 `------------.-------:  X  AGAINST      |  \e/  There is no  |
| http://ymorin.is-a-geek.org/ | _/*\_ | / \ HTML MAIL    |   v   conspiracy.  |
'------------------------------^-------^------------------^--------------------'
_______________________________________________
buildroot mailing list
buildroot at busybox.net
http://lists.busybox.net/mailman/listinfo/buildroot
Signature · 6 lines
.-----------------.--------------------.------------------.--------------------.
|  Yann E. MORIN  | Real-Time Embedded | /"\ ASCII RIBBON | Erics' conspiracy: |
| +33 662 376 056 | Software  Designer | \ / CAMPAIGN     |  ___               |
| +33 561 099 427 `------------.-------:  X  AGAINST      |  \e/  There is no  |
| http://ymorin.is-a-geek.org/ | _/*\_ | / \ HTML MAIL    |   v   conspiracy.  |
'------------------------------^-------^------------------^--------------------'
#3 lore raw

PATCH 1/1 package/bullet: needs wchar

Le sam. 15 mai 2021 ? 19:17, Yann E. MORIN <[email protected]> a ?crit :

Quoted 12 lines

On 2021-05-15 19:15 +0200, Yann E. MORIN spake thusly:

Quoted 10 lines

Fabrice, All,

On 2021-05-14 23:18 +0200, Fabrice Fontaine spake thusly:

Quoted 6 lines

bullet needs wchar since bump to version 3.09 in commit 28b4947ed8f53c4edfbf8fef9304dc76480c01ca:

/home/giuliobenetti/autobuild/run/instance-0/output-1/build/bullet-3.09/examples/ThirdPartyLibs/Gwen/Structures.h:42:14: error: 'wstring' in namespace 'std' does not name a type

   42 | typedef std::wstring UnicodeString;
      |              ^~~~~~~
Quoted 6 lines
Quoted 3 lines

wstring is only ever used in tests and examples, and it seems we can disable both. Tests are already disabled, and it should be possible to disable exampels as well with -DBUILD_BULLET2_DEMOS=OFF

I mean, of course, if other wchar related stuff are not used in the core...

We're enabling demos since commit 5f154799b6ed772a0c028072996e110fac131508
because upstream recommends to avoid changing any options, see:
https://patchwork.ozlabs.org/project/buildroot/patch/20210430060545.1243461-1-fontaine.fabrice at gmail.com/

Quoted 52 lines
Quoted 46 lines

Regards,
Yann E. MORIN.

Quoted 31 lines

Fixes:
- http://autobuild.buildroot.org/results/2b1158970fc45e9ebd4be4d726352166ed417a1f

---
 package/bullet/Config.in | 6 ++++--
 1 file changed, 4 insertions(+), 2 deletions(-)
package/bullet/Config.in +4 -3
index 5d8a57aa47..1f632b8931 100644
@@ -2,11 +2,13 @@ config BR2_PACKAGE_BULLET
    bool "bullet"
    depends on BR2_INSTALL_LIBSTDCPP
    depends on !BR2_STATIC_LIBS # dlfcn.h
+   depends on BR2_USE_WCHAR
    help
      Bullet is a Collision Detection and Rigid Body Dynamics
      Library.
 
      http://bulletphysics.org
 
-comment "bullet needs a toolchain w/ C++, dynamic library"
-   depends on !BR2_INSTALL_LIBSTDCPP || BR2_STATIC_LIBS
+comment "bullet needs a toolchain w/ C++, dynamic library, wchar"
+   depends on !BR2_INSTALL_LIBSTDCPP || BR2_STATIC_LIBS || \
+           !BR2_USE_WCHAR
--

2.30.2

Quoted 4 lines

_______________________________________________
buildroot mailing list
buildroot at busybox.net
http://lists.busybox.net/mailman/listinfo/buildroot

--
.-----------------.--------------------.------------------.--------------------.

|  Yann E. MORIN  | Real-Time Embedded | /"\ ASCII RIBBON | Erics' conspiracy: |
| +33 662 376 056 | Software  Designer | \ / CAMPAIGN     |  ___               |
| +33 561 099 427 `------------.-------:  X  AGAINST      |  \e/  There is no  |
| http://ymorin.is-a-geek.org/ | _/*\_ | / \ HTML MAIL    |   v   conspiracy.  |
Quoted 5 lines

'------------------------------^-------^------------------^--------------------'
_______________________________________________
buildroot mailing list
buildroot at busybox.net
http://lists.busybox.net/mailman/listinfo/buildroot

Quoted 7 lines

--
.-----------------.--------------------.------------------.--------------------.

|  Yann E. MORIN  | Real-Time Embedded | /"\ ASCII RIBBON | Erics' conspiracy: |
| +33 662 376 056 | Software  Designer | \ / CAMPAIGN     |  ___               |
| +33 561 099 427 `------------.-------:  X  AGAINST      |  \e/  There is no  |
| http://ymorin.is-a-geek.org/ | _/*\_ | / \ HTML MAIL    |   v   conspiracy.  |

'------------------------------^-------^------------------^--------------------'

Best Regards,

Fabrice

#4 lore raw

PATCH 1/1 package/bullet: needs wchar

Fabrice, All,

On 2021-05-15 19:31 +0200, Fabrice Fontaine spake thusly:

Quoted 9 lines

Le sam. 15 mai 2021 ? 19:17, Yann E. MORIN <[email protected]> a ?crit :

Quoted 8 lines

On 2021-05-15 19:15 +0200, Yann E. MORIN spake thusly:

Quoted 7 lines

On 2021-05-14 23:18 +0200, Fabrice Fontaine spake thusly:

Quoted 6 lines

bullet needs wchar since bump to version 3.09 in commit 28b4947ed8f53c4edfbf8fef9304dc76480c01ca:

/home/giuliobenetti/autobuild/run/instance-0/output-1/build/bullet-3.09/examples/ThirdPartyLibs/Gwen/Structures.h:42:14: error: 'wstring' in namespace 'std' does not name a type

   42 | typedef std::wstring UnicodeString;
      |              ^~~~~~~
Quoted 8 lines
Quoted 5 lines
Quoted 3 lines

wstring is only ever used in tests and examples, and it seems we can disable both. Tests are already disabled, and it should be possible to disable exampels as well with -DBUILD_BULLET2_DEMOS=OFF

I mean, of course, if other wchar related stuff are not used in the core...

We're enabling demos since commit 5f154799b6ed772a0c028072996e110fac131508
because upstream recommends to avoid changing any options, see:
https://patchwork.ozlabs.org/project/buildroot/patch/20210430060545.1243461-1-fontaine.fabrice at gmail.com/

That's weord that upstream provides options to enable/disable parts of the tree, but recomends not using them (because doing so breaks the build)...

Oh well...

Thanks for the feedback! :-)

Regards,
Yann E. MORIN.

Signature · 6 lines
.-----------------.--------------------.------------------.--------------------.
|  Yann E. MORIN  | Real-Time Embedded | /"\ ASCII RIBBON | Erics' conspiracy: |
| +33 662 376 056 | Software  Designer | \ / CAMPAIGN     |  ___               |
| +33 561 099 427 `------------.-------:  X  AGAINST      |  \e/  There is no  |
| http://ymorin.is-a-geek.org/ | _/*\_ | / \ HTML MAIL    |   v   conspiracy.  |
'------------------------------^-------^------------------^--------------------'
#5 lore raw

PATCH 1/1 package/bullet: needs wchar

In reply to Fabrice Fontaine

Fabrice, All,

On 2021-05-14 23:18 +0200, Fabrice Fontaine spake thusly:

Quoted 11 lines

bullet needs wchar since bump to version 3.09 in commit 28b4947ed8f53c4edfbf8fef9304dc76480c01ca:

/home/giuliobenetti/autobuild/run/instance-0/output-1/build/bullet-3.09/examples/ThirdPartyLibs/Gwen/Structures.h:42:14: error: 'wstring' in namespace 'std' does not name a type

   42 | typedef std::wstring UnicodeString;
      |              ^~~~~~~

Fixes:
- http://autobuild.buildroot.org/results/2b1158970fc45e9ebd4be4d726352166ed417a1f

Applied to master, thanks.

Regards,
Yann E. MORIN.

Quoted 31 lines
---
 package/bullet/Config.in | 6 ++++--
 1 file changed, 4 insertions(+), 2 deletions(-)
package/bullet/Config.in +4 -2
index 5d8a57aa47..1f632b8931 100644
@@ -2,11 +2,13 @@ config BR2_PACKAGE_BULLET
 	bool "bullet"
 	depends on BR2_INSTALL_LIBSTDCPP
 	depends on !BR2_STATIC_LIBS # dlfcn.h
+	depends on BR2_USE_WCHAR
 	help
 	  Bullet is a Collision Detection and Rigid Body Dynamics
 	  Library.
 
 	  http://bulletphysics.org
 
-comment "bullet needs a toolchain w/ C++, dynamic library"
-	depends on !BR2_INSTALL_LIBSTDCPP || BR2_STATIC_LIBS
+comment "bullet needs a toolchain w/ C++, dynamic library, wchar"
+	depends on !BR2_INSTALL_LIBSTDCPP || BR2_STATIC_LIBS || \
+		!BR2_USE_WCHAR
Signature · 6 lines
2.30.2

_______________________________________________
buildroot mailing list
buildroot at busybox.net
http://lists.busybox.net/mailman/listinfo/buildroot
Signature · 6 lines
.-----------------.--------------------.------------------.--------------------.
|  Yann E. MORIN  | Real-Time Embedded | /"\ ASCII RIBBON | Erics' conspiracy: |
| +33 662 376 056 | Software  Designer | \ / CAMPAIGN     |  ___               |
| +33 561 099 427 `------------.-------:  X  AGAINST      |  \e/  There is no  |
| http://ymorin.is-a-geek.org/ | _/*\_ | / \ HTML MAIL    |   v   conspiracy.  |
'------------------------------^-------^------------------^--------------------'