Bug 497455 - Update drd/scripts/download-and-build-gcc
Summary: Update drd/scripts/download-and-build-gcc
Status: RESOLVED FIXED
Alias: None
Product: valgrind
Classification: Developer tools
Component: drd (other bugs)
Version First Reported In: 3.24 GIT
Platform: Other Linux
: NOR normal
Target Milestone: ---
Assignee: Paul Floyd
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2024-12-14 12:04 UTC by Paul Floyd
Modified: 2024-12-15 14:16 UTC (History)
0 users

See Also:
Latest Commit:
Version Fixed/Implemented In:
Sentry Crash Report:


Attachments
Updated script (1.18 KB, application/x-shellscript)
2024-12-14 12:04 UTC, Paul Floyd
Details
With command line option for version (1.23 KB, application/x-shellscript)
2024-12-14 12:12 UTC, Paul Floyd
Details

Note You need to log in before you can comment on or make changes to this bug.
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.