From owner-freebsd-questions@FreeBSD.ORG Sun Mar 23 17:31:59 2014 Return-Path: Delivered-To: freebsd-questions@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:1900:2254:206a::19:1]) (using TLSv1 with cipher ADH-AES256-SHA (256/256 bits)) (No client certificate requested) by hub.freebsd.org (Postfix) with ESMTPS id 22D62C5F for ; Sun, 23 Mar 2014 17:31:59 +0000 (UTC) Received: from ptolemy.wi.mit.edu (ptolemy.wi.mit.edu [18.4.1.120]) (using TLSv1 with cipher RC4-SHA (128/128 bits)) (No client certificate requested) by mx1.freebsd.org (Postfix) with ESMTPS id 9BC5E98 for ; Sun, 23 Mar 2014 17:31:58 +0000 (UTC) X-IronPort-AV: E=Sophos;i="4.97,715,1389762000"; d="scan'208";a="6914469" Received: from unknown (HELO mars.wi.mit.edu) ([10.9.4.20]) by ptolemy.wi.mit.edu with ESMTP; 23 Mar 2014 13:30:46 -0400 Received: from localhost (localhost.localdomain [127.0.0.1]) by mars.wi.mit.edu (Postfix) with ESMTP id 3E0CC31E114 for ; Sun, 23 Mar 2014 13:30:46 -0400 (EDT) X-Virus-Scanned: amavisd-new at mars.wi.mit.edu Received: from mars.wi.mit.edu ([127.0.0.1]) by localhost (mars.wi.mit.edu [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id 9PpqY+h0njQC for ; Sun, 23 Mar 2014 13:30:45 -0400 (EDT) Received: from [10.9.40.29] (disco.wi.mit.edu [10.9.40.29]) by mars.wi.mit.edu (Postfix) with ESMTPSA id CD6A431E112 for ; Sun, 23 Mar 2014 13:30:45 -0400 (EDT) Message-ID: <532F1A58.30702@wi.mit.edu> Date: Sun, 23 Mar 2014 13:31:04 -0400 From: Assaf Gordon User-Agent: Mozilla/5.0 (X11; Linux i686 on x86_64; rv:24.0) Gecko/20100101 Thunderbird/24.2.0 MIME-Version: 1.0 To: freebsd-questions@freebsd.org Subject: 'make' behavior in FreeBSD-10 ? Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.17 Precedence: list List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sun, 23 Mar 2014 17:31:59 -0000 Hello, I'm trying to track down an issue in compiling 'autotools' packages that appears in FreeBSD-10 . (I'm not a frequent FreeBSD user, so it's possible I'm missing something - any help would be appreciated). It is my understanding the FreeBSD-10 switched to a different 'make' (bmake?), which could be the reason for these differences - but I do not know how to fix them. One symptom is that the following contrived 'makefile' works fine on Linuxes, but fails on FreeBSD-10 (or, put differently, works OK with GNU make but fails with bmake?): === all: non_existing_command ; true === On FreeBSD-10, the result is: === $ make non_existing_command ; true non_existing_command: not found *** Error code 127 Stop. make: stopped in /usr/home/ec2-user/bmake_differences === There is a mention on the make(1) man-page about the "-B" option, which hints that 'make' execute commands directly instead of using the shell - but using "make -B" did not fix this problem. For comparison, running this as one shell command does work (on FreeBSD): === $ sh -c "non_existing_command ; true" && echo ok non_existing_command: not found ok === But the 'make' behavior is more similar to using "sh -e": === $ sh -e -c "non_existing_command ; true" && echo ok non_existing_command: not found === This and few other issues arose when trying to build the canonical "GNU Hello" program on FreeBSD, cf: http://lists.gnu.org/archive/html/bug-hello/2014-03/msg00022.html http://lists.gnu.org/archive/html/bug-hello/2014-03/msg00020.html http://lists.gnu.org/archive/html/bug-hello/2014-03/msg00002.html Thanks for any feedback, -gordon