Opened 8 years ago

Last modified 8 years ago

#51796 assigned defect

gcc6 @6.1.0: functional:1726:40: internal compiler error: in assign_temp, at function.c:961

Reported by: noloader (Jeffrey Walton) Owned by: ryandesign (Ryan Carsten Schmidt)
Priority: Normal Milestone:
Component: ports Version: 2.3.4
Keywords: Cc: mww@…
Port: gcc6

Description

I'm working on OS X 10.8.5. The machine has MacPorts 2.3.4 installed.

I'm attempting to compile Jack Lloyd's Botan with GCC 6.1. Botan is a C++ TLS library.

$ ./configure.py --os=darwin --cc=gcc --cpu=x86_64 --cc-bin=/opt/local/bin/g++-mp-6 --cc-abi-flags="-Wa,-q"
   INFO: Platform: OS="Darwin" machine="x86_64" proc="i386"
   INFO: Canonicalizized CPU target x86_64 to x86_64/x86_64
   INFO: Target is gcc-darwin-x86_64-x86_64
   INFO: Skipping, dependency failure - sessions_sqlite3
   INFO: Skipping, incompatible CPU - mp_x86_32 simd_altivec
   INFO: Skipping, incompatible OS - beos_stats cryptoapi_rng win32_stats
   INFO: Skipping, incompatible compiler - mp_x86_32_msvc
   INFO: Skipping, only used if needed or requested - dyn_load mp_generic simd_scalar
   INFO: Skipping, requires external dependency - boost bzip2 lzma openssl pkcs11 sqlite3 tpm zlib
   INFO: Using MP module mp_x86_64
   INFO: Using SIMD module simd_sse2
   INFO: Loading modules adler32 aead aes aes_ni aes_ssse3 aont asn1 auto_rng base base64 bcrypt bigint blake2 block blowfish camellia cascade cast cbc cbc_mac ccm cfb chacha chacha20poly1305 clmul cmac codec_filt comb4p compression crc24 crc32 cryptobox ctr curve25519 darwin_secrandom datastor des dev_random dh dl_algo dl_group dlies dsa eax ec_gfp ec_group ecb ecc_key ecdh ecdsa ecgdsa ecies eckcdsa egd elgamal eme_oaep eme_pkcs1 eme_raw emsa1 emsa_pkcs1 emsa_pssr emsa_raw emsa_x931 entropy fd_unix ffi filters fpe_fe1 gcm gost_28147 gost_3410 gost_3411 has160 hash hash_id hex hkdf hmac hmac_drbg hmac_rng hres_timer http_util idea idea_sse2 if_algo kasumi kdf kdf1 kdf1_iso18033 kdf2 keccak keypair lion locking_allocator mac mars mce mceies md2 md4 md5 mdx_hash mgf1 misty1 mode_pad modes mp mp_x86_64 noekeon noekeon_simd nr numbertheory ocb ofb oid_lookup openpgp par_hash passhash9 pbes2 pbkdf pbkdf1 pbkdf2 pem pk_pad poly1305 prf_tls prf_x942 proc_walk pubkey rc2 rc4 rc5 rc6 rdrand rdseed rfc3394 rfc6979 rmd128 rmd160 rng rsa rw safer salsa20 seed serpent serpent_simd sessions_sql sha1 sha1_sse2 sha2_32 sha2_64 simd simd_sse2 siphash siv skein sp800_108 sp800_56c srp6 stream system_rng tea threefish threefish_avx2 tiger tls tss twofish unix_procs utils whirlpool x509 x919_mac x931_rng xtea xtea_simd xts
   INFO: Assuming CPU is little endian
   INFO: Assuming unaligned memory access works
   INFO: Using symlink to link files into build dir (use --link-method to change)
   INFO: Botan 1.11.31 (unreleased undated) build setup is complete
...

$ make
...

/opt/local/bin/g++-mp-6  -m64 -pthread -fstack-protector -Wa,-q -fPIC -fvisibility=hidden -std=c++11 -D_REENTRANT -O3 -momit-leaf-frame-pointer -Wall -Wextra -Wpedantic -Wshadow -Wstrict-aliasing -Wstrict-overflow=5 -Wcast-align -Wmissing-declarations -Wpointer-arith -Wcast-qual -Wzero-as-null-pointer-constant -Wnon-virtual-dtor -Ibuild/include -c ./src/lib/pubkey/pkcs8.cpp -o build/obj/lib/pubkey_pkcs8.o
In file included from /opt/local/include/gcc6/c++/memory:79:0,
                 from build/include/botan/types.h:16,
                 from build/include/botan/mem_ops.h:11,
                 from build/include/botan/secmem.h:11,
                 from build/include/botan/pk_keys.h:11,
                 from build/include/botan/x509_key.h:11,
                 from build/include/botan/pkcs8.h:11,
                 from ./src/lib/pubkey/pkcs8.cpp:8:
