Pasbuild INIT and dependecies #31
|
This is a very simple project.
then edit src of two.Util.pas to have a [INFO] PasBuild 1.9.0 — Born 2026-06-15. Raised by Graeme Geldenhuys.
[INFO] Compiler: FPC (fpc)
[INFO] Executing goal: dependency-tree
[INFO] ------------------------------------------------------------------------
[INFO] Dependency Tree
[INFO] ------------------------------------------------------------------------
[INFO]
[INFO] one 1.0.0 [library]
[INFO] (no dependencies)
[INFO]
[INFO] two 1.0.0 [library]
[INFO] └─ one [module]
[INFO]
[INFO] three 1.0.0 [library]
[INFO] └─ two [module]
[INFO] From pasbug main directory, `pasbuild compile -v' produces : [INFO] Found 1 source file(s)
[INFO] Build command: fpc -Mobjfpc -O1 target/bootstrap_program.pas -FEtarget -otwo -FUtarget/units -Fusrc/main/pascal -Fu/home/bill/src/pasbug/one/target/units -Fitarget
Free Pascal Compiler version 3.2.2+dfsg-32 [2024/01/05] for x86_64
Copyright (c) 1993-2021 by Florian Klaempfl and others
Target OS: Linux for x86-64
Compiling target/bootstrap_program.pas
Compiling ./src/main/pascal/two.Utils.pas
two.Utils.pas(5,6) Fatal: Can't find unit one used by two.Utils
Fatal: Compilation aborted
Error: /usr/bin/ppcx64 returned an error exitcode
[ERROR] Build failed with exit code: 1
[ERROR] Goal failed: compile
[INFO] ------------------------------------------------------------------------
[INFO] BUILD FAILURE [ 0.052 s]
[INFO] ------------------------------------------------------------------------
[INFO] ------------------------------------------------------------------------
[INFO] Reactor Summary:
[INFO]
[INFO] one .... SUCCESS [ 0.062 s]
[INFO] two .... FAILURE [ 0.052 s]
[INFO] ------------------------------------------------------------------------
[INFO] BUILD FAILURE
[INFO] ------------------------------------------------------------------------
[INFO] Total time: 0.114 s
[INFO] ------------------------------------------------------------------------
[ERROR] Goal failed: reactor-compileThe directory shows : Here is my project.xml for 'two' <?xml version="1.0" encoding="UTF-8"?>
<project>
<name>two</name>
<!-- version inherited from aggregator -->
<author>bill</author>
<license>MIT</license>
<moduleDependencies>
<module>../one</module>
</moduleDependencies>
<build>
<packaging>library</packaging>
<outputDirectory>target</outputDirectory>
</build>
<test>
<testSource>TestRunner.pas</testSource>
<frameworkOptions>
<option>--all --format=plain</option>
</frameworkOptions>
</test>
</project>I have a much larger project that compiles fine with FPC, but shows missing units when compiled with --compiler {path to blaise} Suggestions ? |
Answered by
Schmitty2005
Aug 11, 2026
Replies: 2 comments
|
Here is the {
"project" : {
"name" : "pasbug",
"version" : "1.0.0",
"projectType" : "pom",
"projectDir" : "/home/bill/src/pasbug"
},
"activeProfiles" : [
],
"availableProfiles" : [
],
"buildOrder" : [
"one",
"two",
"three"
],
"modules" : [
{
"name" : "one",
"projectType" : "library",
"projectDir" : "/home/bill/src/pasbug/one",
"executableName" : "one",
"compiler" : {
"executable" : "fpc",
"compilerName" : "FPC",
"commandLine" : "fpc -Mobjfpc -O1 -FEtarget -oone -FUtarget/units -Fusrc/main/pascal -Futarget/units -Fitarget"
},
"defines" : [
],
"unitPaths" : [
"src/main/pascal",
"target/units"
],
"includePaths" : [
"target"
],
"dependencies" : [
],
"test" : {
"testSource" : "TestRunner.pas"
},
"directories" : {
"source" : "src/main/pascal",
"testSource" : "src/test/pascal",
"resources" : "src/main/resources",
"testResources" : "src/test/resources"
},
"output" : {
"directory" : "target",
"unitDirectory" : "target/units"
}
},
{
"name" : "two",
"projectType" : "library",
"projectDir" : "/home/bill/src/pasbug/two",
"executableName" : "two",
"compiler" : {
"executable" : "fpc",
"compilerName" : "FPC",
"commandLine" : "fpc -Mobjfpc -O1 -FEtarget -otwo -FUtarget/units -Fusrc/main/pascal -Fu/home/bill/src/pasbug/one/target/units -Futarget/units -Fitarget"
},
"defines" : [
],
"unitPaths" : [
"src/main/pascal",
"/home/bill/src/pasbug/one/target/units",
"target/units"
],
"includePaths" : [
"target"
],
"dependencies" : [
{
"name" : "one",
"version" : "1.0.0",
"type" : "local",
"projectDir" : "/home/bill/src/pasbug/one",
"sourceDir" : "/home/bill/src/pasbug/one/src/main/pascal",
"unitDir" : "/home/bill/src/pasbug/one/target/units"
}
],
"test" : {
"testSource" : "TestRunner.pas"
},
"directories" : {
"source" : "src/main/pascal",
"testSource" : "src/test/pascal",
"resources" : "src/main/resources",
"testResources" : "src/test/resources"
},
"output" : {
"directory" : "target",
"unitDirectory" : "target/units"
}
},
{
"name" : "three",
"projectType" : "library",
"projectDir" : "/home/bill/src/pasbug/three",
"executableName" : "three",
"compiler" : {
"executable" : "fpc",
"compilerName" : "FPC",
"commandLine" : "fpc -Mobjfpc -O1 -FEtarget -othree -FUtarget/units -Fusrc/main/pascal -Fu/home/bill/src/pasbug/two/target/units -Fu/home/bill/src/pasbug/one/target/units -Futarget/units -Fitarget"
},
"defines" : [
],
"unitPaths" : [
"src/main/pascal",
"/home/bill/src/pasbug/two/target/units",
"/home/bill/src/pasbug/one/target/units",
"target/units"
],
"includePaths" : [
"target"
],
"dependencies" : [
{
"name" : "two",
"version" : "1.0.0",
"type" : "local",
"projectDir" : "/home/bill/src/pasbug/two",
"sourceDir" : "/home/bill/src/pasbug/two/src/main/pascal",
"unitDir" : "/home/bill/src/pasbug/two/target/units"
}
],
"test" : {
"testSource" : "TestRunner.pas"
},
"directories" : {
"source" : "src/main/pascal",
"testSource" : "src/test/pascal",
"resources" : "src/main/resources",
"testResources" : "src/test/resources"
},
"output" : {
"directory" : "target",
"unitDirectory" : "target/units"
}
}
]
} |
0 replies
|
Nevermind....this is resolved....I did not add Is there a way to not have pasbuild append the '.Utils' to the lib ? |
0 replies
Answer selected by
Schmitty2005
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Nevermind....this is resolved....I did not add
uses two.Utils;, but I had putuses two;Is there a way to not have pasbuild append the '.Utils' to the lib ?