Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Can't compile GCC4.9.3 with GCC6.1.1 #1361

Closed
rr- opened this issue May 26, 2016 · 2 comments
Closed

Can't compile GCC4.9.3 with GCC6.1.1 #1361

rr- opened this issue May 26, 2016 · 2 comments

Comments

@rr-
Copy link
Contributor

rr- commented May 26, 2016

I'm using MXE master with the UPX and UCL patches.

Machine:

Linux tornado 4.5.4-1-ARCH #1 SMP PREEMPT Wed May 11 22:21:28 CEST 2016 x86_64 GNU/Linux

Build session:

rr-@tornado:~/src/ext/mxe$ MXE_VERBOSE=1 make gcc               
[using autodetected 6 job(s)]
[build]     gcc                    i686-w64-mingw32.static                                                

Failed to build package gcc for target i686-w64-mingw32.static!
------------------------------------------------------------
make[1]: Entering directory '/home/rr-/src/ext/mxe'
uname -a
Linux tornado 4.5.4-1-ARCH #1 SMP PREEMPT Wed May 11 22:21:28 CEST 2016 x86_64 GNU/Linux
git log --pretty=tformat:"%H - %s [%ar] [%d]" -1
4eb80ed433988e96d4063889e2ce9933a0696fc6 - gcc6: fix compiling ucl [54 minutes ago] [ (HEAD -> upx-fix)]
lsb_release -a 2>/dev/null || sw_vers 2>/dev/null || true
autoconf --version 2>/dev/null | head -1
autoconf (GNU Autoconf) 2.69
automake --version 2>/dev/null | head -1
automake (GNU automake) 1.15
gcc --version
gcc (GCC) 6.1.1 20160501
Copyright (C) 2016 Free Software Foundation, Inc.
This is free software; see the source for copying conditions.  There is NO
warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
g++ --version
g++ (GCC) 6.1.1 20160501
Copyright (C) 2016 Free Software Foundation, Inc.
This is free software; see the source for copying conditions.  There is NO
warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
python --version
Python 3.5.1
perl --version 2>&1 | head -3
This is perl 5, version 22, subversion 2 (v5.22.2) built for x86_64-linux-thread-multi
rm -rf   '/home/rr-/src/ext/mxe/tmp-gcc-i686-w64-mingw32.static'
mkdir -p '/home/rr-/src/ext/mxe/tmp-gcc-i686-w64-mingw32.static'
cd '/home/rr-/src/ext/mxe/tmp-gcc-i686-w64-mingw32.static' &&    tar xjf '/home/rr-/src/ext/mxe/pkg/gcc-4.9.3.tar.bz2'
cd '/home/rr-/src/ext/mxe/tmp-gcc-i686-w64-mingw32.static/gcc-4.9.3'
(cd '/home/rr-/src/ext/mxe/tmp-gcc-i686-w64-mingw32.static/gcc-4.9.3' && patch -p1 -u) < /home/rr-/src/ext/mxe/src/gcc-1.patch

...
...
...
(lots of output)
...
...
...

In file included from /home/rr-/src/ext/mxe/tmp-gcc-i686-w64-mingw32.static/gcc-4.9.3/gcc/cp/except.c:1013:0:
cfns.gperf: In function ‘const char* libc_name_p(const char*, unsigned int)’:
cfns.gperf:101:1: error: ‘const char* libc_name_p(const char*, unsigned int)’ redeclared inline with ‘gnu_inline’ attribute
cfns.gperf:26:14: note: ‘const char* libc_name_p(const char*, unsigned int)’ previously declared here
cfns.gperf: At global scope:
cfns.gperf:26:14: warning: inline function ‘const char* libc_name_p(const char*, unsigned int)’ used but never defined
Makefile:1058: recipe for target 'cp/except.o' failed
make[3]: *** [cp/except.o] Error 1
make[3]: *** Waiting for unfinished jobs....
rm gfortran.pod gcc.pod
make[3]: Leaving directory '/home/rr-/src/ext/mxe/tmp-gcc-i686-w64-mingw32.static/gcc-4.9.3.build/gcc'
Makefile:3970: recipe for target 'all-gcc' failed
make[2]: *** [all-gcc] Error 2
make[2]: Leaving directory '/home/rr-/src/ext/mxe/tmp-gcc-i686-w64-mingw32.static/gcc-4.9.3.build'
Makefile:550: recipe for target 'build-only-gcc_i686-w64-mingw32.static' failed
make[1]: *** [build-only-gcc_i686-w64-mingw32.static] Error 2
make[1]: Leaving directory '/home/rr-/src/ext/mxe'
real    2m19.980s
user    9m0.787s
sys 0m27.533s
------------------------------------------------------------
[log]      /home/rr-/src/ext/mxe/log/gcc_i686-w64-mingw32.static

Makefile:550: recipe for target '/home/rr-/src/ext/mxe/usr/i686-w64-mingw32.static/installed/gcc' failed
make: *** [/home/rr-/src/ext/mxe/usr/i686-w64-mingw32.static/installed/gcc] Error 1

Related:

https://gcc.gnu.org/ml/gcc-patches/2015-08/msg00375.html

@rr- rr- changed the title Can't compile GCC4.9.1 with GCC6.1.1 Can't compile GCC4.9.3 with GCC6.1.1 May 26, 2016
@tonytheodore
Copy link
Member

Fixed upstream: https://gcc.gnu.org/git/?p=gcc.git;a=commitdiff;h=ec1cc0263f156f70693a62cf17b254a0029f4852

@Leila-Codes
Copy link

Leila-Codes commented Jan 24, 2019

Cheers for the patch! Looks like it fixed GCC4.9.2 for me on Fedora 28 too!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants