Giter VIP home page Giter VIP logo

Comments (12)

cfvescovo avatar cfvescovo commented on June 11, 2024

Same issue on x86_64 GNU/Linux (GCC). See purpleprotocol/mimalloc_rust#111

from mimalloc.

Vascom avatar Vascom commented on June 11, 2024

Same issue on x86_64 GNU/Linux (GCC). See purpleprotocol/mimalloc_rust#111

In my case other arches built successfully https://koji.fedoraproject.org/koji/taskinfo?taskID=116804025

from mimalloc.

cfvescovo avatar cfvescovo commented on June 11, 2024

My build logs

> [build 6/7] RUN cargo build --locked --release:
12.70   cargo:warning=  240 |   return (uintptr_t)__builtin_thread_pointer();
12.70   cargo:warning=      |                     ^~~~~~~~~~~~~~~~~~~~~~~~~~
12.70 
12.70   --- stderr
12.70 
12.70 
12.70   error occurred: Command "cc" "-O3" "-ffunction-sections" "-fdata-sections" "-fPIC" "-m64" "-I" "c_src/mimalloc/include" "-I" "c_src/mimalloc/src" "-Wall" "-Wextra" "-ftls-model=initial-exec" "-DMI_DEBUG=0" "-o" "/app/target/release/build/libmimalloc-sys-9bc557761968b710/out/98cfcaec7182b1d8-static.o" "-c" "c_src/mimalloc/src/static.c" with args cc did not execute successfully (status code exit status: 1).

from mimalloc.

cfvescovo avatar cfvescovo commented on June 11, 2024

Will give more verbose output ASAP

from mimalloc.

cfvescovo avatar cfvescovo commented on June 11, 2024

I got it to work by changing the distro I am using for my containers. I switched from debian bullseye to ubuntu latest (LTS). However, I did not investigate further.

from mimalloc.

daanx avatar daanx commented on June 11, 2024

ah, that is a shame. I wonder what goes wrong since the check:

// Do we have __builtin_thread_pointer? (do not make this a compound test as it fails on older gcc's, see issue #851)
#if defined(__has_builtin)
#if __has_builtin(__builtin_thread_pointer)
#define MI_HAS_BUILTIN_THREAD_POINTER  1
#endif
#elif defined(__GNUC__) && (__GNUC__ >= 7) && defined(__aarch64__)  // special case aarch64 for older gcc versions (issue #851)
#define MI_HAS_BUILTIN_THREAD_POINTER  1
#endif

seems to correctly test if __builtin_thread_pointer exists?

I think I will switch the default to prefer the TLS slot assembly after all and fall back to __builtin_thread_pointer otherwise.

from mimalloc.

daanx avatar daanx commented on June 11, 2024

I just pushed a potential fix to dev and dev-slice. If this fixes the build issues I will update the release soon. Please test if you can.

from mimalloc.

Vascom avatar Vascom commented on June 11, 2024

This patch not fixed ppc64le build. Error is the same.
I mean 146f9d2

from mimalloc.

daanx avatar daanx commented on June 11, 2024

This patch not fixed ppc64le build. Error is the same. I mean 146f9d2

Darn -- it looks like we cannot check for __builtin_thread_pointer reliably. Maybe we should only enable it for platforms that we explicitly tested for :-(

from mimalloc.

daanx avatar daanx commented on June 11, 2024

@Vascom, I hope the latest commits fix the build issues now. fingers crossed.
(At some point I would like to figure out though why the is_builtin tests are positive even though the builtin is not actually supported? )

from mimalloc.

hpreusse avatar hpreusse commented on June 11, 2024

Same here for ppc64el, hppa, ia64, m68k, powerpc, ppc64, sparc64. See build server of Debian. I'll try your commit ASAP.

from mimalloc.

hpreusse avatar hpreusse commented on June 11, 2024

I can confirm that adding the two commits cc3c14f and 146f9d2 solved the build issue for me.

from mimalloc.

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.