Git Product home page Git Product logo

Comments (10)

glebm avatar glebm commented on August 30, 2024 1

@vitaut The build is still failing but now the errors are different

from fmt.

glebm avatar glebm commented on August 30, 2024 1

All builds are now green! Thank you for the fix!

from fmt.

vitaut avatar vitaut commented on August 30, 2024

Just removing these calls might be undesirable. I think we should figure out what printf does on these systems and do something similar.

from fmt.

vitaut avatar vitaut commented on August 30, 2024

Looks like this is what used on Amiga:

https://github.com/bebbo/libnix/blob/152139ecbaa9f1349ceec5944d181d1786a84789/sources/headers/stdio.h#L81

from fmt.

glebm avatar glebm commented on August 30, 2024

Got a response in the Xbox issue: XboxDev/nxdk#672 (comment)

from fmt.

jwillikers avatar jwillikers commented on August 30, 2024

I see these same errors attempting to build for a microcontroller with both newlib and picolibc:

In file included from /home/jordan/.conan2/p/b/fmtc75dbc04c5faa/b/src/src/format.cc:8:
/home/jordan/.conan2/p/b/fmtc75dbc04c5faa/b/src/include/fmt/format-inl.h: In constructor 'fmt::v11::detail::file_print_buffer::file_print_buffer(FILE*)':
/home/jordan/.conan2/p/b/fmtc75dbc04c5faa/b/src/include/fmt/format-inl.h:1638:5: error: 'flockfile' was not declared in this scope; did you mean '_flockfile'?
 1638 |     flockfile(f);
      |     ^~~~~~~~~
      |     _flockfile
/home/jordan/.conan2/p/b/fmtc75dbc04c5faa/b/src/include/fmt/format-inl.h: In destructor 'fmt::v11::detail::file_print_buffer::~file_print_buffer()':
/home/jordan/.conan2/p/b/fmtc75dbc04c5faa/b/src/include/fmt/format-inl.h:1646:5: error: 'funlockfile' was not declared in this scope; did you mean '_funlockfile'?
 1646 |     funlockfile(file_);
      |     ^~~~~~~~~~~
      |     _funlockfile

from fmt.

xiyoo0812 avatar xiyoo0812 commented on August 30, 2024

Similarly, it is not possible to build on PS4 and PS5

from fmt.

vitaut avatar vitaut commented on August 30, 2024

Added flockfile detection in 486838f. Note that providing flockfile/funlockfile is a better solution especially on platforms targeted by these C library implementations because it prevents dynamic memory allocations in the common case. It also seems trivial to do since they already have the necessary primitives, they just have wrong names, e.g. __STDIO_LOCK instead of flockfile.

from fmt.

vitaut avatar vitaut commented on August 30, 2024

@glebm could you verify that it fixes the problem on Amiga?

from fmt.

vitaut avatar vitaut commented on August 30, 2024

A more complete fix: 92227c7.

from fmt.

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.