This is the mail archive of the gcc-bugs@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

[Bug bootstrap/67128] New: Makefile.in, libcc1 and --enable-shared


https://gcc.gnu.org/bugzilla/show_bug.cgi?id=67128

            Bug ID: 67128
           Summary: Makefile.in, libcc1 and --enable-shared
           Product: gcc
           Version: 6.0
            Status: UNCONFIRMED
          Severity: normal
          Priority: P3
         Component: bootstrap
          Assignee: unassigned at gcc dot gnu.org
          Reporter: dilyan.palauzov at aegee dot org
  Target Milestone: ---

As of current master (47dcac97f8004116), Makefile.in contains:


configure-libcc1:
        @: $(MAKE); $(unstage)
        @r=`${PWD_COMMAND}`; export r; \
        s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
        test ! -f $(HOST_SUBDIR)/libcc1/Makefile || exit 0; \
        $(SHELL) $(srcdir)/mkinstalldirs $(HOST_SUBDIR)/libcc1; \
        $(HOST_EXPORTS)  \
        echo Configuring in $(HOST_SUBDIR)/libcc1; \
        cd "$(HOST_SUBDIR)/libcc1" || exit 1; \
        case $(srcdir) in \
          /* | [A-Za-z]:[\\/]*) topdir=$(srcdir) ;; \
          *) topdir=`echo $(HOST_SUBDIR)/libcc1/ | \                            
                sed -e 's,\./,,g' -e 's,[^/]*/,../,g' `$(srcdir) ;; \
        esac; \
        module_srcdir=libcc1; \
        $(SHELL) \
          $$s/$$module_srcdir/configure \
          --srcdir=$${topdir}/$$module_srcdir \
          $(HOST_CONFIGARGS) --build=${build_alias} --host=${host_alias} \
          --target=${target_alias} --enable-shared \
          || exit 1
@endif libcc1


If I run at  root-level ./configure --disable-shared, then libstdc++ is build
static and building libcc1 fails with:

/src/gcc/gcc-git/x86_64-pc-linux-gnu/libstdc++-v3/src/.libs/libstdc++.a: error
adding symbols: Bad value
collect2: error: ld returned 1 exit status
Makefile:437: recipe for target 'libcc1.la' failed
make[3]: *** [libcc1.la] Error 1
make[3]: Leaving directory '/src/gcc/gcc-git/libcc1'
Makefile:319: recipe for target 'all' failed
make[2]: *** [all] Error 2
make[2]: Leaving directory '/src/gcc/gcc-git/libcc1'
Makefile:12120: recipe for target 'all-libcc1' failed
make[1]: *** [all-libcc1] Error 2
make[1]: Leaving directory '/src/gcc/gcc-git'
Makefile:908: recipe for target 'all' failed
make: *** [all] Error 2


Removing "--enable-shared" from Makefile.(in) solves the problem.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]