Giter VIP home page Giter VIP logo

Comments (8)

giorgio130 avatar giorgio130 commented on May 14, 2024

I've solved this, it required a little more than a "make clean" since it didn't actually remove all the cruft. In the end I also changed to ARM_ARCH:=-march=armv6j -mtune=arm1136jf-s -mfpu=vfp -mfloat-abi=hard -marm

from koreader-base.

houqp avatar houqp commented on May 14, 2024

oh, cool, do we also need to adapt the makefile?

from koreader-base.

hwhw avatar hwhw commented on May 14, 2024

Hm. Shouldn't specifying CHOST on the make command line be enough? like e.g.

$ make CHOST=arm-linux-gnueabihf

That way, all subsequent definitions via ?= and := should be overridden, I
think. Or was it via environment variable (like in "CHOST=... make")? I'm
pretty sure I switched between compilers that way pretty easily.

BTW, we should identify what cruft is left by "make clean" - as that may
give us strange bugshere and there when not working properly.

from koreader-base.

giorgio130 avatar giorgio130 commented on May 14, 2024

It looked like thirdparty libs and luajit were not properly cleaned. Yes, specifying CHOST looks to be enough, but I don't think you can change to -mfloat-abi=hard by a command line switch, right?

from koreader-base.

hwhw avatar hwhw commented on May 14, 2024

Yes, that may pose some problems, I guess. I'm not too sure, though. Isn't
that the default value for a hf-toolchain, though?

from koreader-base.

giorgio130 avatar giorgio130 commented on May 14, 2024

it is but in Makefile.defs it is specified:
ARM_ARCH:=-march=armv6j -mtune=arm1136jf-s -mfpu=vfp -mfloat-abi=softfp -marm
so if you don't change it in the end you get a strange hybrid I guess. I didn't try though to leave it unchanged and see if the produced binary would run.

from koreader-base.

hwhw avatar hwhw commented on May 14, 2024

Oh, right. It probably won't run, no - unsure if it would even link...

from koreader-base.

houqp avatar houqp commented on May 14, 2024

yeah, we can change ARM_ARCH according to environment. So if you think it's necessary, we should do so.

btw, what command did you run to clean? make clean in koreader or koreader-base?

from koreader-base.

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.