← All tasks
cppvisualboyadvance-m/visualboyadvance-m #1247Not a task: not reproduced

[Bug]: COMPILE ERROR ON LINUX MINT 21.3

envgap__visualboyadvance-m__visualboyadvance-m-1247

01 / FAILURE SIGNATURE

As reported upstream

Could not find POWERSHELL using the following names: pwsh
Not a benchmark task.
  • In a clean container the reported failure did not reproduce, or the known fix did not make the project run.

02 / ENVIRONMENT RECIPE

Base commit
f96e42fe049c044f01ff5660a87562ff68edf036
Manifest
CMakeLists.txt
Reproduce
Awaiting issue-specific recipe
Run under trace
Awaiting a meaningful runtime command

03 / ORIGINAL ISSUE TEXT

visualboyadvance-m/visualboyadvance-m #1247 · read the original issue
### Expected behavior?

I always compile the emulator with the following commands:



1. ./installdeps

2. mkdir build && cd build

3. cmake .. -DCMAKE_BUILD_TYPE=Release -G Ninja

4.ninja



Until this moment I had never had any problems.

### Actual behavior?

When I run the command:



cmake .. -DCMAKE_BUILD_TYPE=Release -G Ninja



The following message appears on the terminal:



CMake Error at CMakeLists.txt:31 (find_program):

  Could not find POWERSHELL using the following names: pwsh



### Steps to reproduce the problem

cmake .. -DCMAKE_BUILD_TYPE=Release -G Ninja



I checked line 31 of the file and removed the following lines:



if(WIN32)

    find_program(POWERSHELL

        NAMES powershell.exe pwsh.exe

        HINTS "/Windows/System32/WindowsPowerShell/v1.0"

        REQUIRED)

else()

    find_program(POWERSHELL pwsh REQUIRED)

endif()



### Error messages?

After removing those lines it lets me compile and returns the following message:



[145/194] Linking CXX executable tests/strutils

lto-wrapper: warning: using serial compilation of 3 LTRANS jobs

[193/194] Linking CXX executable vbam

expr-lex.cpp:187:8: warning: type ‘struct yy_buffer_state’ violates the C++ One Definition Rule [-Wodr]

debugger-expr-lex.cpp:444:8: note: a different type is defined in another translation unit

expr-lex.cpp:196:15: note: the first difference of corresponding definitions is field ‘yy_buf_size’

debugger-expr-lex.cpp:454:6: note: a field of same name but different type is defined in another translation unit

expr-lex.cpp:187:8: note: type ‘yy_size_t’ should match type ‘int’

lto-wrapper: warning: using serial compilation of 37 LTRANS jobs

[194/194] Linking CXX executable visualboyadvance-m

lto-wrapper: warning: using serial compilation of 59 LTRANS jobs



### What game were you playing

_No response_

### What settings are you using?

Default settings.



### Specifications and Build details

VBA-M: VBA-M [aa59d94]

CPU: AMD A9-9420

GPU: AMD STONEY R5

RAM: 4 GB



### Copyright Compliance

- [X] There are no infringing files attached to this bug report.
Continue on GitHub ↗

04 / LABELS

Labels from the report text only; not yet run

No supported category has been assigned.

Label rules and the text that matched
[]