Build PHP7.3 failure.

bibiugly

Verified User
Joined
Apr 9, 2019
Messages
73
Location
Vietnam
Hi, today I open more php4_release = 7.3 . However when I choose to update PHP 7.3 I get the following error:
Code:
//binbin//ldld:: DwarfDwarf ErrorError:: foundfound dwarfdwarf versionversion '5', this reader' 5only' ,handles thisversion reader2 ,only 3handles andversion 42 ,information.
3ext /andintl /4breakiterator /information..
libsext//rulebasedbreakiterator_methods.ointl/breakiterator:/ .Inlibs /functionrulebasedbreakiterator_methods.o :` zif_rbbi_get_rule_status_vec.coldIn' :function
rulebasedbreakiterator_methods.cpp`:zif_rbbi_get_rule_status_vec.cold('.:text.unlikely
+rulebasedbreakiterator_methods.cpp0x2e:)(:. text.unlikelyundefined+ 0x2ereference) :to undefined` __cxa_throw_bad_array_new_lengthreference'
to `__cxa_throw_bad_array_new_length'
collect2: error: ld returned 1 exit status
collect2: error: ld returned 1 exit status
make: *** [sapi/litespeed/php] Error 1
make: *** Waiting for unfinished jobs....
make: *** [sapi/cgi/php-cgi] Error 1
/bin/ld: Dwarf Error: found dwarf version '5', this reader only handles version 2, 3 and 4 information.
ext/intl/breakiterator/.libs/rulebasedbreakiterator_methods.o: In function `zif_rbbi_get_rule_status_vec.cold':
rulebasedbreakiterator_methods.cpp:(.text.unlikely+0x2e): undefined reference to `__cxa_throw_bad_array_new_length'
collect2: error: ld returned 1 exit status
make: *** [sapi/cli/php] Error 1
/bin/ld: Dwarf Error: found dwarf version '5', this reader only handles version 2, 3 and 4 information.
ext/intl/breakiterator/.libs/rulebasedbreakiterator_methods.o: In function `zif_rbbi_get_rule_status_vec.cold':
rulebasedbreakiterator_methods.cpp:(.text.unlikely+0x2e): undefined reference to `__cxa_throw_bad_array_new_length'
collect2: error: ld returned 1 exit status
make: *** [sapi/phpdbg/phpdbg] Error 1
/bin/ld: Dwarf Error: found dwarf version '5', this reader only handles version 2, 3 and 4 information.
ext/intl/breakiterator/.libs/rulebasedbreakiterator_methods.o: In function `zif_rbbi_get_rule_status_vec.cold':
rulebasedbreakiterator_methods.cpp:(.text.unlikely+0x2e): undefined reference to `__cxa_throw_bad_array_new_length'
collect2: error: ld returned 1 exit status
make: *** [sapi/fpm/php-fpm] Error 1
Done!
Other versions that have been installed before, can be updated successfully.
Hope you guys can give me a solution to this problem. Thank you very much.
 

Attachments

  • Screen Shot 2021-08-07 at 9.35.10 AM.png
    Screen Shot 2021-08-07 at 9.35.10 AM.png
    266.3 KB · Views: 221
  • Screen Shot 2021-08-07 at 9.38.30 AM.png
    Screen Shot 2021-08-07 at 9.38.30 AM.png
    184.9 KB · Views: 152
I think I found the problem, maybe because I installed a new version of GCC:
Code:
[root@hv10 lib64]# gcc -v
Using built-in specs.
COLLECT_GCC=gcc
COLLECT_LTO_WRAPPER=/usr/local/libexec/gcc/x86_64-pc-linux-gnu/11.1.0/lto-wrapper
Target: x86_64-pc-linux-gnu
Configured with: ./configure --disable-multilib --enable-languages=c,c++
Thread model: posix
Supported LTO compression algorithms: zlib zstd
gcc version 11.1.0 (GCC)
[root@hv10 lib64]#
 
Thinking you installed too new a version of GCC, there is a breaking change in GCC 11. They changed the Dwarf debugging to version 5. Would be easier to downgrade your GCC version.

I see GCC has the following instructions: "To make GCC 11 generate an older DWARF version use -g together with -gdwarf-2, -gdwarf-3 or -gdwarf-4." But I don't know how to do it, I have also searched but no results. If you know how to do it please help me.
 
It would bet better to downgrade your GCC version, as you may run into more regressions. Otherwise if you have support you can open a support ticket and see if they will add support for GCC 11.
 
Back
Top