x86_64-pc-linux-gnu-gcc -O2 -march=native -pipe -Wall -I. -DUSE_LIBPCRE1 -DHAVE_ALLOCA_H -DUSE_CURL_FOR_IMAP_SEND -DSHA1_BLK -DHAVE_PATHS_H -DHAVE_DEV_TTY -DHAVE_CLOCK_GETTIME -DHAVE_CLOCK_MONOTONIC -DHAVE_GETDELIM -DFREAD_READS_DIRECTORIES -DNO_STRLCPY -DSHELL_PATH='"/bin/sh"' -DPAGER_ENV='"LESS=FRX LV=-c"' -o git-http-backend -Wl,-O1 -Wl,--as-needed http-backend.o common-main.o libgit.a xdiff/lib.a -lpcre -lz -lpthread -lrt libgit.alibgit.a((grep.ogrep.o)):: InIn functionfunction ``patmatchpatmatch'':: grep.cgrep.c::((..texttext++0x12f90x12f9)):: undefinedundefined referencereference toto ``pcre_jit_execpcre_jit_exec'' collect2: error: ld returned 1 exit status collect2: error: ld returned 1 exit status make: *** [Makefile:2171: git-credential-store] Error 1 make: *** Waiting for unfinished jobs.... make: *** [Makefile:2171: git-fast-import] Error 1 libgit.a(grep.o): In function `patmatch': grep.c:(.text+0x12f9): undefined reference to `pcre_jit_exec' collect2: error: ld returned 1 exit status make: *** [Makefile:2171: git-daemon] Error 1 libgit.a(grep.o): In function `patmatch': grep.c:(.text+0x12f9): undefined reference to `pcre_jit_exec' collect2: error: ld returned 1 exit status make: *** [Makefile:2171: git-http-backend] Error 1 Problem caused by dev-libs/pcre compiled with USE=-jit. Workaround: USE=-pcre for git.
I can confirm this bug: libgit.a(grep.o): In function `patmatch': grep.c:(.text+0x12f9): undefined reference to `pcre_jit_exec'
*** This bug has been marked as a duplicate of bug 627088 ***