cdbs and i686-pc-linux-gnu-ar error
Hi, I'm trying to build a package with cdbs, but it fails with this message: make[2]: i686-pc-linux-gnu-ar: Command not found make[2]: *** [libiberty.a] Error 127 debian/rules contains these lines: include /usr/share/cdbs/1/rules/debhelper.mk include /usr/share/cdbs/1/class/autotools.mk include /usr/share/cdbs/1/rules/dpatch.mk CC := gcc DEB_CONFIGURE_EXTRA_FLAGS := --target=avr --disable-static from build log I see it call configure with these options: chmod a+x /home/lex/lex/src/avr/binutils/cdbs/binutils-avr-2.16.1/./configure if test ""; then cd ""; else cd "."; fi && CC="gcc" CXX="g++" CFLAGS="-g -Wall - O2" CXXFLAGS="-g -Wall -O2" /home/lex/lex/src/avr/binutils/cdbs/binutils-avr-2.1 6.1/./configure --build=i386-linux --prefix=/usr --includedir="\${prefix}/inclu de" --mandir="\${prefix}/share/man" --infodir="\${prefix}/share/info" --sysconfd ir=/etc --localstatedir=/var --libexecdir="\${prefix}/lib/binutils-avr" --srcdir =. --disable-maintainer-mode --target=avr --disable-static creating cache ./config.cache checking host system type... i686-pc-linux-gnu checking target system type... avr-unknown-none checking build system type... i386-pc-linux-gnu and as I can see, configure script doesn't find ar, as and ranlib: checking for makeinfo... makeinfo checking for i686-pc-linux-gnu-ar... no checking for i686-pc-linux-gnu-as... no checking for i686-pc-linux-gnu-dlltool... no checking for i686-pc-linux-gnu-ld... no checking for i686-pc-linux-gnu-nm... no checking for i686-pc-linux-gnu-ranlib... no checking for i686-pc-linux-gnu-windres... no checking for i686-pc-linux-gnu-objcopy... no checking for i686-pc-linux-gnu-objdump... no checking for avr-ar... avr-ar What is wrong with my setup? Any help would be apreciated. Best wishes -- Alexei Chetroi Smile... Tomorrow will be worse. (c) Murphy's Law -- To UNSUBSCRIBE, email to [EMAIL PROTECTED] with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED]
Re: cdbs and i686-pc-linux-gnu-ar error
On Wed, Nov 23, 2005 at 05:04:46PM +0100, Loïc Minier wrote: > Date: Wed, 23 Nov 2005 17:04:46 +0100 > From: Loïc Minier <[EMAIL PROTECTED]> > To: debian-mentors@lists.debian.org > Subject: Re: cdbs and i686-pc-linux-gnu-ar error > > On Wed, Nov 23, 2005, Alexei Chetroi wrote: > > make[2]: i686-pc-linux-gnu-ar: Command not found > > I'd say this is somewhere in your environment, and shouldn't, try: >env | grep i686 I didn't find anything in my enviroment: [lex.lexa]$ env | grep 686 [lex.lexa]$ env | grep ar [lex.lexa]$ Also I've tried to call debian/rules directly with: "nice fakeroot debian/rules binary" (previously I've used debuild), but the problem remains. Any other ideas? I'm going to try it on other machine, maybe my current setup is screwed up somehow. Best wishes -- Alexei Chetroi Smile... Tomorrow will be worse. (c) Murphy's Law -- To UNSUBSCRIBE, email to [EMAIL PROTECTED] with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED]
Re: cdbs and i686-pc-linux-gnu-ar error
On Fri, Nov 25, 2005 at 03:23:22PM -0200, Nelson A. de Oliveira wrote: > Date: Fri, 25 Nov 2005 15:23:22 -0200 > From: "Nelson A. de Oliveira" <[EMAIL PROTECTED]> > To: Alexei Chetroi <[EMAIL PROTECTED]> > Subject: Re: cdbs and i686-pc-linux-gnu-ar error > > Alexei Chetroi wrote: > > Also I've tried to call debian/rules directly with: "nice fakeroot > > debian/rules binary" (previously I've used debuild), but the problem > > remains. > > > > Any other ideas? I'm going to try it on other machine, maybe my > > current setup is screwed up somehow. > > Have you tried to create your package using pbuilder? > You can try with "pdebuild package" inside the source directory. > If it works, then the problem is on your system. If even on the clean > chroot used by pbuilder your problem persists, then I don't know what > could be... :-/ THanks for the tip. I've tried pbuilder, but the problem persists. Does it matter that I'm trying to build for the avr target? If I run configure script manually, than everything works fine and it uses gcc and ranlib as required. But cdbs tends to use cc rather than gcc and making stops after 1st invocation of ranlib, because it wants to use i686-pc-linux-gnu-ar instead of simple ar. Best wishes -- Alexei Chetroi Smile... Tomorrow will be worse. (c) Murphy's Law -- To UNSUBSCRIBE, email to [EMAIL PROTECTED] with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED]
possibly undefined macro: AS_FOR_TARGET
Hi, I'm trying to make a package, according to autotools-dev/README.Debian recommendations, but "autoreconf --force --install" gives me error: configure.in:2207: error: possibly undefined macro: AS_FOR_TARGET If this token and others are legitimate, please use m4_pattern_allow. See the Autoconf documentation. autoreconf: /usr/bin/autoconf failed with exit status: 1 Googling, I found that AS_FOR_TARGET must be changed to GAS_FOR_TARGET, in configure.in but that raise another question. I cannot use dpatch to fix configure.in and changing it from $(PACKAGE).diff.gz is not recommended. How it is recommended to proceed in such situations? Thanks in advance. -- Alexei Chetroi Smile... Tomorrow will be worse. (c) Murphy's Law -- To UNSUBSCRIBE, email to [EMAIL PROTECTED] with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED]