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

            Bug ID: 67897
           Summary: [mingw] Error compile for create libraries static in
                    single user (2 CRITICAL BUGS)
           Product: gcc
           Version: 5.2.0
            Status: UNCONFIRMED
          Severity: critical
          Priority: P3
         Component: libgcc
          Assignee: unassigned at gcc dot gnu.org
          Reporter: rmbeer2 at gmail dot com
  Target Milestone: ---

I use the Archlinux System, with all libraries of gcc, mingw-32 and mingw-64 in
correct function.

I need recompile the new files of mingw-64 for create static libraries that i
not have.

I create a new path in single user count, and change the DEST for destination
installation and HOME for getting source code. Using this configure line
(getting from PKGBUILD, with any modifications, remove the ada and disable all
chekings):


$ ../configure --prefix=${DEST}/GCC --libexecdir=${DEST}/GCC/lib \
        --target=x86_64-w64-mingw32 \
        --enable-languages=c,lto,c++,objc,obj-c++,fortran \
        --enable-shared --enable-static \
        --enable-threads=posix --enable-fully-dynamic-string
--enable-libstdcxx-time=yes \
        --with-system-zlib --enable-cloog-backend=isl \
        --enable-lto --disable-dw2-exceptions --enable-libgomp \
        --disable-multilib --disable-checking
:
:
:
$ make
:
:
:
checking for suffix of object files... o
checking whether we are using the GNU C compiler... yes
checking whether ${HOME}/src/gcc-5.2.0/Build/./gcc/xgcc
-B${HOME}/src/gcc-5.2.0/Build/./gcc/ -L${DEST}/GCC/x86_64-w64-mingw32/lib
-L${DEST}/GCC/mingw/lib -isystem ${DEST}/GCC/x86_64-w64-mingw32/include
-isystem ${DEST}/GCC/mingw/include -B${DEST}/GCC/x86_64-w64-mingw32/bin/
-B${DEST}/GCC/x86_64-w64-mingw32/lib/ -isystem
${DEST}/GCC/x86_64-w64-mingw32/include -isystem
${DEST}/GCC/x86_64-w64-mingw32/sys-include    accepts -g... yes
checking for ${HOME}/src/gcc-5.2.0/Build/./gcc/xgcc
-B${HOME}/src/gcc-5.2.0/Build/./gcc/ -L${DEST}/GCC/x86_64-w64-mingw32/lib
-L${DEST}/GCC/mingw/lib -isystem ${DEST}/GCC/x86_64-w64-mingw32/include
-isystem ${DEST}/GCC/mingw/include -B${DEST}/GCC/x86_64-w64-mingw32/bin/
-B${DEST}/GCC/x86_64-w64-mingw32/lib/ -isystem
${DEST}/GCC/x86_64-w64-mingw32/include -isystem
${DEST}/GCC/x86_64-w64-mingw32/sys-include    option to accept ISO C89...
unsupported
checking how to run the C preprocessor... /lib/cpp
configure: error: in `${HOME}/src/gcc-5.2.0/Build/x86_64-w64-mingw32/libgcc':
configure: error: C preprocessor "/lib/cpp" fails sanity check
See `config.log' for more details.
Makefile:11661: fallo en las instrucciones para el objetivo
'configure-target-libgcc'
make[1]: *** [configure-target-libgcc] Error 1
make[1]: se sale del directorio '${HOME}/src/gcc-5.2.0/Build'
Makefile:871: fallo en las instrucciones para el objetivo 'all'
make: *** [all] Error 2




Checking this log:

CONFIG.LOG: x86_64-w64-mingw32/libgcc/config.log

configure:3993: result: /lib/cpp
configure:4013: /lib/cpp  conftest.c
${HOME}/src/gcc-5.2.0/libgcc/configure: line 1476: /lib/cpp: No such file or
directory
configure:4013: $? = 127
configure: failed program was:
| /* confdefs.h */
| #define PACKAGE_NAME "GNU C Runtime Library"
| #define PACKAGE_TARNAME "libgcc"
| #define PACKAGE_VERSION "1.0"
| #define PACKAGE_STRING "GNU C Runtime Library 1.0"
| #define PACKAGE_BUGREPORT ""
| #define PACKAGE_URL "http://www.gnu.org/software/libgcc/";
| /* end confdefs.h.  */
| #ifdef __STDC__
| # include <limits.h>
| #else
| # include <assert.h>
| #endif
|                    Syntax error






In this error getting that not have the "/lib/cpp" file for GCC. Linked the
cc1plus binarie from /usr/lib to /lib/cpp. Now getting always this lines:


configure: error: C preprocessor "/lib/cpp" fails sanity check
See `config.log' for more details.
Makefile:11661: recipe for target 'configure-target-libgcc' failed
make[1]: *** [configure-target-libgcc] Error 1




but with this config.log:

CONFIG.LOG: x86_64-w64-mingw32/libgcc/config.log

configure:4013: /lib/cpp  conftest.c
 void __debugbreak()
conftest.c: At global scope:
conftest.c:14:8: error: 'Syntax' does not name a type
        Syntax error
        ^

Analyzing compilation unit

Execution times (seconds)
 phase setup             :   0.00 ( 0%) usr   0.00 ( 0%) sys   0.01 (100%) wall
    833 kB (56%) ggc
 TOTAL                 :   0.00             0.00             0.01              
1492 kB
configure:4013: $? = 1
configure: failed program was:
| /* confdefs.h */
| #define PACKAGE_NAME "GNU C Runtime Library"
| #define PACKAGE_TARNAME "libgcc"
| #define PACKAGE_VERSION "1.0"
| #define PACKAGE_STRING "GNU C Runtime Library 1.0"
| #define PACKAGE_BUGREPORT ""
| #define PACKAGE_URL "http://www.gnu.org/software/libgcc/";
| /* end confdefs.h.  */
| #ifdef __STDC__
| # include <limits.h>
| #else
| # include <assert.h>
| #endif
|                    Syntax error






I not found the conftest.c.

I found two bugs:

1) I want need compiler all gcc in single user for personal use and for not
change the filesystem directory. But gcc always use the /usr or /lib directory
like if as stage 1 of linux from scratch (that use /lib/cpp and not have). I
use --disable-checking but always checking the ./libcpp of source directory.
why??

2) The Configure or Makefile files, create conftest.c with this line: "Syntax
error" in C code. It's cause fail compiler for ./libgcc of source code.



This two bugs cause a TWO CRITICAL BUG! I can't compiling the GCC and not have
my gcc for continue working...

I needed a path, upgrade or help for the compiling....

Thank you for read.

Reply via email to