You are not logged in.

#1 2018-01-08 17:22:36

JuanPotato
Member
Registered: 2016-09-06
Posts: 7

mingw-w64-gcc gone from community repo

Wanted to install mingw-w64-gcc but it is no longer in the community repository. I found it in aur but that was just uploaded yesterday. Wiki pages still link to mingw-w64-gcc (https://wiki.archlinux.org/index.php/Mi … guidelines) so I don't know if this was unintentional.

Offline

#2 2018-01-08 17:23:34

Scimmia
Fellow
Registered: 2012-09-01
Posts: 13,729

Re: mingw-w64-gcc gone from community repo

Yes, it was intentional. Pretty hard to be dropped from the binary repos and created in the AUR by accident.

Offline

#3 2018-01-08 17:35:04

Slithery
Administrator
From: Norfolk, UK
Registered: 2013-12-01
Posts: 5,776

Re: mingw-w64-gcc gone from community repo

Have updated the wiki.


No, it didn't "fix" anything. It just shifted the brokeness one space to the right. - jasonwryan
Closing -- for deletion; Banning -- for muppetry. - jasonwryan

aur - dotfiles

Offline

#4 2018-01-08 20:21:50

LeoLambda
Member
Registered: 2018-01-08
Posts: 7

Re: mingw-w64-gcc gone from community repo

The AUR package is also broken (dependency cycle) and unmaintained.

Offline

#5 2018-01-08 20:35:13

loqs
Member
Registered: 2014-03-06
Posts: 19,113

Re: mingw-w64-gcc gone from community repo

Rational for the removal of mingw-w64-gcc-base https://bugs.archlinux.org/task/42847 you can still find it in svntogit https://git.archlinux.org/svntogit/comm … b6a52406ff

Offline

#6 2018-01-08 20:53:12

LeoLambda
Member
Registered: 2018-01-08
Posts: 7

Re: mingw-w64-gcc gone from community repo

That rationale seems really suspect to me. Yes, it's only used for building mingw-w64-gcc, which I now cannot do because it was removed. Furthermore, the isl package required by the linked PKGBUILD is broken, so I can't even build the thing myself.

Last edited by LeoLambda (2018-01-08 21:04:37)

Offline

#7 2018-01-08 21:06:24

loqs
Member
Registered: 2014-03-06
Posts: 19,113

Re: mingw-w64-gcc gone from community repo

Update the PKGBUILD I linked from svntogit?
Edit:
Ah crosspost.

Last edited by loqs (2018-01-08 21:06:56)

Offline

#8 2018-01-08 21:08:44

LeoLambda
Member
Registered: 2018-01-08
Posts: 7

Re: mingw-w64-gcc gone from community repo

loqs wrote:

Update the PKGBUILD I linked from svntogit?

Yeah, I'll just have to wait until that ISL package is fixed. It's a syntax error in ./configure and I've no clue how to deal with it. Thanks for the help tho.

Offline

#9 2018-01-08 21:10:07

Slithery
Administrator
From: Norfolk, UK
Registered: 2013-12-01
Posts: 5,776

Re: mingw-w64-gcc gone from community repo

If you really need it can't you just install it from the archive?


No, it didn't "fix" anything. It just shifted the brokeness one space to the right. - jasonwryan
Closing -- for deletion; Banning -- for muppetry. - jasonwryan

aur - dotfiles

Offline

#10 2018-01-08 21:29:29

LeoLambda
Member
Registered: 2018-01-08
Posts: 7

Re: mingw-w64-gcc gone from community repo

slithery wrote:

If you really need it can't you just install it from the archive?

No. mingw-w64-gcc-base requires cloog which can't be installed because it requires isl >= 0.18 which can't be built because the AUR package is broken.

Last edited by LeoLambda (2018-01-08 21:29:47)

Offline

#11 2018-01-08 21:30:16

Trilby
Inspector Parrot
Registered: 2011-11-29
Posts: 30,543
Website

Re: mingw-w64-gcc gone from community repo

If nothing else, installing slightly outdated versions from the archive would make building the new versions trivially easy.  The dependencies are not versioned.


"UNIX is simple and coherent" - Dennis Ritchie; "GNU's Not Unix" - Richard Stallman

Offline

#12 2018-01-08 21:34:51

loqs
Member
Registered: 2014-03-06
Posts: 19,113

Re: mingw-w64-gcc gone from community repo

Strange I can get the isl package to build

$ makepkg -rsi
==> Making package: isl 0.18-3 (Mon  8 Jan 21:14:20 GMT 2018)
==> Checking runtime dependencies...
==> Checking buildtime dependencies...
==> Retrieving sources...
  -> Downloading isl-0.18.tar.xz...
  % Total    % Received % Xferd  Average Speed   Time    Time     Time  Current
                                 Dload  Upload   Total   Spent    Left  Speed
100 1441k  100 1441k    0     0  1441k      0  0:00:01 --:--:--  0:00:01 3367k
==> Validating source files with sha256sums...
    isl-0.18.tar.xz ... Passed
==> Extracting sources...
  -> Extracting isl-0.18.tar.xz with bsdtar
==> Starting build()...
checking for a BSD-compatible install... /usr/bin/install -c
checking whether build environment is sane... yes
checking for a thread-safe mkdir -p... /usr/bin/mkdir -p
checking for gawk... gawk
checking whether make sets $(MAKE)... yes
checking whether make supports nested variables... yes
checking whether make supports nested variables... (cached) yes
checking for gcc... gcc
checking whether the C compiler works... yes
checking for C compiler default output file name... a.out
checking for suffix of executables... 
checking whether we are cross compiling... no
checking for suffix of object files... o
checking whether we are using the GNU C compiler... yes
checking whether gcc accepts -g... yes
checking for gcc option to accept ISO C89... none needed
checking whether gcc understands -c and -o together... yes
checking for style of include used by make... GNU
checking dependency style of gcc... gcc3
checking for g++... g++
checking whether we are using the GNU C++ compiler... yes
checking whether g++ accepts -g... yes
checking dependency style of g++... gcc3
checking for C compiler vendor... gnu
checking build system type... x86_64-unknown-linux-gnu
checking host system type... x86_64-unknown-linux-gnu
checking whether the compiler supports function __attribute__((__warn_unused_result__))... yes
checking for __attribute__... yes
checking how to print strings... printf
checking for a sed that does not truncate output... /usr/bin/sed
checking for grep that handles long lines and -e... /usr/bin/grep
checking for egrep... /usr/bin/grep -E
checking for fgrep... /usr/bin/grep -F
checking for ld used by gcc... /usr/bin/ld
checking if the linker (/usr/bin/ld) is GNU ld... yes
checking for BSD- or MS-compatible name lister (nm)... /usr/bin/nm -B
checking the name lister (/usr/bin/nm -B) interface... BSD nm
checking whether ln -s works... yes
checking the maximum length of command line arguments... 1572864
checking how to convert x86_64-unknown-linux-gnu file names to x86_64-unknown-linux-gnu format... func_convert_file_noop
checking how to convert x86_64-unknown-linux-gnu file names to toolchain format... func_convert_file_noop
checking for /usr/bin/ld option to reload object files... -r
checking for objdump... objdump
checking how to recognize dependent libraries... pass_all
checking for dlltool... no
checking how to associate runtime and link libraries... printf %s\n
checking for ar... ar
checking for archiver @FILE support... @
checking for strip... strip
checking for ranlib... ranlib
checking command to parse /usr/bin/nm -B output from gcc object... ok
checking for sysroot... no
checking for a working dd... /usr/bin/dd
checking how to truncate binary pipes... /usr/bin/dd bs=4096 count=1
checking for mt... no
checking if : is a manifest tool... no
checking how to run the C preprocessor... gcc -E
checking for ANSI C header files... yes
checking for sys/types.h... yes
checking for sys/stat.h... yes
checking for stdlib.h... yes
checking for string.h... yes
checking for memory.h... yes
checking for strings.h... yes
checking for inttypes.h... yes
checking for stdint.h... yes
checking for unistd.h... yes
checking for dlfcn.h... yes
checking for objdir... .libs
checking if gcc supports -fno-rtti -fno-exceptions... no
checking for gcc option to produce PIC... -fPIC -DPIC
checking if gcc PIC flag -fPIC -DPIC works... yes
checking if gcc static flag -static works... yes
checking if gcc supports -c -o file.o... yes
checking if gcc supports -c -o file.o... (cached) yes
checking whether the gcc linker (/usr/bin/ld -m elf_x86_64) supports shared libraries... yes
checking whether -lc should be explicitly linked in... no
checking dynamic linker characteristics... GNU/Linux ld.so
checking how to hardcode library paths into programs... immediate
checking whether stripping libraries is possible... yes
checking if libtool supports shared libraries... yes
checking whether to build shared libraries... yes
checking whether to build static libraries... yes
checking how to run the C++ preprocessor... g++ -E
checking for ld used by g++... /usr/bin/ld -m elf_x86_64
checking if the linker (/usr/bin/ld -m elf_x86_64) is GNU ld... yes
checking whether the g++ linker (/usr/bin/ld -m elf_x86_64) supports shared libraries... yes
checking for g++ option to produce PIC... -fPIC -DPIC
checking if g++ PIC flag -fPIC -DPIC works... yes
checking if g++ static flag -static works... yes
checking if g++ supports -c -o file.o... yes
checking if g++ supports -c -o file.o... (cached) yes
checking whether the g++ linker (/usr/bin/ld -m elf_x86_64) supports shared libraries... yes
checking dynamic linker characteristics... (cached) GNU/Linux ld.so
checking how to hardcode library paths into programs... immediate
checking for perl... perl
checking for pdflatex... no
checking for pod2html... pod2html
checking for stdint types... stdint.h (shortcircuit)
make use of stdint.h in include/isl/stdint.h (assuming C99 compatible system)
checking which gmp to use... system
checking gmp.h usability... yes
checking gmp.h presence... yes
checking for gmp.h... yes
checking for main in -lgmp... yes
checking whether mp_get_memory_functions is declared... yes
checking whether ffs is declared... yes
checking whether __builtin_ffs is declared... yes
checking whether _BitScanForward is declared... no
checking whether strcasecmp is declared... yes
checking whether strncasecmp is declared... yes
checking whether _stricmp is declared... no
checking whether _strnicmp is declared... no
checking whether snprintf is declared... yes
checking whether _snprintf is declared... no
checking which clang to use... no
checking for C compiler vendor... (cached) gnu
checking our pkgconfig libname... isl
checking our pkgconfig version... 0.18
checking our pkgconfig_libdir... ${libdir}/pkgconfig
expanded our pkgconfig_libdir... /usr/lib/pkgconfig
checking our pkgconfig_libfile... isl.pc
checking our package / suffix... isl / 
checking our pkgconfig description... isl Library
checking our pkgconfig requires... 
checking our pkgconfig ext libs... -lisl -lgmp
checking our pkgconfig cppflags... 
checking our pkgconfig ldflags... 
noninstalled pkgconfig -L /tmp/isl/src/isl-0.18/.libs
noninstalled pkgconfig -I /tmp/isl/src/isl-0.18/./include
checking that generated files are newer than configure... done
configure: creating ./config.status
config.status: creating isl_srcdir.c
config.status: creating Makefile
config.status: creating doc/Makefile
config.status: creating bound_test.sh
config.status: creating codegen_test.sh
config.status: creating pip_test.sh
config.status: creating isl_config.h
config.status: executing depfiles commands
config.status: executing libtool commands
config.status: executing include/isl/stdint.h commands
config.status: creating include/isl/stdint.h : _ISL_INCLUDE_ISL_STDINT_H
config.status: executing isl.pc commands
config.status: creating isl.pc.in
config.status: creating isl.pc
config.status: creating isl-uninstalled.pc
config.status: creating isl-uninstalled.sh
  GEN      gitversion.h
make  all-recursive
make[1]: Entering directory '/tmp/isl/src/isl-0.18'
Making all in .
make[2]: Entering directory '/tmp/isl/src/isl-0.18'
  CC       isl_gmp.lo
  CC       isl_val_gmp.lo
  CC       isl_arg.lo
  CC       isl_ast_int.lo
  CC       isl_aff.lo
  CC       isl_affine_hull.lo
  CC       isl_ast.lo
  CC       isl_ast_build.lo
  CC       isl_ast_build_expr.lo
  CC       isl_ast_codegen.lo
  CC       isl_ast_graft.lo
  CC       isl_band.lo
  CC       basis_reduction_tab.lo
  CC       isl_bernstein.lo
  CC       isl_blk.lo
  CC       isl_bound.lo
  CC       isl_coalesce.lo
  CC       isl_constraint.lo
  CC       isl_convex_hull.lo
  CC       isl_ctx.lo
  CC       isl_deprecated.lo
  CC       isl_dim_map.lo
  CC       isl_equalities.lo
  CC       isl_factorization.lo
  CC       isl_farkas.lo
  CC       isl_ffs.lo
  CC       isl_flow.lo
  CC       isl_fold.lo
  CC       isl_hash.lo
  CC       isl_id_to_ast_expr.lo
  CC       isl_id_to_id.lo
  CC       isl_id_to_pw_aff.lo
  CC       isl_ilp.lo
  CC       isl_input.lo
  CC       isl_local.lo
  CC       isl_local_space.lo
  CC       isl_lp.lo
  CC       isl_map.lo
  CC       isl_map_list.lo
  CC       isl_map_simplify.lo
  CC       isl_map_subtract.lo
  CC       isl_map_to_basic_set.lo
  CC       isl_mat.lo
  CC       isl_morph.lo
  CC       isl_id.lo
  CC       isl_obj.lo
  CC       isl_options.lo
  CC       isl_output.lo
  CC       isl_point.lo
  CC       isl_polynomial.lo
  CC       isl_printer.lo
  CC       print.lo
  CC       isl_range.lo
  CC       isl_reordering.lo
  CC       isl_sample.lo
  CC       isl_scan.lo
  CC       isl_schedule.lo
  CC       isl_schedule_band.lo
  CC       isl_schedule_node.lo
  CC       isl_schedule_read.lo
  CC       isl_schedule_tree.lo
  CC       isl_schedule_constraints.lo
  CC       isl_scheduler.lo
  CC       isl_set_list.lo
  CC       isl_sort.lo
  CC       isl_space.lo
  CC       isl_stream.lo
  CC       isl_seq.lo
  CC       isl_tab.lo
  CC       isl_tab_pip.lo
  CC       isl_tarjan.lo
  CC       isl_transitive_closure.lo
  CC       isl_union_map.lo
  CC       isl_val.lo
  CC       isl_vec.lo
  CC       isl_version.lo
  CC       isl_vertices.lo
  CC       isl_test.o
  CC       polyhedron_sample.o
  CC       pip.o
  CC       polyhedron_minimize.o
  CC       polytope_scan.o
  CC       polyhedron_detect_equalities.o
  CC       cat.o
  CC       closure.o
  CC       bound.o
  CC       schedule.o
  CC       codegen.o
  CC       isl_test_int.o
  CCLD     libisl.la
ar: `u' modifier ignored since `D' is the default (see `U')
  CCLD     isl_test
  CCLD     isl_polyhedron_sample
  CCLD     isl_pip
  CCLD     isl_polyhedron_minimize
  CCLD     isl_polytope_scan
  CCLD     isl_polyhedron_detect_equalities
  CCLD     isl_cat
  CCLD     isl_closure
  CCLD     isl_bound
  CCLD     isl_schedule
  CCLD     isl_codegen
  CCLD     isl_test_int
make[2]: Leaving directory '/tmp/isl/src/isl-0.18'
Making all in doc
make[2]: Entering directory '/tmp/isl/src/isl-0.18/doc'
make[2]: Nothing to be done for 'all'.
make[2]: Leaving directory '/tmp/isl/src/isl-0.18/doc'
make[1]: Leaving directory '/tmp/isl/src/isl-0.18'
==> Starting check()...
make  check-recursive
make[1]: Entering directory '/tmp/isl/src/isl-0.18'
Making check in .
make[2]: Entering directory '/tmp/isl/src/isl-0.18'
make  check-TESTS
make[3]: Entering directory '/tmp/isl/src/isl-0.18'
make[4]: Entering directory '/tmp/isl/src/isl-0.18'
PASS: isl_test_int
PASS: pip_test.sh
PASS: isl_test
PASS: codegen_test.sh
PASS: bound_test.sh
============================================================================
Testsuite summary for isl 0.18
============================================================================
# TOTAL: 5
# PASS:  5
# SKIP:  0
# XFAIL: 0
# FAIL:  0
# XPASS: 0
# ERROR: 0
============================================================================
make[4]: Leaving directory '/tmp/isl/src/isl-0.18'
make[3]: Leaving directory '/tmp/isl/src/isl-0.18'
make[2]: Leaving directory '/tmp/isl/src/isl-0.18'
Making check in doc
make[2]: Entering directory '/tmp/isl/src/isl-0.18/doc'
make[2]: Nothing to be done for 'check'.
make[2]: Leaving directory '/tmp/isl/src/isl-0.18/doc'
make[1]: Leaving directory '/tmp/isl/src/isl-0.18'
==> Entering fakeroot environment...
==> Starting package()...
make  install-recursive
make[1]: Entering directory '/tmp/isl/src/isl-0.18'
Making install in .
make[2]: Entering directory '/tmp/isl/src/isl-0.18'
make[3]: Entering directory '/tmp/isl/src/isl-0.18'
 /usr/bin/mkdir -p '/tmp/isl/pkg/isl/usr/include/isl/deprecated'
 /usr/bin/mkdir -p '/tmp/isl/pkg/isl/usr/include/isl'
 /usr/bin/mkdir -p '/tmp/isl/pkg/isl/usr/lib/pkgconfig'
 /usr/bin/mkdir -p '/tmp/isl/pkg/isl/usr/include/isl'
/usr/bin/install -c -m 644 ./isl.py /tmp/isl/pkg/isl/usr/lib/libisl.so.15.3.0-gdb.py
 /usr/bin/install -c -m 644 include/isl/deprecated/int.h include/isl/deprecated/aff_int.h include/isl/deprecated/ast_int.h include/isl/deprecated/constraint_int.h include/isl/deprecated/ilp_int.h include/isl/deprecated/map_int.h include/isl/deprecated/mat_int.h include/isl/deprecated/point_int.h include/isl/deprecated/polynomial_int.h include/isl/deprecated/set_int.h include/isl/deprecated/union_map_int.h include/isl/deprecated/val_int.h include/isl/deprecated/vec_int.h '/tmp/isl/pkg/isl/usr/include/isl/deprecated'
 /usr/bin/install -c -m 644 include/isl/stdint.h '/tmp/isl/pkg/isl/usr/include/isl'
 /usr/bin/mkdir -p '/tmp/isl/pkg/isl/usr/lib'
 /usr/bin/install -c -m 644 include/isl/val_gmp.h include/isl/aff.h include/isl/aff_type.h include/isl/arg.h include/isl/ast.h include/isl/ast_type.h include/isl/ast_build.h include/isl/band.h include/isl/constraint.h include/isl/ctx.h include/isl/flow.h include/isl/id.h include/isl/id_to_ast_expr.h include/isl/id_to_id.h include/isl/id_to_pw_aff.h include/isl/ilp.h include/isl/hash.h include/isl/hmap.h include/isl/hmap_templ.c include/isl/list.h include/isl/local_space.h include/isl/lp.h include/isl/mat.h include/isl/map.h include/isl/map_to_basic_set.h include/isl/map_type.h include/isl/maybe.h include/isl/maybe_ast_expr.h include/isl/maybe_basic_set.h include/isl/maybe_id.h include/isl/maybe_pw_aff.h include/isl/maybe_templ.h include/isl/multi.h include/isl/obj.h include/isl/options.h include/isl/point.h include/isl/polynomial.h include/isl/polynomial_type.h include/isl/printer.h include/isl/printer_type.h '/tmp/isl/pkg/isl/usr/include/isl'
 /usr/bin/install -c -m 644 isl.pc '/tmp/isl/pkg/isl/usr/lib/pkgconfig'
 /bin/sh ./libtool   --mode=install /usr/bin/install -c   libisl.la '/tmp/isl/pkg/isl/usr/lib'
 /usr/bin/install -c -m 644 include/isl/schedule.h include/isl/schedule_node.h include/isl/schedule_type.h include/isl/set.h include/isl/set_type.h include/isl/space.h include/isl/stream.h include/isl/union_map.h include/isl/union_map_type.h include/isl/union_set.h include/isl/union_set_type.h include/isl/val.h include/isl/vec.h include/isl/version.h include/isl/vertices.h '/tmp/isl/pkg/isl/usr/include/isl'
