public inbox for gcc-bugs@sourceware.org help / color / mirror / Atom feed
From: "rguenth at gcc dot gnu dot org" <gcc-bugzilla@gcc.gnu.org> To: gcc-bugs@gcc.gnu.org Subject: [Bug ada/30560] New: gnatchop behaves differently dependend on argv[0] -- make check-ada fails Date: Tue, 23 Jan 2007 16:59:00 -0000 [thread overview] Message-ID: <bug-30560-10053@http.gcc.gnu.org/bugzilla/> (raw) I have lrwxrwxrwx 1 root root 12 Jan 22 14:54 /usr/bin/gnatchop -> gnatchop-4.1 -rwxr-xr-x 1 root root 285224 Nov 25 12:24 /usr/bin/gnatchop-4.1 calling > gnatchop x.adb works as expected, calling > gnatchop-4.1 x.adb does not (PR29127), and > /usr/bin/gnatchop x.adb doesn't work either! (which breaks the acats host_gnatchop script) It looks like gnatchop follows symlinks on each path component if argv[0] is not gnatchop. From strace of the last case: execve("/usr/bin/gnatchop", ["/usr/bin/gnatchop", "support/checkfil.ada"], [/* 80 vars */]) = 0 ... getcwd("/abuild/rguenther/obj/gcc/testsuite/ada/acats", 4096) = 46 readlink("/usr", 0x7fff76f33480, 4098) = -1 EINVAL (Invalid argument) readlink("/usr/bin", 0x7fff76f33480, 4098) = -1 EINVAL (Invalid argument) stat("support/checkfil.ada", {st_mode=S_IFREG|0644, st_size=7893, ...}) = 0 stat("support/checkfil.ada", {st_mode=S_IFREG|0644, st_size=7893, ...}) = 0 getcwd("/abuild/rguenther/obj/gcc/testsuite/ada/acats", 4096) = 46 readlink("/usr", 0x7fff76f332c0, 4098) = -1 EINVAL (Invalid argument) readlink("/usr/bin", 0x7fff76f332c0, 4098) = -1 EINVAL (Invalid argument) readlink("/usr/bin/gnatchop", "gnatchop-4.1", 4098) = 12 readlink("/usr/bin/gnatchop-4.1", 0x7fff76f332c0, 4098) = -1 EINVAL (Invalid argument) stat("/usr/bin/gnatchop-gcc", 0x7fff76f362c0) = -1 ENOENT (No such file or directory) stat("/usr/local/bin/gnatchop-gcc", 0x7fff76f362c0) = -1 ENOENT (No such file or directory) stat("/usr/bin/gnatchop-gcc", 0x7fff76f362c0) = -1 ENOENT (No such file or direc ... This causes make check-ada to fail like === acats support === Generating support files...gnatmake --GCC="/abuild/rguenther/obj/gcc/xgcc -B/abuild/rguenther/obj/gcc/" -gnatws -O2 /space/rguenther/src/svn/trunk/gcc/testsuite/ada/acats/support/impbit.adb -largs --GCC="/abuild/rguenther/obj/gcc/xgcc -B/abuild/rguenther/obj/gcc/" /abuild/rguenther/obj/gcc/xgcc -c -I/space/rguenther/src/svn/trunk/gcc/testsuite/ada/acats/support/ -B/abuild/rguenther/obj/gcc/ -gnatws -O2 -I- /space/rguenther/src/svn/trunk/gcc/testsuite/ada/acats/support/impbit.adb gnatbind -x impbit.ali gnatlink impbit.ali --GCC=/abuild/rguenther/obj/gcc/xgcc -B/abuild/rguenther/obj/gcc/ target_bit= 64 target_insn=nop gnatchop-gcc: installation problem, executable not found no source files written gnatchop-gcc: installation problem, executable not found no source files written ... -- Summary: gnatchop behaves differently dependend on argv[0] -- make check-ada fails Product: gcc Version: 4.3.0 Status: UNCONFIRMED Severity: normal Priority: P3 Component: ada AssignedTo: unassigned at gcc dot gnu dot org ReportedBy: rguenth at gcc dot gnu dot org OtherBugsDependingO 29127 nThis: http://gcc.gnu.org/bugzilla/show_bug.cgi?id=30560
next reply other threads:[~2007-01-23 16:59 UTC|newest] Thread overview: 4+ messages / expand[flat|nested] mbox.gz Atom feed top 2007-01-23 16:59 rguenth at gcc dot gnu dot org [this message] 2007-01-23 17:09 ` [Bug ada/30560] " rguenth at gcc dot gnu dot org 2007-01-23 17:27 ` rguenth at gcc dot gnu dot org 2008-04-12 19:28 ` sam at gcc dot gnu dot org
Reply instructions: You may reply publicly to this message via plain-text email using any one of the following methods: * Save the following mbox file, import it into your mail client, and reply-to-all from there: mbox Avoid top-posting and favor interleaved quoting: https://en.wikipedia.org/wiki/Posting_style#Interleaved_style * Reply using the --to, --cc, and --in-reply-to switches of git-send-email(1): git send-email \ --in-reply-to=bug-30560-10053@http.gcc.gnu.org/bugzilla/ \ --to=gcc-bugzilla@gcc.gnu.org \ --cc=gcc-bugs@gcc.gnu.org \ /path/to/YOUR_REPLY https://kernel.org/pub/software/scm/git/docs/git-send-email.html * If your mail client supports setting the In-Reply-To header via mailto: links, try the mailto: linkBe sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions for how to clone and mirror all data and code used for this inbox; as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).