Welcome to the most active Linux Forum on the web.
Go Back > Forums > Linux Forums > Linux - Distributions > Slackware > Slackware - ARM
User Name
Slackware - ARM This forum is for the discussion of Slackware ARM.


  Search this Thread
Old 06-17-2017, 09:18 PM   #1
Registered: Aug 2003
Location: Melbourne, Australia
Distribution: Slackware, Slackwarearm
Posts: 879

Rep: Reputation: 120Reputation: 120
gcc 7.x compile issue with nginx,

A slackbuild of nginx on current failed today due to a change in gcc this might be of interest to others who get an error message such as the one at the bottom of this post. I found the reason and a fix in an nginx bug report.
Reason for compilation errors like these is that GCC 7 added (​ a new -Wimplicit-fallthrough which generates a message for case statements that implicitly fallthrough to the next case.
If needed, -Werror can be easily disabled with ./configure --with-cc-opt="-Wno-error".
Bug report at: Error message:
src/core/ngx_murmurhash.c: In function 'ngx_murmur_hash2':
src/core/ngx_murmurhash.c:37:11: error: this statement may fall through [-Werror=implicit-fallthrough=]
         h ^= data[2] << 16;
src/core/ngx_murmurhash.c:38:5: note: here
     case 2:
src/core/ngx_murmurhash.c:39:11: error: this statement may fall through [-Werror=implicit-fallthrough=]
         h ^= data[1] << 8;
src/core/ngx_murmurhash.c:40:5: note: here
     case 1:
cc1: all warnings being treated as errors
make[1]: *** [objs/Makefile:601: objs/src/core/ngx_murmurhash.o] Error 1
I have also passed this info on to the maintainer of the nginx slackbuild.


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off

Similar Threads
Thread Thread Starter Forum Replies Last Post
Is there a way to compile gcc with an older version or build gcc manually? anon002 Linux - Software 10 05-11-2015 01:05 AM
[SOLVED] Failed to compile libatomic at the first time to compile gcc(step 5.5) clicdl Linux From Scratch 8 07-23-2013 05:20 AM
Why couldn't the gcc(version4.3.3) be used to compile the gcc(version3.3.2)? snc Linux - Newbie 6 01-24-2010 11:26 AM
Compile error, 'H5G_obj_t' does not name a type, is gcc 4.3 incompatible with gcc 3 ? samrat_rao Linux - Software 5 03-03-2009 02:28 PM > Forums > Linux Forums > Linux - Distributions > Slackware > Slackware - ARM

All times are GMT -5. The time now is 06:29 PM.

Main Menu
Write for LQ is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration