Re: gcc-7.5.0 build fails.

Hanspeter Niederstrasser <[email protected]>
Newsgroups gmane.os.apple.fink.beginners
Organization Snaggled Works
Message-ID <[email protected]>
On 4/5/20 8:14 PM, Ken Tyler wrote:
> Hi All,
> 
> I’m stuck, selfupdate followed by an update-all failed.
> 
> This is not new, the last few times I’ve run update-all have failed and the problem is gcc7.
> 
> I saw recently a "sudo xcodebuild -license” is needed after updating command line tools which I don’t ever recall doing.
> 
> After running the command I was optimistic, the gcc compile was going well, getting much further than previous attempts, but unfortunately it failed close to the end in the install phase:
> 
>          std::_Rb_tree<unsigned int, std::pair<unsigned int const, long long>, std::_Select1st<std::pair<unsigned int const, long long> >, std::less<unsigned int>, std::allocator<std::pair<unsigned int const, long long> > >::_M_insert_node(std::_Rb_tree_node_base*, std::_Rb_tree_node_base*, std::_Rb_tree_node<std::pair<unsigned int const, long long> >*) in libbackend.a(auto-profile.o)
>        autofdo::string_table::read() (.part.268) in libbackend.a(auto-profile.o)
>        std::_Rb_tree_iterator<std::pair<unsigned int const, autofdo::count_info> > std::_Rb_tree<unsigned int, std::pair<unsigned int const, autofdo::count_info>, std::_Select1st<std::pair<unsigned int const, autofdo::count_info> >, std::less<unsigned int>, std::allocator<std::pair<unsigned int const, autofdo::count_info> > >::_M_emplace_hint_unique<std::piecewise_construct_t const&, std::tuple<unsigned int const&>, std::tuple<> >(std::_Rb_tree_const_iterator<std::pair<unsigned int const, autofdo::count_info> >, std::piecewise_construct_t const&&&, std::tuple<unsigned int const&>&&, std::tuple<>&&) (.isra.288) in libbackend.a(auto-profile.o)
>        autofdo::function_instance::read_function_instance(auto_vec<autofdo::function_instance*, 0ul>*, long long) in libbackend.a(auto-profile.o)
>        ...
> ld: symbol(s) not found for architecture x86_64
> clang: error: linker command failed with exit code 1 (use -v to see invocation)
> make[2]: *** [../../gcc-7.5.0/gcc/c/Make-lang.in:85: cc1] Error 1
> make[2]: Leaving directory '/sw/src/fink.build/gcc7-7.5.0-1/darwin_objdir/gcc'
> make[1]: *** [Makefile:4906: install-gcc] Error 2
> make[1]: Leaving directory '/sw/src/fink.build/gcc7-7.5.0-1/darwin_objdir'
> make: *** [Makefile:2354: install] Error 2
> ### execution of /tmp/fink.lAyjb failed, exit code 2
> ### execution of /tmp/fink.YbXAx failed, exit code 2
> Removing runtime build-lock...
> Removing build-lock package...
> /sw/bin/dpkg-lockwait -r fink-buildlock-gcc7-7.5.0-1
> (Reading database ... 256737 files and directories currently installed.)
> Removing fink-buildlock-gcc7-7.5.0-1 ...
> Failed: phase installing: gcc7-7.5.0-1 failed
> 
> Before reporting any errors, please run "fink selfupdate" and try again.
> 
> If you continue to have issues, please check to see if the FAQ on Fink's
> website solves the problem.  If not, ask on one (not both, please) of
> these mailing lists:
> 
> 	The Fink Users List <[email protected]>
> 	The Fink Beginners List <[email protected]>.
> 
> Please try to include the complete error message in your report.  This
> generally consists of a compiler line starting with e.g. "gcc" or "g++"
> followed by the actual error output from the compiler.
> 
> Also include the following system information:
> Package manager version: 0.45.1
> Distribution version: selfupdate-git Sun Apr  5 17:08:44 2020, 10.13, x86_64
> Trees: local/main stable/main
> Xcode.app: 10.1
> Xcode command-line tools: 10.1.0.0.1.1539992718
> Max. Fink build jobs:  1

I've test built gcc7 on 10.13 through 10.15 with no problems.

What is asking you to install gcc7? Nothing in Fink should be depending 
on that anymore. Have you tried gcc9 ?

Hanspeter


_______________________________________________
Fink-beginners mailing list
[email protected]
List archive:
https://sourceforge.net/p/fink/mailman/fink-users/
Subscription management:
https://lists.sourceforge.net/lists/listinfo/fink-beginners
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.