[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Bug#214024: g++: when configure scripts are over 32768 g++ fails to compile test files



Package: g++-3.3
Version: 1:3.3.2-0pre4
Severity: grave

Adam Heath recommended I file this bug against gcc/g++ rather than
autoconf.

The issue is as follows:

configure is over 32767 lines long
configure generates a conftest.cc file

in that conftest.cc file is the line

'#line 32780 "configure"'

since the number is greater than 32767 g++ fails saying:

conftest.cc:2:7: line number out of range

which causes the test to fail and then configure thinks option is
unavailable.

configure:32757: checking for getdomainname
configure:32807: g++ -c -Wnon-virtual-dtor -Wno-long-long -Wundef -Wall -pedantic -W -Wpointer-arith -Wwrite-string
s -ansi -D_XOPEN_SOURCE=500 -D_BSD_SOURCE -Wcast-align -Wconversion -DNDEBUG -DNO_DEBUG -O2 -fno-exceptions -fno-ch
eck-new  -pedantic-errors  -DQT_THREAD_SUPPORT  -D_REENTRANT conftest.cc >&5
conftest.cc:1:7: line number out of range
configure:32810: $? = 1
configure: failed program was:
| #line 32780 "configure"
| /* confdefs.h.  */
...

This happens on my new arts build which has updated autotools, before
updating autotools the configure script was small enough that the 32767
limit didn't affect it.

Chris Cheney

-- System Information:
Debian Release: testing/unstable
Architecture: i386
Kernel: Linux calc 2.4.22-bk18 #1 SMP Mon Sep 15 12:55:07 CDT 2003 i686
Locale: LANG=en_US, LC_CTYPE=en_US

Versions of packages g++-3.3 depends on:
ii  gcc-3.3                    1:3.3.2-0pre4 The GNU C compiler
ii  gcc-3.3-base               1:3.3.2-0pre4 The GNU Compiler Collection (base 
ii  libc6                      2.3.2-8       GNU C Library: Shared libraries an
ii  libstdc++5-3.3-dev         1:3.3.2-0pre4 The GNU Standard C++ Library v3 (d

-- no debconf information




Reply to: