Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Error while installing gcc (gcc-8.5.0) #1289

Open
pk2061 opened this issue Feb 18, 2025 · 9 comments
Open

Error while installing gcc (gcc-8.5.0) #1289

pk2061 opened this issue Feb 18, 2025 · 9 comments

Comments

@pk2061
Copy link
Contributor

pk2061 commented Feb 18, 2025

Hi,

i was trying to update my gcc.
After compiling for nearly two days straight it crashed with the following error messages:

==> Installing gcc
==> Downloading https://ftp.gnu.org/gnu/gcc/gcc-8.5.0/gcc-8.5.0.tar.xz
######################################################################### 100.0%
==> ../configure --build=powerpc-apple-darwin8.11.0 --prefix=/usr/local/Cellar/g
==> make
Last 15 lines from /Users/jan/Library/Logs/Homebrew/gcc/02.make:
../../gcc/mem-stats.h:208:22: warning: ISO C++11 does not support the 'q' gnu_printf length modifier [-Wformat=]
../../gcc/mem-stats.h: In member function 'void mem_usage::dump_footer() const':
../../gcc/mem-stats.h:223:22: warning: ISO C++11 does not support the 'q' gnu_printf length modifier [-Wformat=]
     fprintf (stderr, "%s%54" PRIu64 "%27" PRIu64 "\n", "Total",
                      ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
../../gcc/mem-stats.h:223:22: warning: ISO C++11 does not support the 'q' gnu_printf length modifier [-Wformat=]
/private/tmp/gcc20250215-8501-16npo1n/gcc-8.5.0/build/./prev-gcc/xg++ -B/private/tmp/gcc20250215-8501-16npo1n/gcc-8.5.0/build/./prev-gcc/ -B/usr/local/Cellar/gcc/8.5.0/powerpc-apple-darwin8.11.0/bin/ -nostdinc++ -B/private/tmp/gcc20250215-8501-16npo1n/gcc-8.5.0/build/prev-powerpc-apple-darwin8.11.0/libstdc++-v3/src/.libs -B/private/tmp/gcc20250215-8501-16npo1n/gcc-8.5.0/build/prev-powerpc-apple-darwin8.11.0/libstdc++-v3/libsupc++/.libs  -I/private/tmp/gcc20250215-8501-16npo1n/gcc-8.5.0/build/prev-powerpc-apple-darwin8.11.0/libstdc++-v3/include/powerpc-apple-darwin8.11.0  -I/private/tmp/gcc20250215-8501-16npo1n/gcc-8.5.0/build/prev-powerpc-apple-darwin8.11.0/libstdc++-v3/include  -I/private/tmp/gcc20250215-8501-16npo1n/gcc-8.5.0/libstdc++-v3/libsupc++ -L/private/tmp/gcc20250215-8501-16npo1n/gcc-8.5.0/build/prev-powerpc-apple-darwin8.11.0/libstdc++-v3/src/.libs -L/private/tmp/gcc20250215-8501-16npo1n/gcc-8.5.0/build/prev-powerpc-apple-darwin8.11.0/libstdc++-v3/libsupc++/.libs -fno-PIE -c   -g -O2 -mdynamic-no-pic  -gtoggle -DIN_GCC     -fno-exceptions -fno-rtti -fasynchronous-unwind-tables -W -Wall -Wno-narrowing -Wwrite-strings -Wcast-qual    -DHAVE_CONFIG_H -I. -Icommon -I../../gcc -I../../gcc/common -I../../gcc/../include -I../../gcc/../libcpp/include -I/usr/local/opt/gmp/include -I/usr/local/opt/mpfr/include -I/usr/local/opt/libmpc/include  -I../../gcc/../libdecnumber -I../../gcc/../libdecnumber/dpd -I../libdecnumber -I../../gcc/../libbacktrace -I/usr/local/opt/isl/include -I/usr/local/opt/cctools/include -F/usr/local/Frameworks -o common/common-targhooks.o -MT common/common-targhooks.o -MMD -MP -MF common/.deps/common-targhooks.TPo ../../gcc/common/common-targhooks.c
../../gcc/common/common-targhooks.c:83:4: fatal error: opening dependency file common/.deps/common-targhooks.TPo: No such file or directory
   };
    ^
compilation terminated.
make[3]: *** [common/common-targhooks.o] Error 1
make[2]: *** [all-stage2-gcc] Error 2
make[1]: *** [stage2-bubble] Error 2
make: *** [all] Error 2

READ THIS: https://github.com/mistydemeo/tigerbrew/wiki/troubleshooting

