Git Product home page Git Product logo

Comments (4)

eli-schwartz avatar eli-schwartz commented on June 24, 2024

The uploaded file is incorrect. The error message says it is this meson.build file in a subdirectory to blame:

https://github.com/grimme-lab/xtb/blob/v6.7.0/meson/meson.build#L168

  omp_dep = dependency('openmp', required: fc.get_id() != 'intel' and fc.get_id() != 'nvidia_hpc')

This comes from:

openmp_date = self.clib_compiler.get_define(
'_OPENMP', '', self.env, self.clib_compiler.openmp_flags(), [self], disable_cache=True)[0]
except mesonlib.EnvironmentException as e:
mlog.debug('OpenMP support not available in the compiler')
mlog.debug(e)
openmp_date = None

get_define raises this:
# Get the preprocessed value between the delimiters
star_idx = p.stdout.find(delim_start)
end_idx = p.stdout.rfind(delim_end)
if (star_idx == -1) or (end_idx == -1) or (star_idx == end_idx):
raise mesonlib.MesonBugException('Delimiters not found in preprocessor output.')
define_value = p.stdout[star_idx + len(delim_start):end_idx]

@icamps please post your meson-log.txt as it should have the debug information relevant to solving your issue.

from meson.

icamps avatar icamps commented on June 24, 2024

@eli-schwartz sorry for my mistake.

Here is the meson-log.txt file attached.
meson-log.txt

from meson.

eli-schwartz avatar eli-schwartz commented on June 24, 2024

Thanks.

Running compile:
Working directory:  /tmp/tmpfezuttav
Code:
 
        
        #ifndef _OPENMP
        # define _OPENMP "MESON_GET_DEFINE_UNDEFINED_SENTINEL"
        #endif
        "MESON_GET_DEFINE_DELIMITER_START"
_OPENMP
"MESON_GET_DEFINE_DELIMITER_END"
-----------
Command line: `nvc /tmp/tmpfezuttav/testfile.c -E -P -P -O0 -mp` -> 0

meson/meson.build:168:12: ERROR: Delimiters not found in preprocessor output.

So the question is, what is nvc actually returning for that code...

from meson.

icamps avatar icamps commented on June 24, 2024

That file, testfile.c, is not part of the xTB program. I didn't find it and the temporary folders are deleted.

from meson.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.