Bug 497455

Summary: Update drd/scripts/download-and-build-gcc
Product: [Developer tools] valgrind Reporter: Paul Floyd <pjfloyd>
Component: drdAssignee: Paul Floyd <pjfloyd>
Status: RESOLVED FIXED    
Severity: normal    
Priority: NOR    
Version First Reported In: 3.24 GIT   
Target Milestone: ---   
Platform: Other   
OS: Linux   
Latest Commit: Version Fixed/Implemented In:
Sentry Crash Report:
Attachments: Updated script
With command line option for version

Description Paul Floyd 2024-12-14 12:04:43 UTC
Created attachment 176597 [details]
Updated script

This refers to an old version of GCC, and the build script is slightly Linux specific (location of bash, use of /proc and GNU make). There's no need for the gmp checks, 'dowload_prerequisites' also handles that. I'd also like to switch to using git anf git tags rather than tarballs. Last thing, not yet done, allow the GCC version to be chosen as an argument to the script (e.g., download-and-build-gcc 14.2.0).

I'm testing the attached script on FreeBSD.
Comment 1 Paul Floyd 2024-12-14 12:12:38 UTC
Created attachment 176598 [details]
With command line option for version

With a check for optional command line version of GCC
Comment 2 Paul Floyd 2024-12-15 14:16:42 UTC
commit d08b181d9418d9d700c43307664cfef3c1f2ad86 (HEAD -> master, origin/master, origin/HEAD)
Author: Paul Floyd <pjfloyd@wanadoo.fr>
Date:   Sun Dec 15 15:10:33 2024 +0100

    Bug 497455 - Update drd/scripts/download-and-build-gcc
    
    The other script also are likely to need some attention.
    This one is probably the most useful for users that want to test OpenMP
    aplications with DRD or Helgrind.