This is the mail archive of the gcc@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: [Star-users] GCC build: incompatible with star (fwd)


Hi. I'm forwarding it. GCC doesn't check for GNU tar or any
other version which accepts -cf and later make install fails if
you have star as tar.

Original message is at
http://lists.berlios.de/pipermail/star-users/2002-November/000035.html

>I noticed compiling GCC 2.95.4 CVS with star as tar fails
>during make install with the following error:

>rm -rf /root/install/lib/gcc-lib/i686-pc-linux-gnu/2.95.4/include
>mkdir /root/install/lib/gcc-lib/i686-pc-linux-gnu/2.95.4/include
>chmod a+rx /root/install/lib/gcc-lib/i686-pc-linux-gnu/2.95.4/include
>(cd `pwd`/include ; \
> tar -cf - .; exit 0) | (cd
>/root/install/lib/gcc-lib/i686-pc-linux-gnu/2.95.4/include; tar xpBf - )
>tar: Bad Option: -cf.

Star mentiones it: tar -cf ... is not correct.

The old historic tar commandline syntax that even made it into UNIX-98
does not use a '-' before the options and star does not allow it
in tar compatibility mode for security reasons.

>Not a big problem, as I later moved the files from the build
>directory.

>>From GCC 3.2 gcc/Makefile.in:

>        (cd `pwd`/include ; \
>         tar -cf - .; exit 0) | (cd $(libsubdir)/include; tar xpf - )

Send a bug report to the GCC folks and let them change it into:

        (cd `pwd`/include ; \
         tar cf - .; exit 0) | (cd $(libsubdir)/include; tar xpf - )


Jörg


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]