This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
[Bug driver/81829] [7 Regression] /usr/bin/gcc-{ar,nm,ranlib} segfault without arguments
- From: "ryxi at stu dot xidian.edu.cn" <gcc-bugzilla at gcc dot gnu dot org>
- To: gcc-bugs at gcc dot gnu dot org
- Date: Tue, 29 Aug 2017 01:26:03 +0000
- Subject: [Bug driver/81829] [7 Regression] /usr/bin/gcc-{ar,nm,ranlib} segfault without arguments
- Auto-submitted: auto-generated
- References: <bug-81829-4@http.gcc.gnu.org/bugzilla/>
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=81829
--- Comment #5 from Xi Ruoyao <ryxi at stu dot xidian.edu.cn> ---
(In reply to Martin Liška from comment #4)
> (In reply to Xi Ruoyao from comment #3)
> > marxin's patch:
> >
> > http://gcc.gnu.org/ml/gcc-patches/2017-08/msg01116.html
> >
> > But this patch doesn't work while /my_bin/bin contains a symlink.
>
> Can you please describe your set up is more detail?
cd $BLDDIR
$SRCDIR/configure && make -j$CPUNUM
cd gcc
for i in ar nm ranlib; do ln -sv gcc-$i $i; done
export PATH=$PWD:$PATH
ar
(fork infinite processes)
Since my BLDDIR is /home/xry111/build/gcc, and /home/xry111/build is linked to
/mnt/mm1/xry111, remove_prefix failed to remove /home/xry111/build/gcc/gcc from
the prefixes. If change to
export PATH=$(realpath $PWD):$PATH
It would be ok.