Opened 11 years ago

Closed 11 years ago

Last modified 11 years ago

#42200 closed defect (wontfix)

re2 @20140110: build failure on Snow Leopard: undefined symbols

Reported by: cooljeanius (Eric Gallager) Owned by: macports-tickets@…
Priority: Normal Milestone:
Component: ports Version: 2.2.1
Keywords: Cc: humem (humem)
Port: re2

Description

Re-building my ports on my new drive, and I ran into this error when trying to build re2:

/usr/bin/g++-4.2 -dynamiclib -L/opt/local/lib -Wl,-headerpad_max_install_names -arch x86_64 -arch i386 -exported_symbols_list libre2.symbols.darwin -o obj/dylib/libre2.dylib.0 obj/dylib/util/arena.o obj/dylib/util/hash.o obj/dylib/util/rune.o obj/dylib/util/stringpiece.o obj/dylib/util/stringprintf.o obj/dylib/util/strutil.o obj/dylib/util/valgrind.o obj/dylib/re2/bitstate.o obj/dylib/re2/compile.o obj/dylib/re2/dfa.o obj/dylib/re2/filtered_re2.o obj/dylib/re2/mimics_pcre.o obj/dylib/re2/nfa.o obj/dylib/re2/onepass.o obj/dylib/re2/parse.o obj/dylib/re2/perl_groups.o obj/dylib/re2/prefilter.o obj/dylib/re2/prefilter_tree.o obj/dylib/re2/prog.o obj/dylib/re2/re2.o obj/dylib/re2/regexp.o obj/dylib/re2/set.o obj/dylib/re2/simplify.o obj/dylib/re2/tostring.o obj/dylib/re2/unicode_casefold.o obj/dylib/re2/unicode_groups.o
Undefined symbols:
  "operator<<(std::__1::basic_ostream<char, std::__1::char_traits<char> >&, re2::StringPiece const&)", referenced from:
     -exported_symbol[s_list] command line option
ld: symbol(s) not found
collect2: ld returned 1 exit status
Undefined symbols:
  "operator<<(std::__1::basic_ostream<char, std::__1::char_traits<char> >&, re2::StringPiece const&)", referenced from:
     -exported_symbol[s_list] command line option
ld: symbol(s) not found
collect2: ld returned 1 exit status
lipo: can't open input file: /opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_release_tarballs_ports_devel_re2/re2/work/.tmp/cchkM1cx.out (No such file or directory)
make: *** [obj/dylib/libre2.dylib] Error 1
make: Leaving directory `/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_release_tarballs_ports_devel_re2/re2/work/re2'
Command failed:  cd "/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_release_tarballs_ports_devel_re2/re2/work/re2" && /usr/bin/make -j2 -w all CXX="/usr/bin/g++-4.2" CXXFLAGS="-Os -arch x86_64 -arch i386" LDFLAGS="-L/opt/local/lib -Wl,-headerpad_max_install_names -arch x86_64 -arch i386" 
Exit code: 2
Error: org.macports.build for port re2 returned: command execution failed
DEBUG: Error code: CHILDSTATUS 23644 2

I do not remember this happening previously, so I guess r115779 must have introduced it... Anyways it looks like an issue with the c++ standard library...

Attachments (1)

main.log (19.7 KB) - added by cooljeanius (Eric Gallager) 11 years ago.
main.log for re2

Download all attachments as: .zip

Change History (5)

Changed 11 years ago by cooljeanius (Eric Gallager)

Attachment: main.log added

main.log for re2

comment:1 Changed 11 years ago by seanfarley (Sean Farley)

This issue has been reported upstream: http://code.google.com/p/re2/issues/detail?id=99 Though I don't know what the timeline is for fixing it.

comment:2 Changed 11 years ago by cooljeanius (Eric Gallager)

This still happens after the update from r116435

comment:3 Changed 11 years ago by humem (humem)

Resolution: wontfix
Status: newclosed

I have committed in r116839 to install the version 20131024 on Snow Leopard and 20130622 on Lion and Mountain Lion in the meantime.

comment:4 in reply to:  3 Changed 11 years ago by cooljeanius (Eric Gallager)

Replying to hum@…:

I have committed in r116839 to install the version 20131024 on Snow Leopard and 20130622 on Lion and Mountain Lion in the meantime.

That works for now, thanks!

Note: See TracTickets for help on using tickets.