Opened 3 weeks ago

Last modified 3 weeks ago

#69864 assigned defect

poppler: Failed to configure poppler: Invalid value for configure.compiler:

Reported by: rmottola (Riccardo) Owned by: dbevans (David B. Evans)
Priority: Normal Milestone:
Component: ports Version: 2.9.3
Keywords: snowleopard Cc: mascguy (Christopher Nielsen)
Port: poppler

Description

On 10.6 Snow Leopard 386,

:error:configure Failed to configure poppler: Invalid value for configure.compiler: 
:debug:configure Error code: NONE
:debug:configure Backtrace: Invalid value for configure.compiler: 
:debug:configure     while executing

I can't see what value is actually used in the log

Attachments (1)

poppler.log (13.0 KB) - added by rmottola (Riccardo) 3 weeks ago.

Download all attachments as: .zip

Change History (10)

Changed 3 weeks ago by rmottola (Riccardo)

Attachment: poppler.log added

comment:1 Changed 3 weeks ago by rmottola (Riccardo)

If I force clang16:

build fails with linking. I suppose a C++ library issue (minimum libgcc8?), but it proves that with a set compiler things move on.

Undefined symbols for architecture i386:
  "std::__1::basic_string<char, std::__1::char_traits<char>, std::__1::allocator<char> >::insert(unsigned int, char const*, unsigned int)", referenced from:
      GooString::prependUnicodeMarker() in GooString.cc.o
      Dict::findAvailableKey(std::__1::basic_string<char, std::__1::char_traits<char>, std::__1::allocator<char> > const&) in Dict.cc.o
      FormField::getFullyQualifiedName() in Form.cc.o
      PSOutputDev::setupEmbeddedType1CFont(GfxFont*, Ref*, GooString*) in PSOutputDev.cc.o
      PSOutputDev::setupEmbeddedOpenTypeT1CFont(GfxFont*, Ref*, GooString*) in PSOutputDev.cc.o
      PSOutputDev::setupEmbeddedCIDType0Font(GfxFont*, Ref*, GooString*) in PSOutputDev.cc.o
      PSOutputDev::setupEmbeddedOpenTypeCFFFont(GfxFont*, Ref*, GooString*) in PSOutputDev.cc.o
      ...
  "std::__1::basic_string<char, std::__1::char_traits<char>, std::__1::allocator<char> >::append(char const*, unsigned int)", referenced from:
      GooString::appendfv(char const*, char*) in GooString.cc.o
      FoFiType1C::cvtGlyph(int, int, GooString*, Type1CIndex const*, Type1CPrivateDict const*, bool, std::__1::set<int, std::__1::less<int>, std::__1::allocator<int> >&) in FoFiType1C.cc.o
      FoFiType1C::cvtGlyphWidth(bool, GooString*, Type1CPrivateDict const*) in FoFiType1C.cc.o
      FoFiType1C::cvtNum(double, bool, GooString*) const in FoFiType1C.cc.o
      drawMultiLineText(GooString const&, double, Form const*, GfxFont const&, std::__1::basic_string<char, std::__1::char_traits<char>, std::__1::allocator<char> > const&, double, VariableTextQuadding, double) in Annot.cc.o
      AnnotAppearanceBuilder::drawText(GooString const*, Form const*, GooString const*, GfxResources const*, AnnotBorder const*, AnnotAppearanceCharacs const*, PDFRectangle const*, VariableTextQuadding, XRef*, Dict*, int, int) in Annot.cc.o
      AnnotAppearanceBuilder::drawListBox(FormFieldChoice const*, AnnotBorder const*, PDFRectangle const*, GooString const*, GfxResources const*, VariableTextQuadding, XRef*, Dict*) in Annot.cc.o
      ...
  "std::__1::basic_string<char, std::__1::char_traits<char>, std::__1::allocator<char> >::resize(unsigned int, char)", referenced from:
      std::__1::basic_stringbuf<char, std::__1::char_traits<char>, std::__1::allocator<char> >::overflow(int) in gbase64.cc.o
      timeToStringWithFormat(long const*, char const*) in DateInfo.cc.o
      std::__1::basic_stringbuf<char, std::__1::char_traits<char>, std::__1::allocator<char> >::overflow(int) in PDFDoc.cc.o
  "std::__1::basic_string<char, std::__1::char_traits<char>, std::__1::allocator<char> >::erase(unsigned int, unsigned int)", referenced from:
      appendToPath(GooString*, char const*) in gfile.cc.o
      Annot::layoutText(GooString const*, GooString*, int*, GfxFont const&, double*, double, int*, bool, bool*) in Annot.cc.o
      FormField::getFullyQualifiedName() in Form.cc.o
      __ZN11Gfx8BitFontC2EP4XRefPKc3RefONSt3__18optionalINS5_12basic_stringIcNS5_11char_traitsIcEENS5_9allocatorIcEEEEEE11GfxFontTypeS4_P4Dict in GfxFont.cc.o
      SysFontList::find(std::__1::basic_string<char, std::__1::char_traits<char>, std::__1::allocator<char> > const&, bool, bool, std::__1::vector<std::__1::basic_string<char, std::__1::char_traits<char>, std::__1::allocator<char> >, std::__1::allocator<std::__1::basic_string<char, std::__1::char_traits<char>, std::__1::allocator<char> > > > const&) in GlobalParams.cc.o
      LocalPDFDocBuilder::buildPDFDoc(GooString const&, std::__1::optional<GooString> const&, std::__1::optional<GooString> const&, void*) in LocalPDFDocBuilder.cc.o
      PSOutputDev::cvtFunction(Function const*, bool) in PSOutputDev.cc.o
      ...
  "std::__1::basic_string<char, std::__1::char_traits<char>, std::__1::allocator<char> >::insert(unsigned int, char const*)", referenced from:
      openFile(char const*, char const*) in gfile.cc.o
      AnnotStamp::generateStampCustomAppearance() in Annot.cc.o
  "std::__1::basic_string<char, std::__1::char_traits<char>, std::__1::allocator<char> >::assign(char const*, unsigned int)", referenced from:
      FoFiTrueType::readPostTable() in FoFiTrueType.cc.o
      FoFiType1::parse() in FoFiType1.cc.o
      get_id(GooString const*, GooString*) in PDFDoc.cc.o
      PageLabelInfo::Interval::Interval(Object*, int) in PageLabelInfo.cc.o
  "std::__1::basic_string<char, std::__1::char_traits<char>, std::__1::allocator<char> >::compare(unsigned int, unsigned int, char const*, unsigned int) const", referenced from:
      DefaultAppearance::DefaultAppearance(GooString const*) in Annot.cc.o
      AnnotAppearanceBuilder::drawText(GooString const*, Form const*, GooString const*, GfxResources const*, AnnotBorder const*, AnnotAppearanceCharacs const*, PDFRectangle const*, VariableTextQuadding, XRef*, Dict*, int, int) in Annot.cc.o
      determineFallbackFont(std::__1::basic_string<char, std::__1::char_traits<char>, std::__1::allocator<char> > const&, char const*) in Annot.cc.o
      Dict::find(char const*) const in Dict.cc.o
      FormFieldText::tokenizeDA(std::__1::basic_string<char, std::__1::char_traits<char>, std::__1::allocator<char> > const&, std::__1::vector<std::__1::basic_string<char, std::__1::char_traits<char>, std::__1::allocator<char> >, std::__1::allocator<std::__1::basic_string<char, std::__1::char_traits<char>, std::__1::allocator<char> > > >*, char const*) in Form.cc.o
      __ZN11Gfx8BitFontC2EP4XRefPKc3RefONSt3__18optionalINS5_12basic_stringIcNS5_11char_traitsIcEENS5_9allocatorIcEEEEEE11GfxFontTypeS4_P4Dict in GfxFont.cc.o
      GfxFont::matches(char const*) const in GfxFont.cc.o
      ...
  "std::__1::basic_string<char, std::__1::char_traits<char>, std::__1::allocator<char> >::basic_string(std::__1::basic_string<char, std::__1::char_traits<char>, std::__1::allocator<char> > const&, unsigned int, unsigned int, std::__1::allocator<char> const&)", referenced from:
      AnnotAppearanceBuilder::drawListBox(FormFieldChoice const*, AnnotBorder const*, PDFRectangle const*, GooString const*, GfxResources const*, VariableTextQuadding, XRef*, Dict*) in Annot.cc.o
      FormFieldSignature::getCheckedSignature(long long*) in Form.cc.o
  "std::__1::basic_string<char, std::__1::char_traits<char>, std::__1::allocator<char> >::basic_string(std::__1::basic_string<char, std::__1::char_traits<char>, std::__1::allocator<char> > const&, unsigned int, unsigned int, std::__1::allocator<char> const&)", referenced from:
      Annot::calculateFontSize(Form const*, GfxFont const*, GooString const*, double, double, bool) in Annot.cc.o
      drawMultiLineText(GooString const&, double, Form const*, GfxFont const&, std::__1::basic_string<char, std::__1::char_traits<char>, std::__1::allocator<char> > const&, double, VariableTextQuadding, double) in Annot.cc.o
      HorizontalTextLayouter::HorizontalTextLayouter(GooString const*, Form const*, GfxFont const*, std::__1::optional<double>, bool) in Annot.cc.o
      FormFieldText::tokenizeDA(std::__1::basic_string<char, std::__1::char_traits<char>, std::__1::allocator<char> > const&, std::__1::vector<std::__1::basic_string<char, std::__1::char_traits<char>, std::__1::allocator<char> >, std::__1::allocator<std::__1::basic_string<char, std::__1::char_traits<char>, std::__1::allocator<char> > > >*, char const*) in Form.cc.o
      GfxFont::getNameWithoutSubsetTag() const in GfxFont.cc.o
      buildFcPattern(GfxFont const*, GooString const*) in GlobalParams.cc.o
      PageLabelInfo::labelToIndex(GooString*, int*) const in PageLabelInfo.cc.o
      ...
  "std::__1::basic_string<char, std::__1::char_traits<char>, std::__1::allocator<char> >::replace(unsigned int, unsigned int, char const*)", referenced from:
      timeToStringWithFormat(long const*, char const*) in DateInfo.cc.o
  "std::__1::basic_string<char, std::__1::char_traits<char>, std::__1::allocator<char> >::insert(unsigned int, unsigned int, char)", referenced from:
      FormField::getFullyQualifiedName() in Form.cc.o
  "std::__1::basic_string<char, std::__1::char_traits<char>, std::__1::allocator<char> >::compare(unsigned int, unsigned int, char const*) const", referenced from:
      FormField::isAmongExcludedFields(std::__1::vector<std::__1::basic_string<char, std::__1::char_traits<char>, std::__1::allocator<char> >, std::__1::allocator<std::__1::basic_string<char, std::__1::char_traits<char>, std::__1::allocator<char> > > > const&) in Form.cc.o
      Form::reset(std::__1::vector<std::__1::basic_string<char, std::__1::char_traits<char>, std::__1::allocator<char> >, std::__1::allocator<std::__1::basic_string<char, std::__1::char_traits<char>, std::__1::allocator<char> > > > const&, bool) in Form.cc.o
      LinkURI::LinkURI(Object const*, std::__1::optional<std::__1::basic_string<char, std::__1::char_traits<char>, std::__1::allocator<char> > > const&) in Link.cc.o
      LocalPDFDocBuilder::buildPDFDoc(GooString const&, std::__1::optional<GooString> const&, std::__1::optional<GooString> const&, void*) in LocalPDFDocBuilder.cc.o
      LocalPDFDocBuilder::supports(GooString const&) in LocalPDFDocBuilder.cc.o
      CurlPDFDocBuilder::supports(GooString const&) in CurlPDFDocBuilder.cc.o
  "std::__1::basic_string<char, std::__1::char_traits<char>, std::__1::allocator<char> >::find(char, unsigned int) const", referenced from:
      buildFcPattern(GfxFont const*, GooString const*) in GlobalParams.cc.o
  "std::__1::basic_string<char, std::__1::char_traits<char>, std::__1::allocator<char> >::reserve(unsigned int)", referenced from:
      getCertificateInfoFromKey(GpgME::Key const&) in GPGMECryptoSignBackend.cc.o
      DN::parseString(std::__1::basic_string_view<char, std::__1::char_traits<char> >) in GPGMECryptoSignBackend.cc.o
