ish-app / ish-app/ish

"Illegal instruction" error when running the "fpc" compiler

Open
#2,415 0 comments 0 reactions 0 assignees View on GitHub
unconfirmed
Dominant language
C
Stars
20.5k
Forks
1.5k
PR merge metrics
No merged PRs in 30d

Description

====================================
device: Ipad (6gen)
os: ios\17.5.1
Ish version: 1.3.2
====================================
`localhost:~# dmesg
15 illegal instruction at 0x804bf51: db e3 9b d9 6d f8 80 3d
stack at ffffddc0, base at ffffddc8, ip at 804bf51
ffffddc0: 00001332 00000000 00000000 08049020 00000001 ffffdeed 00000000 ffffdef2
ffffdde0: ffffdefc ffffdf04 ffffdf0f ffffdf1e ffffdf2e ffffdf39 ffffdf46 ffffdf53
ffffde00: ffffdf67 ffffdf74 ffffdfb6 ffffdfc3 ffffdfd2 ffffdfdc 00000000 00000020
ffffde20: f7ffc350 00000021 f7ffc000 00000010 00000000 00000006 00001000 00000011
ffffde40: 00000064 00000003 08048034 00000004 00000020 00000005 00000004 00000007
ffffde60: 00000000 00000008 00000000 00000009 08049000 0000000b 00000000 0000000c
ffffde80: 00000000 0000000d 00000000 0000000e 00000000 00000017 00000000 00000019
ffffdea0: ffffdecb 0000001a 00000000 0000001f ffffdfeb 0000000f ffffdedb 00000000
`
====================================
I'm using this link: [instruction](https://wiki.freepascal.org/Installing_the_Free_Pascal_Compiler#Linux)
Steps:
- download: https://sourceforge.net/projects/freepascal/files/Linux/3.2.2/fpc-3.2.2.i386-linux.tar
- tar -xf fpc-3.2.2.i386-linux.tar
- cd fpc-3.2.2.i386-linux/
- bash ./install.sh
- use default configuration
- run command: fpc

result: "Illegal instruction"

Contributor guide

No contributing guide indexed for this repository

Research direction

Reproduce the report in iSH on the listed iPad and iOS version using the exact download, installation, and `fpc` commands. Start with the captured `dmesg` output and the i386 compiler package to investigate the illegal instruction; done means the cause is identified and running `fpc` no longer produces the reported failure.

Written by the indexing model from the issue text.

Assessment

Tech stack
ios, linux
Domain
compilers, mobile-dev, operating-systems
Issue type
Bug
Difficulty
4/5
Estimated time
3-5 days
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
35/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.