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

[Windows|macOS|Linux|BSD] - FTBFS on GCC 14 #505

Open
ycollet opened this issue Apr 13, 2024 · 1 comment
Open

[Windows|macOS|Linux|BSD] - FTBFS on GCC 14 #505

ycollet opened this issue Apr 13, 2024 · 1 comment
Labels
bug Something isn't working

Comments

@ycollet
Copy link

ycollet commented Apr 13, 2024

Checklist

  • I am reporting exactly 1 bug with this issue.
  • This bug hasn't already been reported.
  • This bug hasn't already been fixed in the latest development build.

Bug Description

I am trying to build Bambootracker with gcc-14.0.1 on Fedora 40.
The build fails with the following error:

gcc -c -pipe -std=gnu11 -O2 -flto=auto -ffat-lto-objects -fexceptions -g -grecord-gcc-switches -pipe -Wall -Werror=format-security -Wp,-U_FORTIFY_SOURCE,-D_FORTIFY_SOURCE=3 -Wp,-D_GLIBCXX_ASSERTIONS -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -fstack-protector-strong -specs=/usr/lib/rpm/redhat/redhat-annobin-cc1 -m64 -march=x86-64 -mtune=generic -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection -fno-omit-frame-pointer -mno-omit-leaf-frame-pointer -Wall -Wextra -Wall -Wextra -Werror -pedantic -pedantic-errors -D_REENTRANT -fPIC -DQT_DEPRECATED_WARNINGS -DQT_NO_DEBUG -DQT_WIDGETS_LIB -DQT_GUI_LIB -DQT_CORE_LIB -I. -Iinstrument -Imodule -I../submodules/emu2149/src -I../submodules/RtAudio/src -I../submodules/RtMidi/src -I/usr/include/qt5 -I/usr/include/qt5/QtWidgets -I/usr/include/qt5/QtGui -I/usr/include/qt5/QtCore -I. -I. -I/usr/lib64/qt5/mkspecs/linux-g++ -o wopn_file.o format/wopn_file.c
make[1]: Leaving directory '/builddir/build/BUILD/BambooTracker/BambooTracker'
format/wopn_file.c: In function ‘WOPN_SaveBankToMem’:
format/wopn_file.c:555:17: error: ‘strncpy’ output may be truncated copying 32 bytes from a string of length 32 [-Werror=stringop-truncation]
  555 |                 strncpy((char*)cursor, bankslots[i][j].bank_name, 32);
      |                 ^
cc1: all warnings being treated as errors

System Information

  • Operating System: Linux Fedora 40
  • BambooTracker Version: 0.6.3
  • Build Type: local build
@ycollet ycollet added the bug Something isn't working label Apr 13, 2024
@OPNA2608 OPNA2608 changed the title [Windows|macOS|Linux|BSD] - Short bug summary [Windows|macOS|Linux|BSD] - FTBFS on GCC 14 Apr 29, 2024
@OPNA2608
Copy link
Member

My distro doesn't have that new of a GCC yet, so thanks for the heads up. As a workaround for such (hopefully temporary) issues, try CONFIG+=no_warnings_are_errors with #508 when using QMake (which seems to be the case here), or switch to CMake and use -DWARNINGS_ARE_ERRORS=OFF.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

2 participants