Skip to content
Tcl Source Code Ticket Change Details
Login

Ticket Change Details

Overview

Artifact ID: 4461a19d8376eb248ea0fa19cb7dd8ed46dfb248
Ticket: 3534990fffffffffffffffffffffffffffffffff
Configure tk 8.5.11 for 32-bit on x86_64 misleads linker
User & Date: eriklns on 2012-06-13 21:08:15
Changes

  1. assignee changed to: "nobody"
  2. cmimetype changed to: "text/plain"
  3. comment changed to:
    When compiling Tk8.5.11 on a x86_64 multilib linux system for a 32-bit native target, configuring the build (with a config.site script) to use CC="gcc -m32 -march i686", the resulting Makefile shows:
    
    X11_LIB_SWITCHES= -L/usr/lib64 -lX11 $(XFT_LIBS)
    
    The explicit search path /usr/lib64 is misleading because the linker will find 64-bit libraries only in that place. It doesn't break the build, but it produces a lot of messages like these:
    
    gcc -m32 -march=i686 -g  -pipe    -Wl,--export-dynamic  tkAppInit.o -L/usr/local/src/BUILD/i686-linux/tk8.5.11 -ltk8.5 \
            -L/usr/local/src/BUILD/i686-linux/tcl8.5.11 -ltcl8.5  -L/usr/lib64 -lX11  -ldl  -lieee -lm  -Wl,-rpath,/usr/local/lib -o wish
    /usr/lib64/gcc/x86_64-suse-linux/4.5/../../../../x86_64-suse-linux/bin/ld: skipping incompatible /usr/lib64/libX11.so when searching for -lX11
    /usr/lib64/gcc/x86_64-suse-linux/4.5/../../../../x86_64-suse-linux/bin/ld: skipping incompatible /usr/lib64/libdl.so when searching for -ldl
    /usr/lib64/gcc/x86_64-suse-linux/4.5/../../../../x86_64-suse-linux/bin/ld: skipping incompatible /usr/lib64/libdl.a when searching for -ldl
    /usr/lib64/gcc/x86_64-suse-linux/4.5/../../../../x86_64-suse-linux/bin/ld: skipping incompatible /usr/lib64/libieee.a when searching for -lieee
    /usr/lib64/gcc/x86_64-suse-linux/4.5/../../../../x86_64-suse-linux/bin/ld: skipping incompatible /usr/lib64/libm.so when searching for -lm
    /usr/lib64/gcc/x86_64-suse-linux/4.5/../../../../x86_64-suse-linux/bin/ld: skipping incompatible /usr/lib64/libm.a when searching for -lm
    /usr/lib64/gcc/x86_64-suse-linux/4.5/../../../../x86_64-suse-linux/bin/ld: skipping incompatible /usr/lib64/libc.so when searching for -lc
    /usr/lib64/gcc/x86_64-suse-linux/4.5/../../../../x86_64-suse-linux/bin/ld: skipping incompatible /usr/lib64/libc.a when searching for -lc
    
    The config.log for this build has been attached.
    
    
  4. foundin changed to: "None"
  5. is_private changed to: "0"
  6. priority changed to: "5 Medium"
  7. resolution changed to: "None"
  8. status changed to: "Open"
  9. submitter changed to: "eriklns"
  10. subsystem changed to: "None"
  11. title changed to:
    Configure tk 8.5.11 for 32-bit on x86_64 misleads linker
    
  12. type changed to: "Bug"