ld: symbol(s) not found for architecture i386
clang: error: linker command failed with exit code 1 (use -v to see invocation)

comment:2 Changed 3 weeks ago by rmottola (Riccardo)

forcing gcc12 instead also continues build, but fails with undefined symbols

Undefined symbols for architecture i386:
  "__ZNSt3__112basic_stringIcNS_11char_traitsIcEENS_9allocatorIcEEE6insertEjPKcj", referenced from:
      __ZN9GooString20prependUnicodeMarkerEv in GooString.cc.o
      __ZN4Dict16findAvailableKeyERKNSt3__112basic_stringIcNS0_11char_traitsIcEENS0_9allocatorIcEEEE in Dict.cc.o
      __ZN9FormField21getFullyQualifiedNameEv in Form.cc.o
      __ZN9GooString6insertEiPKS_.isra.0 in PSOutputDev.cc.o
  "__ZNSt3__112basic_stringIcNS_11char_traitsIcEENS_9allocatorIcEEE6appendEPKcj", referenced from:
      __ZN9GooString8appendfvEPKcPc in GooString.cc.o
      __ZNK10FoFiType1C6cvtNumEdbP9GooString.constprop.0 in FoFiType1C.cc.o
      __ZNK10FoFiType1C6cvtNumEdbP9GooString in FoFiType1C.cc.o
      __ZN22AnnotAppearanceBuilder11drawListBoxEPK15FormFieldChoicePK11AnnotBorderPK12PDFRectanglePK9GooStringPK12GfxResources20VariableTextQuaddingP4XRefP4Dict in Annot.cc.o
      __ZL17drawMultiLineTextRK9GooStringdPK4FormRK7GfxFontRKNSt3__112basic_stringIcNS8_11char_traitsIcEENS8_9allocatorIcEEEEd20VariableTextQuaddingd in Annot.cc.o
      __ZN9GooString6appendERKNSt3__112basic_stringIcNS0_11char_traitsIcEENS0_9allocatorIcEEEE in Annot.cc.o
      __ZNK5Array9getStringEiP9GooString in Array.cc.o
      ...
  "__ZNSt3__112basic_stringIcNS_11char_traitsIcEENS_9allocatorIcEEE6resizeEjc", referenced from:
      __ZNSt3__115basic_stringbufIcNS_11char_traitsIcEENS_9allocatorIcEEE8overflowEi in gbase64.cc.o
      __Z22timeToStringWithFormatPKlPKc in DateInfo.cc.o
      __ZNSt3__115basic_stringbufIcNS_11char_traitsIcEENS_9allocatorIcEEE8overflowEi in PDFDoc.cc.o
  "__ZNSt3__112basic_stringIcNS_11char_traitsIcEENS_9allocatorIcEEE6__initEPKcj", referenced from:
      __Z9gbasenamePKc in gbasename.cc.o
      __Z8openFilePKcS0_ in gfile.cc.o
      __ZN9GooStringC4EPKc in gfile.cc.o
      __ZN12_GLOBAL__N_114grandom_engineEv in grandom.cc.o
      __ZNK12FoFiTrueType14convertToType0EPKcPiibS2_PFvPvS1_mES3_ in FoFiTrueType.cc.o
      __ZNK12FoFiTrueType12mapNameToGIDEPKc in FoFiTrueType.cc.o
      __ZN12FoFiTrueType13readPostTableEv in FoFiTrueType.cc.o
      ...
  

