bug-binutils
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[Bug gprofng/32018] Compilation of binutils 2.43 for riscv64-unknown-lin


From: bigmagicreadsun at gmail dot com
Subject: [Bug gprofng/32018] Compilation of binutils 2.43 for riscv64-unknown-linux-gnu failed on CentOS 6
Date: Mon, 29 Jul 2024 10:14:30 +0000

https://sourceware.org/bugzilla/show_bug.cgi?id=32018

--- Comment #13 from bigmagicreadsun <bigmagicreadsun at gmail dot com> ---
(In reply to Vladimir Mezentsev from comment #12)
> Could you try this fix on CentOS:
> 
> % diff --git a/gprofng/libcollector/hwprofile.c
> b/gprofng/libcollector/hwprofile.c
> index cfe0d84dc1e..3b7f4840aa0 100644
> --- a/gprofng/libcollector/hwprofile.c
> +++ b/gprofng/libcollector/hwprofile.c
> @@ -216,13 +216,13 @@ open_experiment (const char *exp)
>           params += 2;
>           break;
>         }
> -      params = CALL_UTIL (strchr)(params, ';');
> +      params = __collector_strchr (params, ';');
>        if (params)
>         params++;
>      }
>    if (params == NULL)  /* HWC profiling not specified */
>      return COL_ERROR_HWCINIT;
> -  char *s = CALL_UTIL (strchr)(params, (int) ';');
> +  char *s = __collector_strchr (params, (int) ';');
>    int sz = s ? s - params : CALL_UTIL (strlen)(params);
>    char *defstring = (char*) alloca (sz + 1);
>    CALL_UTIL (strlcpy)(defstring, params, sz + 1);
> 
> 
> If this solves the problem, I will prepare a patch.

The corrected patch can solve the error problem of compiling binutils on
centos6. Thank you

-- 
You are receiving this mail because:
You are on the CC list for the bug.


reply via email to

[Prev in Thread] Current Thread [Next in Thread]