These open issues may also help:
Newer GCC or clang https://github.com/mistydemeo/tigerbrew/issues/1201
GCC 8 installed from gcc8 formula not recognised https://github.com/mistydemeo/tigerbrew/issues/1276
Everything requires either gcc or apple-gcc42... including gcc and apple-gcc42 https://github.com/mistydemeo/tigerbrew/issues/600
ld64 build fails when using GCC 5 https://github.com/mistydemeo/tigerbrew/issues/1040
gcc uses /usr/bin/ld instead of ld64 https://github.com/mistydemeo/tigerbrew/issues/803
mpg123 altivec instructions fail with gcc-4.8 https://github.com/mistydemeo/tigerbrew/issues/122
ENV (superenv / stdenv): Mark every future version of GCC above gcc-4.8 (including the as-of-current-writing gcc-7) as supporting C++11, which fixes `ENV.cxx11` usage in Tigerbrew formulae. https://github.com/mistydemeo/tigerbrew/pull/767
fish: tiger_g4e bottle secretly depends on gcc formula being installed and linked https://github.com/mistydemeo/tigerbrew/issues/1188
GCC 7 fails to install on 10.6 x86_64 at stage3 https://github.com/mistydemeo/tigerbrew/issues/554
homebrew/core/diffutils and homebrew/core/grep builds fail with GCC-7 (10.4/G4) https://github.com/mistydemeo/tigerbrew/issues/623
aria2: Add missing `ENV.cxx11` in the install block so the `-std=c++11` flag will be correctly passed on to GCC. [Depends on PR #767 — do not merge until then] https://github.com/mistydemeo/tigerbrew/pull/771

I am using an iMac G3 with 500Mhz running Tiger.

Have you any advice for me?

Thanks for your great work! :)

@sevan
Copy link
Collaborator

sevan commented Feb 18, 2025

I did test this formula on a iBook G3 with Tiger. "completed successfully, 2108.7 minutes on a 600Mhz late 2001 iBook G3."
Which compiler are you using to build GCC 8.5?

@pk2061
Copy link
Contributor Author

pk2061 commented Feb 18, 2025

HI,

from the log file I would guess brew uses /usr/local/bin/gcc-4.2

Apart from that I have also gcc 7.5 installed:

imac-g3:~ jan$ which gcc
/usr/local/bin/gcc
imac-g3:~ jan$ gcc -v      
Using built-in specs.
COLLECT_GCC=gcc-7
COLLECT_LTO_WRAPPER=/usr/local/Cellar/gcc/7.5.0/libexec/gcc/powerpc-apple-darwin8.11.0/7.5.0/lto-wrapper
Target: powerpc-apple-darwin8.11.0
Configured with: ../configure --build=powerpc-apple-darwin8.11.0 --prefix=/usr/local/Cellar/gcc/7.5.0 --libdir=/usr/local/Cellar/gcc/7.5.0/lib/gcc/7 --enable-languages=c,c++,objc,obj-c++,fortran --program-suffix=-7 --with-gmp=/usr/local/opt/gmp --with-mpfr=/usr/local/opt/mpfr --with-mpc=/usr/local/opt/libmpc --with-isl=/usr/local/opt/isl --with-system-zlib --enable-checking=release --with-pkgversion='Tigerbrew gcc 7.5.0' --with-bugurl=https://github.com/mistydemeo/tigerbrew/issues --with-dwarf2 --disable-nls --disable-multilib
Thread model: posix
gcc version 7.5.0 (Tigerbrew gcc 7.5.0) 
imac-g3:~ jan$ 

@sevan
Copy link
Collaborator

sevan commented Feb 18, 2025

That's fine, I also used apple-gcc42. How much RAM do you have installed in your system?

@pk2061
Copy link
Contributor Author

pk2061 commented Feb 18, 2025

I have 768 MB Ram installed

@sevan
Copy link
Collaborator

sevan commented Feb 18, 2025

Btw, in your initial post, the output you shared states fatal error: opening dependency file common/.deps/common-targhooks.TPo: No such file or directory but the log file has no such error. (could you share the log file which contains this message if you can)

@sevan
Copy link
Collaborator

sevan commented Feb 18, 2025

I have 768 MB Ram installed

Ok, you're doing better than me. I had 640MB installed, I think.

@pk2061
Copy link
Contributor Author

pk2061 commented Feb 18, 2025

Btw, in your initial post, the output you shared states fatal error: opening dependency file common/.deps/common-targhooks.TPo: No such file or directory but the log file has no such error. (could you share the log file which contains this message if you can)

I am sorry, maybe I have accidentally overwritten the log file.
I will try building it again and give you a new logfile when it broke again.

@sevan
Copy link
Collaborator

sevan commented Feb 18, 2025

I am sorry, maybe I have accidentally overwritten the log file. I will try building it again and give you a new logfile when it broke again.

Not a problem, since you're looking to start a new build, if it's possible could you clone a fresh tigerbrew repo somewhere instead & run brew install gcc from within that new copy, just to rule out something with your existing setup?

@pk2061
Copy link
Contributor Author

pk2061 commented Feb 18, 2025

Not a problem, since you're looking to start a new build, if it's possible could you clone a fresh tigerbrew repo somewhere instead & run brew install gcc from within that new copy, just to rule out something with your existing setup?

I have a TigerVM somewhere. I will try to get it running there and get back to you.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants