Date: Wed, 5 Sep 2012 23:52:36 +0300 From: Vitaly Magerya <vmagerya@gmail.com> To: Alexander Yerenkow <yerenkow@gmail.com> Cc: Ports FreeBSD <freebsd-ports@freebsd.org> Subject: Re: Strange behavior in mc-light Message-ID: <CAL409Kx0TcUTzNzFshsG1TMwjhbCqaHVihpUzOiy=pz4n%2BuMtQ@mail.gmail.com> In-Reply-To: <CAPJF9wn0sZhrzrtnD-9A--q_sohHaAcM3NrgOb2Vcu71eFqcgA@mail.gmail.com> References: <CAPJF9wn0sZhrzrtnD-9A--q_sohHaAcM3NrgOb2Vcu71eFqcgA@mail.gmail.com>
next in thread | previous in thread | raw e-mail | index | archive | help
--f46d043085c403ae0004c8fa8e5e Content-Type: text/plain; charset=UTF-8 Alexander Yerenkow <yerenkow@gmail.com> wrote: > # env TARGET=arm TARGET_ARCH=armv6 TARGET_CPUARCH=armv6 > CONFIGURE_HOST=arm-portbld-freebsd10.0 > PATH=/usr/obj/arm.armv6/usr/src/tmp/usr/bin:${PATH} > STRIP_CMD=/usr/obj/arm.armv6/usr/src/tmp/usr/bin/strip gmake man2hlp > cc -O2 -pipe -fno-strict-aliasing -I.. > -I/wrkdirs/usr/ports/misc/mc-light/work/mc-4.1.40-pre9/intl -I./../vfs > -I./.. -I./../slang -I.. -DBINDIR=\""/usr/local/bin/"\" > -DLIBDIR=\""/usr/local/share/mc/"\" > -DLOCALEDIR=\""/usr/local/share/locale/"\" -DWANT_PARSE -DREGEX_MALLOC > armv6 man2hlp.c -o man2hlp > cc: armv6: No such file or directory > gmake: *** [man2hlp] Error 1 > > Seems that somehow after -DREGEX_MALLOC there for some reason inserted > $TARGET_ARCH (rechecked with different values, like arm67 ) > Is there any sense in this? It appears that man2hlp above is built using an implicit builtin rule, which for GNU make involves TARGET_ARCH for some reason. I don't know where this is documented, but take a look: $ strings /usr/local/bin/gmake | grep TARGET_ARCH | grep CC $(CC) $(LDFLAGS) $(TARGET_ARCH) $(CC) $(CFLAGS) $(CPPFLAGS) $(TARGET_ARCH) -c $(CC) $(CFLAGS) $(CPPFLAGS) $(LDFLAGS) $(TARGET_ARCH) So your best bet is to add a rule for man2hlp to src/Makefile.in; I'm attaching a patch agains the port to this effect; it seems to work for me. --f46d043085c403ae0004c8fa8e5e Content-Type: text/plain; charset=US-ASCII; name="mc-light-fix.diff.txt" Content-Disposition: attachment; filename="mc-light-fix.diff.txt" Content-Transfer-Encoding: base64 X-Attachment-Id: file0 ZGlmZiAtcnVOIG1jLWxpZ2h0Lm9yaWcvZmlsZXMvcGF0Y2gtc3JjX01ha2VmaWxlLmluIG1jLWxp Z2h0L2ZpbGVzL3BhdGNoLXNyY19NYWtlZmlsZS5pbgotLS0gbWMtbGlnaHQub3JpZy9maWxlcy9w YXRjaC1zcmNfTWFrZWZpbGUuaW4JMjAxMi0wOS0wNSAyMzo0MDoyNS4wMDAwMDAwMDAgKzAzMDAK KysrIG1jLWxpZ2h0L2ZpbGVzL3BhdGNoLXNyY19NYWtlZmlsZS5pbgkyMDEyLTA5LTA1IDIzOjQ3 OjAxLjAwMDAwMDAwMCArMDMwMApAQCAtMyw3ICszLDE3IEBACiAKIC0tLSBzcmMvTWFrZWZpbGUu aW4ub3JpZwlXZWQgQXVnIDE4IDIzOjMyOjMwIDIwMDQKICsrKyBzcmMvTWFrZWZpbGUuaW4JRnJp IFNlcCAgMyAxNDo0NzoyNSAyMDA0Ci1AQCAtMTM1LDcgKzEzNSw3IEBACitAQCAtNzYsNiArNzYs OSBAQAorIG1jOiAkKE9CSlMpIEBMSUJWRlNAIEBMSUJTTEFOR0AgQExJQkVESVRfQUAKKyAJJChD QykgJChMREZMQUdTKSAtbyAkQCAkKE9CSlMpIC1MLi4vdmZzIC1MLi4vc2xhbmcgLUwuLi9lZGl0 ICQoT1VSTElCUykgJChMSUJTKSAKKyAKKyttYW4yaGxwOiBtYW4yaGxwLmMKKysJJChDQykgJChD RkxBR1MpICQoTERGTEFHUykgLW8gJEAgbWFuMmhscC5jCisrCisgbWZtdDogbWZtdC5vCisgCSQo Q0MpICQoTERGTEFHUykgbWZtdC5vIC1vIG1mbXQgCisgCitAQCAtMTM1LDcgKzEzOCw3IEBACiAg aW5zdGFsbDogbWMgbWZtdCBAc2F2ZXJACiAgCSQoSU5TVEFMTF9QUk9HUkFNKSBtYyAgICAgJChE RVNURElSKSQoYmluZGlyKS8kKGJpbnByZWZpeCltYwogIAkkKElOU1RBTExfUFJPR1JBTSkgbWNt Zm10ICQoREVTVERJUikkKGJpbmRpcikvJChiaW5wcmVmaXgpbWNtZm10Cg== --f46d043085c403ae0004c8fa8e5e--
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?CAL409Kx0TcUTzNzFshsG1TMwjhbCqaHVihpUzOiy=pz4n%2BuMtQ>