LinuxQuestions.org
Latest LQ Deal: Latest LQ Deals
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Slackware
User Name
Password
Slackware This Forum is for the discussion of Slackware Linux.

Notices


Reply
  Search this Thread
Old 11-14-2018, 06:37 AM   #1
business_kid
LQ Guru
 
Registered: Jan 2006
Location: Ireland
Distribution: Slackware, Slarm64 & Android
Posts: 16,289

Rep: Reputation: 2322Reputation: 2322Reputation: 2322Reputation: 2322Reputation: 2322Reputation: 2322Reputation: 2322Reputation: 2322Reputation: 2322Reputation: 2322Reputation: 2322
Headers Issue


I updated to ~Current last Autumn, and, for once, everything seemed to bed down and work (Unlike previous experiences) except I get a lot of log spam, particularly from kernels, in the form of header warnings. Things Build, (LFS built!) but it's hardly kosher. Here's a sample
Quote:
./include/linux/syscalls.h:196:36: note: in expansion of macro ‘SYSCALL_DEFINEx’
#define SYSCALL_DEFINE1(name, ...) SYSCALL_DEFINEx(1, _##name, __VA_ARGS__)
^~~~~~~~~~~~~~~
kernel/fork.c:2319:1: note: in expansion of macro ‘SYSCALL_DEFINE1’
SYSCALL_DEFINE1(unshare, unsigned long, unshare_flags)
^~~~~~~~~~~~~~~
./include/linux/syscalls.h:211:18: warning: ‘sys_clone’ alias between functions of incompatible types ‘long int(long unsigned int, long unsigned int, int *, int *, long unsigned int)’ and ‘long int(long int, long int, long int, long int, long int)’ [-Wattribute-alias]
asmlinkage long sys##name(__MAP(x,__SC_DECL,__VA_ARGS__)) \
^~~
I'm seeing a lot of that first error. Any idea what might be up, considering everything works?

EDIT: I'm on target for ~2MB of header errors in the error file.

Last edited by business_kid; 11-14-2018 at 06:39 AM.
 
Old 11-14-2018, 07:09 AM   #2
55020
Senior Member
 
Registered: Sep 2009
Location: Yorks. W.R. 167397
Distribution: Slackware
Posts: 1,307
Blog Entries: 4

Rep: Reputation: Disabled
Quote:
Originally Posted by business_kid View Post
I'm seeing a lot of that first error. Any idea what might be up, considering everything works?
That's not 3 errors; that's 1 warning.

Each new version of gcc introduces additional checks that try to find code that might be bad. You've moved to -current, so you have a new version of gcc.

Old code + new compiler = new warnings.

Those warnings are not for you; those warnings are for the upstream developers.

It takes upstream developers some time to try the latest version of gcc, and more time to decide whether there are real problems with their code. (Usually there is no real problem, because it's code that has been in use for years.) Then they need more time to decide whether to mess with their code anyway to make the warnings go away (risky), or to suppress the warnings with compiler flags.

Eventually, if the upstream developers care enough, a new version of the software will come out that makes most of the noise go away ... until the next new compiler version comes out.

Meanwhile, you should just ignore the warnings and get on with your life.
 
6 members found this post helpful.
Old 11-14-2018, 08:37 AM   #3
business_kid
LQ Guru
 
Registered: Jan 2006
Location: Ireland
Distribution: Slackware, Slarm64 & Android
Posts: 16,289

Original Poster
Rep: Reputation: 2322Reputation: 2322Reputation: 2322Reputation: 2322Reputation: 2322Reputation: 2322Reputation: 2322Reputation: 2322Reputation: 2322Reputation: 2322Reputation: 2322
Yeah thanks, that makes sense once you say it. I jumped from gcc-5.3.? to 8.2.0.

I sometimes feel bullied by projects with larger dev teams, because they can act as if the users were pupils, and boss people around with bad manners. But code testing is probably good if it catches hacks.
 
  


Reply



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
[kernel-headers-3.2.45-x86-3] OR [kernel-headers-3.2.45_smp-x86-3]? Sefid par Slackware 3 07-24-2013 09:59 AM
Why Does Linux Headers Keep Including Too Many Headers? minivy Linux - Kernel 2 12-07-2011 02:16 PM
Confused: Which headers are "The Headers"? Couling Linux - Software 4 06-15-2010 01:29 PM
Zypper wants to dl the wrong kernel headers... YaST doesnt have current headers zorb SUSE / openSUSE 2 11-28-2009 11:12 AM
Difference between packages linux-headers-foo and linux-headers-foo-generic? jhwilliams Ubuntu 1 10-19-2009 05:04 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Slackware

All times are GMT -5. The time now is 03:46 AM.

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