Git Product home page Git Product logo

Comments (5)

MKesenheimer avatar MKesenheimer commented on September 6, 2024

These errors do not occur when compiling the original branch (https://github.com/openocd-org/openocd).

from openocd.

MKesenheimer avatar MKesenheimer commented on September 6, 2024

Oh, and the error codes ERROR_SUCCESS, E_FAIL, ERROR_TIMEOUT, ERROR_BAD_ARGUMENTS and ERROR_INSUFFICIENT_BUFFER are undefined, too.

from openocd.

MKesenheimer avatar MKesenheimer commented on September 6, 2024

Moreover:
The linker can not find stricmp on linux.
stricmp is Windows-specific. Use strcasecmp for linux instead.

from openocd.

MKesenheimer avatar MKesenheimer commented on September 6, 2024

I think the main issue comes from the fact, that you never built on Linux or other platforms than Windows. Maybe you can try building the software on a different platform and fix the issues?
Thanks!

from openocd.

MKesenheimer avatar MKesenheimer commented on September 6, 2024

I created a pull request where I pushed the changes that I made to your code. With these changes the project builds on Linux and macOS. This should help to see where changes are necessary, however, these changes are more or less "hacks". Most of the changes should not make it into a release.

For instance, I removed the following flash definitions, since the linker had problems finding them:

Undefined symbols for architecture x86_64:
  "_aducm302x_flash", referenced from:
      _flash_drivers in libopenocd.a(drivers.o)
  "_aducm4x50_flash", referenced from:
      _flash_drivers in libopenocd.a(drivers.o)
  "_msp432p4_flash", referenced from:
      _flash_drivers in libopenocd.a(drivers.o)
  "_pic32mm_flash", referenced from:
      _flash_drivers in libopenocd.a(drivers.o)
  "_plugin_flash", referenced from:
      _flash_drivers in libopenocd.a(drivers.o)
  "_rs14100_flash", referenced from:
      _flash_drivers in libopenocd.a(drivers.o)
  "_stm32g0x_flash", referenced from:
      _flash_drivers in libopenocd.a(drivers.o)
  "_stm32g4x_flash", referenced from:
      _flash_drivers in libopenocd.a(drivers.o)
  "_stm32l5x_flash", referenced from:
      _flash_drivers in libopenocd.a(drivers.o)

Maybe you have a better idea how to define these symbols in order that the linker finds them.

from openocd.

Related Issues (10)

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.