libtool: install: /usr/bin/install -c .libs/libisl.so.15.3.0 /tmp/isl/pkg/isl/usr/lib/libisl.so.15.3.0
libtool: install: (cd /tmp/isl/pkg/isl/usr/lib && { ln -s -f libisl.so.15.3.0 libisl.so.15 || { rm -f libisl.so.15 && ln -s libisl.so.15.3.0 libisl.so.15; }; })
libtool: install: (cd /tmp/isl/pkg/isl/usr/lib && { ln -s -f libisl.so.15.3.0 libisl.so || { rm -f libisl.so && ln -s libisl.so.15.3.0 libisl.so; }; })
libtool: install: /usr/bin/install -c .libs/libisl.lai /tmp/isl/pkg/isl/usr/lib/libisl.la
libtool: install: /usr/bin/install -c .libs/libisl.a /tmp/isl/pkg/isl/usr/lib/libisl.a
libtool: install: chmod 644 /tmp/isl/pkg/isl/usr/lib/libisl.a
libtool: install: ranlib /tmp/isl/pkg/isl/usr/lib/libisl.a
libtool: warning: remember to run 'libtool --finish /usr/lib'
make[3]: Leaving directory '/tmp/isl/src/isl-0.18'
make[2]: Leaving directory '/tmp/isl/src/isl-0.18'
Making install in doc
make[2]: Entering directory '/tmp/isl/src/isl-0.18/doc'
make[3]: Entering directory '/tmp/isl/src/isl-0.18/doc'
make[3]: Nothing to be done for 'install-exec-am'.
make[3]: Nothing to be done for 'install-data-am'.
make[3]: Leaving directory '/tmp/isl/src/isl-0.18/doc'
make[2]: Leaving directory '/tmp/isl/src/isl-0.18/doc'
make[1]: Leaving directory '/tmp/isl/src/isl-0.18'
==> Tidying install...
  -> Removing libtool files...
  -> Purging unwanted files...
  -> Removing static library files...
  -> Stripping unneeded symbols from binaries and libraries...
  -> Compressing man and info pages...
==> Checking for packaging issue...
==> Creating package "isl"...
  -> Generating .PKGINFO file...
  -> Generating .BUILDINFO file...
  -> Generating .MTREE file...
  -> Compressing package...
==> Leaving fakeroot environment.
==> Finished making: isl 0.18-3 (Mon  8 Jan 21:14:50 GMT 2018)
==> Installing package isl with pacman -U...
loading packages...
resolving dependencies...
looking for conflicting packages...

Packages (1) isl-0.18-3

Total Installed Size:  1.91 MiB

:: Proceed with installation? [Y/n] y
(1/1) checking keys in keyring                     [######################] 100%
(1/1) checking package integrity                   [######################] 100%
(1/1) loading package files                        [######################] 100%
(1/1) checking for file conflicts                  [######################] 100%
(1/1) checking available disk space                [######################] 100%
:: Processing package changes...
(1/1) installing isl                               [######################] 100%
:: Running post-transaction hooks...
(1/1) Arming ConditionNeedsUpdate...

Can you try this PKGBUILD see if it has the same issue with isl if gcc attempts to build it intree

# $Id$

_targets="i686-w64-mingw32 x86_64-w64-mingw32"

pkgname=mingw-w64-gcc-base
pkgver=7.2.0
_islver=0.18
pkgrel=1
pkgdesc="Cross GCC for the MinGW-w64 cross-compiler (bootstrap)"
arch=('i686' 'x86_64')
url="http://gcc.gnu.org"
license=('GPL' 'LGPL' 'FDL' 'custom')
groups=('mingw-w64-bootstrap' 'mingw-w64')
depends=('zlib' 'libmpc' 'ppl' 'mingw-w64-binutils' 'mingw-w64-headers' 'mingw-w64-headers-bootstrap')
conflicts=('mingw-w64-gcc')
options=('staticlibs' '!emptydirs')
source=(ftp://gcc.gnu.org/pub/gcc/releases/gcc-${pkgver}/gcc-${pkgver}.tar.xz
        http://isl.gforge.inria.fr/isl-${_islver}.tar.bz2)
md5sums=('ff370482573133a7fcdd96cd2f552292'
         '11436d6b205e516635b666090b94ab32')

prepare() {
  cd ${srcdir}/gcc-${pkgver}

  # link isl for in-tree build
  ln -s ../isl-${_islver} isl

  #do not install libiberty
  sed -i 's/install_to_$(INSTALL_DEST) //' libiberty/Makefile.in
  # hack! - some configure tests for header files using "$CPP $CPPFLAGS"
  sed -i "/ac_cpp=/s/\$CPPFLAGS/\$CPPFLAGS -O2/" {libiberty,gcc}/configure
}

build() {
  for _target in ${_targets}; do
    msg "Building ${_target} GCC C compiler"
    mkdir -p ${srcdir}/gcc-build-${_target} && cd ${srcdir}/gcc-build-${_target}

    ${srcdir}/gcc-${pkgver}/configure --prefix=/usr \
        --target=${_target} \
        --enable-languages=c,lto \
        --enable-shared --enable-static \
        --enable-threads=win32 \
        --with-system-zlib --with-isl \
        --enable-lto --disable-dw2-exceptions --enable-libgomp \
        --disable-nls --enable-version-specific-runtime-libs \
        --disable-multilib --enable-checking=release
    make all-gcc
  done
}

package() {
  for _target in ${_targets}; do
    msg "Installing ${_target} GCC C compiler"
    cd ${srcdir}/gcc-build-${_target}
    make DESTDIR=${pkgdir} install-gcc
    strip ${pkgdir}/usr/bin/${_target}-*
    strip ${pkgdir}/usr/libexec/gcc/${_target}/${pkgver}/{cc1,collect2,lto*}
  done
  # remove unnecessary files
  msg "Removing man and info pages"
  rm -r ${pkgdir}/usr/share/man
  rm -r ${pkgdir}/usr/share/info
}

Last edited by loqs (2018-01-08 22:18:23)

Offline

#13 2018-01-08 22:23:29

LeoLambda
Member
Registered: 2018-01-08
Posts: 7

Re: mingw-w64-gcc gone from community repo

Having refreshed my environment it's clear that the ISL bug was a problem with my environment. I'll publish a Docker image (and associated Dockerfile) with all the steps I took to get the mingw compiler working in an hour or so, and link it here. Thanks for all the help, though I'd still prefer it if there were binary packages available.

Offline

#14 2018-01-08 22:28:03

Trilby
Inspector Parrot
Registered: 2011-11-29
Posts: 30,543
Website

Re: mingw-w64-gcc gone from community repo

LeoLambda wrote:

...though I'd still prefer it if there were binary packages available.

So you will be sharing yours?


"UNIX is simple and coherent" - Dennis Ritchie; "GNU's Not Unix" - Richard Stallman

Offline

#15 2018-01-08 22:33:44

LeoLambda
Member
Registered: 2018-01-08
Posts: 7

Re: mingw-w64-gcc gone from community repo

Yeah, definitely; I'll make them available on my webserver. I don't have the time to keep them updated, though.

EDIT: Here ya go. https://leotindall.com/packages/

Last edited by LeoLambda (2018-01-08 22:55:07)

Offline

#16 2018-01-13 09:09:00

NoOneX
Member
Registered: 2012-07-31
Posts: 5

Re: mingw-w64-gcc gone from community repo

The linked FS#42847 only talks about `mingw-w64-gcc-base` being removed, because it was only needed to build `mingw-w64-gcc`. First I searched all tasks for mingw, but there were a lot of very old ones and not relevant. I then searched the mailing list and found this topic: http://archlinux.2023198.n4.nabble.com/ … 17870.html. It looks like it was removed because it had no maintainer. It should have been much easier to find this information...

Offline

Board footer

Powered by FluxBB