NixOS / nixpkgs

Nix Packages collection & NixOS
MIT License
18.1k stars 14.14k forks source link

"texlive-bin" fails to build in recent evaluation on Darwin #37719

Closed matthewbauer closed 6 years ago

matthewbauer commented 6 years ago

Hydra: https://hydra.nixos.org/build/71755043

Issue description

unpacking sources
unpacking source archive /nix/store/knv6ycakvz8ik7ymyfqklnnj8bs13lka-texlive-20170524-source.tar.xz
source root is texlive-20170524-source
setting SOURCE_DATE_EPOCH to timestamp 1495234981 of file texlive-20170524-source/README.7coding
patching sources
applying patch /nix/store/kavcxk6lnzkrh6zl10rcgqf7qzga87z9-texlive-poppler-0.59.patch
patching file texk/web2c/luatexdir/image/pdftoepdf.w
patching file texk/web2c/luatexdir/lua/lepdflib.cc
patching file texk/web2c/luatexdir/lua/lpdfscannerlib.cc
patching file texk/web2c/pdftexdir/pdftoepdf.cc
patching file texk/web2c/pdftexdir/pdftosrc.cc
configuring
configure flags: --disable-static --disable-dependency-tracking --prefix=/nix/store/0axv1syvaspx7w661nn5lxw4i84kdyn6-texlive-bin-2017 --bindir=/nix/store/0axv1syvaspx7w661nn5lxw4i84kdyn6-texlive-bin-2017/bin --sbindir=/nix/store/0axv1syvaspx7w661nn5lxw4i84kdyn6-texlive-bin-2017/sbin --includedir=/nix/store/0axv1syvaspx7w661nn5lxw4i84kdyn6-texlive-bin-2017/include --oldincludedir=/nix/store/0axv1syvaspx7w661nn5lxw4i84kdyn6-texlive-bin-2017/include --mandir=/nix/store/0axv1syvaspx7w661nn5lxw4i84kdyn6-texlive-bin-2017/share/man --infodir=/nix/store/0axv1syvaspx7w661nn5lxw4i84kdyn6-texlive-bin-2017/share/info --docdir=/nix/store/k08b3qahgxjivrbgaxlc8lf9chbrnr6c-texlive-bin-2017-doc/share/doc/texlive-bin --libdir=/nix/store/0axv1syvaspx7w661nn5lxw4i84kdyn6-texlive-bin-2017/lib --libexecdir=/nix/store/0axv1syvaspx7w661nn5lxw4i84kdyn6-texlive-bin-2017/libexec --localedir=/nix/store/0axv1syvaspx7w661nn5lxw4i84kdyn6-texlive-bin-2017/share/locale --with-banner-add=/NixOS.org --disable-missing --disable-native-texlive-build --enable-shared --enable-tex-synctex -C --with-system-zziplib --with-system-xpdf --with-system-poppler --with-system-mpfr --with-system-gmp --with-system-pixman --with-system-potrace --with-system-gd --with-system-freetype2 --with-system-libpng --with-system-libpaper --with-system-zlib --without-x --disable-dvisvgm --disable-dvipng --disable-luatex --disable-luajittex --disable-mp --disable-pmp --disable-upmp --disable-mf --disable-xetex --disable-bibtexu --disable-bibtex8 --disable-bibtex-x --disable-upmendex --without-system-harfbuzz --without-system-icu
configure: creating cache config.cache
checking build system type... x86_64-apple-darwin16.6.0
checking host system type... x86_64-apple-darwin16.6.0
checking for gcc... clang
checking whether the C compiler works... yes
checking for C compiler default output file name... a.out
checking for suffix of executables... 
checking whether we are cross compiling... no
checking for suffix of object files... o
checking whether we are using the GNU C compiler... yes
checking whether clang accepts -g... yes
checking for clang option to accept ISO C89... none needed
checking whether clang understands -c and -o together... yes
checking for native WIN32 or MINGW32... no
configure: Assuming `--enable-autosp=yes'
configure: Assuming `--enable-devnag=yes'
configure: Assuming `--enable-lacheck=yes'
configure: Assuming `--enable-m-tx=yes'
configure: Assuming `--enable-pmx=yes'
configure: Assuming `--enable-ps2eps=yes'
configure: Assuming `--enable-t1utils=yes'
configure: Assuming `--enable-texdoctk=yes'
configure: Assuming `--enable-tpic2pdftex=yes'
configure: Assuming `--enable-vlna=yes'
configure: Assuming `--enable-xindy=no'
configure: Assuming `--with-clisp-runtime=system'
configure: `--without-x' -> `--disable-xpdfopen'
configure: Assuming `--enable-web2c=yes'
configure: Assuming `--enable-afm2pl=yes'
configure: Assuming `--enable-chktex=yes'
configure: Assuming `--enable-cjkutils=yes'
configure: Assuming `--enable-detex=yes'
configure: Assuming `--enable-dtl=yes'
configure: Assuming `--enable-dvi2tty=yes'
configure: Assuming `--enable-dvidvi=yes'
configure: Assuming `--enable-dviljk=yes'
configure: Assuming `--enable-dvipdfm-x=yes'
configure: Assuming `--enable-dvipos=yes'
configure: Assuming `--enable-dvipsk=yes'
configure: Assuming `--enable-gregorio=yes'
configure: Assuming `--enable-gsftopk=yes'
configure: Assuming `--enable-lcdf-typetools=yes'
configure: Assuming `--enable-makeindexk=yes'
configure: Assuming `--enable-makejvf=yes'
configure: Assuming `--enable-mendexk=yes'
configure: Assuming `--enable-musixtnt=yes'
configure: Assuming `--enable-ps2pk=yes'
configure: Assuming `--enable-psutils=yes'
configure: Assuming `--enable-seetexk=yes'
configure: Assuming `--enable-tex4htk=yes'
configure: Assuming `--enable-ttf2pk2=yes'
configure: Assuming `--enable-ttfdump=yes'
configure: `--without-x' -> `--disable-xdvik'
configure: Assuming `--enable-texlive=yes'
configure: Using `harfbuzz' headers and library from TL tree
configure: Using `icu' headers and library from TL tree
configure: Assuming `teckit' headers and library from TL tree
configure: Assuming installed `graphite2' headers and library
configure: Using installed `zziplib' headers and library
configure: Using installed `xpdf' headers and library
configure: Using installed `poppler' headers and library
configure: Using installed `mpfr' headers and library
configure: Using installed `gmp' headers and library
configure: Assuming installed `cairo' headers and library
configure: Using installed `pixman' headers and library
configure: Using installed `potrace' headers and library
configure: Using installed `gd' headers and library
configure: Using installed `freetype2' headers and library
configure: Using installed `libpng' headers and library
configure: Using installed `libpaper' headers and library
configure: Using installed `zlib' headers and library
configure: Assuming `ptexenc' headers and library from TL tree
configure: Assuming `kpathsea' headers and library from TL tree
checking for a BSD-compatible install... /nix/store/s28xb9v7xf6axvf4a3av2mnczws2hsdg-coreutils-8.29/bin/install -c
checking whether build environment is sane... yes
checking for a thread-safe mkdir -p... /nix/store/s28xb9v7xf6axvf4a3av2mnczws2hsdg-coreutils-8.29/bin/mkdir -p
checking for gawk... gawk
checking whether make sets $(MAKE)... yes
checking for style of include used by make... GNU
checking whether make supports nested variables... yes
checking how to print strings... printf
checking for a sed that does not truncate output... /nix/store/myrlb24yw6fkl043hbw3zj659d6n10dl-gnused-4.4/bin/sed
checking for grep that handles long lines and -e... /nix/store/fpn4936vg1r01xab5abhrbxzibixzvwn-gnugrep-3.1/bin/grep
checking for egrep... /nix/store/fpn4936vg1r01xab5abhrbxzibixzvwn-gnugrep-3.1/bin/grep -E
checking for fgrep... /nix/store/fpn4936vg1r01xab5abhrbxzibixzvwn-gnugrep-3.1/bin/grep -F
checking for ld used by clang... ld
checking if the linker (ld) is GNU ld... no
checking for BSD- or MS-compatible name lister (nm)... nm
checking the name lister (nm) interface... BSD nm
checking whether ln -s works... yes
checking the maximum length of command line arguments... 196608
checking how to convert x86_64-apple-darwin16.6.0 file names to x86_64-apple-darwin16.6.0 format... func_convert_file_noop
checking how to convert x86_64-apple-darwin16.6.0 file names to toolchain format... func_convert_file_noop
checking for ld option to reload object files... -r
checking for objdump... no
checking how to recognize dependent libraries... pass_all
checking for dlltool... no
checking how to associate runtime and link libraries... printf %s\n
checking for archiver @FILE support... no
checking for strip... strip
checking for ranlib... ranlib
checking command to parse nm output from clang object... ok
checking for sysroot... no
checking for a working dd... /nix/store/s28xb9v7xf6axvf4a3av2mnczws2hsdg-coreutils-8.29/bin/dd
checking how to truncate binary pipes... /nix/store/s28xb9v7xf6axvf4a3av2mnczws2hsdg-coreutils-8.29/bin/dd bs=4096 count=1
checking for mt... no
checking if : is a manifest tool... no
checking for dsymutil... dsymutil
checking for nmedit... no
checking for lipo... lipo
checking for otool... otool
checking for otool64... no
checking for -single_module linker flag... yes
checking for -exported_symbols_list linker flag... yes
checking for -force_load linker flag... yes
checking how to run the C preprocessor... clang -E
checking for ANSI C header files... yes
checking for sys/types.h... yes
checking for sys/stat.h... yes
checking for stdlib.h... yes
checking for string.h... yes
checking for memory.h... yes
checking for strings.h... yes
checking for inttypes.h... yes
checking for stdint.h... yes
checking for unistd.h... yes
checking for dlfcn.h... yes
checking how to create a pax tar archive... gnutar
checking dependency style of clang... none
checking whether to enable maintainer-specific portions of Makefiles... no
checking whether the compiler accepts prototypes... yes
checking what warning flags to pass to the C compiler... -Wimplicit -Wreturn-type -Wdeclaration-after-statement -Wno-unknown-pragmas
checking for objdir... .libs
checking if clang supports -fno-rtti -fno-exceptions... yes
checking for clang option to produce PIC... -fno-common -DPIC
checking if clang PIC flag -fno-common -DPIC works... yes
checking if clang static flag -static works... no
checking if clang supports -c -o file.o... yes
checking if clang supports -c -o file.o... (cached) yes
checking whether the clang linker (ld) supports shared libraries... yes
checking dynamic linker characteristics... darwin16.6.0 dyld
checking how to hardcode library paths into programs... immediate
checking whether stripping libraries is possible... yes
checking if libtool supports shared libraries... yes
checking whether to build shared libraries... yes
checking whether to build static libraries... no
checking for special C compiler options needed for large files... no
checking for _FILE_OFFSET_BITS value needed for large files... no
checking for _LARGEFILE_SOURCE value needed for large files... no
checking for dirent.h that defines DIR... yes
checking for library containing opendir... none required
checking for ANSI C header files... (cached) yes
checking whether closedir returns void... no
checking assert.h usability... yes
checking assert.h presence... yes
checking for assert.h... yes
checking float.h usability... yes
checking float.h presence... yes
checking for float.h... yes
checking limits.h usability... yes
checking limits.h presence... yes
checking for limits.h... yes
checking pwd.h usability... yes
checking pwd.h presence... yes
checking for pwd.h... yes
checking for stdlib.h... (cached) yes
checking sys/param.h usability... yes
checking sys/param.h presence... yes
checking for sys/param.h... yes
checking for putenv... yes
checking for getcwd... yes
checking for getwd... yes
checking for memcmp... yes
checking for memcpy... yes
checking for mkstemp... yes
checking for mktemp... yes
checking for strchr... yes
checking for strrchr... yes
checking for an ANSI C-conforming const... yes
checking for inline... inline
checking for size_t... yes
checking for int64_t... yes
checking for uint64_t... yes
checking whether isascii is declared... yes
checking for struct stat.st_mtim... no
checking for X... disabled
checking whether we are using the GNU C++ compiler... yes
checking whether clang++ accepts -g... yes
checking dependency style of clang++... none
checking what warning flags to pass to the C++ compiler... -Wimplicit -Wreturn-type -Wno-unknown-pragmas -Wno-write-strings
checking how to run the C++ preprocessor... clang++ -E
checking for ld used by clang++... ld
checking if the linker (ld) is GNU ld... no
checking whether the clang++ linker (ld) supports shared libraries... yes
checking for clang++ option to produce PIC... -fno-common -DPIC
checking if clang++ PIC flag -fno-common -DPIC works... yes
checking if clang++ static flag -static works... no
checking if clang++ supports -c -o file.o... yes
checking if clang++ supports -c -o file.o... (cached) yes
checking whether the clang++ linker (ld) supports shared libraries... yes
checking dynamic linker characteristics... darwin16.6.0 dyld
checking how to hardcode library paths into programs... immediate
checking whether ln -s works... yes
checking for TeX specific libraries to build... texk/kpathsea texk/ptexenc 
checking for pkg-config... pkg-config
checking for freetype-config... freetype-config
checking for icu-config... no
checking requested system `zlib' library... ok
checking requested system `libpaper' library... ok
checking requested system `libpng' library... ok
checking requested system `freetype2' library... ok
checking requested system `xpdf' library... failed
configure: error: some requested system libraries failed
builder for '/nix/store/yllzqif9nsikn6hgmfh3gh2i0hylsr3k-texlive-bin-2017.drv' failed with exit code 1

/cc @LnL7

7c6f434c commented 6 years ago

What is the build command? nix build -f '<nixpkgs>' --no-link texlive.bin works for me on yesterday's master a7d1a86bb3a8041c8ee145f8cac58ddf8315c436

LnL7 commented 6 years ago

The problem here is poppler, I fixed the build to use -std=c++11 but the configure script runs into the same problem.

configure:21941: clang++ -o conftest -g -O2 -DPOPPLER_VERSION=\"0.62.0\" -I/nix/store/ih57dl0j81xllxypy0ajgv8s934hx8dr-poppler-min-0.62.0-dev/include/poppler -I/nix/store/fqh4n07a6s95b4j9g6zi2mnif5l6id9a-freetype-2.7.1-dev/include/freetype2 -I/nix/store/4g8dcp0ddp8ch2by42rbjrmn0pc3m6gd-zlib-1.2.11-dev/include -I/nix/store/94cp4rqm8ig32ns7dw86p60mg0mlyynd-libpng-apng-1.6.34-dev/include/libpng16     conftest.cpp -L/nix/store/xdxr9cadv3k1ydbmrrgc3pczhfndrm5h-poppler-min-0.62.0/lib -lpoppler -L/nix/store/drf7rzhnych77kdp40qhs0cp3gcxifi0-freetype-2.7.1/lib -lfreetype -L/nix/store/nw26d8iq4a6fjz60cdxkhv5p6azi3yw7-zlib-1.2.11/lib -L/nix/store/b15xxbz0v7m1hkq3jvgras65s7sc021q-libpng-apng-1.6.34/lib -lpng16 -lz -lpaper -lz  >&5
In file included from conftest.cpp:43:
In file included from /nix/store/ih57dl0j81xllxypy0ajgv8s934hx8dr-poppler-min-0.62.0-dev/include/poppler/GfxFont.h:41:
/nix/store/ih57dl0j81xllxypy0ajgv8s934hx8dr-poppler-min-0.62.0-dev/include/poppler/Object.h:326:37: warning: rvalue references are a C++11 extension [-Wc++11-extensions]
inline void Object::arrayAdd(Object &&elem)
                                    ^
/nix/store/ih57dl0j81xllxypy0ajgv8s934hx8dr-poppler-min-0.62.0-dev/include/poppler/Object.h:327:45: error: rvalue reference to type 'Object' cannot bind to lvalue of type 'Object'
  { OBJECT_TYPE_CHECK(objArray); array->add(std::move(elem)); }
                                            ^~~~~~~~~~~~~~~
/nix/store/ih57dl0j81xllxypy0ajgv8s934hx8dr-poppler-min-0.62.0-dev/include/poppler/Array.h:61:21: note: passing argument to parameter 'elem' here
  void add(Object &&elem);
                    ^
In file included from conftest.cpp:43:
In file included from /nix/store/ih57dl0j81xllxypy0ajgv8s934hx8dr-poppler-min-0.62.0-dev/include/poppler/GfxFont.h:41:
In file included from /nix/store/ih57dl0j81xllxypy0ajgv8s934hx8dr-poppler-min-0.62.0-dev/include/poppler/Object.h:342:
/nix/store/ih57dl0j81xllxypy0ajgv8s934hx8dr-poppler-min-0.62.0-dev/include/poppler/Dict.h:65:30: warning: rvalue references are a C++11 extension [-Wc++11-extensions]
  void add(char *key, Object &&val);
                             ^
/nix/store/ih57dl0j81xllxypy0ajgv8s934hx8dr-poppler-min-0.62.0-dev/include/poppler/Dict.h:69:36: warning: rvalue references are a C++11 extension [-Wc++11-extensions]
  void set(const char *key, Object &&val);
                                   ^
In file included from conftest.cpp:43:
In file included from /nix/store/ih57dl0j81xllxypy0ajgv8s934hx8dr-poppler-min-0.62.0-dev/include/poppler/GfxFont.h:41:
/nix/store/ih57dl0j81xllxypy0ajgv8s934hx8dr-poppler-min-0.62.0-dev/include/poppler/Object.h:347:47: warning: rvalue references are a C++11 extension [-Wc++11-extensions]
inline void Object::dictAdd(char *key, Object &&val)
                                              ^
/nix/store/ih57dl0j81xllxypy0ajgv8s934hx8dr-poppler-min-0.62.0-dev/include/poppler/Object.h:348:48: error: rvalue reference to type 'Object' cannot bind to lvalue of type 'Object'
  { OBJECT_TYPE_CHECK(objDict); dict->add(key, std::move(val)); }
                                               ^~~~~~~~~~~~~~
/nix/store/ih57dl0j81xllxypy0ajgv8s934hx8dr-poppler-min-0.62.0-dev/include/poppler/Dict.h:65:32: note: passing argument to parameter 'val' here
  void add(char *key, Object &&val);
                               ^
In file included from conftest.cpp:43:
In file included from /nix/store/ih57dl0j81xllxypy0ajgv8s934hx8dr-poppler-min-0.62.0-dev/include/poppler/GfxFont.h:41:
/nix/store/ih57dl0j81xllxypy0ajgv8s934hx8dr-poppler-min-0.62.0-dev/include/poppler/Object.h:350:53: warning: rvalue references are a C++11 extension [-Wc++11-extensions]
inline void Object::dictSet(const char *key, Object &&val)
                                                    ^
/nix/store/ih57dl0j81xllxypy0ajgv8s934hx8dr-poppler-min-0.62.0-dev/include/poppler/Object.h:351:48: error: rvalue reference to type 'Object' cannot bind to lvalue of type 'Object'
  { OBJECT_TYPE_CHECK(objDict); dict->set(key, std::move(val)); }
                                               ^~~~~~~~~~~~~~
matthewbauer commented 6 years ago

@lnl7 thanks! I'll try adding -std=c++11 to texlive. It probably should go in the pkgconfig for poppler though (upstream).

LnL7 commented 6 years ago

I tried adding it to the pkg-config flags https://github.com/LnL7/nixpkgs/commit/ce6ef98e879076ee3464df399f7d887ee112df8c, but that causes other problems and AFAIK there's nothing like CXXFLAGS.

jhenahan commented 6 years ago

I see this is closed, but I'm getting the same issue. @matthewbauer Did you find a solution?