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

GCC CI Build Fixes #1861

Draft
wants to merge 31 commits into
base: develop-pre-1.11.0
Choose a base branch
from
Draft

GCC CI Build Fixes #1861

wants to merge 31 commits into from

Conversation

stefankiesz
Copy link
Contributor

Issue #, if available:

What was changed?
Updated the GCC path set in the Mac GCC CI build.

Why was it changed?
"gcc" is mapped to CLANG on Mac, so the build was using CLANG rather than GCC compiler.

How was it changed?
The full path to the GCC and G++ compiler was identified, and it replaced the "gcc" and "g++" in the respective environment variables.

What testing was done for the changes?
The CI is to run to verify that the correct compiler is used and that the test is passing.

By submitting this pull request, I confirm that you can use, modify, copy, and redistribute this contribution, under the terms of your choice.

@codecov-commenter
Copy link

codecov-commenter commented Nov 29, 2023

Codecov Report

All modified and coverable lines are covered by tests ✅

Project coverage is 75.22%. Comparing base (f6bc9fc) to head (be796ac).

❗ Current head be796ac differs from pull request most recent head 254f5a3. Consider uploading reports for the commit 254f5a3 to get more accurate results

Additional details and impacted files
@@             Coverage Diff             @@
##           develop    #1861      +/-   ##
===========================================
- Coverage    75.44%   75.22%   -0.23%     
===========================================
  Files           49       48       -1     
  Lines        13930    12177    -1753     
===========================================
- Hits         10510     9160    -1350     
+ Misses        3420     3017     -403     

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

@stefankiesz
Copy link
Contributor Author

Note to self: add comments in code explaining changes before merging.

@stefankiesz stefankiesz changed the title Point Mac GCC CI Build to Correct Path GCC CI Build Fixes Dec 6, 2023
@stefankiesz stefankiesz closed this Dec 7, 2023
@stefankiesz stefankiesz reopened this Dec 7, 2023
wBioDataLen = (SIZE_T) BIO_get_mem_data(SSL_get_wbio(pTlsSession->pSsl), &wBioBuffer);
CHK_ERR(wBioDataLen >= 0, STATUS_SEND_DATA_FAILED, "BIO_get_mem_data failed");
wBioGetMemDataRet = BIO_get_mem_data(SSL_get_wbio(pTlsSession->pSsl), &wBioBuffer);
CHK_ERR(wBioGetMemDataRet != 0, STATUS_SEND_DATA_FAILED, "BIO_get_mem_data failed with: no BIO was connected to the SSL object.");
Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Note: "0" is an error, was being treated as a non-error prior to these changes

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

BIO_get_mem_data() returns the total number of bytes available on success, 0 if b is NULL, or a negative value in case of other errors.

@stefankiesz stefankiesz marked this pull request as draft December 30, 2023 04:36
/Users/runner/work/amazon-kinesis-video-streams-webrtc-sdk-c/amazon-kinesis-video-streams-webrtc-sdk-c/src/source/Sctp/Sctp.c:213:1: error: multi-line comment [-Werror=comment]
  213 | //     /                                                               \
      | ^
/Users/runner/work/amazon-kinesis-video-streams-webrtc-sdk-c/amazon-kinesis-video-streams-webrtc-sdk-c/src/source/Sctp/Sctp.c:217:1: error: multi-line comment [-Werror=comment]
  217 | //     /                                                               \
      | ^
/Users/runner/work/amazon-kinesis-video-streams-webrtc-sdk-c/amazon-kinesis-video-streams-webrtc-sdk-c/src/source/Sctp/Sctp.c: In function 'sctpSessionWriteDcep':
/Users/runner/work/amazon-kinesis-video-streams-webrtc-sdk-c/amazon-kinesis-video-streams-webrtc-sdk-c/src/source/Sctp/Sctp.c:249:51: error: comparison is always true due to limited range of data type [-Werror=type-limits]
  249 |     if (pRtcDataChannelInit->maxRetransmits.value >= 0 && pRtcDataChannelInit->maxRetransmits.isNull == FALSE) {
      |                                                   ^~
/Users/runner/work/amazon-kinesis-video-streams-webrtc-sdk-c/amazon-kinesis-video-streams-webrtc-sdk-c/src/source/Sctp/Sctp.c:252:61: error: comparison is always true due to limited range of data type [-Werror=type-limits]
  252 |     } else if (pRtcDataChannelInit->maxPacketLifeTime.value >= 0 && pRtcDataChannelInit->maxPacketLifeTime.isNull == FALSE) {
      |                                                             ^~
In file included from /Users/runner/work/amazon-kinesis-video-streams-webrtc-sdk-c/amazon-kinesis-video-streams-webrtc-sdk-c/open-source/include/com/amazonaws/kinesis/video/client/Include.h:13,
                 from /Users/runner/work/amazon-kinesis-video-streams-webrtc-sdk-c/amazon-kinesis-video-streams-webrtc-sdk-c/src/include/com/amazonaws/kinesis/video/webrtcclient/Include.h:20,
                 from /Users/runner/work/amazon-kinesis-video-streams-webrtc-sdk-c/amazon-kinesis-video-streams-webrtc-sdk-c/src/source/Sctp/../Include_i.h:27,
                 from /Users/runner/work/amazon-kinesis-video-streams-webrtc-sdk-c/amazon-kinesis-video-streams-webrtc-sdk-c/src/source/Sctp/Sctp.c:2:
/Users/runner/work/amazon-kinesis-video-streams-webrtc-sdk-c/amazon-kinesis-video-streams-webrtc-sdk-c/src/source/Sctp/Sctp.c: In function 'handleDcepPacket':
/Users/runner/work/amazon-kinesis-video-streams-webrtc-sdk-c/amazon-kinesis-video-streams-webrtc-sdk-c/src/source/Sctp/Sctp.c:318:66: error: comparison of integer expressions of different signedness: 'int' and 'SIZE_T' {aka 'long long unsigned int'} [-Werror=sign-compare]
  318 |     CHK((labelLength + protocolLength + SCTP_DCEP_HEADER_LENGTH) >= length, STATUS_SCTP_INVALID_DCEP_PACKET);
      |                                                                  ^~
/Users/runner/work/amazon-kinesis-video-streams-webrtc-sdk-c/amazon-kinesis-video-streams-webrtc-sdk-c/src/source/Sctp/Sctp.c: In function 'onSctpInboundPacket':
/Users/runner/work/amazon-kinesis-video-streams-webrtc-sdk-c/amazon-kinesis-video-streams-webrtc-sdk-c/src/source/Sctp/Sctp.c:336:12: error: variable 'retStatus' set but not used [-Werror=unused-but-set-variable]
  336 |     STATUS retStatus = STATUS_SUCCESS;
      |            ^~~~~~~~~
At top level:
cc1: note: unrecognized command-line option '-Wno-unknown-warning-option' may have been intended to silence earlier diagnostics
cc1: all warnings being treated as errors
make[2]: *** [CMakeFiles/kvsWebrtcClient.dir/src/source/Sctp/Sctp.c.o] Error 1
make[1]: *** [CMakeFiles/kvsWebrtcClient.dir/all] Error 2
make: *** [all] Error 2
Error: Process completed with exit code 2.
Copy link

This is a very old issue. We encourage you to check if this is still an issue in the latest release and if you find that this is still a problem, please feel free to open a new one.

@github-actions github-actions bot added the Stale label Sep 22, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants