Package Details: gcc6 6.5.0-10

Git Clone URL: https://aur.archlinux.org/gcc6.git (read-only, click to copy)
Package Base: gcc6
Description: The GNU Compiler Collection - C and C++ frontends (6.x.x)
Upstream URL: https://gcc.gnu.org/gcc-6/
Licenses: GPL, custom, LGPL, FDL
Submitter: svenstaro
Maintainer: valandil
Last Packager: valandil
Votes: 20
Popularity: 0.000000
First Submitted: 2018-05-17 20:56 (UTC)
Last Updated: 2025-12-08 18:45 (UTC)

Dependencies (16)

Sources (7)

Pinned Comments

valandil commented on 2020-08-24 15:06 (UTC)

I highly recommend building this package in a clean chroot. This avoids the use of a AUR helper, which sometimes uses /tmp as the stating directory, which often gets filled completely by gcc's build process.

It also provides a clean environment, which minimizes interactions between your current environment and gcc's build process.

Latest Comments

« First ‹ Previous 1 2 3 4 5 6 7 8 9 Next › Last »

ElektrikAkar commented on 2018-11-07 12:24 (UTC) (edited on 2018-11-07 12:25 (UTC) by ElektrikAkar)

@lonaowna

Thanks a lot, unfortunately I have tried these steps and installed different versions of compilers (4.9, 4.9.3, 5, 6.4, 7 etc.) However, MATLAB did not even accept gcc6.4 (from gcc63-multilib). I have edited "mex_C++_glnxa64.xml" and the output is below. Lastly, I also tried to compile 6.3.0 from source but it gives an error called "error 2". Therefore, I am a bit out of options. Is there a way to make this library to give 6.3 version when it requested -dumpversion :)

mex -setup C++ -v

Verbose mode is on.

... Looking for compiler 'g++' ...

... Executing command 'which g++' ...Yes ('/bin/g++').

... Executing command 'g++ -print-file-name=libstdc++.so' ...Yes ('/usr/lib/libstdc++.so').

... Executing command 'g++ -dumpversion' ...Yes ('8.2.1').

... Executing command 'which g++' ...Yes ('/bin/g++').

... Looking for folder '' ...No.

Did not find installed compiler 'g++'.

... Looking for compiler 'gcc-6' ...

... Executing command 'which gcc-6' ...Yes ('/bin/gcc-6').

... Executing command 'gcc-6 -print-file-name=libstdc++.so' ...Yes ('/usr/lib/gcc/x86_64-pc-linux-gnu/6.5.0/libstdc++.so').

... Executing command 'gcc-6 -dumpversion' ...Yes ('6.5.0').

... Executing command 'which gcc-6' ...Yes ('/bin/gcc-6').

... Looking for folder '' ...No.

Did not find installed compiler 'gcc-6'.

... Looking for compiler 'g++-6' ...

... Executing command 'which g++-6' ...Yes ('/bin/g++-6').

... Executing command 'g++-6 -print-file-name=libstdc++.so' ...Yes ('/usr/lib/gcc/x86_64-pc-linux-gnu/6.5.0/libstdc++.so').

... Executing command 'g++-6 -dumpversion' ...Yes ('6.5.0').

... Executing command 'which g++-6' ...Yes ('/bin/g++-6').

... Looking for folder '' ...No.

Did not find installed compiler 'g++-6'.

Error using mex

No supported compiler was found. For options, visit https://www.mathworks.com/support/compilers.

lonaowna commented on 2018-11-05 14:32 (UTC) (edited on 2018-11-05 14:36 (UTC) by lonaowna)

@ElektrikAkar no, this is 6.5.0, which should be compatible with all 6.x.x releases as it just adds some bugfixes.

Did you try editing mex_C_glnxa64.xml as described here? (for this package use Location="/usr/bin/gcc-6")

Edit: depending on your MATLAB version maybe follow this instead. (use CC='gcc-6' and CXX='g++-6')

