Re: [gcc-4.3.1][c++] weird segfault with -O3 in constructor of a global object

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

 



Am Mittwoch 25 Juni 2008 20:47:49 schrieb John Love-Jensen:
> Hi Maik,
>
> As a data point...
>
> Worked just fine on my x86_64 system (as a 64-bit executable).
>
> Compiled:
> g++ -O3 -m64 -g test.cpp -o test
>
> GCC 4.0.1
>
> Also worked just fine when compiled as a 32-bit executable.
>
> Sincerely,
> --Eljay

Eljay, do you, or anyone running x86-64 linux willing to help me hunting this 
issue down, mind building gcc-4.3.1 on you x86-64 box and to test it?  I 
attach a Makefile I used to build it by the following steps:
  {{{
tar xjf gcc-core-4.3.1.tar.bz2 
tar xjf gcc-g++-4.3.1.tar.bz2
cp /path/to/attched/Makefile gcc-4.3.1/
cd gcc-4.3.1
mkdir build
make do_configure # prefix is `pwd`/stage
make -j2
make install # installs into `pwd`/stage
  }}}
now the compiler can be used via (I'm not sure if the LD_LIBRARY_PATH line is 
necessary of even sufficent): 
  {{{
export LD_LIBRARY_PATH=/path/to/gcc-4.3.1/stage/lib64
/path/to/gcc-4.3.1/stage/bin/g++ -O3 test.cpp -o test
  }}}

Thanks,
 -- Maik
pwd=$(shell pwd)

all:
	cd build && $(MAKE)

install:
	cd build && $(MAKE) install

clean:
	cd build && $(MAKE) clean

	
do_configure:
	cd build && ../configure --prefix=$(pwd)/stage \
                             --enable-languages=c++ \
                             --disable-multilib \
                             --with-optimization=generic 

[Index of Archives]     [Linux C Programming]     [Linux Kernel]     [eCos]     [Fedora Development]     [Fedora Announce]     [Autoconf]     [The DWARVES Debugging Tools]     [Yosemite Campsites]     [Yosemite News]     [Linux GCC]

  Powered by Linux