so well, the default compiler selection goes bad.

comment:3 in reply to:  description Changed 3 weeks ago by ryandesign (Ryan Carsten Schmidt)

Cc: mascguy added
Keywords: i386 removed
Owner: set to dbevans
Status: newassigned
Summary: poppler fails to configure compiler on 10.6 Snow Leopardpoppler: Failed to configure poppler: Invalid value for configure.compiler:
Version: 2.9.3

Replying to rmottola:

:error:configure Failed to configure poppler: Invalid value for configure.compiler: 

I can't see what value is actually used in the log

The value actually used was none. The empty string. MacPorts believed that no compiler that satisfied the requirements of the Portfile, specifically C++20 compatibility. According to the code, that should require Apple clang 15 or llvm.org clang 16 or gcc 12 or later. Not sure why it doesn't select clang 16 on Snow Leopard. We see the same failure on the i386 and x86_64 Snow Leopard buildbot machines.

comment:4 Changed 3 weeks ago by rmottola (Riccardo)

Aha, I understand. I have only MP gcc12 but MP clang 11,14,15,16, so it should have been able to select something existing.

then the errors show that it is not enough, but that is not C++20 compatibility perhaps but another issue.. I am unsure about those missing symbols.

comment:5 in reply to:  4 ; Changed 3 weeks ago by ryandesign (Ryan Carsten Schmidt)

Replying to rmottola:

Aha, I understand. I have only MP gcc12 but MP clang 11,14,15,16, so it should have been able to select something existing.

MacPorts compiler selection is not based on what ports you already have installed.

comment:6 in reply to:  5 Changed 3 weeks ago by rmottola (Riccardo)

Replying to ryandesign:

MacPorts compiler selection is not based on what ports you already have installed.

in case it would just pull-in the missing compiler, right? But it is a proof that on this platform these compilers were available.

comment:8 Changed 3 weeks ago by kencu (Ken)

somebody needs to re-look at what clang compilers can be made available on 10.6.

I’ve been using clang-15 in my ports tree fork, but I can get away with that because I use ld-latest as my (manually-upgraded) linker, I believe.

comment:9 in reply to:  8 Changed 3 weeks ago by rmottola (Riccardo)

Replying to kencu:

somebody needs to re-look at what clang compilers can be made available on 10.6.

I’ve been using clang-15 in my ports tree fork, but I can get away with that because I use ld-latest as my (manually-upgraded) linker, I believe.

could I have a linker issue then seen here in my issue above?

Note: See TracTickets for help on using tickets.