[mythtv-commits] Ticket #5618: configure error with gcc 4.3.1 on Gentoo

MythTV mythtv at cvs.mythtv.org
Wed Aug 13 09:46:19 UTC 2008


#5618: configure error with gcc 4.3.1 on Gentoo
--------------------------------+-------------------------------------------
 Reporter:  mythdev at telfort.nl  |       Owner:  ijr    
     Type:  defect              |      Status:  new    
 Priority:  minor               |   Milestone:  unknown
Component:  mythtv              |     Version:  unknown
 Severity:  medium              |     Mlocked:  0      
--------------------------------+-------------------------------------------
 I recently compiled the new gcc-4.3.1 on my Gentoo system. Now the MythTV
 configure does not work anymore:

 {{{
 ./configure: line 2885: test: /var/tmp/portage/sys-devel/gcc-4: integer
 expression expected
 }}}

 I added some debugging statements that show the following:

 {{{
  gcc-version: /var/tmp/portage/sys-
 devel/gcc-4.3.1-r1/work/gcc-4.3.1/configure
 4.3.1
  GCC_MAJOR: /var/tmp/portage/sys-devel/gcc-4
  GCC_MINOR: 3
 }}}

 running "gcc -v 2>&1 | grep version | cut -s -d' ' -f 3" returns the
 following result:
 {{{
 /var/tmp/portage/sys-devel/gcc-4.3.1-r1/work/gcc-4.3.1/configure
 4.3.1
 }}}

 running "gcc -v":
 {{{
 Using built-in specs.
 Target: x86_64-pc-linux-gnu
 Configured with: /var/tmp/portage/sys-
 devel/gcc-4.3.1-r1/work/gcc-4.3.1/configure --prefix=/usr
 --bindir=/usr/x86_64-pc-linux-gnu/gcc-bin/4.3.1
 --includedir=/usr/lib/gcc/x86_64-pc-linux-gnu/4.3.1/include
 --datadir=/usr/share/gcc-data/x86_64-pc-linux-gnu/4.3.1
 --mandir=/usr/share/gcc-data/x86_64-pc-linux-gnu/4.3.1/man
 --infodir=/usr/share/gcc-data/x86_64-pc-linux-gnu/4.3.1/info --with-gxx-
 include-dir=/usr/lib/gcc/x86_64-pc-linux-gnu/4.3.1/include/g++-v4
 --host=x86_64-pc-linux-gnu --build=x86_64-pc-linux-gnu --disable-altivec
 --enable-nls --without-included-gettext --with-system-zlib --disable-
 checking --disable-werror --enable-secureplt --enable-multilib --disable-
 libmudflap --disable-libssp --enable-cld --disable-libgcj --enable-
 languages=c,c++,treelang,fortran --enable-shared --enable-threads=posix
 --enable-__cxa_atexit --enable-clocale=gnu --with-pkgversion='Gentoo
 4.3.1-r1 p1.1'
 Thread model: posix
 gcc version 4.3.1 (Gentoo 4.3.1-r1 p1.1)
 }}}

 I made the following adjustment to the script:

 {{{
 Index: configure
 ===================================================================
 --- configure   (revision 18140)
 +++ configure   (working copy)
 @@ -2634,7 +2634,7 @@
  check_ldflags $LDLATEFLAGS

  # GCC version
 -gcc_version=$($cc -v 2>&1 | grep version | cut -s -d' ' -f 3)
 +gcc_version=$($cc -v 2>&1 | grep "gcc version" | cut -s -d' ' -f 3)
  GCC_MAJOR=$(echo ${gcc_version} | cut -s -d'.' -f1)
  GCC_MINOR=$(echo ${gcc_version} | cut -s -d'.' -f2)
 }}}

 Is this a problem with my setup? If so, I will try to fix it here. If not,
 is this a workable solution, since I am not sure if this always works
 correctly, but it works for me.

 Hopefully this helps.

-- 
Ticket URL: <http://svn.mythtv.org/trac/ticket/5618>
MythTV <http://www.mythtv.org/>
MythTV


More information about the mythtv-commits mailing list