Sent: Saturday, May 16, 2020 at 10:42 PM From: "Bruce Dubbs via blfs-support" <[email protected]> To: [email protected] Cc: "Bruce Dubbs" <[email protected]> Subject: Re: [blfs-support] Older GCC install On 5/16/20 4:30 PM, Cliff McDiarmid via blfs-support wrote: > > Sent: Saturday, May 16, 2020 at 3:13 PM > From: "Bruce Dubbs via blfs-support" <[email protected]> > To: [email protected] > Cc: "Bruce Dubbs" <[email protected]> > Subject: Re: [blfs-support] Older GCC install > On 5/16/20 6:39 AM, Cliff McDiarmid via blfs-support wrote: >>> Sent: Saturday, May 16, 2020 at 12:11 AM >>> From: "Don Cross via blfs-support" <[email protected]> >>> To: "BLFS Support List" <[email protected]> >>> Cc: "Don Cross" <[email protected]> >>> Subject: Re: [blfs-support] Older GCC install >> >>> On Fri, May 15, 2020 at 6:00 PM Cliff McDiarmid via blfs-support >>> <[email protected][mailto:[email protected]]> >>> wrote: >> >>> I need to install an older GCC to compile a particular piece of software. >>> At present I'm using GCC 9.2(recent LFS). >>> I've managed to compile 8.4 and it works, but I need 8.1. >> >>> As a long-time C programmer, I'm curious why you need an older C compiler. >> >> Okay thanks Don. I'm trying to compile Gnucash 3.10 which has not been a >> problem in the past. The dependencies at present stress the use of GCC 8.0 >> >>> If I knew what problem gcc 8.4 is causing, maybe I could help get it >>> working, so you don't need to compile 8.1. I'm willing to give it a shot if >>> I had more details. >> >> I've compiled Gnucash 3.10 with GCC 8.1 abeit on another LFS(older). > >> Copy the binary from the old system to the new one? Would be a lot >> easier than trying to rebuild it. > > First thing I tried Bruce. Doesn't work. It's not finding libraries.
>Use ldd on the executable to find out what libraries it wants. >Generally libraries would be something like: >libx.so.3 -> libx.so.333 >libx.so.312 >A different version of the library would then be >libx.so.2 -> libx.so.222 >libx.so.222 >These can be installed side by side. >The libx.so file is only used by the linker when building and generally >would point to the most recent version. Thanks Bruce but it's a no go. Managed to supply all libraries needed including about eight links. In the end though I had symbols missing - it got messy. Going with Don's advice now and trying to alter code. cliff -- http://lists.linuxfromscratch.org/listinfo/blfs-support FAQ: http://www.linuxfromscratch.org/blfs/faq.html Unsubscribe: See the above information page
