jemalloc / jemalloc

http://jemalloc.net/
Other
9.4k stars 1.44k forks source link

jemalloc build with MSYS #2410

Open ss-torres opened 1 year ago

ss-torres commented 1 year ago

When you build with MSYS using git-bash or msys2, you would always find some errors related to something not found, I have inserted C:\tools\msys64 and C:\tools\msys64\usr\bin to the PATH. Do you check the installation in the Windows10?

ss-torres commented 1 year ago

image image

image image image image image When I used the git-bash, it gave me this result.

ss-torres commented 1 year ago

image image image image image image image image When I used the msys2, it gave me this result. Then I changed the directory to jemalloc, instread of jemalloc\scripts\windows. image image image image

everschen commented 1 year ago

for me, below commands works well.

  1. https://github.com/msys2/msys2-installer/releases/download/2023-07-18/msys2-x86_64-20230718.exe
  2. run: pacman -Syu
  3. run from windows start menu:¡°MSYS2 MSYS¡±¡£then run: pacman -Su
  4. pacman -S --needed base-devel mingw-w64-x86_64-toolchain
  5. run from windows start menu: ¡°MSYS MinGW 64 λ¡±
  6. pacman -S autoconf
  7. ./autogen.sh
  8. make

I don't know where did you get the file before_install.sh, is it not included in repo, right?

evers@DESKTOP-JM0THKA MINGW64 ~/jemalloc-dev //# make install /usr/bin/install -c -d /mingw64/bin /usr/bin/install -c -m 755 bin/jemalloc-config /mingw64/bin /usr/bin/install -c -m 755 bin/jemalloc.sh /mingw64/bin /usr/bin/install -c -m 755 bin/jeprof /mingw64/bin /usr/bin/install -c -d /mingw64/include/jemalloc /usr/bin/install -c -m 644 include/jemalloc/jemalloc.h /mingw64/include/jemalloc /usr/bin/install -c -d /mingw64/lib /usr/bin/install -c -m 755 lib/jemalloc.dll /mingw64/lib /usr/bin/install -c -d /mingw64/lib /usr/bin/install -c -m 755 lib/jemalloc.lib /mingw64/lib /usr/bin/install -c -m 755 lib/jemalloc_s.lib /mingw64/lib /usr/bin/install -c -d /mingw64/lib/pkgconfig /usr/bin/install -c -m 644 jemalloc.pc /mingw64/lib/pkgconfig Missing xsltproc. doc/jemalloc.html not (re)built. /usr/bin/install -c -d /mingw64/share/doc/jemalloc /usr/bin/install -c -m 644 doc/jemalloc.html /mingw64/share/doc/jemalloc Missing xsltproc. doc/jemalloc.3 not (re)built. /usr/bin/install -c -d /mingw64/share/man/man3 /usr/bin/install -c -m 644 doc/jemalloc.3 /mingw64/share/man/man3

evers@DESKTOP-JM0THKA MINGW64 ~/jemalloc-dev //# ls /mingw64 bin etc include lib share x86_64-w64-mingw32

evers@DESKTOP-JM0THKA MINGW64 ~/jemalloc-dev //# history 1 pacman -Su 2 pacman -S --needed base-devel mingw-w64-x86_64-toolchain 3 gcc --version 4 pwd 5 ls 6 ll 7 ls 8 cd jemalloc-dev/ 9 ls 10 ls *.sh 11 ./autogen.sh 12 pacman -S autoconf 13 ./autogen.sh 14 make 15 make install 16 ls /mingw64 17 history