Uploaded image for project: 'Xerces-C++'
  1. Xerces-C++
  2. XERCESC-2048

Error during build on Windows/MinGW because of LDFLAGS=-no-undefined

    XMLWordPrintableJSON

    Details

    • Type: Bug
    • Status: Closed
    • Priority: Blocker
    • Resolution: Fixed
    • Affects Version/s: 3.1.2, 3.1.3
    • Fix Version/s: 3.2.0
    • Component/s: Build
    • Labels:
      None
    • Environment:
      Windows 8.1 with MinGW

      Description

      Followed the build instructions and used ./configure LDFLAGS=-no-undefined
      config.log shows the following:
      Target: mingw32
      Configured with: ../gcc-4.8.1/configure --prefix=/mingw --host=mingw32 --build=mingw32 --without-pic --enable-shared --enable-static --with-gnu-ld --enable-lto --enable-libssp --disable-multilib --enable-languages=c,c+,fortran,objc,obj-c+,ada --disable-sjlj-exceptions --with-dwarf2 --disable-win32-registry --enable-libstdcxx-debug --enable-version-specific-runtime-libs --with-gmp=/usr/src/pkg/gmp-5.1.2-1-mingw32-src/bld --with-mpc=/usr/src/pkg/mpc-1.0.1-1-mingw32-src/bld --with-mpfr= --with-system-zlib --with-gnu-as --enable-decimal-float=yes --enable-libgomp --enable-threads --with-libiconv-prefix=/mingw32 --with-libintl-prefix=/mingw --disable-bootstrap LDFLAGS=-s CFLAGS=-D_USE_32BIT_TIME_T
      Thread model: win32
      gcc version 4.8.1 (GCC)
      configure:3781: $? = 0
      configure:3770: g++ -V >&5
      g++.exe: error: unrecognized command line option '-V'
      g++.exe: fatal error: no input files
      compilation terminated.
      configure:3781: $? = 1
      configure:3770: g++ -qversion >&5
      g++.exe: error: unrecognized command line option '-qversion'
      g++.exe: fatal error: no input files
      compilation terminated.
      configure:3781: $? = 1
      configure:3801: checking whether the C++ compiler works
      configure:3823: g++ -no-undefined conftest.cpp >&5
      g++.exe: error: unrecognized command line option '-no-undefined'

      configure:3827: $? = 1
      configure:3865: result: no
      configure: failed program was:

      /* confdefs.h */

        Attachments

          Activity

            People

            • Assignee:
              Unassigned
              Reporter:
              Lonepine Philip Young
            • Votes:
              0 Vote for this issue
              Watchers:
              4 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved: