Bug 277899 - devel/papi: Mark as BROKEN
Summary: devel/papi: Mark as BROKEN
Status: Closed FIXED
Alias: None
Product: Ports & Packages
Classification: Unclassified
Component: Individual Port(s) (show other bugs)
Version: Latest
Hardware: Any Any
: --- Affects Only Me
Assignee: Yasuhiro Kimura
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2024-03-23 04:02 UTC by Yasuhiro Kimura
Modified: 2024-04-21 01:24 UTC (History)
1 user (show)

See Also:
yasu: maintainer-feedback-


Attachments
Patch file (3.61 KB, patch)
2024-03-23 04:02 UTC, Yasuhiro Kimura
no flags Details | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description Yasuhiro Kimura freebsd_committer freebsd_triage 2024-03-23 04:02:43 UTC
Created attachment 249421 [details]
Patch file

Build fails as following.

cc -shared -Xlinker "-soname" -Xlinker "libpapi.so" -Xlinker "-rpath" -Xlinker "/usr/local/lib" -DPIC -fPIC -I. -Ifreebsd -I. -O2 -pipe  -fstack-protector-strong -fno-strict-aliasing  -g -DSTATIC_PAPI_EVENTS_TABLE -D_REENTRANT -D_GNU_SOURCE -DNO_TLS  -I. -Ifreebsd -DPIC -fPIC -DPAPI_NO_MEMORY_MANAGEMENT  -DOSLOCK=\"freebsd-lock.h\" -DOSCONTEXT=\"freebsd-context.h\" -O2 -DPAPI_NO_MEMORY_MANAGEMENT x86_cpuid_info.c freebsd/map-unknown.c freebsd/map.c freebsd/map-p6.c freebsd/map-p6-m.c freebsd/map-p6-3.c freebsd/map-p6-2.c freebsd/map-p6-c.c freebsd/map-k7.c freebsd/map-k8.c freebsd/map-p4.c freebsd/map-atom.c freebsd/map-core.c freebsd/map-core2.c freebsd/map-core2-extreme.c freebsd/map-i7.c freebsd/map-westmere.c papi.c papi_internal.c papi_hl.c extras.c sw_multiplex.c papi_fwrappers.c papi_fwrappers_.c papi_fwrappers__.c upper_PAPI_FWRAPPERS.c threads.c cpus.c f
reebsd-memory.c freebsd.c papi_preset.c papi_vector.c papi_memory.c   -o libpapi.so.5.4.3.0  -lpmc
papi_fwrappers.c:751:12: warning: address of array 'info.note' will always evaluate to 'true' [-Wpointer-bool-conversion]
                if (info.note)
                ~~  ~~~~~^~~~
1 warning generated.
papi_fwrappers.c:751:12: warning: address of array 'info.note' will always evaluate to 'true' [-Wpointer-bool-conversion]
  if (info.note)
  ~~  ~~~~~^~~~
1 warning generated.
papi_fwrappers.c:751:12: warning: address of array 'info.note' will always evaluate to 'true' [-Wpointer-bool-conversion]
  if (info.note)
  ~~  ~~~~~^~~~
1 warning generated.
papi_fwrappers.c:751:12: warning: address of array 'info.note' will always evaluate to 'true' [-Wpointer-bool-conversion]
  if (info.note)
  ~~  ~~~~~^~~~
1 warning generated.
freebsd.c:361:92: error: too few arguments to function call, expected 6, have 5
                if ((ret = pmc_allocate (ctrl->counters[i], PMC_MODE_TC, 0, PMC_CPU_ANY, &(ctrl->pmcs[i]))) < 0)
                           ~~~~~~~~~~~~                                                                  ^
