You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@kvrocks.apache.org by "mapleFU (via GitHub)" <gi...@apache.org> on 2023/07/06 06:54:47 UTC

[GitHub] [kvrocks] mapleFU opened a new pull request, #1555: Build: Disable `-static-libgcc` on MacOS building

mapleFU opened a new pull request, #1555:
URL: https://github.com/apache/kvrocks/pull/1555

   On MacOS clang-13, it doesn't support `-static-libgcc`. So the code below might get:
   
   ```
   clang: error: unsupported option '-static-libgcc'
   ```
   
   This patch tries to fix that.


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: issues-unsubscribe@kvrocks.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


[GitHub] [kvrocks] mapleFU commented on pull request #1555: Build: Disable `-static-libgcc` on MacOS building

Posted by "mapleFU (via GitHub)" <gi...@apache.org>.
mapleFU commented on PR #1555:
URL: https://github.com/apache/kvrocks/pull/1555#issuecomment-1623674377

   I've update the description.


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: issues-unsubscribe@kvrocks.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


[GitHub] [kvrocks] git-hulk commented on pull request #1555: Build: Disable `-static-libgcc` on MacOS building

Posted by "git-hulk (via GitHub)" <gi...@apache.org>.
git-hulk commented on PR #1555:
URL: https://github.com/apache/kvrocks/pull/1555#issuecomment-1623788486

   Thanks all, merging...


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: issues-unsubscribe@kvrocks.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


[GitHub] [kvrocks] git-hulk merged pull request #1555: Build: Disable `-static-libgcc` on MacOS building

Posted by "git-hulk (via GitHub)" <gi...@apache.org>.
git-hulk merged PR #1555:
URL: https://github.com/apache/kvrocks/pull/1555


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: issues-unsubscribe@kvrocks.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


[GitHub] [kvrocks] git-hulk commented on pull request #1555: Build: Disable `-static-libgcc` on MacOS building

Posted by "git-hulk (via GitHub)" <gi...@apache.org>.
git-hulk commented on PR #1555:
URL: https://github.com/apache/kvrocks/pull/1555#issuecomment-1623467058

   Yes, that's right.


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: issues-unsubscribe@kvrocks.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


[GitHub] [kvrocks] mapleFU commented on pull request #1555: Build: Disable `-static-libgcc` on MacOS building

Posted by "mapleFU (via GitHub)" <gi...@apache.org>.
mapleFU commented on PR #1555:
URL: https://github.com/apache/kvrocks/pull/1555#issuecomment-1623362578

   @git-hulk did you get a warning like:
   
   ```
   clang: warning: argument unused during compilation: '-static-libstdc++'
   ```
   
   I'm not sure would it warns that


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: issues-unsubscribe@kvrocks.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


[GitHub] [kvrocks] git-hulk commented on pull request #1555: Build: Disable `-static-libgcc` on MacOS building

Posted by "git-hulk (via GitHub)" <gi...@apache.org>.
git-hulk commented on PR #1555:
URL: https://github.com/apache/kvrocks/pull/1555#issuecomment-1623282348

   LGTM, but I'm wondering why this error didn't happen on my side.


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: issues-unsubscribe@kvrocks.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


[GitHub] [kvrocks] git-hulk commented on pull request #1555: Build: Disable `-static-libgcc` on MacOS building

Posted by "git-hulk (via GitHub)" <gi...@apache.org>.
git-hulk commented on PR #1555:
URL: https://github.com/apache/kvrocks/pull/1555#issuecomment-1623410598

   > @git-hulk did you get a warning like:
   > 
   > ```
   > clang: warning: argument unused during compilation: '-static-libstdc++'
   > ```
   > 
   > I'm not sure would it warns that
   
   I cannot see this warning even building from scratch.


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: issues-unsubscribe@kvrocks.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


[GitHub] [kvrocks] mapleFU commented on pull request #1555: Build: Disable `-static-libgcc` on MacOS building

Posted by "mapleFU (via GitHub)" <gi...@apache.org>.
mapleFU commented on PR #1555:
URL: https://github.com/apache/kvrocks/pull/1555#issuecomment-1623443192

   ```
   ✗ clang++ --static-libgcc sample.cpp -a sample.a
   clang-13: error: unsupported option '--static-libgcc'; did you mean '-static-libgcc'?
   clang-13: error: no such file or directory: 'sample.a'
   ✗ clang++ -static-libgcc sample.cpp -a sample.a 
   clang-13: error: no such file or directory: 'sample.a'
   clang-13: error: unsupported option '-static-libgcc'
   
   ✗ clang++ --version
   Homebrew clang version 13.0.1
   Target: arm64-apple-darwin21.3.0
   Thread model: posix
   InstalledDir: /opt/homebrew/opt/llvm/bin
   ```
   
   I guess there is something wrong with clang-13 on MacOS 12.2.1 . But I didn't research about it


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: issues-unsubscribe@kvrocks.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


[GitHub] [kvrocks] git-hulk commented on pull request #1555: Build: Disable `-static-libgcc` on MacOS building

Posted by "git-hulk (via GitHub)" <gi...@apache.org>.
git-hulk commented on PR #1555:
URL: https://github.com/apache/kvrocks/pull/1555#issuecomment-1623452542

   @mapleFU I know the reason now. Coz I'm using AppleClang Not Clang :D.


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: issues-unsubscribe@kvrocks.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


[GitHub] [kvrocks] mapleFU commented on pull request #1555: Build: Disable `-static-libgcc` on MacOS building

Posted by "mapleFU (via GitHub)" <gi...@apache.org>.
mapleFU commented on PR #1555:
URL: https://github.com/apache/kvrocks/pull/1555#issuecomment-1623463927

   Oh, so that :
   
   ```
   if ((CMAKE_CXX_COMPILER_ID STREQUAL "GNU") OR (CMAKE_CXX_COMPILER_ID STREQUAL "Clang"))
   ```
   
   will not step into. So no flags would be added here. Sounds reasonable


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: issues-unsubscribe@kvrocks.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org