Git Product home page Git Product logo

Comments (19)

niXman avatar niXman commented on May 9, 2024

See `config.log' for more details

Please show the /home/Jeroen/mingw-gcc-4.9.2/i686-492-win32-sjlj-rt_v4-s/build/libmangle-v4/config.log file.

from mingw-builds.

jeroen avatar jeroen commented on May 9, 2024

Ah here you go

This file contains any messages produced by compilers while
running configure, to aid debugging if configure makes a mistake.

It was created by mingw-w64-libmangle configure 1.0, which was
generated by GNU Autoconf 2.69.  Invocation command line was

  $ ../../../src/mingw-w64/mingw-w64-libraries/libmangle/configure --host=i686-w64-mingw32 --build=i686-w64-mingw32 --target=i686-w64-mingw32 --prefix=/home/Jeroen/mingw-gcc-4.9.2/i686-492-win32-sjlj-rt_v4-s/mingw32 CFLAGS=-O2 -pipe -I/home/Jeroen/mingw-gcc-4.9.2/i686-492-win32-sjlj-rt_v4-s/mingw32/opt/include -I/home/Jeroen/mingw-gcc-4.9.2/prerequisites/i686-zlib-static/include -I/home/Jeroen/mingw-gcc-4.9.2/prerequisites/i686-w64-mingw32-static/include CXXFLAGS=-O2 -pipe -I/home/Jeroen/mingw-gcc-4.9.2/i686-492-win32-sjlj-rt_v4-s/mingw32/opt/include -I/home/Jeroen/mingw-gcc-4.9.2/prerequisites/i686-zlib-static/include -I/home/Jeroen/mingw-gcc-4.9.2/prerequisites/i686-w64-mingw32-static/include CPPFLAGS= LDFLAGS=-pipe -L/home/Jeroen/mingw-gcc-4.9.2/i686-492-win32-sjlj-rt_v4-s/mingw32/opt/lib -L/home/Jeroen/mingw-gcc-4.9.2/prerequisites/i686-zlib-static/lib -L/home/Jeroen/mingw-gcc-4.9.2/prerequisites/i686-w64-mingw32-static/lib

## --------- ##
## Platform. ##
## --------- ##

hostname = Jeroen-Windows
uname -m = x86_64
uname -r = 2.1.2(0.287/5/3)
uname -s = MINGW32_NT-6.1
uname -v = 2015-05-05 18:25

/usr/bin/uname -p = unknown
/bin/uname -X     = unknown

/bin/arch              = x86_64
/usr/bin/arch -k       = unknown
/usr/convex/getsysinfo = unknown
/usr/bin/hostinfo      = unknown
/bin/machine           = unknown
/usr/bin/oslevel       = unknown
/bin/universe          = unknown

PATH: /home/Jeroen/mingw-gcc-4.9.2/i686-492-win32-sjlj-rt_v4-s/mingw32/bin
PATH: /home/Jeroen/mingw-gcc-4.9.2/i686-492-win32-sjlj-rt_v4-s/mingw32/opt/bin
PATH: /mingw64/bin
PATH: /usr/local/bin
PATH: /usr/bin
PATH: /bin
PATH: /c/Windows/system32
PATH: /c/Windows
PATH: /c/Windows/System32/Wbem
PATH: /c/Windows/System32/WindowsPowerShell/v1.0
PATH: /c/Program Files (x86)/Git/cmd
PATH: /c/Users/Jeroen/AppData/Local/GitLFS/bin


## ----------- ##
## Core tests. ##
## ----------- ##

configure:2311: checking for a BSD-compatible install
configure:2379: result: /usr/bin/install -c
configure:2390: checking whether build environment is sane
configure:2445: result: yes
configure:2483: WARNING: 'missing' script is too old or missing
configure:2596: checking for a thread-safe mkdir -p
configure:2635: result: /usr/bin/mkdir -p
configure:2642: checking for gawk
configure:2658: found /usr/bin/gawk
configure:2669: result: gawk
configure:2680: checking whether make sets $(MAKE)
configure:2702: result: yes
configure:2731: checking whether make supports nested variables
configure:2748: result: yes
configure:2874: checking whether to enable maintainer-specific portions of Makefiles
configure:2883: result: no
configure:2906: checking for i686-w64-mingw32-gcc
configure:2922: found /home/Jeroen/mingw-gcc-4.9.2/i686-492-win32-sjlj-rt_v4-s/mingw32/bin/i686-w64-mingw32-gcc
configure:2933: result: i686-w64-mingw32-gcc
configure:3202: checking for C compiler version
configure:3211: i686-w64-mingw32-gcc --version >&5
/home/Jeroen/mingw-gcc-4.9.2/i686-492-win32-sjlj-rt_v4-s/mingw32/bin/i686-w64-mingw32-gcc.exe: error while loading shared libraries: ?: cannot open shared object file: No such file or directory
configure:3222: $? = 127
configure:3211: i686-w64-mingw32-gcc -v >&5
/home/Jeroen/mingw-gcc-4.9.2/i686-492-win32-sjlj-rt_v4-s/mingw32/bin/i686-w64-mingw32-gcc.exe: error while loading shared libraries: ?: cannot open shared object file: No such file or directory
configure:3222: $? = 127
configure:3211: i686-w64-mingw32-gcc -V >&5
/home/Jeroen/mingw-gcc-4.9.2/i686-492-win32-sjlj-rt_v4-s/mingw32/bin/i686-w64-mingw32-gcc.exe: error while loading shared libraries: ?: cannot open shared object file: No such file or directory
configure:3222: $? = 127
configure:3211: i686-w64-mingw32-gcc -qversion >&5
/home/Jeroen/mingw-gcc-4.9.2/i686-492-win32-sjlj-rt_v4-s/mingw32/bin/i686-w64-mingw32-gcc.exe: error while loading shared libraries: ?: cannot open shared object file: No such file or directory
configure:3222: $? = 127
configure:3242: checking whether the C compiler works
configure:3264: i686-w64-mingw32-gcc -O2 -pipe -I/home/Jeroen/mingw-gcc-4.9.2/i686-492-win32-sjlj-rt_v4-s/mingw32/opt/include -I/home/Jeroen/mingw-gcc-4.9.2/prerequisites/i686-zlib-static/include -I/home/Jeroen/mingw-gcc-4.9.2/prerequisites/i686-w64-mingw32-static/include  -pipe -L/home/Jeroen/mingw-gcc-4.9.2/i686-492-win32-sjlj-rt_v4-s/mingw32/opt/lib -L/home/Jeroen/mingw-gcc-4.9.2/prerequisites/i686-zlib-static/lib -L/home/Jeroen/mingw-gcc-4.9.2/prerequisites/i686-w64-mingw32-static/lib conftest.c  >&5
/home/Jeroen/mingw-gcc-4.9.2/i686-492-win32-sjlj-rt_v4-s/mingw32/bin/i686-w64-mingw32-gcc.exe: error while loading shared libraries: ?: cannot open shared object file: No such file or directory
configure:3268: $? = 127
configure:3306: result: no
configure: failed program was:
| /* confdefs.h */
| #define PACKAGE_NAME "mingw-w64-libmangle"
| #define PACKAGE_TARNAME "mingw-w64-libmangle"
| #define PACKAGE_VERSION "1.0"
| #define PACKAGE_STRING "mingw-w64-libmangle 1.0"
| #define PACKAGE_BUGREPORT "[email protected]"
| #define PACKAGE_URL ""
| #define PACKAGE "mingw-w64-libmangle"
| #define VERSION "1.0"
| /* end confdefs.h.  */
| 
| int
| main ()
| {
| 
|   ;
|   return 0;
| }
configure:3311: error: in `/home/Jeroen/mingw-gcc-4.9.2/i686-492-win32-sjlj-rt_v4-s/build/libmangle-v4':
configure:3313: error: C compiler cannot create executables
See `config.log' for more details

## ---------------- ##
## Cache variables. ##
## ---------------- ##

ac_cv_env_CC_set=
ac_cv_env_CC_value=
ac_cv_env_CFLAGS_set=set
ac_cv_env_CFLAGS_value='-O2 -pipe -I/home/Jeroen/mingw-gcc-4.9.2/i686-492-win32-sjlj-rt_v4-s/mingw32/opt/include -I/home/Jeroen/mingw-gcc-4.9.2/prerequisites/i686-zlib-static/include -I/home/Jeroen/mingw-gcc-4.9.2/prerequisites/i686-w64-mingw32-static/include'
ac_cv_env_CPPFLAGS_set=set
ac_cv_env_CPPFLAGS_value=
ac_cv_env_CPP_set=
ac_cv_env_CPP_value=
ac_cv_env_LDFLAGS_set=set
ac_cv_env_LDFLAGS_value='-pipe -L/home/Jeroen/mingw-gcc-4.9.2/i686-492-win32-sjlj-rt_v4-s/mingw32/opt/lib -L/home/Jeroen/mingw-gcc-4.9.2/prerequisites/i686-zlib-static/lib -L/home/Jeroen/mingw-gcc-4.9.2/prerequisites/i686-w64-mingw32-static/lib'
ac_cv_env_LIBS_set=
ac_cv_env_LIBS_value=
ac_cv_env_build_alias_set=set
ac_cv_env_build_alias_value=i686-w64-mingw32
ac_cv_env_host_alias_set=set
ac_cv_env_host_alias_value=i686-w64-mingw32
ac_cv_env_target_alias_set=set
ac_cv_env_target_alias_value=i686-w64-mingw32
ac_cv_path_install='/usr/bin/install -c'
ac_cv_path_mkdir=/usr/bin/mkdir
ac_cv_prog_AWK=gawk
ac_cv_prog_CC=i686-w64-mingw32-gcc
ac_cv_prog_make_make_set=yes
am_cv_make_support_nested_variables=yes

## ----------------- ##
## Output variables. ##
## ----------------- ##

ACLOCAL='aclocal-1.14'
AMDEPBACKSLASH=''
AMDEP_FALSE=''
AMDEP_TRUE=''
AMTAR='$${TAR-tar}'
AM_BACKSLASH='\'
AM_DEFAULT_V='$(AM_DEFAULT_VERBOSITY)'
AM_DEFAULT_VERBOSITY='1'
AM_V='$(V)'
AR=''
AUTOCONF='autoconf'
AUTOHEADER='autoheader'
AUTOMAKE='automake-1.14'
AWK='gawk'
CC='i686-w64-mingw32-gcc'
CCDEPMODE=''
CFLAGS='-O2 -pipe -I/home/Jeroen/mingw-gcc-4.9.2/i686-492-win32-sjlj-rt_v4-s/mingw32/opt/include -I/home/Jeroen/mingw-gcc-4.9.2/prerequisites/i686-zlib-static/include -I/home/Jeroen/mingw-gcc-4.9.2/prerequisites/i686-w64-mingw32-static/include'
CPP=''
CPPFLAGS=''
CYGPATH_W='cygpath -w'
DEFS=''
DEPDIR=''
ECHO_C=''
ECHO_N='-n'
ECHO_T=''
EGREP=''
EXEEXT=''
GREP=''
INSTALL_DATA='${INSTALL} -m 644'
INSTALL_PROGRAM='${INSTALL}'
INSTALL_SCRIPT='${INSTALL}'
INSTALL_STRIP_PROGRAM='$(install_sh) -c -s'
LDFLAGS='-pipe -L/home/Jeroen/mingw-gcc-4.9.2/i686-492-win32-sjlj-rt_v4-s/mingw32/opt/lib -L/home/Jeroen/mingw-gcc-4.9.2/prerequisites/i686-zlib-static/lib -L/home/Jeroen/mingw-gcc-4.9.2/prerequisites/i686-w64-mingw32-static/lib'
LIBOBJS=''
LIBS=''
LTLIBOBJS=''
MAINT='#'
MAINTAINER_MODE_FALSE=''
MAINTAINER_MODE_TRUE='#'
MAKEINFO='makeinfo'
MKDIR_P='/usr/bin/mkdir -p'
OBJEXT=''
PACKAGE='mingw-w64-libmangle'
PACKAGE_BUGREPORT='[email protected]'
PACKAGE_NAME='mingw-w64-libmangle'
PACKAGE_STRING='mingw-w64-libmangle 1.0'
PACKAGE_TARNAME='mingw-w64-libmangle'
PACKAGE_URL=''
PACKAGE_VERSION='1.0'
PATH_SEPARATOR=':'
RANLIB=''
SET_MAKE=''
SHELL='/bin/sh'
STRIP=''
VERSION='1.0'
ac_ct_AR=''
ac_ct_CC=''
am__EXEEXT_FALSE=''
am__EXEEXT_TRUE=''
am__fastdepCC_FALSE=''
am__fastdepCC_TRUE=''
am__include=''
am__isrc=' -I$(srcdir)'
am__leading_dot='.'
am__nodep=''
am__quote=''
am__tar='$${TAR-tar} chof - "$$tardir"'
am__untar='$${TAR-tar} xf -'
bindir='${exec_prefix}/bin'
build_alias='i686-w64-mingw32'
datadir='${datarootdir}'
datarootdir='${prefix}/share'
docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
dvidir='${docdir}'
exec_prefix='NONE'
host_alias='i686-w64-mingw32'
htmldir='${docdir}'
includedir='${prefix}/include'
infodir='${datarootdir}/info'
install_sh='${SHELL} /home/Jeroen/mingw-gcc-4.9.2/src/mingw-w64/mingw-w64-libraries/libmangle/build-aux/install-sh'
libdir='${exec_prefix}/lib'
libexecdir='${exec_prefix}/libexec'
localedir='${datarootdir}/locale'
localstatedir='${prefix}/var'
mandir='${datarootdir}/man'
mkdir_p='$(MKDIR_P)'
oldincludedir='/usr/include'
pdfdir='${docdir}'
prefix='/home/Jeroen/mingw-gcc-4.9.2/i686-492-win32-sjlj-rt_v4-s/mingw32'
program_transform_name='s,x,x,'
psdir='${docdir}'
sbindir='${exec_prefix}/sbin'
sharedstatedir='${prefix}/com'
sysconfdir='${prefix}/etc'
target_alias='i686-w64-mingw32'

## ----------- ##
## confdefs.h. ##
## ----------- ##

/* confdefs.h */
#define PACKAGE_NAME "mingw-w64-libmangle"
#define PACKAGE_TARNAME "mingw-w64-libmangle"
#define PACKAGE_VERSION "1.0"
#define PACKAGE_STRING "mingw-w64-libmangle 1.0"
#define PACKAGE_BUGREPORT "[email protected]"
#define PACKAGE_URL ""
#define PACKAGE "mingw-w64-libmangle"
#define VERSION "1.0"

configure: exit 77

from mingw-builds.

jeroen avatar jeroen commented on May 9, 2024

Actually the reason I use --static-gcc is because I don't want runtime dll dependencies on libgcc_s_sjlj-1.dll and libstdc++-6.dll, but maybe that is not correct. How do I get static libgcc and libstdc++?

from mingw-builds.

niXman avatar niXman commented on May 9, 2024

You do not need to rebuild GCC using --static-gcc option. Use standard builds of MinGW-W64, but when linking, add the -static option. And/or -static-libgcc/-static-libstdc++

from mingw-builds.

jeroen avatar jeroen commented on May 9, 2024

Is there any way I can make the compiler default to -static-libstdc++ ? That is what our current tool chain seems to be doing (I am updating a 4.6.3 tool chain and it has to behave exactly the same)

from mingw-builds.

niXman avatar niXman commented on May 9, 2024

Is there any way I can make the compiler default to -static-libstdc++ ?

Yes, in this case you need to build MinGW-W64 using --static-gcc option.
The problem with the building libmangle can be solved by mailing to the MinGW-W64 mailing list([email protected])

from mingw-builds.

jeroen avatar jeroen commented on May 9, 2024

Haha that sounds like a long term solution. Do you think I can get another version such as gcc 4.9.2 or mingw-w64 v3 to build with --static-gcc?

from mingw-builds.

niXman avatar niXman commented on May 9, 2024

When I added this option in the scripts, it was working. But that was a long time ago, and I can not remember now, with what GCC version I tested this option...

Another way that you can try to solve this problem is to remove the libmangle from the list of subtargets(comment out this line: https://github.com/niXman/mingw-builds/blob/develop/library/subtargets.sh#L101).

from mingw-builds.

jeroen avatar jeroen commented on May 9, 2024

So libmangle is not needed by the compiler? I just want the tool chain, similar to the bundles from the mingw-builds website. Why does the gcc target start compiling openssl, python, etc?

from mingw-builds.

jeroen avatar jeroen commented on May 9, 2024

I tried skipping libmangle but all subsequent targets also fail with C compiler cannot create executables so I guess the compiler is just not working :(

from mingw-builds.

jeroen avatar jeroen commented on May 9, 2024

Okay the problem is not libmangle, the compiler just doesn't work when created with --static-gcc:

$ ./gcc --version
  /home/Jeroen/mingw-gcc-4.9.3/i686-493-win32-sjlj-rt_v4-s/mingw32/bin/gcc.exe: error while 
  loading shared libraries: ?: cannot open shared object file: No such file or directory

from mingw-builds.

niXman avatar niXman commented on May 9, 2024

So libmangle is not needed by the compiler?

No, this is an additional package.

I just want the tool chain, similar to the bundles from the mingw-builds website.

About what exactly the site you're talking?
mingw-builds never unloaded the builds using '--static-gcc' option.

Why does the gcc target start compiling openssl, python, etc?

Python is needed for GDB and openssl is needed for python.

from mingw-builds.

jeroen avatar jeroen commented on May 9, 2024

Okay that makes sense, was unaware that GDB requires python. I'll try some more combinations to see if I can get --enable-static to work.

from mingw-builds.

niXman avatar niXman commented on May 9, 2024

You also can try to use --no-extras option, if you no need GDB/python/etc packages.

from mingw-builds.

niXman avatar niXman commented on May 9, 2024

Just now I successfully build GCC-4.9.3 using the --static-gcc option.
You seem forgot to specify the --bootstrap option.

from mingw-builds.

jeroen avatar jeroen commented on May 9, 2024

When do I use --bootstrap? Is this documented anywhere?

from mingw-builds.

niXman avatar niXman commented on May 9, 2024

When do I use --bootstrap?

For build script:
./build --mode=gcc-4.9.2 --arch=i686 --exceptions=sjlj --static-gcc --threads=win32 --enable-languages=c,c++,fortran --bootstrap

Is this documented anywhere?

Of course!:
https://gcc.gnu.org/install/build.html

from mingw-builds.

jeroen avatar jeroen commented on May 9, 2024

Thanks, I got it to work. Maybe as a suggestion add something to the build script so that --enable-static automatically implies --bootstrap? This is not immediately obvious for noobs...

from mingw-builds.

niXman avatar niXman commented on May 9, 2024

done:
2b0243c

from mingw-builds.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.