/usr/include/pmc.h:75:5: note: 'pmc_allocate' declared here
int     pmc_allocate(const char *_ctrspec, enum pmc_mode _mode, uint32_t _flags,
        ^
freebsd.c:827:73: error: too few arguments to function call, expected 6, have 5
                        if ( (ret = pmc_allocate (name, PMC_MODE_TC, 0, PMC_CPU_ANY, &pmcs[i])) < 0)
                                    ~~~~~~~~~~~~                                             ^
/usr/include/pmc.h:75:5: note: 'pmc_allocate' declared here
int     pmc_allocate(const char *_ctrspec, enum pmc_mode _mode, uint32_t _flags,
        ^
2 errors generated.
papi_preset.c:849:2: warning: 'memset' will always overflow; destination buffer has size 1024, but size argument is 2048 [-Wfortify-source]
        memset( &stack, 0, 2*PAPI_HUGE_STR_LEN );
        ^
1 warning generated.
gmake: *** [Makefile.inc:61: libpapi.so.5.4.3.0] Error 1
*** Error code 1

Stop.
make: stopped in /usr/ports/devel/papi
Comment 1 Yasuhiro Kimura freebsd_committer freebsd_triage 2024-04-21 01:03:37 UTC
Maintainer timeout. Take.
Comment 2 commit-hook freebsd_committer freebsd_triage 2024-04-21 01:18:30 UTC
A commit in branch main references this bug:

URL: https://cgit.FreeBSD.org/ports/commit/?id=b301b38dc59e6cb86a9f9379c9e11d860c02e2c9

commit b301b38dc59e6cb86a9f9379c9e11d860c02e2c9
Author:     Yasuhiro Kimura <yasu@FreeBSD.org>
AuthorDate: 2024-04-21 01:14:34 +0000
Commit:     Yasuhiro Kimura <yasu@FreeBSD.org>
CommitDate: 2024-04-21 01:14:34 +0000

    devel/papi: Mark as BROKEN

    Build fails as following.

    cc -shared -Xlinker "-soname" -Xlinker "libpapi.so" -Xlinker "-rpath" -Xlinker "/usr/local/lib" -DPIC -fPIC -I. -Ifreebsd -I. -O2 -pipe  -fstack-protector-strong -fno-strict-aliasing  -g -DSTATIC_PAPI_EVENTS_TABLE -D_REENTRANT -D_GNU_SOURCE -DNO_TLS  -I. -Ifreebsd -DPIC -fPIC -DPAPI_NO_MEMORY_MANAGEMENT  -DOSLOCK=\"freebsd-lock.h\" -DOSCONTEXT=\"freebsd-context.h\" -O2 -DPAPI_NO_MEMORY_MANAGEMENT x86_cpuid_info.c freebsd/map-unknown.c freebsd/map.c freebsd/map-p6.c freebsd/map-p6-m.c freebsd/map-p6-3.c freebsd/map-p6-2.c freebsd/map-p6-c.c freebsd/map-k7.c freebsd/map-k8.c freebsd/map-p4.c freebsd/map-atom.c freebsd/map-core.c freebsd/map-core2.c freebsd/map-core2-extreme.c freebsd/map-i7.c freebsd/map-westmere.c papi.c papi_internal.c papi_hl.c extras.c sw_multiplex.c papi_fwrappers.c papi_fwrappers_.c papi_fwrappers__.c upper_PAPI_FWRAPPERS.c threads.c cpus.c freebsd-memory.c freebsd.c papi_preset.c papi_vector.c papi_memory.c   -o libpapi.so.5.4.3.0  -lpmc
    papi_fwrappers.c:751:12: warning: address of array 'info.note' will always evaluate to 'true' [-Wpointer-bool-conversion]
                    if (info.note)
                    ~~  ~~~~~^~~~
    1 warning generated.
    papi_fwrappers.c:751:12: warning: address of array 'info.note' will always evaluate to 'true' [-Wpointer-bool-conversion]
      if (info.note)
      ~~  ~~~~~^~~~
    1 warning generated.
    papi_fwrappers.c:751:12: warning: address of array 'info.note' will always evaluate to 'true' [-Wpointer-bool-conversion]
      if (info.note)
      ~~  ~~~~~^~~~
    1 warning generated.
    papi_fwrappers.c:751:12: warning: address of array 'info.note' will always evaluate to 'true' [-Wpointer-bool-conversion]
      if (info.note)
      ~~  ~~~~~^~~~
    1 warning generated.
    freebsd.c:361:92: error: too few arguments to function call, expected 6, have 5
                    if ((ret = pmc_allocate (ctrl->counters[i], PMC_MODE_TC, 0, PMC_CPU_ANY, &(ctrl->pmcs[i]))) < 0)
                               ~~~~~~~~~~~~                                                                  ^
    /usr/include/pmc.h:75:5: note: 'pmc_allocate' declared here
    int     pmc_allocate(const char *_ctrspec, enum pmc_mode _mode, uint32_t _flags,
            ^
    freebsd.c:827:73: error: too few arguments to function call, expected 6, have 5
                            if ( (ret = pmc_allocate (name, PMC_MODE_TC, 0, PMC_CPU_ANY, &pmcs[i])) < 0)
                                        ~~~~~~~~~~~~                                             ^
    /usr/include/pmc.h:75:5: note: 'pmc_allocate' declared here
    int     pmc_allocate(const char *_ctrspec, enum pmc_mode _mode, uint32_t _flags,
            ^
    2 errors generated.
    papi_preset.c:849:2: warning: 'memset' will always overflow; destination buffer has size 1024, but size argument is 2048 [-Wfortify-source]
            memset( &stack, 0, 2*PAPI_HUGE_STR_LEN );
            ^
    1 warning generated.
    gmake: *** [Makefile.inc:61: libpapi.so.5.4.3.0] Error 1
    *** Error code 1

    Stop.
    make: stopped in /usr/ports/devel/papi

    PR:             277899
    Approved by:    maintainer timeout

 devel/papi/Makefile | 2 ++
 1 file changed, 2 insertions(+)