Artifacts Associated With Ticket 3534990fffffffff
Ticket change [4461a19d83] (rid 116702) by eriklns on 2012-06-13 21:08:15:
- assignee initialized to: "nobody"
- cmimetype initialized to: "text/plain"
- comment initialized 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. - foundin initialized to: "None"
- is_private initialized to: "0"
- priority initialized to: "5 Medium"
- resolution initialized to: "None"
- status initialized to: "Open"
- submitter initialized to: "eriklns"
- subsystem initialized to: "None"
- title initialized to:
Configure tk 8.5.11 for 32-bit on x86_64 misleads linker
- type initialized to: "Bug"
Add attachment "config.log" [9e2d75de3b] (rid 96432) by eriklns on 2012-06-14 04:08:17.
Ticket change [a9e44692ce] (rid 99233) by eriklns on 2012-06-14 04:08:17:
- icomment:
File Added - 446030: config.log
- login: "eriklns"
- mimetype: "text/plain"
- username: "eriklns"
- icomment:
Ticket change [d8f1af1a2c] (rid 107529) by bgriffin on 2013-01-28 05:00:22:
- icomment:
I've been having a similar problem on SuSE Enterprise 10.4 and here's what I learned. To begin with, the --disable-64bit option doesn't work when it comes to just the basic compiler, which is why CC="gcc -m32" is required in the first place. This shouldn't be necessary. I found a missing link in /usr/lib libfreetype.so -> libfreetype.so.6, libfontconfig.so -> libfontconfig.so.1 Because the linker was looking for lib<name>.so for -lfreetype -lfontconfig, it failed to find it and then tried /usr/lib64 which gives the misleading error message about incompatible libraries. The xft-config script does not, and cannot, report the correct options for 32-bit xft library usage. This causes the configure script to feed the wrong options to the test compiles. There are more problems then I could sort out with the configure script and the underlying OS support for 32-bit development. Bottom line is the SuSE environment is screwed up when it comes to 32-bit development. Much of the OS seems to make a base assumption that it's 64-bit all the time and 32-bit is reluctantly present for legacy support of existing programs.
- login: "bgriffin"
- mimetype: "text/plain"
- username: "bgriffin"
- icomment:
Ticket change [3e46b2bca1] (rid 148402) by dkf on 2016-08-20 17:06:12:
- closedate changed to: "2457621.21264773"
- closer changed to: "dkf"
- 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. - icomment: "This is a Tk issue"
- login: "dkf"
- mimetype: "text/x-fossil-wiki"
- resolution changed to: "Invalid"
- severity changed to: "Minor"
- status changed to: "Closed"
- subsystem changed to: "53. Configuration and Build Tools"