From mboxrd@z Thu Jan 1 00:00:00 1970 From: Romain Naour Date: Mon, 27 Jan 2014 13:48:27 +0100 (CET) Subject: [Buildroot] i686-buildroot-linux-gnu-as does not work In-Reply-To: <52E64765.5010803@gmail.com> Message-ID: <1848702296.4768001.1390826907232.JavaMail.root@openwide.fr> List-Id: MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit To: buildroot@busybox.net Hi Alexander, ----- Mail original ----- | De: "Alexander Lukichev" | ?: "Romain Naour" | Cc: "?????? ???????" , buildroot at busybox.net | Envoy?: Lundi 27 Janvier 2014 12:47:49 | Objet: Re: [Buildroot] i686-buildroot-linux-gnu-as does not work | | Hi Romain, Kirill, | | On 01/27/2014 12:59 PM, Romain Naour wrote: | > I had the same problem with infozip and I fixed this error by | > patching unix/Makefile like this: | (...) | > match.o: match.S | > $(CPP) match.S > _match.s | > - $(AS) _match.s | > - mv _match.o match.o | > - rm -f _match.s | > + $(AS) _match.s -o match.o | (...) | > (Ok, this patch is really weird...) | Why? | | To me it seems that $(AS) should not be expected to output by default | to .o, as is | apparently expected in the infozip's unix/Makefile. GNU as outputs to | a.out by default. | | If I build the package in my host environment, it picks "$(CC) -c" as | the value for $(AS) and | works OK but when called from Buildroot, the value for $(AS) is set | to invoke the toolchain's | as directly, and the output of it goes to a.out. | | Am I totally wrong in believing that your patch is the right way to | produce match.o rather | than original way of doing it? Sorry, I meant that usually in buildroot, Makefile's variables are overwritten in foo.mk I removed my patch and added AS="$(TARGET_CC) -c" in infozip.mk $(MAKE) $(TARGET_CONFIGURE_OPTS) -C $(@D) AS="$(TARGET_CC) -c" -f unix/Makefile generic infozip compiles fine by doing that. Best regards, Romain Naour | | -- | Best regards, | Alexander Lukichev |