/opt/local/include/gcc6/c++/functional: In static member function 'static _Res std::_Function_handler<_Res(_ArgTypes ...), _Functor>::_M_invoke(const std::_Any_data&, _ArgTypes&& ...) [with _Res = std::__cxx11::basic_string<char>; _Functor = Botan::PKCS8::load_key(Botan::DataSource&, Botan::RandomNumberGenerator&)::<lambda()>; _ArgTypes = {}]':
/opt/local/include/gcc6/c++/functional:1726:40: internal compiler error: in assign_temp, at function.c:961
      std::forward<_ArgTypes>(__args)...);
                                        ^

/opt/local/include/gcc6/c++/functional:1726:40: internal compiler error: Abort trap: 6
g++-mp-6: internal compiler error: Abort trap: 6 (program cc1plus)
Please submit a full bug report,
with preprocessed source if appropriate.
See <https://trac.macports.org/newticket> for instructions.
Makefile:1152: recipe for target 'build/obj/lib/pubkey_pkcs8.o' failed
make: *** [build/obj/lib/pubkey_pkcs8.o] Error 4

Attachments (1)

pubkey_pkcs8.ii.zip (173.5 KB) - added by noloader (Jeffrey Walton) 8 years ago.
Preprocessed pkcs8.cpp using same CXXFLAGS.

Download all attachments as: .zip

Change History (7)

Changed 8 years ago by noloader (Jeffrey Walton)

Attachment: pubkey_pkcs8.ii.zip added

Preprocessed pkcs8.cpp using same CXXFLAGS.

comment:1 Changed 8 years ago by noloader (Jeffrey Walton)

Cc: noloader@… added

Cc Me!

comment:2 Changed 8 years ago by ryandesign (Ryan Carsten Schmidt)

Cc: noloader@… removed
Keywords: gcc6 "internal compiler error" removed
Owner: changed from macports-tickets@… to mww@…
Port: gcc6 added; gcc-mp-6 removed

You could try the gcc7 port instead. If the problem persists with that version of gcc, you could report it to the developers of gcc.

comment:3 in reply to:  2 ; Changed 8 years ago by noloader (Jeffrey Walton)

Replying to ryandesign@…:

You could try the gcc7 port instead. If the problem persists with that version of gcc, you could report it to the developers of gcc.

GCC-7 fails to install (error message below).

The issue was reported to the GCC devs at http://gcc.gnu.org/bugzilla/show_bug.cgi?id=71812.

$ sudo port install gcc7
--->  Computing dependencies for gcc7
Error: Unable to execute port: Can't install libgcc-devel because conflicting ports are active: libgcc

comment:4 Changed 8 years ago by noloader (Jeffrey Walton)

Jakub Jelinek offered http://gcc.gnu.org/bugzilla/show_bug.cgi?id=71210 as a potential dup. It looks like the GCC folks fixed it some time ago.

Thanks to Jelinek for pointing it out.

Last edited 8 years ago by noloader (Jeffrey Walton) (previous) (diff)

comment:5 in reply to:  3 Changed 8 years ago by ryandesign (Ryan Carsten Schmidt)

Replying to noloader@…:

GCC-7 fails to install (error message below).

$ sudo port install gcc7
--->  Computing dependencies for gcc7
Error: Unable to execute port: Can't install libgcc-devel because conflicting ports are active: libgcc

Then sudo port -f deactivate libgcc first.

comment:6 in reply to:  4 Changed 8 years ago by ryandesign (Ryan Carsten Schmidt)

Cc: mww@… added
Owner: changed from mww@… to ryandesign@…
Status: newassigned
Summary: gcc6/c++/functional:1726:40: internal compiler error: in assign_temp, at function.c:961gcc6 @6.1.0: functional:1726:40: internal compiler error: in assign_temp, at function.c:961

Replying to noloader@…:

Jakub Jelinek offered http://gcc.gnu.org/bugzilla/show_bug.cgi?id=71210 as a potential dup. It looks like the GCC folks fixed it some time ago.

Thanks, I'll update the gcc6 port to 6.2.0 soon.

Note: See TracTickets for help on using tickets.