Skip to content

test with meson ld error #22

@baugetfa

Description

@baugetfa

I tried the meson.build tested by @thomasarsouze known to not work:

project('PyRATP', 'fortran',
  version : '0.1',
  default_options : ['warning_level=3'])

sources = files([
  'src/f90/mod_Cocnstant_ValuesF2PY.f90',
  'src/f90/mod_Grid3DF2PY_64bit.f90',
  'src/f90/mod_SkyvaultF2PY.f90',
  'src/f90/mod_Vegetation_TypesF2PY.f90',
  'src/f90/mod_Dir_InterceptionF2PY.f90',
  'src/f90/mod_Hemi_InterceptionF2PY.f90',
  'src/f90/mod_MicrometeoF2PY.f90',
  'src/f90/mod_Shortwave_BalanceF2PY.f90',
  'src/f90/mod_Energy_BalanceF2PY.f90',
  'src/f90/mod_PhotosynthesisF2PY.f90',
  'src/f90/mod_MinerPhenoF2PY.f90',
  'src/f90/prog_RATP.f90'
])

executable('PyRATP', sources, install : true)

I got the error

/home/bauget/miniconda3/envs/pyratp/bin/../lib/gcc/x86_64-conda-linux-gnu/13.3.0/../../../../x86_64-conda-linux-gnu/bin/ld: /home/bauget/miniconda3/envs/pyratp/bin/../x86_64-conda-linux-gnu/sysroot/usr/lib/../lib/Scrt1.o: in function `_start':
(.text+0x20): undefined reference to `main'
collect2: error: ld returned 1 exit status
ninja: build stopped: subcommand failed.

But I got exactly the same error with a very simple case that can be found here

Metadata

Metadata

Assignees

Labels

bugpackagingRelated to packaging the softwarerefactoringAdapt to the guidelinesrelease2025OpenAlea 2025 release

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions