Closed davidcorrigan714 closed 3 years ago
The database should be being included in the prjoxide
binary, it shouldn't be being looked for at all. But it's possible if it is missing at prjoxide build time something is going wrong - did you do a recursive clone of prjoxide?
Oh that's probably it, should've checked that initially. I'm doing it all in Actions so that I (and others if upstream wants it) will always have up to date nightly windows builds - but it looks like I did forget submodules so I'll rerun and close this out if it fixes them.
Well that fixed that error - got a few build errors with the nexus code in nextpnr, will have to dig into those next.
I'm trying to build nextpnr against prjoxide on windows and hitting this error:
Touching "x64\Release\chipdb-nexus-bbas\chipdb-n.1CF2954C.tlog\unsuccessfulbuild". CustomBuild: "The build of 'C:\Users\User\Desktop\nextpnr\CMakeFiles\c064314d5248ea648493cfbc4f07cfae\chipdb-nexus-bbas.rule' depends on 'C:\USERS\USER\DESKTOP\NEXTPNR\NEXUS\CHIPDB\CHIPDB-LIFCL.BBA' which is produced by the build of 'C:\Users\User\Desktop\nextpnr\CMakeFiles\9264e4eece416fcd2a7c2b4cbd1744b1\chipdb-LIFCL.bba.rule'. The items cannot be built in parallel." Generating chipdb/chipdb-LIFCL.bba thread 'main' panicked at 'called
Option::unwrap()on a
None` value', prjoxide\src\database.rs:481:62 stack backtrace: 0: 0x7bf046 - std::backtrace_rs::backtrace::trace_unsynchronized::h643d2cbff6704dbc 1: 0x76a6e4 -Done Building Project "C:\Users\User\Desktop\nextpnr\nexus\chipdb-nexus-bbas.vcxproj.metaproj" (default targets) -- FAILED.
Done Building Project "C:\Users\User\Desktop\nextpnr\chipdb-nexus-bins.vcxproj.metaproj" (default targets) -- FAILED.
Done Building Project "C:\Users\User\Desktop\nextpnr\chipdb-nexus.vcxproj.metaproj" (default targets) -- FAILED.
Done Building Project "C:\Users\User\Desktop\nextpnr\ALL_BUILD.vcxproj.metaproj" (default targets) -- FAILED.
Done Building Project "C:\Users\User\Desktop\nextpnr\nextpnr.sln" (Build target(s)) -- FAILED.
Build FAILED.
"C:\Users\User\Desktop\nextpnr\nextpnr.sln" (Build target) (1) -> `
Looks like it's trying to find the database.rs file from the source repo, though the Readme implies that should all be included. My commands for building nextpnr looks like: cmake . -DCMAKE_TOOLCHAIN_FILE="$Env:GITHUB_WORKSPACE/vcpkg/scripts/buildsystems/vcpkg.cmake" -DSTATIC_BUILD=ON -DPython_ADDITIONAL_VERSIONS='3.8' -DCMAKE_CXX_FLAGS='/D "WIN32" /EHsc' -DARCH=nexus -DCMAKE_PREFIX_PATH="$Env:GITHUB_WORKSPACE\prjtrellis" -DOXIDE_INSTALL_PREFIX="$Env:GITHUB_WORKSPACE\prjoxide"
."C:\Program Files (x86)\Microsoft Visual Studio\2019\BuildTools\MSBuild\Current\Bin\MSBuild.exe" /t:Build /p:Configuration=Release /p:Platform=x64 /p:VCTargetsPath="C:\Program Files (x86)\Microsoft Visual Studio\2019\BuildTools\MSBuild\Microsoft\VC\v160\" nextpnr.sln
The prjoxide just has the bin directory and executable, there's some extra stuff on that cmake command for prjtrellis too of course though the build isn't running for it at the moment.