Programming-Systems-Lab / bug-collection

This is a collection of bugs/security vulnerabilities with before and after test cases to be used for research experiments
MIT License
1 stars 0 forks source link

Can't compile core utils on my machine #6

Open asn10038 opened 5 years ago

asn10038 commented 5 years ago

Hey @cxu2 If you get a chance double check if you can compile core utils on bank. I failed during making coreutils with the following errors:

  CC       lib/allocator.o
lib/acl-internal.c: In function 'free_permission_context':
lib/acl-internal.c:479:1: error: function might be candidate for attribute 'const' [-Werror=suggest-attribute=const]
 free_permission_context (struct permission_context *ctx)
 ^~~~~~~~~~~~~~~~~~~~~~~
cc1: all warnings being treated as errors
  CC       lib/areadlink.o
Makefile:9519: recipe for target 'lib/acl-internal.o' failed
make[3]: *** [lib/acl-internal.o] Error 1
make[3]: *** Waiting for unfinished jobs....
make[3]: Leaving directory '/tmp/bug-collection/Bugs/C/MuplayBugs/coreutils-yes-bug1'
Makefile:12142: recipe for target 'all-recursive' failed
make[2]: *** [all-recursive] Error 1
make[2]: Leaving directory '/tmp/bug-collection/Bugs/C/MuplayBugs/coreutils-yes-bug1'
Makefile:6345: recipe for target 'all' failed
make[1]: *** [all] Error 2
make[1]: Leaving directory '/tmp/bug-collection/Bugs/C/MuplayBugs/coreutils-yes-bug1'
Makefile:713: recipe for target 'yes-buggy-1' failed
make: *** [yes-buggy-1] Error 2
cxu2 commented 5 years ago

working on it.

cxu2 commented 5 years ago

Looks like I cannot reproduce the error you had since I am stuck on a step before due to not having these dependencies installed:

cxu2 commented 5 years ago

As mentioned in https://bug-coreutils.gnu.narkive.com/q14Ima4F/bug-32762-bug-at-coreutils-compile, it is not a bug per-se and it happens only when compiled from github repo, not from tarballs. Do ./configure --disable-gcc-warnings will resolve the issue. I have updated the Makefile to include this option.