Closed matthewbauer closed 6 years ago
What is the build command? nix build -f '<nixpkgs>' --no-link texlive.bin
works for me on yesterday's master a7d1a86bb3a8041c8ee145f8cac58ddf8315c436
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)); }
^~~~~~~~~~~~~~
@lnl7 thanks! I'll try adding -std=c++11 to texlive. It probably should go in the pkgconfig for poppler though (upstream).
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.
I see this is closed, but I'm getting the same issue. @matthewbauer Did you find a solution?
Hydra: https://hydra.nixos.org/build/71755043
Issue description
/cc @LnL7