[Python-Dev] Python build trouble with the new gcc/binutils

Zack Weinberg zack@codesourcery.com
Fri, 16 Aug 2002 15:35:38 -0700


On Fri, Aug 16, 2002 at 05:59:05PM -0400, Andrew Koenig wrote:
> Zack> Please execute the attached shell script with CC set to your test gcc
> Zack> 3.2 and/or binutils 2.13.x installation and see what happens.  If we
> Zack> do have a toolchain bug, it ought to be provoked by this test.
> 
> Excellent!
> 
> $ sh test-dynload
> + gcc -fPIC -shared dyn.c -o dyn.so 
> + gcc main.c -o main -ldl 
> + ./main 
> calling dlopen
> Segmentation Fault - core dumped
> + exit 139 

Bingo.  That demonstrates conclusively that this isn't a Python bug.

Please repeat the test like so:

$ CC="gcc -v" sh test-dynload

Send the complete output, the result of "uname -a", and the script
itself to both gcc-bugs@gcc.gnu.org and bug-binutils@gnu.org.  And I
think we can stop bothering python-dev.

zw