Summary: | dev-lang/php-7.1.10 - /bin/sh: line 1: 18178 Illegal instruction (core dumped) | ||
---|---|---|---|
Product: | Gentoo Linux | Reporter: | Juergen Rose <rose> |
Component: | Current packages | Assignee: | PHP Bugs <php-bugs> |
Status: | RESOLVED CANTFIX | ||
Severity: | normal | CC: | flippynelle |
Priority: | Normal | ||
Version: | unspecified | ||
Hardware: | All | ||
OS: | Linux | ||
Whiteboard: | |||
Package list: | Runtime testing required: | --- | |
Attachments: | build.log.bz2 |
Description
Juergen Rose
2017-10-04 09:09:20 UTC
Created attachment 497590 [details]
build.log.bz2
(In reply to Juergen Rose from comment #0) > 'MAKEOPTS=-j1 emerge -v1 php' fails with: > ... > /bin/sh /var/tmp/portage/dev-lang/php-7.1.10/work/sapis-build/cli/libtool > --silent --preserve-dup-deps --mode=link > /var/tmp/portage/dev-lang/php-7.1.10/work/sapis-build/cli/meta_ccld > -export-dynamic -I/usr/include -march=skylake-avx512 -O2 -pipe -pthread > -DZTS -DZEND_SIGNALS -L/usr/lib64/postgresql-10/lib64 -Wl,-O1 > -Wl,--as-needed -R /usr/lib64/postgresql-10/lib64 ext/date/php_date.lo > ext/date/lib/astro.lo ext/date/lib/dow.lo ext/date/lib/parse_date.lo > ext/date/lib/parse_tz.lo ext/date/lib/timelib.lo ext/date/lib/tm2unixtime.lo > ext/date/lib/unixtime2tm.lo ... -lz -llzma -licui18n -licuuc -licudata -lm > -ldl -lxml2 -lz -llzma -licui18n -licuuc -licudata -lm -ldl -lxml2 -lz > -llzma -licui18n -licuuc -licudata -lm -ldl -lcrypt -o sapi/cli/php > Generating phar.php > /bin/sh: line 1: 18178 Illegal instruction (core dumped) ` if test -x Your CFLAGS are incorrect if you have hit SIGILL. > > root@lynx:/root(119)# emerge --info '=dev-lang/php-7.1.10::gentoo' > Portage 2.3.11 (python 3.4.6-final-0, default/linux/amd64/13.0/desktop, > gcc-6.4.0, glibc-2.25-r5, 4.13.4-gentoo x86_64) > ================================================================= > System Settings > ================================================================= > System uname: > Linux-4.13.4-gentoo-x86_64-Intel-R-_Core-TM-_i7-6700HQ_CPU_@_2.60GHz-with- > gentoo-2.4.1 > CFLAGS="-march=skylake-avx512 -O2 -pipe" A Core i7 6700HQ does *not* have AVX512. See: https://ark.intel.com/products/88967 Fix your flags and rebuild binaries. (In reply to Brian Evans from comment #2) > (In reply to Juergen Rose from comment #0) > > 'MAKEOPTS=-j1 emerge -v1 php' fails with: > > ... > > /bin/sh /var/tmp/portage/dev-lang/php-7.1.10/work/sapis-build/cli/libtool > > --silent --preserve-dup-deps --mode=link ... > > Generating phar.php > > /bin/sh: line 1: 18178 Illegal instruction (core dumped) ` if test -x > > Your CFLAGS are incorrect if you have hit SIGILL. > > > > > root@lynx:/root(119)# emerge --info '=dev-lang/php-7.1.10::gentoo' > > Portage 2.3.11 (python 3.4.6-final-0, default/linux/amd64/13.0/desktop, > > gcc-6.4.0, glibc-2.25-r5, 4.13.4-gentoo x86_64) > > ================================================================= > > System Settings > > ================================================================= > > System uname: > > Linux-4.13.4-gentoo-x86_64-Intel-R-_Core-TM-_i7-6700HQ_CPU_@_2.60GHz-with- > > gentoo-2.4.1 > > CFLAGS="-march=skylake-avx512 -O2 -pipe" > > A Core i7 6700HQ does *not* have AVX512. > See: https://ark.intel.com/products/88967 > > Fix your flags and rebuild binaries. Thanks Brian, switching back to CFLAGS="-march=broadwell -O2 -pipe" the issue disappeared. (In reply to Juergen Rose from comment #3) > (In reply to Brian Evans from comment #2) > > (In reply to Juergen Rose from comment #0) > > > 'MAKEOPTS=-j1 emerge -v1 php' fails with: > > > ... > > > /bin/sh /var/tmp/portage/dev-lang/php-7.1.10/work/sapis-build/cli/libtool > > > --silent --preserve-dup-deps --mode=link > ... > > > Generating phar.php > > > /bin/sh: line 1: 18178 Illegal instruction (core dumped) ` if test -x > > > > Your CFLAGS are incorrect if you have hit SIGILL. > > > > > > > > root@lynx:/root(119)# emerge --info '=dev-lang/php-7.1.10::gentoo' > > > Portage 2.3.11 (python 3.4.6-final-0, default/linux/amd64/13.0/desktop, > > > gcc-6.4.0, glibc-2.25-r5, 4.13.4-gentoo x86_64) > > > ================================================================= > > > System Settings > > > ================================================================= > > > System uname: > > > Linux-4.13.4-gentoo-x86_64-Intel-R-_Core-TM-_i7-6700HQ_CPU_@_2.60GHz-with- > > > gentoo-2.4.1 > > > CFLAGS="-march=skylake-avx512 -O2 -pipe" > > > > A Core i7 6700HQ does *not* have AVX512. > > See: https://ark.intel.com/products/88967 > > > > Fix your flags and rebuild binaries. > > Thanks Brian, switching back to > CFLAGS="-march=broadwell -O2 -pipe" > the issue disappeared. You can, today (if you couldn't before), use 'skylake' instead of (the wrong)'skylake-avx512': broadwell Intel Broadwell CPU with 64-bit extensions, MOVBE, MMX, SSE, SSE2, SSE3, SSSE3, SSE4.1, SSE4.2, POPCNT, AVX, AVX2, AES, PCLMUL, FSGSBASE, RDRND, FMA, BMI, BMI2, F16C, RDSEED, ADCX and PREFETCHW instruction set support. skylake Intel Skylake CPU with 64-bit extensions, MOVBE, MMX, SSE, SSE2, SSE3, SSSE3, SSE4.1, SSE4.2, POPCNT, AVX, AVX2, AES, PCLMUL, FSGSBASE, RDRND, FMA, BMI, BMI2, F16C, RDSEED, ADCX, PREFETCHW, CLFLUSHOPT, XSAVEC and XSAVES instruction set support. skylake-avx512 Intel Skylake Server CPU with 64-bit extensions, MOVBE, MMX, SSE, SSE2, SSE3, SSSE3, SSE4.1, SSE4.2, POPCNT, PKU, AVX, AVX2, AES, PCLMUL, FSGSBASE, RDRND, FMA, BMI, BMI2, F16C, RDSEED, ADCX, PREFETCHW, CLFLUSHOPT, XSAVEC, XSAVES, AVX512F, CLWB, AVX512VL, AVX512BW, AVX512DQ and AVX512CD instruction set support. from man 1 gcc # gcc --version gcc (Gentoo 10.2.0-r3 p4) 10.2.0 Why can you? because your CPU seems to be skylake instead of (the crappier)broadwell: Product Collection 6th Generation Intel® Core™ i7 Processors Code Name Products formerly Skylake Vertical Segment Mobile Processor Number i7-6700HQ Status Launched Launch Date Q3'15 Lithography 14 nm skylake has these extra instructions compared to broadwell: CLFLUSHOPT, XSAVEC and XSAVES List of broadwell CPUs (yours isn't listed) is here: https://ark.intel.com/content/www/us/en/ark/products/codename/38530/broadwell.html |