Opened 6 years ago

Closed 6 years ago

Last modified 6 years ago

#55872 closed defect (invalid)

gcc7 @7.3.0: Selftests fail with "Illegal instruction: 4"

Reported by: chucko58 (Chuck Fry) Owned by:
Priority: Normal Milestone:
Component: ports Version: 2.4.2
Keywords: sierra x86_64 Cc:
Port: gcc7

Description

'port install gcc7' fails repeatably on this MacBook Pro running macOS 10.12.6. The failure appears to be in the selftests. This copy of MacPorts was built w/o sysadmin privileges, and we are running some funky security stuff here, so this may be unique to our configuration.

The complete build log (with tracing enabled) is attached as a gzipped file. The key part of the log:

:info:build /Users/cfry/var/macports/build/_Users_cfry_var_macports_sources_rsync.macports.org_release_tarballs_ports_lang_gcc7/gcc7/work/build/./gcc/xgcc -B/Users/cfry/var/macports/build/_Users_cfry_var_macports_sources_rsync.macports.org_release_tarballs_ports_lang_gcc7/gcc7/work/build/./gcc/ -nostdinc -x c /dev/null -S -o /dev/null -fself-test=/Users/cfry/var/macports/build/_Users_cfry_var_macports_sources_rsync.macports.org_release_tarballs_ports_lang_gcc7/gcc7/work/gcc-7.3.0/gcc/testsuite/selftests
:info:build <built-in>: internal compiler error: Illegal instruction: 4
:info:build libbacktrace could not find executable to open
:info:build Please submit a full bug report,
:info:build with preprocessed source if appropriate.
:info:build See <https://trac.macports.org/newticket> for instructions.
:info:build make[3]: *** [s-selftest] Error 1
:info:build make[3]: Leaving directory `/Users/cfry/var/macports/build/_Users_cfry_var_macports_sources_rsync.macports.org_release_tarballs_ports_lang_gcc7/gcc7/work/build/gcc'
:info:build make[2]: *** [all-stage1-gcc] Error 2
:info:build make[2]: Leaving directory `/Users/cfry/var/macports/build/_Users_cfry_var_macports_sources_rsync.macports.org_release_tarballs_ports_lang_gcc7/gcc7/work/build'
:info:build make[1]: *** [stage1-bubble] Error 2
:info:build make[1]: Leaving directory `/Users/cfry/var/macports/build/_Users_cfry_var_macports_sources_rsync.macports.org_release_tarballs_ports_lang_gcc7/gcc7/work/build'
:info:build make: *** [bootstrap-lean] Error 2
:info:build make: Leaving directory `/Users/cfry/var/macports/build/_Users_cfry_var_macports_sources_rsync.macports.org_release_tarballs_ports_lang_gcc7/gcc7/work/build'
:info:build Command failed:  cd "/Users/cfry/var/macports/build/_Users_cfry_var_macports_sources_rsync.macports.org_release_tarballs_ports_lang_gcc7/gcc7/work/build" && /usr/bin/make -j4 -w bootstrap-lean 
:info:build Exit code: 2

Attachments (1)

mp_gcc7_main.log.gz (503.0 KB) - added by chucko58 (Chuck Fry) 6 years ago.
Gzipped log of the gcc7 build, with tracing enabled.

Download all attachments as: .zip

Change History (5)

Changed 6 years ago by chucko58 (Chuck Fry)

Attachment: mp_gcc7_main.log.gz added

Gzipped log of the gcc7 build, with tracing enabled.

comment:1 Changed 6 years ago by chucko58 (Chuck Fry)

We have an old version of XCode installed on this machine. I am going to pursue updating it with our local system support people.

razor:~ cfry$ clang --version
Apple LLVM version 8.0.0 (clang-800.0.38)
Target: x86_64-apple-darwin16.7.0
Thread model: posix
InstalledDir: /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin
razor:~ cfry$ 

comment:2 Changed 6 years ago by kencu (Ken)

Apparently that error indicates your processor is trying to run instructions that it can't understand:

<https://stackoverflow.com/questions/14268887/what-is-the-illegal-instruction-4-error-and-why-does-mmacosx-version-min-10>

Some instruction set has become enabled that your processor is not able to run, some linked library like gmp built on another processor but moved onto your machine somehow, some misconfiguration in mmacosx-version-min, etc?

Last edited 6 years ago by kencu (Ken) (previous) (diff)

comment:3 Changed 6 years ago by chucko58 (Chuck Fry)

The problem apparently resulted from restoring a copy of MacPorts from a backup of a 2015 MacBook Pro to a 2010 model. Rebuilding from scratch resolved the issue. Please close this ticket as invalid.

comment:4 Changed 6 years ago by kencu (Ken)

Resolution: invalid
Status: newclosed
Note: See TracTickets for help on using tickets.