[MacPorts] #60091: i686-w64-mingw32-gcc-nothreads build failure - Segmentation fault
MacPorts
noreply at macports.org
Sat Feb 15 12:50:07 UTC 2020
#60091: i686-w64-mingw32-gcc-nothreads build failure - Segmentation fault
-----------------------------------+----------------------
Reporter: mmaenz | Owner: mojca
Type: defect | Status: assigned
Priority: Normal | Milestone:
Component: ports | Version: 2.6.2
Resolution: | Keywords: catalina
Port: i686-w64-mingw32-gcc |
-----------------------------------+----------------------
Comment (by mmaenz):
What I did:
{{{
% sudo port install -s i686-w64-mingw32-gcc-bootstrap
---> Computing dependencies for i686-w64-mingw32-gcc-bootstrap
---> Fetching distfiles for i686-w64-mingw32-gcc-bootstrap
---> Verifying checksums for i686-w64-mingw32-gcc-bootstrap
---> Extracting i686-w64-mingw32-gcc-bootstrap
---> Applying patches to i686-w64-mingw32-gcc-bootstrap
---> Configuring i686-w64-mingw32-gcc-bootstrap
---> Building i686-w64-mingw32-gcc-bootstrap
---> Staging i686-w64-mingw32-gcc-bootstrap into destroot
Warning: i686-w64-mingw32-gcc-bootstrap installs files outside the common
directory structure.
---> Installing i686-w64-mingw32-gcc-bootstrap @9.2.0_2
---> Activating i686-w64-mingw32-gcc-bootstrap @9.2.0_2
---> Cleaning i686-w64-mingw32-gcc-bootstrap
---> Scanning binaries for linking errors
---> No broken files found.
---> No broken ports found.
}}}
/opt/local/var/macports/sources/rsync.macports.org/macports/release/tarballs/ports/cross/i686-w64-mingw32-gcc/Portfile
{{{
# -*- coding: utf-8; mode: tcl; tab-width: 4; indent-tabs-mode: nil; c
-basic-offset: 4 -*- vim:fenc=utf-8:ft=tcl:et:sw=4:ts=4:sts=4
PortSystem 1.0
PortGroup crossgcc 1.0
# keep in sync with x86_64-w64-mingw32-gcc
set mingw_name w64-mingw32
set mingw_arch i686
set mingw_target ${mingw_arch}-${mingw_name}
crossgcc.setup ${mingw_target} 9.2.0
crossgcc.languages {c c++ fortran objc obj-c++}
dist_subdir gcc[lindex [split ${version} .] 0]
revision 2
maintainers {mojca @mojca} openmaintainer
# these are build + runtime dependencies
# (binutils are already added by the portgroup)
depends_lib-append port:${mingw_target}-headers
# not sure if useful:
# port:cloog
# port:ppl
patchfiles-append notparallel-install-headers.patch
configure.args-replace \
--enable-multilib \
--disable-multilib
configure.args-append \
--enable-shared \
--with-dwarf \
--enable-fully-dynamic-string \
--enable-libssp \
--enable-lto
configure.cflags-append \
-fno-stack-check
# not sure if useful:
# --with-cloog=${prefix}
# --with-ppl=${prefix}
# TODO:
# --enable-version-specific-runtime-libs
# Installs libgcc/libstdc++ and other target support libraries in
such a
# way that multiple GCC installs can coexist simultaneously.
# (add once you have the default working as it needs some extra
tweaking)
# First bootstrapping phase
subport ${mingw_target}-gcc-bootstrap {
build.target all-gcc
destroot.target install-gcc
}
# Second bootstrapping phase
subport ${mingw_target}-gcc-nothreads {
# these two are not needed since we are not yet requesting posix
threads
# build.target all-target-libgcc
# destroot.target install-target-libgcc
depends_lib-append port:${mingw_target}-crt
depends_build-append bin:${mingw_target}-gcc:${mingw_target}-gcc-
bootstrap
}
# Final phase
if {${subport} eq ${name}} {
depends_lib-append port:${mingw_target}-crt \
port:${mingw_target}-winpthreads
depends_build-append
path:${mingw_target}/lib/libgcc_s.a:${mingw_target}-gcc-nothreads
configure.args-append --enable-threads=posix \
--enable-libgomp
notes "
If you want your MinGW-generated windows binaries to work under
wine out-of-the-box
(and they are not statically linked), you can instruct wine
to automatically search for dll-s by running:
wine regedit
Nagivate to:
\[HKEY_LOCAL_MACHINE\\System\\CurrentControlSet\\Control\\Session
Manager\\Environment\]
or
\[HKEY_CURRENT_USER\\Environment\]
and add
Z:[string map {/ \\} ${prefix}]\\${mingw_target}\\bin
to the 'PATH' variable.
"
} else {
livecheck.type none
}
if {${subport} ne "${name}-bootstrap"} {
post-destroot {
move {*}[glob ${destroot}${prefix}/${mingw_target}/lib/*.dll] \
${destroot}${prefix}/${mingw_target}/bin
}
pre-activate {
foreach flavour {gcc-bootstrap gcc-nothreads gcc} {
set gcc ${mingw_target}-${flavour}
if {![catch {set installed [lindex [registry_active ${gcc}]
0]}]} {
registry_deactivate_composite ${gcc} "" [list
ports_nodepcheck 1]
}
}
}
}
}}}
Result:
{{{
% sudo port install i686-w64-mingw32-gcc
Password:
---> Computing dependencies for i686-w64-mingw32-gcc
The following dependencies will be installed:
i686-w64-mingw32-gcc-nothreads
i686-w64-mingw32-winpthreads
x86_64-w64-mingw32-crt
Continue? [Y/n]: Y
Portfile changed since last build; discarding previous state.
---> Fetching archive for i686-w64-mingw32-gcc-nothreads
---> Attempting to fetch i686-w64-mingw32-gcc-
nothreads-9.2.0_2.darwin_19.x86_64.tbz2 from
https://packages.macports.org/i686-w64-mingw32-gcc-nothreads
---> Attempting to fetch i686-w64-mingw32-gcc-
nothreads-9.2.0_2.darwin_19.x86_64.tbz2 from
http://nue.de.packages.macports.org/i686-w64-mingw32-gcc-nothreads
---> Attempting to fetch i686-w64-mingw32-gcc-
nothreads-9.2.0_2.darwin_19.x86_64.tbz2 from
http://lil.fr.packages.macports.org/i686-w64-mingw32-gcc-nothreads
---> Fetching distfiles for i686-w64-mingw32-gcc-nothreads
---> Verifying checksums for i686-w64-mingw32-gcc-nothreads
---> Extracting i686-w64-mingw32-gcc-nothreads
---> Applying patches to i686-w64-mingw32-gcc-nothreads
---> Configuring i686-w64-mingw32-gcc-nothreads
---> Building i686-w64-mingw32-gcc-nothreads
Error: Failed to build i686-w64-mingw32-gcc-nothreads: command execution
failed
Error: See
/opt/local/var/macports/logs/_opt_local_var_macports_sources_rsync.macports.org_macports_release_tarballs_ports_cross_i686-w64-mingw32-gcc/i686-w64-mingw32
-gcc-nothreads/main.log for details.
Error: Follow https://guide.macports.org/#project.tickets to report a bug.
Error: Processing of port i686-w64-mingw32-gcc failed
}}}
Logfile:
{{{
:info:build libtool: compile:
/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_macports_release_tarballs_ports_cross_i686-w64-mingw32-gcc/i686-w64-mingw32
-gcc-nothreads/work/build/./gcc/xgcc
-B/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_macports_release_tarballs_ports_cross_i686-w64-mingw32-gcc/i686-w64-mingw32
-gcc-nothreads/work/build/./gcc/ -L/opt/local/i686-w64-mingw32/lib
-L/opt/local/mingw/lib -isystem /opt/local/i686-w64-mingw32/include
-isystem /opt/local/mingw/include -B/opt/local/i686-w64-mingw32/bin/
-B/opt/local/i686-w64-mingw32/lib/ -isystem
/opt/local/i686-w64-mingw32/include -isystem /opt/local/i686-w64-mingw32
/sys-include -DHAVE_CONFIG_H -I.
-I/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_macports_release_tarballs_ports_cross_i686-w64-mingw32-gcc/i686-w64-mingw32
-gcc-nothreads/work/gcc-9.2.0/libgfortran
-iquote/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_macports_release_tarballs_ports_cross_i686-w64-mingw32-gcc/i686-w64-mingw32
-gcc-nothreads/work/gcc-9.2.0/libgfortran/io
-I/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_macports_release_tarballs_ports_cross_i686-w64-mingw32-gcc/i686-w64-mingw32
-gcc-nothreads/work/gcc-9.2.0/libgfortran/../gcc
-I/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_macports_release_tarballs_ports_cross_i686-w64-mingw32-gcc/i686-w64-mingw32
-gcc-nothreads/work/gcc-9.2.0/libgfortran/../gcc/config
-I/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_macports_release_tarballs_ports_cross_i686-w64-mingw32-gcc/i686-w64-mingw32
-gcc-nothreads/work/gcc-9.2.0/libgfortran/../libquadmath -I../.././gcc
-I/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_macports_release_tarballs_ports_cross_i686-w64-mingw32-gcc/i686-w64-mingw32
-gcc-nothreads/work/gcc-9.2.0/libgfortran/../libgcc -I../libgcc
-I/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_macports_release_tarballs_ports_cross_i686-w64-mingw32-gcc/i686-w64-mingw32
-gcc-nothreads/work/gcc-9.2.0/libgfortran/../libbacktrace
-I../libbacktrace -I../libbacktrace -std=gnu11 -Wall -Wstrict-prototypes
-Wmissing-prototypes -Wold-style-definition -Wextra -Wwrite-strings
-Werror=implicit-function-declaration -Werror=vla -fcx-fortran-rules
-ffunction-sections -fdata-sections -g -O2 -MT norm2_r4.lo -MD -MP -MF
.deps/norm2_r4.Tpo -c
/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_macports_release_tarballs_ports_cross_i686-w64-mingw32-gcc/i686-w64-mingw32
-gcc-nothreads/work/gcc-9.2.0/libgfortran/generated/norm2_r4.c
-DDLL_EXPORT -DPIC -o .libs/norm2_r4.o
:info:build libtool: compile:
/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_macports_release_tarballs_ports_cross_i686-w64-mingw32-gcc/i686-w64-mingw32
-gcc-nothreads/work/build/./gcc/xgcc
-B/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_macports_release_tarballs_ports_cross_i686-w64-mingw32-gcc/i686-w64-mingw32
-gcc-nothreads/work/build/./gcc/ -L/opt/local/i686-w64-mingw32/lib
-L/opt/local/mingw/lib -isystem /opt/local/i686-w64-mingw32/include
-isystem /opt/local/mingw/include -B/opt/local/i686-w64-mingw32/bin/
-B/opt/local/i686-w64-mingw32/lib/ -isystem
/opt/local/i686-w64-mingw32/include -isystem /opt/local/i686-w64-mingw32
/sys-include -DHAVE_CONFIG_H -I.
-I/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_macports_release_tarballs_ports_cross_i686-w64-mingw32-gcc/i686-w64-mingw32
-gcc-nothreads/work/gcc-9.2.0/libgfortran
-iquote/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_macports_release_tarballs_ports_cross_i686-w64-mingw32-gcc/i686-w64-mingw32
-gcc-nothreads/work/gcc-9.2.0/libgfortran/io
-I/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_macports_release_tarballs_ports_cross_i686-w64-mingw32-gcc/i686-w64-mingw32
-gcc-nothreads/work/gcc-9.2.0/libgfortran/../gcc
-I/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_macports_release_tarballs_ports_cross_i686-w64-mingw32-gcc/i686-w64-mingw32
-gcc-nothreads/work/gcc-9.2.0/libgfortran/../gcc/config
-I/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_macports_release_tarballs_ports_cross_i686-w64-mingw32-gcc/i686-w64-mingw32
-gcc-nothreads/work/gcc-9.2.0/libgfortran/../libquadmath -I../.././gcc
-I/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_macports_release_tarballs_ports_cross_i686-w64-mingw32-gcc/i686-w64-mingw32
-gcc-nothreads/work/gcc-9.2.0/libgfortran/../libgcc -I../libgcc
-I/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_macports_release_tarballs_ports_cross_i686-w64-mingw32-gcc/i686-w64-mingw32
-gcc-nothreads/work/gcc-9.2.0/libgfortran/../libbacktrace
-I../libbacktrace -I../libbacktrace -std=gnu11 -Wall -Wstrict-prototypes
-Wmissing-prototypes -Wold-style-definition -Wextra -Wwrite-strings
-Werror=implicit-function-declaration -Werror=vla -fcx-fortran-rules
-ffunction-sections -fdata-sections -g -O2 -MT norm2_r8.lo -MD -MP -MF
.deps/norm2_r8.Tpo -c
/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_macports_release_tarballs_ports_cross_i686-w64-mingw32-gcc/i686-w64-mingw32
-gcc-nothreads/work/gcc-9.2.0/libgfortran/generated/norm2_r8.c
-DDLL_EXPORT -DPIC -o .libs/norm2_r8.o
:info:build during GIMPLE pass: ccp
:info:build
/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_macports_release_tarballs_ports_cross_i686-w64-mingw32-gcc/i686-w64-mingw32
-gcc-nothreads/work/gcc-9.2.0/libgfortran/generated/norm2_r8.c: In
function ‘norm2_r8’:
:info:build
/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_macports_release_tarballs_ports_cross_i686-w64-mingw32-gcc/i686-w64-mingw32
-gcc-nothreads/work/gcc-9.2.0/libgfortran/generated/norm2_r8.c:213:1:
internal compiler error: Segmentation fault: 11
:info:build 213 | }
:info:build | ^
: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://gcc.gnu.org/bugs/> for instructions.
:info:build during GIMPLE pass: ccp
:info:build
/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_macports_release_tarballs_ports_cross_i686-w64-mingw32-gcc/i686-w64-mingw32
-gcc-nothreads/work/gcc-9.2.0/libgfortran/generated/norm2_r4.c: In
function ‘norm2_r4’:
:info:build
/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_macports_release_tarballs_ports_cross_i686-w64-mingw32-gcc/i686-w64-mingw32
-gcc-nothreads/work/gcc-9.2.0/libgfortran/generated/norm2_r4.c:213:1:
internal compiler error: Segmentation fault: 11
:info:build 213 | }
:info:build | ^
: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://gcc.gnu.org/bugs/> for instructions.
:info:build make[3]: *** [norm2_r4.lo] Error 1
:info:build make[3]: *** Waiting for unfinished jobs....
:info:build make[3]: *** [norm2_r8.lo] Error 1
:info:build libtool: compile:
/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_macports_release_tarballs_ports_cross_i686-w64-mingw32-gcc/i686-w64-mingw32
-gcc-nothreads/work/build/./gcc/xgcc
-B/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_macports_release_tarballs_ports_cross_i686-w64-mingw32-gcc/i686-w64-mingw32
-gcc-nothreads/work/build/./gcc/ -L/opt/local/i686-w64-mingw32/lib
-L/opt/local/mingw/lib -isystem /opt/local/i686-w64-mingw32/include
-isystem /opt/local/mingw/include -B/opt/local/i686-w64-mingw32/bin/
-B/opt/local/i686-w64-mingw32/lib/ -isystem
/opt/local/i686-w64-mingw32/include -isystem /opt/local/i686-w64-mingw32
/sys-include -DHAVE_CONFIG_H -I.
-I/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_macports_release_tarballs_ports_cross_i686-w64-mingw32-gcc/i686-w64-mingw32
-gcc-nothreads/work/gcc-9.2.0/libgfortran
-iquote/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_macports_release_tarballs_ports_cross_i686-w64-mingw32-gcc/i686-w64-mingw32
-gcc-nothreads/work/gcc-9.2.0/libgfortran/io
-I/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_macports_release_tarballs_ports_cross_i686-w64-mingw32-gcc/i686-w64-mingw32
-gcc-nothreads/work/gcc-9.2.0/libgfortran/../gcc
-I/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_macports_release_tarballs_ports_cross_i686-w64-mingw32-gcc/i686-w64-mingw32
-gcc-nothreads/work/gcc-9.2.0/libgfortran/../gcc/config
-I/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_macports_release_tarballs_ports_cross_i686-w64-mingw32-gcc/i686-w64-mingw32
-gcc-nothreads/work/gcc-9.2.0/libgfortran/../libquadmath -I../.././gcc
-I/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_macports_release_tarballs_ports_cross_i686-w64-mingw32-gcc/i686-w64-mingw32
-gcc-nothreads/work/gcc-9.2.0/libgfortran/../libgcc -I../libgcc
-I/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_macports_release_tarballs_ports_cross_i686-w64-mingw32-gcc/i686-w64-mingw32
-gcc-nothreads/work/gcc-9.2.0/libgfortran/../libbacktrace
-I../libbacktrace -I../libbacktrace -std=gnu11 -Wall -Wstrict-prototypes
-Wmissing-prototypes -Wold-style-definition -Wextra -Wwrite-strings
-Werror=implicit-function-declaration -Werror=vla -fcx-fortran-rules
-ffunction-sections -fdata-sections -g -O2 -MT iparity_i16.lo -MD -MP -MF
.deps/iparity_i16.Tpo -c
/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_macports_release_tarballs_ports_cross_i686-w64-mingw32-gcc/i686-w64-mingw32
-gcc-nothreads/work/gcc-9.2.0/libgfortran/generated/iparity_i16.c -o
iparity_i16.o >/dev/null 2>&1
:info:build mv -f .deps/iparity_i16.Tpo .deps/iparity_i16.Plo
:info:build mv -f .deps/iparity_i8.Tpo .deps/iparity_i8.Plo
:info:build make[3]: Leaving directory
`/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_macports_release_tarballs_ports_cross_i686-w64-mingw32-gcc/i686-w64-mingw32
-gcc-nothreads/work/build/i686-w64-mingw32/libgfortran'
:info:build make[2]: *** [all] Error 2
:info:build make[2]: Leaving directory
`/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_macports_release_tarballs_ports_cross_i686-w64-mingw32-gcc/i686-w64-mingw32
-gcc-nothreads/work/build/i686-w64-mingw32/libgfortran'
:info:build make[1]: *** [all-target-libgfortran] Error 2
:info:build make[1]: Leaving directory
`/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_macports_release_tarballs_ports_cross_i686-w64-mingw32-gcc/i686-w64-mingw32
-gcc-nothreads/work/build'
:info:build make: *** [all] Error 2
:info:build make: Leaving directory
`/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_macports_release_tarballs_ports_cross_i686-w64-mingw32-gcc/i686-w64-mingw32
-gcc-nothreads/work/build'
:info:build Command failed: cd
"/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_macports_release_tarballs_ports_cross_i686-w64-mingw32-gcc/i686-w64-mingw32
-gcc-nothreads/work/build" && /usr/bin/make -j4 -w all
:info:build Exit code: 2
:error:build Failed to build i686-w64-mingw32-gcc-nothreads: command
execution failed
:debug:build Error code: CHILDSTATUS 9339 2
:debug:build Backtrace: command execution failed
:debug:build while executing
:debug:build "system {*}$notty {*}$nice $fullcmdstring"
:debug:build invoked from within
:debug:build "command_exec build"
:debug:build (procedure "portbuild::build_main" line 8)
:debug:build invoked from within
:debug:build "$procedure $targetname"
:error:build See
/opt/local/var/macports/logs/_opt_local_var_macports_sources_rsync.macports.org_macports_release_tarballs_ports_cross_i686-w64-mingw32-gcc/i686-w64-mingw32
-gcc-nothreads/main.log for details.
}}}
--
Ticket URL: <https://trac.macports.org/ticket/60091#comment:8>
MacPorts <https://www.macports.org/>
Ports system for macOS
More information about the macports-tickets
mailing list