Search Support

Avoid support scams. We will never ask you to call or text a phone number or share personal information. Please report suspicious activity using the “Report Abuse” option.

Learn More

"configure: error: cannot determine icu version number from uvernum.h header file" when try to configure SpiderMonkey

  • 2 replies
  • 1 has this problem
  • 72 views
  • Paskiausią atsakymą parašė thedinosaurmail

more options

Hi, whenever I try to compile the SpiderMonkey I get an error:

configure:15502: gcc -o conftest -Wall -Wsign-compare -Wtype-limits -Wno-unused -Wcast-align -std=gnu99 -fgnu89-inline -fno-math-errno -pthread -pipe -lpthread -Wl,-z,noexecstack -Wl,-z,text -Wl,--build-id -B /home/sourav/Downloads/js/mozjs-45.0.2/js/src/build_OPT.OBJ/build/unix/gold conftest.c -lm -ldl 1>&5 configure:15470: checking for posix_fallocate configure:15502: gcc -o conftest -Wall -Wsign-compare -Wtype-limits -Wno-unused -Wcast-align -std=gnu99 -fgnu89-inline -fno-math-errno -pthread -pipe -lpthread -Wl,-z,noexecstack -Wl,-z,text -Wl,--build-id -B /home/sourav/Downloads/js/mozjs-45.0.2/js/src/build_OPT.OBJ/build/unix/gold conftest.c -lm -ldl 1>&5 configure: error: cannot determine icu version number from uvernum.h header file

System (cat /proc/version): Linux version 5.3.7-arch1-2-ARCH (linux@archlinux) (gcc version 9.2.0 (GCC)) #1 SMP PREEMPT @1572002934

ICU Version (icu-config --version): 64.0

Hi, whenever I try to compile the SpiderMonkey I get an error: configure:15502: gcc -o conftest -Wall -Wsign-compare -Wtype-limits -Wno-unused -Wcast-align -std=gnu99 -fgnu89-inline -fno-math-errno -pthread -pipe -lpthread -Wl,-z,noexecstack -Wl,-z,text -Wl,--build-id -B /home/sourav/Downloads/js/mozjs-45.0.2/js/src/build_OPT.OBJ/build/unix/gold conftest.c -lm -ldl 1>&5 configure:15470: checking for posix_fallocate configure:15502: gcc -o conftest -Wall -Wsign-compare -Wtype-limits -Wno-unused -Wcast-align -std=gnu99 -fgnu89-inline -fno-math-errno -pthread -pipe -lpthread -Wl,-z,noexecstack -Wl,-z,text -Wl,--build-id -B /home/sourav/Downloads/js/mozjs-45.0.2/js/src/build_OPT.OBJ/build/unix/gold conftest.c -lm -ldl 1>&5 configure: error: cannot determine icu version number from uvernum.h header file System (cat /proc/version): Linux version 5.3.7-arch1-2-ARCH (linux@archlinux) (gcc version 9.2.0 (GCC)) #1 SMP PREEMPT @1572002934 ICU Version (icu-config --version): 64.0

Chosen solution

Downloaded version 45.0.2.

That was an Error on line 15,810: version=`sed -n 's/^[:space:]*#[[:space:]]*define[[:space:]][[:space:]]*U_ICU_VERSION_MAJOR_NUM[[:space:]][[:space:]]*\([0-9][0-9]*\)[[:space:]]*$/\1/p' "$icudir/common/unicode/uvernum.h"`

The sed expression should be [[:space:]] instead of [:space:]

Thanks, it's now working after editing the line.

Skaityti atsakymą kartu su kontekstu 👍 0

All Replies (2)

more options

Chosen Solution

Downloaded version 45.0.2.

That was an Error on line 15,810: version=`sed -n 's/^[:space:]*#[[:space:]]*define[[:space:]][[:space:]]*U_ICU_VERSION_MAJOR_NUM[[:space:]][[:space:]]*\([0-9][0-9]*\)[[:space:]]*$/\1/p' "$icudir/common/unicode/uvernum.h"`

The sed expression should be [[:space:]] instead of [:space:]

Thanks, it's now working after editing the line.

Modified by Sourav

more options

thx,it help me