coreutils
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: build fails due to 'lib/assert.h' on mac os x


From: Jim Meyering
Subject: Re: build fails due to 'lib/assert.h' on mac os x
Date: Thu, 8 Sep 2016 13:40:48 -0700

On Wed, Sep 7, 2016 at 10:17 PM, Assaf Gordon <address@hidden> wrote:
> Hello,
>
> Trying the latest coreutils (including the update to recent gnulib 
> 7da1068a87c),
> I get the following build error on Mac OS-X:
>
>  $ git clone git://git.sv.gnu.org/coreutils.git
>  $ cd coreutils/
>  $ git id
>  v8.25-66-gd47090d
>  $ (cd gnulib ; git id )
>  v0.1-865-g7da1068
>
>  $ ./bootstrap
>  $ ./configure
>  $ make
>  [...]
>     GEN      man/whoami.1
>     GEN      man/yes.1
>     GEN      lib/charset.alias
>     GEN      lib/ref-add.sed
>     GEN      lib/ref-del.sed
>   Making all in gnulib-tests
>   make[2]: *** No rule to make target `lib/assert.h', needed by `all'.  Stop.
>   make[1]: *** [all-recursive] Error 1
>   make: *** [all] Error 2
>
> The versions are:
>  $ uname -sr
>  Darwin 14.4.0
>  $ autoconf --version | head -n1
>  autoconf (GNU Autoconf) 2.69
>  $ automake --version | head -n1
>  automake (GNU automake) 1.15
>  $ gcc -v
>  Configured with: --prefix=/Applications/Xcode.app/Contents/Developer/usr 
> --with-gxx-include-dir=/usr/include/c++/4.2.1
>  Apple LLVM version 6.1.0 (clang-602.0.53) (based on LLVM 3.6.0svn)
>  Target: x86_64-apple-darwin14.4.0
>  Thread model: posix
>
> Build does not fail on Debian 8.4 with:
>   $ gcc --version | head -n1
>   gcc (Debian 4.9.2-10) 4.9.2
>   $ autoconf --version | head -n1
>   autoconf (GNU Autoconf) 2.69
>   $ automake --version | head -n1
>   automake (GNU automake) 1.14.1

Hi Assaf,
Thanks for reporting that.
I noticed the same failure on a Centos 7 system.
I dug enough to find the probable cause+solution in the attached proposed patch:

Attachment: coreutils-vs-assert-h.diff
Description: Text document


reply via email to

[Prev in Thread] Current Thread [Next in Thread]