Modify

Opened 7 years ago

Closed 3 years ago

#8646 closed defect (moved_to_github)

GCC package build failed

Reported by: drAX <drax68@…> Owned by: developers
Priority: normal Milestone: Chaos Calmer 15.05
Component: packages Version: Trunk
Keywords: Cc:

Description

GCC fail to build with this output:

Applying /home/drax/svn/openwrt/toolchain/gcc/patches/4.1.2/953-bug_33256.patch using plaintext: 
patching file gcc/config/mips/mips.c
/home/drax/svn/openwrt/staging_dir/host/bin/sed -i -e 's,\(version_string.. = "[0-9\.]*\).*\(";\),\1 (OpenWrt-2.0)\2,' /home/drax/svn/openwrt/build_dir/target-i386_uClibc-0.9.31/gcc-4.1.2/gcc/version.c
/home/drax/svn/openwrt/staging_dir/host/bin/sed -i -e 's,\(bug_report_url.. = "\).*\(";\),\1<URL:https://dev.openwrt.org/>\2,' /home/drax/svn/openwrt/build_dir/target-i386_uClibc-0.9.31/gcc-4.1.2/gcc/version.c
(cd /home/drax/svn/openwrt/build_dir/target-i386_uClibc-0.9.31/gcc-4.1.2/libstdc++-v3; autoconf;);
configure.ac:83: error: m4_copy: won't overwrite defined macro: _AC_ARG_VAR_PRECIOUS
acinclude.m4:48: GLIBCXX_CONFIGURE is expanded from...
configure.ac:83: the top level
autom4te: /home/drax/svn/openwrt/staging_dir/host/bin/m4 failed with exit status: 1
make[3]: *** [/home/drax/svn/openwrt/build_dir/target-i386_uClibc-0.9.31/gcc-4.1.2/.prepared_31ef19a6d265f83fc4defda8b708e056] Error 1
make[3]: Leaving directory `/home/drax/svn/openwrt/feeds/packages/devel/gcc'
make[2]: *** [package/feeds/packages/gcc/compile] Error 2
make[2]: Leaving directory `/home/drax/svn/openwrt'
make[1]: *** [/home/drax/svn/openwrt/staging_dir/target-i386_uClibc-0.9.31/stamp/.package_compile] Error 2
make[1]: Leaving directory `/home/drax/svn/openwrt'
make: *** [world] Ошибка 2

Seems there is problems with libstdc++ autoconf

Attachments (0)

Change History (5)

comment:1 Changed 7 years ago by drAX <drax68@…>

Patch to fix this issue:

--- a/libstdc++-v3/acinclude.m4                                                                                    
+++ b/libstdc++-v3/acinclude.m4                                                                                    
@@ -104,6 +104,7 @@                                                                                                
   AC_PROG_CC                                                                                                      
   AC_PROG_CXX                                                                                                     
   CXXFLAGS="$save_CXXFLAGS"                                                                                       
+  m4_undefine([_AC_ARG_VAR_PRECIOUS])                                                                             
   m4_rename([glibcxx_PRECIOUS],[_AC_ARG_VAR_PRECIOUS])                                                            
   AC_SUBST(CFLAGS)                                                                                                
   AC_SUBST(CXXFLAGS)                                                                                              
                                                                                       

comment:2 Changed 7 years ago by florian

With which version of gcc did you hit this error?

comment:3 Changed 7 years ago by drAX <drax68@…>

gcc-4.1.2

comment:4 Changed 4 years ago by jow

  • Milestone changed from Backfire 10.03.2 to Chaos Calmer (trunk)

Milestone Backfire 10.03.2 deleted

comment:5 Changed 3 years ago by jogo

  • Resolution set to moved_to_github
  • Status changed from new to closed

The target gcc package has been moved to https://www.github.com/openwrt/packages. If this is still an issue, please open a ticket there.

Add Comment

Modify Ticket

Action
as closed .
The resolution will be deleted. Next status will be 'reopened'.
Author


E-mail address and user name can be saved in the Preferences.

 
Note: See TracTickets for help on using tickets.