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

编译问题 #10

Open
Jay-9527 opened this issue Jan 24, 2024 · 2 comments
Open

编译问题 #10

Jay-9527 opened this issue Jan 24, 2024 · 2 comments

Comments

@Jay-9527
Copy link

gcc -I. -I/home/adiao/LubanCatWrt/staging_dir/host/include -O2 -I/home/adiao/LubanCatWrt/staging_dir/host/include -c -o canonicalize.o canonicalize.c
canonicalize.c: In function 'canonicalize_filename_mode':
canonicalize.c:484:5: warning: #warning "GCC might issue a bogus -Wreturn-local-addr warning here." [-Wcpp]
484 | #warning "GCC might issue a bogus -Wreturn-local-addr warning here."
| ^~~~~~~
canonicalize.c:485:5: warning: #warning "See https://gcc.gnu.org/bugzilla/show_bug.cgi?id=93644." [-Wcpp]
485 | #warning "See https://gcc.gnu.org/bugzilla/show_bug.cgi?id=93644."
| ^~~~~~~

???这是什么鬼?都是按步骤来的。

@Jay-9527
Copy link
Author

utimens.c: In function 'fdutimens':
utimens.c:383:17: warning: 'update_timespec' accessing 16 bytes in a region of size 8 [-Wstringop-overflow=]
383 | if (ts && update_timespec (&st, &ts))
| ^~~~~~~~~~~~~~~~~~~~~~~~~~
utimens.c:383:17: note: referencing argument 2 of type 'struct timespec **'
utimens.c:134:1: note: in a call to function 'update_timespec'
134 | update_timespec (struct stat const *statbuf, struct timespec *ts[2])
| ^~~~~~~~~~~~~~~
utimens.c: In function 'lutimens':
utimens.c:596:17: warning: 'update_timespec' accessing 16 bytes in a region of size 8 [-Wstringop-overflow=]
596 | if (ts && update_timespec (&st, &ts))
| ^~~~~~~~~~~~~~~~~~~~~~~~~~
utimens.c:596:17: note: referencing argument 2 of type 'struct timespec **'
utimens.c:134:1: note: in a call to function 'update_timespec'
134 | update_timespec (struct stat const *statbuf, struct timespec *ts[2])

careadlinkat.c: In function 'careadlinkat':
careadlinkat.c:184:5: warning: #warning "GCC might issue a bogus -Wreturn-local-addr warning here." [-Wcpp]
184 | #warning "GCC might issue a bogus -Wreturn-local-addr warning here."
| ^~~~~~~
careadlinkat.c:185:5: warning: #warning "See https://gcc.gnu.org/bugzilla/show_bug.cgi?id=93644." [-Wcpp]
185 | #warning "See https://gcc.gnu.org/bugzilla/show_bug.cgi?id=93644."
| ^~~~~~~
careadlinkat.c:188:10: warning: function may return address of local variable [-Wreturn-local-addr]
188 | return readlink_stk (fd, filename, buffer, buffer_size, alloc,
| ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
189 | preadlinkat, stack_buf);
| ~~~~~~~~~~~~~~~~~~~~~~~
careadlinkat.c:187:8: note: declared here
187 | char stack_buf[STACK_BUF_SIZE];

gcc -I. -I/home/adiao/LubanCatWrt/staging_dir/host/include -O2 -I/home/adiao/LubanCatWrt/staging_dir/host/include -c -o canonicalize.o canonicalize.c
canonicalize.c: In function 'canonicalize_filename_mode':
canonicalize.c:484:5: warning: #warning "GCC might issue a bogus -Wreturn-local-addr warning here." [-Wcpp]
484 | #warning "GCC might issue a bogus -Wreturn-local-addr warning here."
| ^~~~~~~
canonicalize.c:485:5: warning: #warning "See https://gcc.gnu.org/bugzilla/show_bug.cgi?id=93644." [-Wcpp]
485 | #warning "See https://gcc.gnu.org/bugzilla/show_bug.cgi?id=93644."
| ^~~~~~~

这是我集合了所有的编译问题。

@Jay-9527
Copy link
Author

编译器不是用默认的么?还是说用交叉的方式来编译?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant