Skip to content
Tcl Source Code View Ticket
Login

View Ticket

2023-11-17
17:50 • New ticket [f8c52a8c53] CI: Add 32-bit Linux job. artifact: 2f9a3a24cc user: chrstphrchvz
2023-07-20
14:32 • Ticket [a1aaca786b] Configure & build 32-bit Linux not working status st... artifact: a484a52758 user: jan.nijtmans
14:10 • Ticket [a1aaca786b]: 5 changes artifact: 20f0efac4e user: chrstphrchvz
13:22 • Closed ticket [a1aaca786b]. artifact: f4d61c8318 user: jan.nijtmans
2023-07-12
20:13 • Closed ticket [c1691dc608]: 32-bit Linux regressions plus 7 other changes artifact: 0dac5e3e95 user: jan.nijtmans
17:47 • Ticket [c1691dc608]: 3 changes artifact: e522acb261 user: chrstphrchvz
2023-06-20
20:28 • Ticket [a1aaca786b] Configure & build 32-bit Linux not working status st... artifact: 6459b26302 user: chrstphrchvz
20:27 • Ticket [c13819225e] Problem with lsort|lsearch -stride on 32-bit linux statu... artifact: 4ad9cc1f50 user: chrstphrchvz
2023-05-06
19:16 • Ticket [a1aaca786b] Configure & build 32-bit Linux not working status st... artifact: a0c08ed7ed user: chrstphrchvz
19:14 • Ticket [a1aaca786b]: 3 changes artifact: 49c9bb84c2 user: chrstphrchvz
19:13 • Ticket [63530267aa] lseq.test fail on i386 status still Open with 3 other ch... artifact: 8999cac549 user: chrstphrchvz
2023-04-27
04:40 • Ticket [a1aaca786b] Configure & build 32-bit Linux not working status st... artifact: 9f9669b5cf user: chrstphrchvz
2023-04-26
19:31 • Ticket [a1aaca786b]: 3 changes artifact: 33d0618724 user: jan.nijtmans
17:31 • Ticket [a1aaca786b]: 3 changes artifact: 3b651be091 user: griffin
17:05 • Ticket [a1aaca786b]: 3 changes artifact: 79de662cc3 user: chrstphrchvz
02:54 • New ticket [a1aaca786b]. artifact: 33a7af3b3a user: griffin

Configure & build 32-bit Linux not working

Closed / Fixeda1aaca786bd47ee0898de832babb926bff6ecfa4Created 4 years agoUpdated 3 years ago
Descriptionmarkdown2023-04-26 02:54:19

Some tweaks are required to get Tcl to build 32-bit executables on Linux (modern ubuntu in my case).

--disable-64bit is insufficient, also must supply CFLAGS=-m32 to configure.
And, dltest makefile needs tweaking, specifically, the linker needs -m32 as well to create the .so

Then, if/when you get a build, there are regression failures:

  • Test files exiting with errors: cmdIL.test http.test lsearch.test
  • Files with failing tests: cmdAH.test http.test http.test
  • There are failures in lseq.test, but I am currently addressing them.
Referenced by6
  • 2f9a3a24ccNew ticket [f8c52a8c53] CI: Add 32-bit Linux job. ticket2023-11-17 17:50:55
  • 0dac5e3e95Closed ticket [c1691dc608]: 32-bit Linux regressions plus 7 other changes ticket2023-07-12 20:13:49
  • e522acb261Ticket [c1691dc608] 32-bit Linux regressions status still Open with 3 other changes ticket2023-07-12 17:47:09
  • 4ad9cc1f50Ticket [c13819225e] Problem with lsort|lsearch -stride on 32-bit linux status still Closed with 5 other changes ticket2023-06-20 20:27:06
  • 49c9bb84c2Ticket [a1aaca786b] Configure & build 32-bit Linux not working status still Open with 3 other changes ticket2023-05-06 19:14:03
  • 8999cac549Ticket [63530267aa] lseq.test fail on i386 status still Open with 3 other changes ticket2023-05-06 19:13:00
chrstphrchvzwiki2023-04-26 17:05:54

To clarify, is this about building natively on an IA32 (32-bit x86) OS, or from an AMD64 OS (particularly given how Ubuntu is now unsupported on IA32)? I had been building Tcl 9.0 on Arch Linux 32 for a while, but don’t recall encountering these issues. Note that there is interest in requiring 64-bit time_t, which only fairly recent glib and IA32 Linux kernels support: [d40b9c8503]

griffinmarkdown2023-04-26 17:31:42

Yes, this is an AMD64 OS with 32bit libraries and headers also installed to allow 32-bit x86 compilation. AFAICT --disable-64bit is a no-op in this environment, reverting to the default 64-bit compilation.

This might be a useless configuration, but it's a lot easier to find 32-bit issues than having to have a whole 32-bit machine/OS for testing.

Do the regression tests all pass in the IA32 Arch Linux?

jan.nijtmanswiki2023-04-26 19:31:12

Just letting you know that I'm aware of these problems. It would be nice if those can be fixed. I'll have a look as well (as time permits)

chrstphrchvzwiki2023-04-27 04:40:18

I checked again for test failures not due to undefined behavior or memory leak sanitizer reports interfering with test output. I observe the division-by-zero crash in both cmdIL-1.43 and lsearch-28.10. Other failures are cmdMZ-6.6 and lseq-3.31. Building with -D_FILE_OFFSET_BITS=64 -D_TIME_BITS=64 prevents cmdAH-24.20.1 and cmdAH-24.20.2 from failing as described in [d40b9c8503].

chrstphrchvzwiki2023-05-06 19:14:03

Someone opened a ticket for the lseq-3.31 failure for 8.7 on 32-bit: [a1aaca786b]

chrstphrchvzwiki2023-05-06 19:16:15

Sorry, I meant to link to [63530267aa57] in the previous comment.

chrstphrchvzwiki2023-06-20 20:28:45

The crashes in cmdIL-1.43 and lsearch-28.10 were reported again in [c13819225ee3] and are now fixed.

jan.nijtmanswiki2023-07-20 13:22:58

Well, I tried this "./configure CFLAGS=-m32" on Ubuntu-23.04. All seems to be working fine now, starting with commit [c9cc9266217ab213].

Many thanks to @chrstphrchvz for all the help!

That doesn't mean all 32-bit issues are gone, just that there is no test-case yet for the remaining failures ;-) So, please, continue reporting!

chrstphrchvzwiki2023-07-20 14:10:09

Would it help/be feasible to have a Linux -m32 workflow to GitHub Actions, at least for Tcl?

jan.nijtmanswiki2023-07-20 14:32:44

> Would it help/be feasible to have a Linux -m32 workflow to GitHub Actions, at least for Tcl?

Good idea! (@chrstphrchvz, do you have commit rights on core.tcl-lang.org? You should have!)

Log in (anonymous is fine) to add a comment.