xiph / xiph/opus

undefined reference to `__stack_chk_guard'

Open
#138 4 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

Dominant language
C
Stars
3.3k
Forks
808
PR merge metrics
No merged PRs in 30d

Description

Operating system: windows 10
Compiler: C:/Qt/Qt5.12.4/Tools/mingw730_32/bin/i686-w64-mingw32-gcc.exe
Compiler versoin: 7.3.0
opus version: 1.3.1

cmake .. -DCMAKE_INSTALL_PREFIX=/d/Source/RabbitIm/ThirdLibrary/build_script/../windows_mingw730_x86_qt5.12.4_Release -DCMAKE_BUILD_TYPE=Release -G"MSYS Makefiles" -DBUILD_SHARED_LIBS=ON -DCMAKE_TOOLCHAIN_FILE=/d/Source/RabbitIm/ThirdLibrary/build_script/../windows_mingw730_x86_qt5.12.4_Release/../build_script/cmake/platforms/toolchain-mingw.cmake

toolchain-mingw.cmake

The error information:
D:/Source/RabbitIm/ThirdLibrary/src/libopus/celt/float_cast.h:130:10: warning: #warning "Replacing these functions with a standard C cast." [-Wcpp]
#warning "Replacing these functions with a standard C cast."
^~~~~~~
[100%] Linking C shared library libopus.dll
CMakeFiles/opus.dir/objects.a(opus_decoder.c.obj):opus_decoder.c:(.text+0x34): undefined reference to __stack_chk_guard' CMakeFiles/opus.dir/objects.a(opus_decoder.c.obj):opus_decoder.c:(.text+0x3a2): undefined reference to __stack_chk_guard'
CMakeFiles/opus.dir/objects.a(opus_decoder.c.obj):opus_decoder.c:(.text+0x111b): undefined reference to __stack_chk_fail' CMakeFiles/opus.dir/objects.a(opus_decoder.c.obj):opus_decoder.c:(.text+0x125c): undefined reference to __stack_chk_guard'
CMakeFiles/opus.dir/objects.a(opus_decoder.c.obj):opus_decoder.c:(.text+0x1274): undefined reference to __stack_chk_guard' CMakeFiles/opus.dir/objects.a(opus_decoder.c.obj):opus_decoder.c:(.text+0x12b3): undefined reference to __stack_chk_fail'

Contributor guide

No contributing guide indexed for this repository

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

Start by reproducing the reported CMake configuration with the linked toolchain-mingw.cmake, using MinGW GCC 7.3.0 on Windows 10. Inspect the compiler and linker settings involved in the libopus.dll link; done means the build completes without undefined references to __stack_chk_guard or __stack_chk_fail.

Written by the indexing model from the issue text.

Assessment

Tech stack
c, cmake
Domain
build-system, operating-systems
Issue type
Bug
Difficulty
3/5
Estimated time
1-2 days
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
35/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.