Skip to contentSkip to conversation

abseil-cpp: remove -Dcmake_cxx_standard=14 flag from extra_oecmake

PATCH Applied Petr Chernikov 2 participants 9 messages Dec 4, 2023 – Dec 13, 2023

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 abseil-cpp: remove -Dcmake_cxx_standard=14 flag from extra_oecmake

Old versions of abseil-cpp could not be compiled using C++ Standard 17. For now this cmake flag is not needed.

meta-oe/recipes-devtools/abseil-cpp/abseil-cpp_git.bb +0 -1
index f847ebf15..4705b6f8c 100644
@@ -26,7 +26,6 @@ inherit cmake
 
 EXTRA_OECMAKE = "-DBUILD_SHARED_LIBS=ON \
                  -DBUILD_TESTING=OFF    \
-                 -DCMAKE_CXX_STANDARD=14 \
                  -DABSL_ENABLE_INSTALL=ON \
                 "
 
#1 lore raw
Quoted 2 lines · Petr Chernikov

Old versions of abseil-cpp could not be compiled using C++ Standard 17. For now this cmake flag is not needed.

Can you check if this works with clang compiler as well

Quoted 29 lines
meta-oe/recipes-devtools/abseil-cpp/abseil-cpp_git.bb +0 -2
index f847ebf15..4705b6f8c 100644
@@ -26,7 +26,6 @@ inherit cmake
 
 EXTRA_OECMAKE = "-DBUILD_SHARED_LIBS=ON \
                  -DBUILD_TESTING=OFF    \
-                 -DCMAKE_CXX_STANDARD=14 \
                  -DABSL_ENABLE_INSTALL=ON \
                 "
 
 
-=-=-=-=-=-=-=-=-=-=-=-

Links: You receive all messages sent to this group. View/Reply Online (#107204):
https://lists.openembedded.org/g/openembedded-devel/message/107204
Mute This Topic: https://lists.openembedded.org/mt/102970930/1997914
Group Owner: [email protected]
Unsubscribe: https://lists.openembedded.org/g/openembedded-devel/unsub [ [email protected]]
-=-=-=-=-=-=-=-=-=-=-=-

#2 lore raw

here is a problem which might be related to this change

https://errors.yoctoproject.org/Errors/Details/745165/

Quoted 36 lines · Khem Raj
Quoted 3 lines · Petr Chernikov

Old versions of abseil-cpp could not be compiled using C++ Standard 17. For now this cmake flag is not needed.

Can you check if this works with clang compiler as well

Quoted 26 lines
meta-oe/recipes-devtools/abseil-cpp/abseil-cpp_git.bb +0 -2
index f847ebf15..4705b6f8c 100644
@@ -26,7 +26,6 @@ inherit cmake
 
 EXTRA_OECMAKE = "-DBUILD_SHARED_LIBS=ON \
                  -DBUILD_TESTING=OFF    \
-                 -DCMAKE_CXX_STANDARD=14 \
                  -DABSL_ENABLE_INSTALL=ON \
                 "
 
 
-=-=-=-=-=-=-=-=-=-=-=-

Links: You receive all messages sent to this group.
View/Reply Online (#107204): https://lists.openembedded.org/g/openembedded-devel/message/107204
Mute This Topic: https://lists.openembedded.org/mt/102970930/1997914
Group Owner: [email protected]
Unsubscribe: https://lists.openembedded.org/g/openembedded-devel/unsub [[email protected]]
-=-=-=-=-=-=-=-=-=-=-=-

#3 lore raw

Hi Raj,
Thank you for feedback!

I've just tested compilation via clang using meta-clang layer - this is fine

I've also tested native compilation using both gcc and clang, this is OK too. But I don't know how to test nativesdk, any thoughts about this kind of compilation?

-----Original Message-----
From: Khem Raj <[email protected]>
Sent: Tuesday, December 5, 2023 1:46 AM
To: Petr Chernikov <[email protected]>
Cc: [email protected]
Subject: Re: [oe] [PATCH] abseil-cpp: remove -Dcmake_cxx_standard=14 flag from extra_oecmake

«Внимание! Данное письмо от внешнего адресата!»

here is a problem which might be related to this change

https://errors.yoctoproject.org/Errors/Details/745165/

Quoted 36 lines · Khem Raj
Quoted 3 lines · Petr Chernikov

Old versions of abseil-cpp could not be compiled using C++ Standard 17. For now this cmake flag is not needed.

Can you check if this works with clang compiler as well

Quoted 26 lines
meta-oe/recipes-devtools/abseil-cpp/abseil-cpp_git.bb +0 -2
index f847ebf15..4705b6f8c 100644
@@ -26,7 +26,6 @@ inherit cmake
 
 EXTRA_OECMAKE = "-DBUILD_SHARED_LIBS=ON \
                  -DBUILD_TESTING=OFF    \
-                 -DCMAKE_CXX_STANDARD=14 \
                  -DABSL_ENABLE_INSTALL=ON \
                 "
 
 
-=-=-=-=-=-=-=-=-=-=-=-

Links: You receive all messages sent to this group.
View/Reply Online (#107204): https://lists.openembedded.org/g/openembedded-devel/message/107204
Mute This Topic: https://lists.openembedded.org/mt/102970930/1997914
Group Owner: [email protected]
Unsubscribe: https://lists.openembedded.org/g/openembedded-devel/unsub [[email protected]]
-=-=-=-=-=-=-=-=-=-=-=-

#4 lore raw

Raj, is my testing enough to apply changes?

-----Original Message-----
From: Petr Chernikov
Sent: Tuesday, December 5, 2023 10:53 AM
To: 'Khem Raj' <[email protected]>
Cc: [email protected]
Subject: RE: [oe] [PATCH] abseil-cpp: remove -Dcmake_cxx_standard=14 flag from extra_oecmake

Hi Raj,
Thank you for feedback!

I've just tested compilation via clang using meta-clang layer - this is fine

I've also tested native compilation using both gcc and clang, this is OK too. But I don't know how to test nativesdk, any thoughts about this kind of compilation?

-----Original Message-----
From: Khem Raj <[email protected]>
Sent: Tuesday, December 5, 2023 1:46 AM
To: Petr Chernikov <[email protected]>
Cc: [email protected]
Subject: Re: [oe] [PATCH] abseil-cpp: remove -Dcmake_cxx_standard=14 flag from extra_oecmake

«Внимание! Данное письмо от внешнего адресата!»

here is a problem which might be related to this change

https://errors.yoctoproject.org/Errors/Details/745165/

Quoted 36 lines · Khem Raj
Quoted 3 lines · Petr Chernikov

Old versions of abseil-cpp could not be compiled using C++ Standard 17. For now this cmake flag is not needed.

Can you check if this works with clang compiler as well

Quoted 26 lines
meta-oe/recipes-devtools/abseil-cpp/abseil-cpp_git.bb +0 -2
index f847ebf15..4705b6f8c 100644
@@ -26,7 +26,6 @@ inherit cmake
 
 EXTRA_OECMAKE = "-DBUILD_SHARED_LIBS=ON \
                  -DBUILD_TESTING=OFF    \
-                 -DCMAKE_CXX_STANDARD=14 \
                  -DABSL_ENABLE_INSTALL=ON \
                 "
 
 
-=-=-=-=-=-=-=-=-=-=-=-

Links: You receive all messages sent to this group.
View/Reply Online (#107204): https://lists.openembedded.org/g/openembedded-devel/message/107204
Mute This Topic: https://lists.openembedded.org/mt/102970930/1997914
Group Owner: [email protected]
Unsubscribe: https://lists.openembedded.org/g/openembedded-devel/unsub [[email protected]]
-=-=-=-=-=-=-=-=-=-=-=-

#5 lore raw
Quoted 2 lines · Petr Chernikov

Raj, is my testing enough to apply changes?

I think you have to compile mosh package to see the issue abseil builds fine

Quoted 78 lines

-----Original Message-----
From: Petr Chernikov
Sent: Tuesday, December 5, 2023 10:53 AM
To: 'Khem Raj' <[email protected]>
Cc: [email protected]
Subject: RE: [oe] [PATCH] abseil-cpp: remove -Dcmake_cxx_standard=14 flag from extra_oecmake

Hi Raj,
Thank you for feedback!

I've just tested compilation via clang using meta-clang layer - this is fine

I've also tested native compilation using both gcc and clang, this is OK too.
But I don't know how to test nativesdk, any thoughts about this kind of compilation?

-----Original Message-----
From: Khem Raj <[email protected]>
Sent: Tuesday, December 5, 2023 1:46 AM
To: Petr Chernikov <[email protected]>
Cc: [email protected]
Subject: Re: [oe] [PATCH] abseil-cpp: remove -Dcmake_cxx_standard=14 flag from extra_oecmake

«Внимание! Данное письмо от внешнего адресата!»

here is a problem which might be related to this change

https://errors.yoctoproject.org/Errors/Details/745165/

Quoted 4 lines · Khem Raj

On Mon, Dec 4, 2023 at 6:23 AM Petr Chernikov <[email protected]>

Quoted 5 lines · wrote:
Quoted 3 lines

Old versions of abseil-cpp could not be compiled using C++ Standard 17. For now this cmake flag is not needed.

Quoted 7 lines

Can you check if this works with clang compiler as well

Review

Quoted 6 lines
(quoted diff) +0 -0

b/meta-oe/recipes-devtools/abseil-cpp/abseil-cpp_git.bb

Quoted 12 lines
Quoted 12 lines

index f847ebf15..4705b6f8c 100644

meta-oe/recipes-devtools/abseil-cpp/abseil-cpp_git.bb +0 -1
@@ -26,7 +26,6 @@ inherit cmake
 
 EXTRA_OECMAKE = "-DBUILD_SHARED_LIBS=ON \
                  -DBUILD_TESTING=OFF    \
-                 -DCMAKE_CXX_STANDARD=14 \
                  -DABSL_ENABLE_INSTALL=ON \
                 "
 
Quoted 3 lines
Quoted 3 lines

-=-=-=-=-=-=-=-=-=-=-=-
Links: You receive all messages sent to this group. View/Reply Online (#107204):

https://lists.openembedded.org/g/openembedded-devel/message/107204

Quoted 3 lines
Quoted 3 lines

Mute This Topic: https://lists.openembedded.org/mt/102970930/1997914
Group Owner: [email protected]
Unsubscribe: https://lists.openembedded.org/g/openembedded-devel/unsub

[[email protected]]

Quoted 2 lines
Quoted 2 lines

-=-=-=-=-=-=-=-=-=-=-=-

#6 lore raw

Good catch Raj! Thank you!

I’ve tested mosh compilation and yes, this fails without some changes:

I’ve added CXXFLAGS:append = " -std=c++17" to mosh recipe and compilation is fixed, so my question:
Should I put both changes (for mosh and for abseil-cpp) in one patch?

Yours sincerely,
Petr Chernikov

From: Khem Raj <[email protected]>
Sent: Wednesday, December 6, 2023 6:07 PM
To: Petr Chernikov <[email protected]>
Cc: [email protected]
Subject: Re: [oe] [PATCH] abseil-cpp: remove -Dcmake_cxx_standard=14 flag from extra_oecmake

«Внимание! Данное письмо от внешнего адресата!»

On Wed, Dec 6, 2023 at 3:01 AM Petr Chernikov <[email protected]<mailto:[email protected]>> wrote:
Raj, is my testing enough to apply changes?

I think you have to compile mosh package to see the issue abseil builds fine

-----Original Message-----
From: Petr Chernikov
Sent: Tuesday, December 5, 2023 10:53 AM
To: 'Khem Raj' <[email protected]<mailto:[email protected]>>
Cc: [email protected]<mailto:[email protected]>
Subject: RE: [oe] [PATCH] abseil-cpp: remove -Dcmake_cxx_standard=14 flag from extra_oecmake

Hi Raj,
Thank you for feedback!

I've just tested compilation via clang using meta-clang layer - this is fine

I've also tested native compilation using both gcc and clang, this is OK too. But I don't know how to test nativesdk, any thoughts about this kind of compilation?

-----Original Message-----
From: Khem Raj <[email protected]<mailto:[email protected]>>
Sent: Tuesday, December 5, 2023 1:46 AM
To: Petr Chernikov <[email protected]<mailto:[email protected]>>
Cc: [email protected]<mailto:[email protected]>
Subject: Re: [oe] [PATCH] abseil-cpp: remove -Dcmake_cxx_standard=14 flag from extra_oecmake

«Внимание! Данное письмо от внешнего адресата!»

here is a problem which might be related to this change

https://errors.yoctoproject.org/Errors/Details/745165/

Quoted 36 lines · On Mon, Dec 4, 2023 at 7:22 AM Khem Raj…
Quoted 3 lines · On Mon, Dec 4, 2023 at 6:23 AM Petr Chernikov…

Old versions of abseil-cpp could not be compiled using C++ Standard 17. For now this cmake flag is not needed.

Can you check if this works with clang compiler as well

Quoted 26 lines
meta-oe/recipes-devtools/abseil-cpp/abseil-cpp_git.bb<http://abseil-cpp_git.bb> +0 -2
index f847ebf15..4705b6f8c 100644
@@ -26,7 +26,6 @@ inherit cmake
 
 EXTRA_OECMAKE = "-DBUILD_SHARED_LIBS=ON \
                  -DBUILD_TESTING=OFF    \
-                 -DCMAKE_CXX_STANDARD=14 \
                  -DABSL_ENABLE_INSTALL=ON \
                 "
 
 
-=-=-=-=-=-=-=-=-=-=-=-

Links: You receive all messages sent to this group.
View/Reply Online (#107204): https://lists.openembedded.org/g/openembedded-devel/message/107204
Mute This Topic: https://lists.openembedded.org/mt/102970930/1997914
Group Owner: [email protected]<mailto:openembedded-devel%[email protected]>
Unsubscribe: https://lists.openembedded.org/g/openembedded-devel/unsub [[email protected]<mailto:[email protected]>]
-=-=-=-=-=-=-=-=-=-=-=-

#7 lore raw
Quoted 4 lines · Petr Chernikov

Good catch Raj! Thank you!

Quoted 9 lines

I’ve tested mosh compilation and yes, this fails without some changes:

I’ve added CXXFLAGS:append = " -std=c++17" to mosh recipe and compilation is fixed, so my question:

Should I put both changes (for mosh and for abseil-cpp) in one patch?

Two patches in one series yes

Quoted 115 lines

Yours sincerely,
*Petr Chernikov*

*From:* Khem Raj <[email protected]>
*Sent:* Wednesday, December 6, 2023 6:07 PM
*To:* Petr Chernikov <[email protected]>
*Cc:* [email protected]
*Subject:* Re: [oe] [PATCH] abseil-cpp: remove -Dcmake_cxx_standard=14 flag from extra_oecmake

«Внимание! Данное письмо от внешнего адресата!»

On Wed, Dec 6, 2023 at 3:01 AM Petr Chernikov <[email protected]> wrote:

Raj, is my testing enough to apply changes?

I think you have to compile mosh package to see the issue abseil builds fine

-----Original Message-----
From: Petr Chernikov
Sent: Tuesday, December 5, 2023 10:53 AM
To: 'Khem Raj' <[email protected]>
Cc: [email protected]
Subject: RE: [oe] [PATCH] abseil-cpp: remove -Dcmake_cxx_standard=14 flag from extra_oecmake

Hi Raj,
Thank you for feedback!

I've just tested compilation via clang using meta-clang layer - this is fine

I've also tested native compilation using both gcc and clang, this is OK too.
But I don't know how to test nativesdk, any thoughts about this kind of compilation?

-----Original Message-----
From: Khem Raj <[email protected]>
Sent: Tuesday, December 5, 2023 1:46 AM
To: Petr Chernikov <[email protected]>
Cc: [email protected]
Subject: Re: [oe] [PATCH] abseil-cpp: remove -Dcmake_cxx_standard=14 flag from extra_oecmake

«Внимание! Данное письмо от внешнего адресата!»

here is a problem which might be related to this change

https://errors.yoctoproject.org/Errors/Details/745165/

Quoted 4 lines · Khem Raj

On Mon, Dec 4, 2023 at 6:23 AM Petr Chernikov <[email protected]>

Quoted 5 lines · wrote:
Quoted 3 lines

Old versions of abseil-cpp could not be compiled using C++ Standard 17. For now this cmake flag is not needed.

Quoted 7 lines

Can you check if this works with clang compiler as well

Review

Quoted 6 lines
(quoted diff) +0 -0

b/meta-oe/recipes-devtools/abseil-cpp/abseil-cpp_git.bb

Quoted 12 lines
Quoted 12 lines

index f847ebf15..4705b6f8c 100644

meta-oe/recipes-devtools/abseil-cpp/abseil-cpp_git.bb +0 -1
@@ -26,7 +26,6 @@ inherit cmake
 
 EXTRA_OECMAKE = "-DBUILD_SHARED_LIBS=ON \
                  -DBUILD_TESTING=OFF    \
-                 -DCMAKE_CXX_STANDARD=14 \
                  -DABSL_ENABLE_INSTALL=ON \
                 "
 
Quoted 3 lines
Quoted 3 lines

-=-=-=-=-=-=-=-=-=-=-=-
Links: You receive all messages sent to this group. View/Reply Online (#107204):

https://lists.openembedded.org/g/openembedded-devel/message/107204

Quoted 3 lines
Quoted 3 lines

Mute This Topic: https://lists.openembedded.org/mt/102970930/1997914
Group Owner: [email protected]
Unsubscribe: https://lists.openembedded.org/g/openembedded-devel/unsub

[[email protected]]

Quoted 2 lines
Quoted 2 lines

-=-=-=-=-=-=-=-=-=-=-=-

Applied
#8 lore raw
In reply to Petr Chernikov
Quoted 4 lines · Petr Chernikov

Old versions of abseil-cpp could not be compiled using C++ Standard 17. For now this cmake flag is not needed.

Applied, thanks!

[1/1] abseil-cpp: remove -Dcmake_cxx_standard=14 flag from extra_oecmake

      commit: 190f7b50ac3d7d30cf9d31167fb74f7146c3c8ff

Best regards,

Signature · 1 line
Khem Raj <[email protected]>