Giter Site home page Giter Site logo

file.test fail on 32 bit systems about jimtcl HOT 5 CLOSED

yuzibo avatar yuzibo commented on June 12, 2024
file.test fail on 32 bit systems

from jimtcl.

Comments (5)

msteveb avatar msteveb commented on June 12, 2024

Thanks for the report.
I can see it's even worse on 32 bit arm.

error: size: file stat:13493 != aio stat:0
error: mtime: file stat:1677290991 != aio stat:32

It's clear that there is some mismatch. Perhaps 32 bit vs 64 bit stat.
I'll take a closer look. I have a few 32 bit ARM systems around.

from jimtcl.

msteveb avatar msteveb commented on June 12, 2024

I pushed something to branch file-stat64 to try
This helped on the one 32 bit system I have access to right now (Linux pvr 3.5.1 #2 Wed May 20 14:06:48 AEST 2015 armv5teb GNU/Linux, uclibc)
YMMV

from jimtcl.

yuzibo avatar yuzibo commented on June 12, 2024

thanks.
I try to build it on i386 again, but it seems have issue still:

../jim-file.c:189:49: error: invalid use of incomplete typedef 'jim_stat_t' {aka 'const struct stat64'}
  189 |     AppendStatElement(interp, listObj, "dev", sb->st_dev);
      |                                                 ^~
../jim-file.c:190:49: error: invalid use of incomplete typedef 'jim_stat_t' {aka 'const struct stat64'}
  190 |     AppendStatElement(interp, listObj, "ino", sb->st_ino);
...

https://salsa.debian.org/debian/jimtcl/-/jobs/4329769

from jimtcl.

msteveb avatar msteveb commented on June 12, 2024

Hmm, that's interesting. In installed debian bookworm i386 in a VM and tested it with and without the patch.
Definitely has the problem without the patch but with the patch it compiled and ran perfectly.
I wonder why you are getting those compile errors.

from jimtcl.

yuzibo avatar yuzibo commented on June 12, 2024

Ok, thanks for confirming this.
Maybe the debian/rules cause the build error, I will look at this.

from jimtcl.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.