GCC Bugzilla – Attachment 28023 Details for
Bug 38966
libiberty make_relative_prefix_1 mistakes directories for executables
Home
|
New
|
Browse
|
Search
|
[?]
|
Reports
|
Help
|
New Account
|
Log In
Remember
[x]
|
Forgot Password
Login:
[x]
Simple repro for "gcc" subdir in PATH bug.
confusedincludes.txt (text/plain), 6.34 KB, created by
Tom Tignor
on 2012-08-15 21:34:50 UTC
(
hide
)
Description:
Simple repro for "gcc" subdir in PATH bug.
Filename:
MIME Type:
Creator:
Tom Tignor
Created:
2012-08-15 21:34:50 UTC
Size:
6.34 KB
patch
obsolete
>Script started on Wed 15 Aug 2012 05:21:14 PM EDT >]0;ttignor@ttignorrhl: ~/test]0;ttignor@ttignorrhl: ~/test]0;ttignor@ttignorrhl.netezza.com: ~/test[?1034httignorrhl:test-> source path1 >]0;ttignor@ttignorrhl.netezza.com: ~/testttignorrhl:test-> echo $PATH >/usr/bin:/bin:/usr/sbin:/sbin >]0;ttignor@ttignorrhl.netezza.com: ~/testttignorrhl:test-> which gcc >/usr/bin/gcc >]0;ttignor@ttignorrhl.netezza.com: ~/testttignorrhl:test-> gcc -v >Using built-in specs. >Target: x86_64-redhat-linux >Configured with: ../configure --prefix=/usr --mandir=/usr/share/man --infodir=/usr/share/info --with-bugurl=http://bugzilla.redhat.com/bugzilla --enable-bootstrap --enable-shared --enable-threads=posix --enable-checking=release --with-system-zlib --enable-__cxa_atexit --disable-libunwind-exceptions --enable-gnu-unique-object --enable-languages=c,c++,objc,obj-c++,java,fortran,ada --enable-java-awt=gtk --disable-dssi --with-java-home=/usr/lib/jvm/java-1.5.0-gcj-1.5.0.0/jre --enable-libgcj-multifile --enable-java-maintainer-mode --with-ecj-jar=/usr/share/java/eclipse-ecj.jar --disable-libjava-multilib --with-ppl --with-cloog --with-tune=generic --with-arch_32=i686 --build=x86_64-redhat-linux >Thread model: posix >gcc version 4.4.6 20120305 (Red Hat 4.4.6-4) (GCC) >]0;ttignor@ttignorrhl.netezza.com: ~/testttignorrhl:test-> ls >confusedincludes.txt foo.txt hello* main.c path1 path2 >]0;ttignor@ttignorrhl.netezza.com: ~/testttignorrhl:test-> cat main.c > >#include <stdio.h> > >int main() { > printf("Hello world.\n"); >} > >]0;ttignor@ttignorrhl.netezza.com: ~/testttignorrhl:test-> gcc main.c -o hello >]0;ttignor@ttignorrhl.netezza.com: ~/testttignorrhl:test-> ./hello >Hello world. >]0;ttignor@ttignorrhl.netezza.com: ~/testttignorrhl:test-> source path2 >]0;ttignor@ttignorrhl.netezza.com: ~/testttignorrhl:test-> echo $PATH >/some/parent/dir/with:/usr/bin:/bin:/usr/sbin:/sbin >]0;ttignor@ttignorrhl.netezza.com: ~/testttignorrhl:test-> ls -alR /some/parent/dir/with >/some/parent/dir/with: >total 12 >drwxr-xr-x. 3 root root 4096 Aug 15 16:34 ./ >drwxr-xr-x. 3 root root 4096 Aug 15 16:34 ../ >drwxr-xr-x. 2 root root 4096 Aug 15 16:42 gcc/ > >/some/parent/dir/with/gcc: >total 8 >drwxr-xr-x. 2 root root 4096 Aug 15 16:42 ./ >drwxr-xr-x. 3 root root 4096 Aug 15 16:34 ../ >]0;ttignor@ttignorrhl.netezza.com: ~/testttignorrhl:test-> which gcc >/usr/bin/gcc >]0;ttignor@ttignorrhl.netezza.com: ~/testttignorrhl:test-> gcc main.c -o hello >In file included from main.c:2: >/usr/include/stdio.h:34:21: error: stddef.h: No such file or directory >In file included from /usr/include/stdio.h:75, > from main.c:2: >/usr/include/libio.h:53:21: error: stdarg.h: No such file or directory >In file included from /usr/include/stdio.h:75, > from main.c:2: >/usr/include/libio.h:332: error: expected specifier-qualifier-list before âsize_tâ >/usr/include/libio.h:364: error: expected declaration specifiers or â...â before âsize_tâ >/usr/include/libio.h:373: error: expected declaration specifiers or â...â before âsize_tâ >/usr/include/libio.h:491: error: expected declaration specifiers or â...â before â__gnuc_va_listâ >/usr/include/libio.h:493: error: expected declaration specifiers or â...â before â__gnuc_va_listâ >/usr/include/libio.h:495: error: expected â=â, â,â, â;â, âasmâ or â__attribute__â before â_IO_sgetnâ >In file included from main.c:2: >/usr/include/stdio.h:80: error: expected â=â, â,â, â;â, âasmâ or â__attribute__â before âva_listâ >In file included from main.c:2: >/usr/include/stdio.h:318: error: expected declaration specifiers or â...â before âsize_tâ >/usr/include/stdio.h:324: error: expected declaration specifiers or â...â before âsize_tâ >/usr/include/stdio.h:336: error: expected declaration specifiers or â...â before âsize_tâ >/usr/include/stdio.h:343: error: expected declaration specifiers or â...â before âsize_tâ >/usr/include/stdio.h:371: error: expected declaration specifiers or â...â before â__gnuc_va_listâ >/usr/include/stdio.h:376: error: expected declaration specifiers or â...â before â__gnuc_va_listâ >/usr/include/stdio.h:379: error: expected declaration specifiers or â...â before â__gnuc_va_listâ >/usr/include/stdio.h:385: error: expected declaration specifiers or â...â before âsize_tâ >/usr/include/stdio.h:387: error: format string argument not a string type >/usr/include/stdio.h:389: error: expected declaration specifiers or â...â before âsize_tâ >/usr/include/stdio.h:390: error: expected declaration specifiers or â...â before â__gnuc_va_listâ >/usr/include/stdio.h:391: error: format string argument not a string type >/usr/include/stdio.h:417: error: expected declaration specifiers or â...â before â__gnuc_va_listâ >/usr/include/stdio.h:476: error: expected declaration specifiers or â...â before â__gnuc_va_listâ >/usr/include/stdio.h:483: error: expected declaration specifiers or â...â before â__gnuc_va_listâ >/usr/include/stdio.h:488: error: expected declaration specifiers or â...â before â__gnuc_va_listâ >/usr/include/stdio.h:498: error: expected declaration specifiers or â...â before â__gnuc_va_listâ >/usr/include/stdio.h:503: error: expected declaration specifiers or â...â before â__gnuc_va_listâ >/usr/include/stdio.h:506: error: expected declaration specifiers or â...â before â__gnuc_va_listâ >/usr/include/stdio.h:661: error: expected declaration specifiers or â...â before âsize_tâ >/usr/include/stdio.h:664: error: expected declaration specifiers or â...â before âsize_tâ >/usr/include/stdio.h:674: error: expected declaration specifiers or â...â before âsize_tâ >/usr/include/stdio.h:704: error: expected â=â, â,â, â;â, âasmâ or â__attribute__â before âfreadâ >/usr/include/stdio.h:710: error: expected â=â, â,â, â;â, âasmâ or â__attribute__â before âfwriteâ >/usr/include/stdio.h:732: error: expected â=â, â,â, â;â, âasmâ or â__attribute__â before âfread_unlockedâ >/usr/include/stdio.h:734: error: expected â=â, â,â, â;â, âasmâ or â__attribute__â before âfwrite_unlockedâ >]0;ttignor@ttignorrhl.netezza.com: ~/testttignorrhl:test-> exit >exit > >Script done on Wed 15 Aug 2012 05:23:14 PM EDT
You cannot view the attachment while viewing its details because your browser does not support IFRAMEs.
View the attachment on a separate page
.
View Attachment As Raw
Actions:
View
Attachments on
bug 38966
:
17181
|
17189
| 28023