Package Details: gcc49 4.9.4-3

Git Clone URL: https://aur.archlinux.org/gcc49.git (read-only, click to copy)
Package Base: gcc49
Description: The GNU Compiler Collection (4.9.x)
Upstream URL: http://gcc.gnu.org
Licenses: GPL-3.0-or-later, LGPL-3.0+, LicenseRef-custom, GFDL-1.3
Submitter: rubenvb
Maintainer: severach
Last Packager: severach
Votes: 22
Popularity: 0.013642
First Submitted: 2015-07-01 12:48 (UTC)
Last Updated: 2024-05-29 21:11 (UTC)

Latest Comments

1 2 3 4 5 6 .. 8 Next › Last »

severach commented on 2023-02-22 04:55 (UTC)

I pulled in the c++11 fix @bartus noted from gcc49-multilib.

GloW commented on 2023-02-21 10:04 (UTC)

Do not build:

/home/glow/.cache/yay/gcc49/src/gcc-4.9.4/gcc/reload1.c: In function ‘void init_reload()’:
/home/glow/.cache/yay/gcc49/src/gcc-4.9.4/gcc/reload1.c:89:24: error: use of an operand of type ‘bool’ in ‘operator++’ is forbidden in C++17
   89 |   (this_target_reload->x_spill_indirect_levels)

bartus commented on 2021-07-07 17:39 (UTC)

Fix build against gcc:11 sanitize FLAGS to prevent mishaps with future gcc releases. http://ix.io/3seU/diff