ElektrikAkar commented on 2018-11-05 13:21 (UTC) (edited on 2018-11-05 13:22 (UTC) by ElektrikAkar)

Does this package include gcc 6.3.x? I have installed this but it shows 6.5 and MATLAB, unfortunately, does not accept this version. Yet, I am unable to find 6.3.x. Does anyone know how I can install 6.3.x?

sknd commented on 2018-10-29 21:40 (UTC)

sokuban you can use pacman -U with --overwrite option

sokuban commented on 2018-08-30 08:43 (UTC) (edited on 2018-08-30 08:51 (UTC) by sokuban)

I could build fine (I needed at least 8GiB though), but I can't install the resulting packages. I looked at the conflicting files, and most of them seem to be the same size, but the size of the two libstdc++.a are different.

Any advice?

[code]$ sudo pacman -U gcc6-6.4.1-8-x86_64.pkg.tar.xz gcc6-fortran-6.4.1-8-x86_64.pkg.tar.xz gcc6-gcj-6.4.1-8-x86_64.pkg.tar.xz gcc6-libs-6.4.1-8-x86_64.pkg.tar.xz loading packages... resolving dependencies... looking for conflicting packages...

Packages (4) gcc6-6.4.1-8 gcc6-fortran-6.4.1-8 gcc6-gcj-6.4.1-8 gcc6-libs-6.4.1-8

Total Installed Size: 453.89 MiB Net Upgrade Size: 133.96 MiB

:: Proceed with installation? [Y/n] y (4/4) checking keys in keyring [######################] 100% (4/4) checking package integrity [######################] 100% (4/4) loading package files [######################] 100% (4/4) checking for file conflicts [######################] 100% error: failed to commit transaction (conflicting files) /usr/lib/gcc/x86_64-unknown-linux-gnu/6.4.1/libstdc++.a exists in both 'gcc6-libs' and 'gcc6' /usr/lib/gcc/x86_64-unknown-linux-gnu/6.4.1/libstdc++.la exists in both 'gcc6-libs' and 'gcc6' /usr/lib/gcc/x86_64-unknown-linux-gnu/6.4.1/libgcj-tools.la exists in both 'gcc6-libs' and 'gcc6-gcj' /usr/lib/gcc/x86_64-unknown-linux-gnu/6.4.1/libgcj.la exists in both 'gcc6-libs' and 'gcc6-gcj' /usr/lib/gcc/x86_64-unknown-linux-gnu/6.4.1/libgij.la exists in both 'gcc6-libs' and 'gcc6-gcj' Errors occurred, no packages were upgraded.[/code]

wjmelements commented on 2018-08-30 08:38 (UTC)

Unfortunately (or fortunately) I can no longer reproduce the build failure.

raul commented on 2018-08-28 17:28 (UTC)

just built it, 7.6G required disk space (ext4) in total

lonaowna commented on 2018-08-28 07:52 (UTC)

@wjmelements can you post your entire build log?

wjmelements commented on 2018-08-27 23:44 (UTC)

When I try to build, I always get a link-time error when linking cc1. Unfortunately there isn't a descriptive error message.

g++ -std=gnu++98 -no-pie .  -g -DIN_GCC .   -fno-exceptions -fno-rtti -fasynchronous-unwind-tables -W -Wall -Wno-narrowing ..........  -Wl,-O1,--sort-common,--as-needed,-z,relro,-z,now -o cc1 c/c-lang.o c-family/stub-objc.o attribs.o .................... -lisl -lmpc -lmpfr -lgmp -rdynamic -ldl -lz
collect2: error: ld returned 1 exit status

I am also seeing warnings about not compiling with optimization

# . warning _FORTIFY_SOURCE requires compiling with optimization (-O)

When I built without yaourt, I don't get the optimization warnings but it got into an infinite loop that lasted until my disk filled up several hours later.