public inbox for cygwin-apps@cygwin.com
 help / color / mirror / Atom feed
* setup build failure
@ 2021-10-05 16:29 Ken Brown
  2021-10-05 17:02 ` Jon Turney
  0 siblings, 1 reply; 2+ messages in thread
From: Ken Brown @ 2021-10-05 16:29 UTC (permalink / raw)
  To: cygwin-apps

The current setup sources fail to build because ~StringChoiceOption is not defined:

   CXXLD    setup.exe
/usr/lib/gcc/x86_64-w64-mingw32/11/../../../../x86_64-w64-mingw32/bin/ld: 
io_stream_cygfile.o:/home/kbrown/src/cygsetup/x86_64/../setup/io_stream_cygfile.cc:40: 
undefined reference to `StringChoiceOption::~StringChoiceOption()'
/usr/lib/gcc/x86_64-w64-mingw32/11/../../../../x86_64-w64-mingw32/bin/ld: 
io_stream_cygfile.o:/home/kbrown/src/cygsetup/x86_64/../setup/io_stream_cygfile.cc:43: 
undefined reference to 
`StringChoiceOption::StringChoiceOption(std::vector<std::pair<char const*, int>, 
std::allocator<std::pair<char const*, int> > >, char, char const*, 
std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> > 
const&, bool, int, int)'
/usr/lib/gcc/x86_64-w64-mingw32/11/../../../../x86_64-w64-mingw32/bin/ld: 
main.o:/home/kbrown/src/cygsetup/x86_64/../setup/main.cc:107: undefined 
reference to `StringChoiceOption::~StringChoiceOption()'
/usr/lib/gcc/x86_64-w64-mingw32/11/../../../../x86_64-w64-mingw32/bin/ld: 
main.o:/home/kbrown/src/cygsetup/x86_64/../setup/main.cc:107: undefined 
reference to `StringChoiceOption::StringChoiceOption(std::vector<std::pair<char 
const*, int>, std::allocator<std::pair<char const*, int> > >, char, char const*, 
std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> > 
const&, bool, int, int)'
collect2: error: ld returned 1 exit status

Ken

^ permalink raw reply	[flat|nested] 2+ messages in thread

* Re: setup build failure
  2021-10-05 16:29 setup build failure Ken Brown
@ 2021-10-05 17:02 ` Jon Turney
  0 siblings, 0 replies; 2+ messages in thread
From: Jon Turney @ 2021-10-05 17:02 UTC (permalink / raw)
  To: cygwin-apps

On 05/10/2021 17:29, Ken Brown via Cygwin-apps wrote:
> The current setup sources fail to build because ~StringChoiceOption is 
> not defined:
> 
>    CXXLD    setup.exe
> /usr/lib/gcc/x86_64-w64-mingw32/11/../../../../x86_64-w64-mingw32/bin/ld: io_stream_cygfile.o:/home/kbrown/src/cygsetup/x86_64/../setup/io_stream_cygfile.cc:40: 
> undefined reference to `StringChoiceOption::~StringChoiceOption()'
> /usr/lib/gcc/x86_64-w64-mingw32/11/../../../../x86_64-w64-mingw32/bin/ld: io_stream_cygfile.o:/home/kbrown/src/cygsetup/x86_64/../setup/io_stream_cygfile.cc:43: 
> undefined reference to 
> `StringChoiceOption::StringChoiceOption(std::vector<std::pair<char 
> const*, int>, std::allocator<std::pair<char const*, int> > >, char, char 
> const*, std::__cxx11::basic_string<char, std::char_traits<char>, 
> std::allocator<char> > const&, bool, int, int)'
> /usr/lib/gcc/x86_64-w64-mingw32/11/../../../../x86_64-w64-mingw32/bin/ld: main.o:/home/kbrown/src/cygsetup/x86_64/../setup/main.cc:107: 
> undefined reference to `StringChoiceOption::~StringChoiceOption()'
> /usr/lib/gcc/x86_64-w64-mingw32/11/../../../../x86_64-w64-mingw32/bin/ld: main.o:/home/kbrown/src/cygsetup/x86_64/../setup/main.cc:107: 
> undefined reference to 
> `StringChoiceOption::StringChoiceOption(std::vector<std::pair<char 
> const*, int>, std::allocator<std::pair<char const*, int> > >, char, char 
> const*, std::__cxx11::basic_string<char, std::char_traits<char>, 
> std::allocator<char> > const&, bool, int, int)'
> collect2: error: ld returned 1 exit status

You need to autoreconf in the libgetopt++ subdir (the simplest way is 
just to re-run the top-level bootstrap.sh script)

I'm not sure why the necessary autofoolery doesn't happen automatically.

^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2021-10-05 17:02 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2021-10-05 16:29 setup build failure Ken Brown
2021-10-05 17:02 ` Jon Turney

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).