Apply with git am -s < <(curl -s http://ix.io/3seU )

gnaggnoyil commented on 2021-05-30 16:06 (UTC)

GCC 11 upgrades its default language standard mode from gnu++14 to gnu++17, meanwhile GCC 4.9 src contains code that is no longer valid since C++17.

Thus, building this package with GCC 11 reports the following error:

/home/gnaggnoyil/.cache/yay/gcc49/src/gcc-4.9.4/gcc/reload1.c: 在函数‘void init_reload()’中:
/home/gnaggnoyil/.cache/yay/gcc49/src/gcc-4.9.4/gcc/reload1.c:89:24: 错误:use of an operand of type ‘bool’ in ‘operator++’ is forbidden in C++17
   89 |   (this_target_reload->x_spill_indirect_levels)
      |   ~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~
/home/gnaggnoyil/.cache/yay/gcc49/src/gcc-4.9.4/gcc/reload1.c:444:7: 附注:in expansion of macro ‘spill_indirect_levels’
  444 |       spill_indirect_levels++;
      |       ^~~~~~~~~~~~~~~~~~~~~
/home/gnaggnoyil/.cache/yay/gcc49/src/gcc-4.9.4/gcc/reload1.c: 在函数‘void elimination_effects(rtx, machine_mode)’中:
/home/gnaggnoyil/.cache/yay/gcc49/src/gcc-4.9.4/gcc/reload1.c:3044:31: 警告:this statement may fall through [-Wimplicit-fallthrough=]
 3044 |       if (code == POST_MODIFY || code == PRE_MODIFY)
      |           ~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~
/home/gnaggnoyil/.cache/yay/gcc49/src/gcc-4.9.4/gcc/reload1.c:3048:5: 附注:here
 3048 |     case STRICT_LOW_PART:
      |     ^~~~
make[3]: *** [Makefile:1058:reload1.o] 错误 1

petronny commented on 2020-10-28 07:47 (UTC) (edited on 2020-10-28 07:48 (UTC) by petronny)

version numbering in GCC changed starting from version 5

I see. Thanks for your explanations.

rubenvb commented on 2020-10-28 07:46 (UTC)

@petronny: No, for one because there is also a gcc43, gcc44, gcc45, gcc46, gcc47, and gcc48 in the AUR which all represent distinct versions that may be required by various tools like Matlab or older CUDA or ICC versions. Aside from that, the version numbering in GCC changed starting from version 5, where the first release was 5.1, and subsequent bugfix releases came out as 5.2, 5.3, etc. in contrast to 4.X.Y starting at 4.X.0 and bugfix releases for as 4.X.1, 4.X.2, etc.

petronny commented on 2020-10-28 07:10 (UTC)

Hi, could this package be called gcc4?

rubenvb commented on 2020-10-20 07:11 (UTC) (edited on 2020-10-20 08:30 (UTC) by rubenvb)

@dreieck You seem to have not included any relevant error messages in your output.

I see though you are using yaourt. Can you try building it manually with makepkg? This works for me, as does building this package using pacaur.

dreieck commented on 2020-10-19 17:16 (UTC)

Fails to build for me:

[...]
libtool: link: ln .libs/libgo.lax/libbacktrace.a/elf.o .libs/libgo.lax/lt12-elf.o || cp .libs/libgo.lax/libbacktrace.a/elf.o .libs/libgo.lax/lt12-elf.o
libtool: link: ar rc .libs/libgo.a go-append.o go-assert.o go-assert-interface.o go-byte-array-to-string.o go-breakpoint.o go-caller.o go-callers.o go-can-convert-interface.o go-cdiv.o go-cgo.o go-check-interface.o go-construct-map.o go-convert-interface.o go-copy.o go-defer.o go-deferred-recover.o go-eface-compare.o go-eface-val-compare.o go-fieldtrack.o go-getgoroot.o go-int-array-to-string.o go-int-to-string.o go-interface-compare.o go-interface-eface-compare.o go-interface-val-compare.o go-make-slice.o go-map-delete.o go-map-index.o go-map-len.o go-map-range.o go-matherr.o go-memcmp.o go-nanotime.o go-now.o go-new-map.o go-new.o go-nosys.o go-panic.o go-print.o go-recover.o go-reflect-call.o go-reflect-map.o go-rune.o go-runtime-error.o go-setenv.o go-signal.o go-strcmp.o go-string-to-byte-array.o go-string-to-int-array.o go-strplus.o go-strslice.o go-traceback.o go-type-complex.o go-type-eface.o go-type-error.o go-type-float.o go-type-identity.o go-type-interface.o go-type-string.o go-typedesc-equal.o go-typestring.o go-unsafe-new.o go-unsafe-newarray.o go-unsafe-pointer.o go-unwind.o go-varargs.o chan.o cpuprof.o env_posix.o lfstack.o lock_futex.o thread-linux.o mcache.o mcentral.o mem.o mfinal.o mfixalloc.o mgc0.o mheap.o msize.o netpoll_epoll.o panic.o parfor.o print.o proc.o runtime.o signal_unix.o thread.o yield.o iface.o malloc.o map.o mprof.o netpoll.o reflect.o runtime1.o sema.o sigqueue.o string.o time.o getncpu-linux.o bufio.o bytes.o bytes/index.o crypto.o encoding.o errors.o expvar.o flag.o fmt.o hash.o html.o image.o io.o log.o math.o mime.o net.o os.o path.o reflect-go.o reflect/makefunc.o regexp.o runtime-go.o sort.o strconv.o strings.o .libs/libgo.lax/lt1-index.o sync.o syscall.o syscall/errno.o syscall/signame.o syscall/wait.o testing.o time-go.o unicode.o archive/tar.o archive/zip.o compress/bzip2.o compress/flate.o compress/gzip.o compress/lzw.o compress/zlib.o container/heap.o container/list.o container/ring.o crypto/aes.o crypto/cipher.o crypto/des.o crypto/dsa.o crypto/ecdsa.o crypto/elliptic.o crypto/hmac.o crypto/md5.o crypto/rand.o crypto/rc4.o crypto/rsa.o crypto/sha1.o crypto/sha256.o crypto/sha512.o crypto/subtle.o crypto/tls.o crypto/x509.o crypto/x509/pkix.o database/sql.o database/sql/driver.o debug/dwarf.o debug/elf.o debug/gosym.o debug/macho.o debug/pe.o encoding/ascii85.o encoding/asn1.o encoding/base32.o encoding/base64.o encoding/binary.o encoding/csv.o encoding/gob.o encoding/hex.o encoding/json.o encoding/pem.o encoding/xml.o exp/proxy.o exp/terminal.o html/template.o go/ast.o go/build.o go/doc.o go/format.o go/parser.o go/printer.o go/scanner.o go/token.o hash/adler32.o hash/crc32.o hash/crc64.o hash/fnv.o net/http/cgi.o net/http/cookiejar.o net/http/fcgi.o net/http/httptest.o net/http/httputil.o net/http/pprof.o image/color.o image/color/palette.o image/draw.o image/gif.o image/jpeg.o image/png.o index/suffixarray.o io/ioutil.o log/syslog.o log/syslog/syslog_c.o math/big.o math/cmplx.o .libs/libgo.lax/lt2-rand.o mime/multipart.o net/http.o net/mail.o net/rpc.o net/smtp.o net/textproto.o net/url.o .libs/libgo.lax/lt3-regexp.o .libs/libgo.lax/lt4-template.o os/exec.o os/signal.o os/user.o path/filepath.o regexp/syntax.o net/rpc/jsonrpc.o runtime/debug.o .libs/libgo.lax/lt5-pprof.o sync/atomic.o sync/atomic_c.o .libs/libgo.lax/lt6-scanner.o text/tabwriter.o .libs/libgo.lax/lt7-template.o text/template/parse.o testing/iotest.o testing/quick.o unicode/utf16.o unicode/utf8.o .libs/libgo.lax/lt8-atomic.o .libs/libgo.lax/lt9-dwarf.o .libs/libgo.lax/libbacktrace.a/fileline.o .libs/libgo.lax/libbacktrace.a/posix.o .libs/libgo.lax/lt10-print.o .libs/libgo.lax/lt11-sort.o .libs/libgo.lax/libbacktrace.a/state.o .libs/libgo.lax/libbacktrace.a/backtrace.o .libs/libgo.lax/libbacktrace.a/simple.o .libs/libgo.lax/lt12-elf.o .libs/libgo.lax/libbacktrace.a/mmapio.o .libs/libgo.lax/libbacktrace.a/mmap.o .libs/libgo.lax/libatomic_convenience.a/gload.o .libs/libgo.lax/libatomic_convenience.a/gstore.o .libs/libgo.lax/libatomic_convenience.a/gcas.o .libs/libgo.lax/libatomic_convenience.a/gexch.o .libs/libgo.lax/libatomic_convenience.a/glfree.o .libs/libgo.lax/libatomic_convenience.a/lock.o .libs/libgo.lax/libatomic_convenience.a/init.o .libs/libgo.lax/libatomic_convenience.a/fenv.o .libs/libgo.lax/libatomic_convenience.a/load_1_.o .libs/libgo.lax/libatomic_convenience.a/store_1_.o .libs/libgo.lax/libatomic_convenience.a/cas_1_.o .libs/libgo.lax/libatomic_convenience.a/exch_1_.o .libs/libgo.lax/libatomic_convenience.a/fadd_1_.o .libs/libgo.lax/libatomic_convenience.a/fsub_1_.o .libs/libgo.lax/libatomic_convenience.a/fand_1_.o .libs/libgo.lax/libatomic_convenience.a/fior_1_.o .libs/libgo.lax/libatomic_convenience.a/fxor_1_.o .libs/libgo.lax/libatomic_convenience.a/fnand_1_.o .libs/libgo.lax/libatomic_convenience.a/tas_1_.o .libs/libgo.lax/libatomic_convenience.a/load_2_.o .libs/libgo.lax/libatomic_convenience.a/store_2_.o .libs/libgo.lax/libatomic_convenience.a/cas_2_.o .libs/libgo.lax/libatomic_convenience.a/exch_2_.o .libs/libgo.lax/libatomic_convenience.a/fadd_2_.o .libs/libgo.lax/libatomic_convenience.a/fsub_2_.o .libs/libgo.lax/libatomic_convenience.a/fand_2_.o .libs/libgo.lax/libatomic_convenience.a/fior_2_.o .libs/libgo.lax/libatomic_convenience.a/fxor_2_.o .libs/libgo.lax/libatomic_convenience.a/fnand_2_.o .libs/libgo.lax/libatomic_convenience.a/tas_2_.o .libs/libgo.lax/libatomic_convenience.a/load_4_.o .libs/libgo.lax/libatomic_convenience.a/store_4_.o .libs/libgo.lax/libatomic_convenience.a/cas_4_.o .libs/libgo.lax/libatomic_convenience.a/exch_4_.o .libs/libgo.lax/libatomic_convenience.a/fadd_4_.o .libs/libgo.lax/libatomic_convenience.a/fsub_4_.o .libs/libgo.lax/libatomic_convenience.a/fand_4_.o .libs/libgo.lax/libatomic_convenience.a/fior_4_.o .libs/libgo.lax/libatomic_convenience.a/fxor_4_.o .libs/libgo.lax/libatomic_convenience.a/fnand_4_.o .libs/libgo.lax/libatomic_convenience.a/tas_4_.o .libs/libgo.lax/libatomic_convenience.a/load_8_.o .libs/libgo.lax/libatomic_convenience.a/store_8_.o .libs/libgo.lax/libatomic_convenience.a/cas_8_.o .libs/libgo.lax/libatomic_convenience.a/exch_8_.o .libs/libgo.lax/libatomic_convenience.a/fadd_8_.o .libs/libgo.lax/libatomic_convenience.a/fsub_8_.o .libs/libgo.lax/libatomic_convenience.a/fand_8_.o .libs/libgo.lax/libatomic_convenience.a/fior_8_.o .libs/libgo.lax/libatomic_convenience.a/fxor_8_.o .libs/libgo.lax/libatomic_convenience.a/fnand_8_.o .libs/libgo.lax/libatomic_convenience.a/tas_8_.o .libs/libgo.lax/libatomic_convenience.a/load_16_.o .libs/libgo.lax/libatomic_convenience.a/store_16_.o .libs/libgo.lax/libatomic_convenience.a/cas_16_.o .libs/libgo.lax/libatomic_convenience.a/exch_16_.o .libs/libgo.lax/libatomic_convenience.a/fadd_16_.o .libs/libgo.lax/libatomic_convenience.a/fsub_16_.o .libs/libgo.lax/libatomic_convenience.a/fand_16_.o .libs/libgo.lax/libatomic_convenience.a/fior_16_.o .libs/libgo.lax/libatomic_convenience.a/fxor_16_.o .libs/libgo.lax/libatomic_convenience.a/fnand_16_.o .libs/libgo.lax/libatomic_convenience.a/tas_16_.o .libs/libgo.lax/libatomic_convenience.a/load_16_1_.o .libs/libgo.lax/libatomic_convenience.a/store_16_1_.o .libs/libgo.lax/libatomic_convenience.a/cas_16_1_.o .libs/libgo.lax/libatomic_convenience.a/exch_16_1_.o .libs/libgo.lax/libatomic_convenience.a/fadd_16_1_.o .libs/libgo.lax/libatomic_convenience.a/fsub_16_1_.o .libs/libgo.lax/libatomic_convenience.a/fand_16_1_.o .libs/libgo.lax/libatomic_convenience.a/fior_16_1_.o .libs/libgo.lax/libatomic_convenience.a/fxor_16_1_.o .libs/libgo.lax/libatomic_convenience.a/fnand_16_1_.o .libs/libgo.lax/libatomic_convenience.a/tas_16_1_.o .libs/libgo.lax/libffi_convenience.a/prep_cif.o .libs/libgo.lax/libffi_convenience.a/types.o .libs/libgo.lax/libffi_convenience.a/raw_api.o .libs/libgo.lax/libffi_convenience.a/java_raw_api.o .libs/libgo.lax/libffi_convenience.a/closures.o .libs/libgo.lax/libffi_convenience.a/ffi64.o .libs/libgo.lax/libffi_convenience.a/unix64.o .libs/libgo.lax/libffi_convenience.a/ffi.o .libs/libgo.lax/libffi_convenience.a/sysv.o
libtool: link: ranlib .libs/libgo.a
libtool: link: rm -fr .libs/libgo.lax .libs/libgo.lax
libtool: link: ( cd ".libs" && rm -f "libgo.la" && ln -s "../libgo.la" "libgo.la" )
make[4]: Leaving directory '[...]/aur-gcc49/src/gcc-build/x86_64-pc-linux-gnu/libgo'
make[3]: Leaving directory '/tmp/yaourt-tmp-felics/aur-gcc49/src/gcc-build/x86_64-pc-linux-gnu/libgo'
make[2]: Leaving directory '/tmp/yaourt-tmp-felics/aur-gcc49/src/gcc-build/x86_64-pc-linux-gnu/libgo'
make[1]: Leaving directory '/tmp/yaourt-tmp-felics/aur-gcc49/src/gcc-build'
make: *** [Makefile:896: all] Error 2
==> ERROR: A failure occurred in build().
    Aborting...

rubenvb commented on 2020-03-21 17:50 (UTC)

@mirh I attempted to backport the patch and the build now succeeds. I have not tested any sanitizer functionality though, so I may have well broken that in the process. Let me know if I need to change anything else.