This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
[Bug c/32212] New: Makefile:142: ../.././gcc/libgcc.mvars: No such file or directory
- From: "tk at maintech dot de" <gcc-bugzilla at gcc dot gnu dot org>
- To: gcc-bugs at gcc dot gnu dot org
- Date: 4 Jun 2007 23:32:56 -0000
- Subject: [Bug c/32212] New: Makefile:142: ../.././gcc/libgcc.mvars: No such file or directory
- Reply-to: gcc-bugzilla at gcc dot gnu dot org
I want to build a gcc 4.3.0 fresh from svn for the fr30-elf target.
Binutils 2.17 are already installed in /usr/local/fr30-elf-new/.
In the gcc source directory I do:
# ./configure --target=fr30-elf --prefix=/usr/local/fr30-elf-new/
[...]
# make
[...]
The build fails with the following error message:
Adding multilib support to Makefile in ../.././libgcc
multidirs=
with_multisubdir=
make[2]: Entering directory `/mnt/space/home/tk/gcc-svn/gcc/fr30-elf/libgcc'
Makefile:142: ../.././gcc/libgcc.mvars: No such file or directory
make[2]: *** No rule to make target `../.././gcc/libgcc.mvars'. Stop.
make[2]: Leaving directory `/mnt/space/home/tk/gcc-svn/gcc/fr30-elf/libgcc'
make[1]: *** [all-target-libgcc] Error 2
make[1]: Leaving directory `/mnt/space/home/tk/gcc-svn/gcc'
make: *** [all] Error 2
In fr30-elf/libgcc/Makefile, line 142 reads:
include $(gcc_objdir)/libgcc.mvars
and $(gcc_objdir) is defined in line 27 as
gcc_objdir = $(MULTIBUILDTOP)../../$(host_subdir)/gcc
and $(host_subdir) is defined in line 24 as
host_subdir = .
I found that in my build tree, the file libgcc.mvars is located in
host-i686-pc-linux-gnu/gcc/libgcc.mvars
So I changed line 24 of fr30-elf/libgcc/Makefile to
host_subdir = host-i686-pc-linux-gnu
after that, I could build without problems.
I not familiar enough with autoconf and the gcc build system to hunt down that
bug, so I can't offer a patch for it.
Best regards,
Thomas
--
Summary: Makefile:142: ../.././gcc/libgcc.mvars: No such file or
directory
Product: gcc
Version: 4.3.0
Status: UNCONFIRMED
Severity: normal
Priority: P3
Component: c
AssignedTo: unassigned at gcc dot gnu dot org
ReportedBy: tk at maintech dot de
GCC build triplet: host-i686-pc-linux-gnu
GCC host triplet: host-i686-pc-linux-gnu
GCC target triplet: fr30-elf
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=32212