Skip to content

New warning about entry points that might terminate R in compiled code in R-devel #198

@astamm

Description

@astamm
File ‘nloptr/libs/nloptr.so’:
    Found ‘_ZSt4cerr’, possibly from ‘std::cerr’ (C++)
      Object: ‘nlopt/lib/libnlopt.a’
    Found ‘_ZSt4cout’, possibly from ‘std::cout’ (C++)
      Object: ‘nlopt/lib/libnlopt.a’
    Found ‘__printf_chk’, possibly from ‘printf’ (C)
      Object: ‘nlopt/lib/libnlopt.a’
    Found ‘abort’, possibly from ‘abort’ (C)
      Object: ‘nlopt/lib/libnlopt.a’
    Found ‘exit’, possibly from ‘exit’ (C)
      Object: ‘nlopt/lib/libnlopt.a’
    Found ‘putchar’, possibly from ‘putchar’ (C)
      Object: ‘nlopt/lib/libnlopt.a’
    Found ‘puts’, possibly from ‘printf’ (C), ‘puts’ (C)
      Object: ‘nlopt/lib/libnlopt.a’
    Found ‘stderr’, possibly from ‘stderr’ (C)
      Object: ‘nlopt/lib/libnlopt.a’

Compiled code should not call entry points which might terminate R nor
  write to stdout/stderr instead of to the console, nor use Fortran I/O
  nor system RNGs nor [v]sprintf.
  
  See ‘Writing portable packages’ in the ‘Writing R Extensions’ manual.

Taken from the CI: https://github.com/astamm/nloptr/actions/runs/14003511427/job/39276607383?pr=196

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions