Latest enblend CVS tree -> anneal.h:63: internal compiler error: in reference_to_unused

14 views
Skip to first unread message

Vasil Dimov

unread,
Jun 14, 2008, 10:10:26 AM6/14/08
to hugin and other free panoramic software
Hi,

Is this the place to report enblend compilation problems?

In case it is, here is one :-)

g++ -DHAVE_CONFIG_H -I. -I.. -I/usr/local/include -D_GNU_SOURCE -
D_FILE_OFFSET_BITS=64 -I../include -DVIGRA_STATIC_LIB -D_THREAD_SAFE -
I/usr/local/include/OpenEXR -Wall -g -O3 -ffast-math -DNDEBUG -Wall -
DENBLEND_CACHE_IMAGES -MT enblend-enblend.o -MD -MP -MF .deps/enblend-
enblend.Tpo -c -o enblend-enblend.o `test -f 'enblend.cc' || echo
'./'`enblend.cc
In file included from ../include/vigra/accessor.hxx:41,
from ../include/vigra/iteratortraits.hxx:41,
from ../include/vigra/diff2d.hxx:44,
from ../include/vigra/utilities.hxx:45,
from ../include/vigra/basicimage.hxx:42,
from numerictraits.h:27,
from enblend.h:34,
from enblend.cc:123:
../include/vigra/numerictraits.hxx: In static member function 'static
unsigned char vigra::NumericTraits<unsigned char>::fromPromote(const
int&)':
../include/vigra/numerictraits.hxx:639: warning: comparison between
signed and unsigned integer expressions
../include/vigra/numerictraits.hxx: In static member function 'static
short unsigned int vigra::NumericTraits<short unsigned
int>::fromPromote(int)':
../include/vigra/numerictraits.hxx:736: warning: comparison between
signed and unsigned integer expressions
In file included from mask.h:35,
from enblend.h:39,
from enblend.cc:123:
anneal.h: At global scope:
anneal.h:63: internal compiler error: in reference_to_unused, at
dwarf2out.c:10010
Please submit a full bug report,
with preprocessed source if appropriate.
See <URL:http://gcc.gnu.org/bugs.html> for instructions.
*** Error code 1


configure output:


hag:/usr/local/devel/hugin/enblend$ ./configure --prefix=/tmp/enblend
checking for a BSD-compatible install... /usr/bin/install -c
checking whether build environment is sane... yes
checking for a thread-safe mkdir -p... /usr/local/bin/gmkdir -p
checking for gawk... gawk
checking whether make sets $(MAKE)... yes
checking for g++... g++
checking for C++ compiler default output file name... a.out
checking whether the C++ compiler works... yes
checking whether we are cross compiling... no
checking for suffix of executables...
checking for suffix of object files... o
checking whether we are using the GNU C++ compiler... yes
checking whether g++ accepts -g... yes
checking for style of include used by make... GNU
checking dependency style of g++... gcc3
checking for gcc... gcc
checking whether we are using the GNU C compiler... yes
checking whether gcc accepts -g... yes
checking for gcc option to accept ISO C89... none needed
checking dependency style of gcc... gcc3
checking for ranlib... ranlib
checking how to run the C++ preprocessor... g++ -E
checking for grep that handles long lines and -e... /usr/bin/grep
checking for egrep... /usr/bin/grep -E
checking for ANSI C header files... yes
checking for sys/types.h... yes
checking for sys/stat.h... yes
checking for stdlib.h... yes
checking for string.h... yes
checking for memory.h... yes
checking for strings.h... yes
checking for inttypes.h... yes
checking for stdint.h... yes
checking for unistd.h... yes
checking whether byte ordering is bigendian... no
checking for gzopen in -lz... yes
checking for jpeg_finish_compress in -ljpeg... yes
checking for png_init_io in -lpng... yes
checking for TIFFOpen in -ltiff... yes
checking for cmsCreateTransform in -llcms... yes
checking for miNewPaintedSet in -lxmi... yes
checking for pkg-config... /usr/local/bin/pkg-config
checking pkg-config is at least version 0.9.0... yes
checking for OPENEXR... yes
checking for X... libraries /usr/local/lib, headers /usr/local/include
checking build system type... amd64-unknown-freebsd7.0
checking host system type... amd64-unknown-freebsd7.0
checking for the pthreads library -lpthreads... no
checking whether pthreads work without any flags... yes
checking for joinable pthread attribute... PTHREAD_CREATE_JOINABLE
checking if more special flags are required for pthreads... -
D_THREAD_SAFE
checking how to run the C preprocessor... gcc -E
./configure: line 6489: AX_LANG_COMPILER_MS: command not found
checking windows.h usability... no
checking windows.h presence... no
checking for windows.h... no
checking for OpenGL library... -lGL
checking for OpenGL Utility library... -lGLU
checking whether -R must be followed by a space... no
checking for gethostbyname... yes
checking for connect... yes
checking for remove... yes
checking for shmat... yes
checking for IceConnectionNumber in -lICE... yes
checking for GLUT library... -lglut
checking for glewInit in -lGLEW... yes
checking for dirent.h that defines DIR... yes
checking for library containing opendir... none required
checking for ANSI C header files... (cached) yes
checking limits.h usability... yes
checking limits.h presence... yes
checking for limits.h... yes
checking for stdlib.h... (cached) yes
checking for string.h... (cached) yes
checking for unistd.h... (cached) yes
checking tiffio.h usability... yes
checking tiffio.h presence... yes
checking for tiffio.h... yes
checking jpeglib.h usability... yes
checking jpeglib.h presence... yes
checking for jpeglib.h... yes
checking png.h usability... yes
checking png.h presence... yes
checking for png.h... yes
checking boost/random/mersenne_twister.hpp usability... yes
checking boost/random/mersenne_twister.hpp presence... yes
checking for boost/random/mersenne_twister.hpp... yes
checking boost/static_assert.hpp usability... yes
checking boost/static_assert.hpp presence... yes
checking for boost/static_assert.hpp... yes
checking boost/pool/pool.hpp usability... yes
checking boost/pool/pool.hpp presence... yes
checking for boost/pool/pool.hpp... yes
checking lcms.h usability... yes
checking lcms.h presence... yes
checking for lcms.h... yes
checking xmi.h usability... yes
checking xmi.h presence... yes
checking for xmi.h... yes
checking for stdbool.h that conforms to C99... no
checking for _Bool... no
checking for an ANSI C-conforming const... yes
checking for inline... inline
checking for off_t... yes
checking for size_t... yes
checking for ptrdiff_t... yes
checking whether closedir returns void... no
checking for _LARGEFILE_SOURCE value needed for large files... no
checking for stdlib.h... (cached) yes
checking for GNU libc compatible malloc... yes
checking return type of signal handlers... void
checking for working strtod... yes
checking for floor... yes
checking for memset... yes
checking for pow... yes
checking for rint... yes
checking for sqrt... yes
checking for strchr... yes
checking for strerror... yes
checking for strrchr... yes
checking for mkstemp... yes
checking for lrint... yes
checking for lrintf... yes
checking whether to enable debugging... no
checking whether to enable image cache... yes
configure: creating ./config.status
config.status: creating Makefile
config.status: creating doc/Makefile
config.status: creating include/Makefile
config.status: creating include/vigra/Makefile
config.status: creating include/vigra_ext/Makefile
config.status: creating src/Makefile
config.status: creating src/vigra_impex/Makefile
config.status: creating src/win32helpers/Makefile
config.status: creating config.h
config.status: executing depfiles commands

enblend-enfuse now configured for amd64-unknown-freebsd7.0
Source directory: .
Installation directory: /tmp/enblend
C++ compiler: g++
CFLAGS needed for configure: -I/usr/local/include -
D_THREAD_SAFE -I/usr/local/include/OpenEXR -Wall -g
CXXFLAGS needed for configure: -DVIGRA_STATIC_LIB -D_THREAD_SAFE -
I/usr/local/include/OpenEXR -Wall -g -O3 -ffast-math -DNDEBUG -Wall -
DENBLEND_CACHE_IMAGES
LIBS needed for configure: -lGLEW -lGLU -lGL -L/usr/local/lib -
lX11 -lglut -lSM -lICE -lXmu -lXi -lGLU -lGL -L/usr/local/lib -
lX11 -pthread -L/usr/local/lib -lIlmImf -lz -lImath -lHalf -lIex -
lIlmThread -lxmi -llcms -ltiff -lpng -ljpeg -lz


hag:/usr/local/devel/hugin/enblend$ gcc -v
Using built-in specs.
Target: amd64-undermydesk-freebsd
Configured with: FreeBSD/amd64 system compiler
Thread model: posix
gcc version 4.2.1 20070719 [FreeBSD]


this is with the CVS tree as of Sat Jun 14 17:09:42 EEST 2008

Stephan Hegel

unread,
Jun 14, 2008, 10:54:24 PM6/14/08
to hugi...@googlegroups.com
Hi Vasil,

Vasil Dimov wrote:
> Is this the place to report enblend compilation problems?

Looks like a known bug in certain versions of gcc. You can find
related bug reports in bugzilla:
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=33668
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=31899

I remember I'd the same problem, but only with the debug version.
So, as a workaround, after "configure" I've removed all debug
switches from the Makefiles:
find . -name Makefile -exec sed -i 's/-g //g' {} \;
and it built fine.

Give it a try.

Rgds,
Stephan.

Vasil Dimov

unread,
Jun 15, 2008, 7:19:43 AM6/15/08
to hugin and other free panoramic software
[...]

Stephan,

removing -g has some effect:

g++ -DHAVE_CONFIG_H -I. -I.. -I/usr/local/include -D_GNU_SOURCE -
D_FILE_OFFSET_BITS=64 -I../include -DVIGRA_STATIC_LIB -D_THREAD_SAFE -
I/usr/local/include/OpenEXR -O3 -ffast-math -DNDEBUG -Wall -
DENBLEND_CACHE_IMAGES -MT enblend-enblend.o -MD -MP -MF .deps/enblend-
enblend.Tpo -c -o enblend-enblend.o `test -f 'enblend.cc' || echo
'./'`enblend.cc
virtual memory exhausted: Cannot allocate memory
*** Error code 1


Playing with ulimit did not help. This is with the gcc 4.2.1, 4.2.4
has the same problem, but gcc 4.3.1 managed to compile successfully.


Thank you!
Reply all
Reply to author
Forward
0 new messages