Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

oat++ suite bump to version 1.1 #12249

Merged
merged 24 commits into from
Oct 6, 2020
Merged

oat++ suite bump to version 1.1 #12249

merged 24 commits into from
Oct 6, 2020

Conversation

mheyman
Copy link
Contributor

@mheyman mheyman commented Jul 3, 2020

Oat++ suite bump to version 1.1

Oat++ bumped to version 1.1 in mid May. We've been using the core, websockets, and swagger for a month on both Windows and Linux with no issues.

@JackBoosY JackBoosY added the category:port-update The issue is with a library, which is requesting update new revision label Jul 3, 2020
ports/oatpp-consul/CONTROL Show resolved Hide resolved
ports/oatpp-curl/CONTROL Show resolved Hide resolved
ports/oatpp-libressl/CONTROL Show resolved Hide resolved
ports/oatpp-mbedtls/CONTROL Show resolved Hide resolved
ports/oatpp-swagger/CONTROL Show resolved Hide resolved
ports/oatpp-websocket/CONTROL Show resolved Hide resolved
ports/oatpp/CONTROL Show resolved Hide resolved
@NancyLi1013
Copy link
Contributor

The failures on x86-windows, x64-windows, x64-windows-static are like this:

-- Configuring done
CMake Error at C:/agent/_work/1/s/scripts/buildsystems/vcpkg.cmake:326 (_add_library):
  Target "oatpp-mbedtls" links to target "mbedtls::TLS" but the target was
  not found.  Perhaps a find_package() call is missing for an IMPORTED
  target, or an ALIAS target is missing?
Call Stack (most recent call first):
  src/CMakeLists.txt:2 (add_library)


CMake Error at C:/agent/_work/1/s/scripts/buildsystems/vcpkg.cmake:326 (_add_library):
  Target "oatpp-mbedtls" links to target "mbedtls::X509" but the target was
  not found.  Perhaps a find_package() call is missing for an IMPORTED
  target, or an ALIAS target is missing?
Call Stack (most recent call first):
  src/CMakeLists.txt:2 (add_library)


CMake Error at C:/agent/_work/1/s/scripts/buildsystems/vcpkg.cmake:326 (_add_library):
  Target "oatpp-mbedtls" links to target "mbedtls::Crypto" but the target was
  not found.  Perhaps a find_package() call is missing for an IMPORTED
  target, or an ALIAS target is missing?
Call Stack (most recent call first):
  src/CMakeLists.txt:2 (add_library)

@NancyLi1013
Copy link
Contributor

Please also look into the regressions and try to fix them.

@mheyman
Copy link
Contributor Author

mheyman commented Jul 12, 2020

The latest code has a change in case for a find_package() that was not failing on my build but seemed to be the issue on yours. We'll see ;-)

@NancyLi1013
Copy link
Contributor

I will try to reproduce this on my local.

@NancyLi1013
Copy link
Contributor

It seems to be related with case sensitive.

I noticed that it used if(MBEDTLS_FOUND) in
cmake/module/Findmbedtls.cmake .

But from the configure log, I found the info is:
-- Found mbedTLS: D:/installed/x64-windows/include (found version "2.16.3")

So could you please try to update MBEDTLS_FOUND as mbedTLS_FOUND and rebuild this on CI?

@NancyLi1013
Copy link
Contributor

/azp run

@azure-pipelines
Copy link

Azure Pipelines successfully started running 1 pipeline(s).

@BillyONeal
Copy link
Member

PR validation still looks like legit failures

@NancyLi1013
Copy link
Contributor

@mheyman
Is work still being done for this PR?

@mheyman
Copy link
Contributor Author

mheyman commented Sep 7, 2020 via email

@mheyman
Copy link
Contributor Author

mheyman commented Sep 7, 2020

I think I finally figured out what was going on - there is a version of FindMbedtls.cmake somewhere on the Azure build servers that doesn't exist in our systems. Cmake calls that find code instead of the one that comes with Oat++. And, that find code doesn't set up the mbedtls targets expected by Oat++, just some variables (which I used instead). FYI: there are also log lines showing that pthreads4w is getting pulled in on the Azure build servers and that doesn't get pulled in on our servers either but that may be part of the FindMbedtls.cmake hijacking going on.

@BillyONeal
Copy link
Member

there is a version of FindMbedtls.cmake somewhere on the Azure build servers

https://github.com/microsoft/vcpkg/blob/master/ports/mbedtls/vcpkg-cmake-wrapper.cmake is that override.

@mheyman
Copy link
Contributor Author

mheyman commented Sep 8, 2020

there is a version of FindMbedtls.cmake somewhere on the Azure build servers

https://github.com/microsoft/vcpkg/blob/master/ports/mbedtls/vcpkg-cmake-wrapper.cmake is that override.

:-) Got it to work using that one or the one that comes with Oat++ for the rest of us

@KaungZawHtet
Copy link
Contributor

1.2.0 is coming

@BillyONeal
Copy link
Member

@NancyLi1013 is on vacation and I think she was waiting for a clean CI run anyway; it's passing now so I merged it.

Thanks for your contribution!

@BillyONeal BillyONeal merged commit 0aae396 into microsoft:master Oct 6, 2020
@NancyLi1013
Copy link
Contributor

Thanks for your help and follow up @BillyONeal .

@KaungZawHtet
Copy link
Contributor

it is still 1.0.0 when I do vcpkg search oatpp

95308636-2d2b2280-08b0-11eb-81a3-ba82b82e34b4

@BillyONeal
Copy link
Member

it is still 1.0.0 when I do vcpkg search oatpp

95308636-2d2b2280-08b0-11eb-81a3-ba82b82e34b4

Did you do a git pull to update your vcpkg repo?

@KaungZawHtet
Copy link
Contributor

opps! I notice what I missed. Thx

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
category:port-update The issue is with a library, which is requesting update new revision
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

5 participants