WelcomeWelcome | FAQFAQ | DownloadsDownloads | WikiWiki

Author Topic: MbedTLS Illegal Instruction on i586  (Read 675 times)

Offline CNK

  • Wiki Author
  • Sr. Member
  • *****
  • Posts: 292
MbedTLS Illegal Instruction on i586
« on: May 19, 2024, 01:35:03 AM »
I'm getting "illegal instruction" errors with MbedTLS libs on a Pentium 1 (i586), such as from the selftest program in mbedtls-bin:
Code: [Select]
$ /tmp/tcloop/mbedtls-bin/usr/local/bin/selftest
Illegal instruction

It seems from the build script that the x86 mbedtls-lib.tcz and mbedtls-bin.tcz extensions on TC12 and later were built with the x86_64 compiler flags instead of these x86 flags shown on the Wiki:
Code: [Select]
export CFLAGS="-march=i486 -mtune=i686 -Os -pipe"
export CXXFLAGS="-march=i486 -mtune=i686 -Os -pipe"
export LDFLAGS="-Wl,-O1"

Since I built the updated Dillo extension for MbedTLS instead of OpenSSL, I expect this is why it's also failing with "Illegal instrucion" in TC15 on i586.

Offline Juanito

  • Administrator
  • Hero Member
  • *****
  • Posts: 14851
Re: MbedTLS Illegal Instruction on i586
« Reply #1 on: May 19, 2024, 03:23:36 AM »
Maybe you could pm the maintainer and request a replacement?

Offline CNK

  • Wiki Author
  • Sr. Member
  • *****
  • Posts: 292
Re: MbedTLS Illegal Instruction on i586
« Reply #2 on: May 19, 2024, 03:59:15 AM »
Thanks Juanito, yes PM sent.