Comments (2)
This change at least allows it to build, but I still get "Provider BinDeps.BuildProcess failed to satisfy dependency libopenspecfun":
diff --git a/deps/scratch.jl b/deps/scratch.jl
index e8c5ec9..28dcd64 100644
--- a/deps/scratch.jl
+++ b/deps/scratch.jl
@@ -83,39 +83,35 @@ elseif Sys.ARCH === :x86_64
fc *= " -m64"
end
-flags = [
- # OpenSpecFun build flags
- "ARCH=\"$(Sys.ARCH)\"",
- "CC=\"$cc\"",
- "FC=\"$fc\"",
- "USECLANG=$(Int(use_clang))",
- "USEGCC=$(Int(!use_clang))",
- "USE_OPENLIBM=$(Int(use_openlibm))",
- "CFLAGS=\"-O3 -std=c99\"",
- "FFLAGS=\"-O2 -fPIC\"",
- "LDFLAGS=\"-L$(libdir(openspecfun)) -Wl,-rpath,'\$\$ORIGIN' -Wl,-z,origin\"",
- # Make flags
- "DESTDIR=\"\"",
- "prefix=$(depsdir(openspecfun))",
- "libdir=$(libdir(openspecfun))",
- "shlibdir=$(libdir(openspecfun))",
- "includedir=$(includedir(openspecfun))",
- "O="
-]
-
provides(Sources, URI("https://github.com/JuliaLang/openspecfun/archive/v$OSF_VERS.tar.gz"),
- openspecfun)
+ openspecfun, unpacked_dir="openspecfun-$OSF_VERS")
provides(BuildProcess,
(@build_steps begin
GetSources(openspecfun)
CreateDirectory(builddir(openspecfun))
@build_steps begin
- ChangeDirectory(builddir(openspecfun))
+ ChangeDirectory(joinpath(srcdir(openspecfun), "openspecfun-$OSF_VERS"))
FileRule(joinpath(libdir(openspecfun), "libopenspecfun." * Libdl.dlext),
@build_steps begin
CreateDirectory(libdir(openspecfun))
- `$MAKE_CMD install $flags`
+ ```
+ $MAKE_CMD install
+ ARCH="$(Sys.ARCH)"
+ CC="$cc"
+ FC="$fc"
+ USECLANG=$(Int(use_clang))
+ USEGCC=$(Int(!use_clang))
+ USE_OPENLIBM=$(Int(use_openlibm))
+ CFLAGS="-O3 -std=c99"
+ FFLAGS="-O2 -fPIC"
+ LDFLAGS="-L$(libdir(openspecfun)) -Wl,-rpath,'\$\$ORIGIN' -Wl,-z,origin"
+ DESTDIR=""
+ prefix=""
+ libdir="$(libdir(openspecfun))"
+ includedir="$(includedir(openspecfun))"
+ O=
+ ```
end)
end
end), openspecfun)
from specialfunctions.jl.
I should note that even though I'm getting that error, the expected library was created, and lives in the expected spot:
$ tree deps
deps
├── binaries.jl
├── build.jl
├── builds
├── downloads
│ └── v0.5.3.tar.gz
├── scratch.jl
├── src
│ ├── openlibm
│ ├── ...
│ ├── openlibm-0.5.4.tar.gz
│ └── openspecfun-0.5.3
│ ├── ...
└── usr
├── include
│ ├── Faddeeva.h
│ └── openlibm
│ ├── ...
└── lib
├── libopenlibm.so
├── libopenspecfun.a
├── libopenspecfun.so -> libopenspecfun.so.1.3
├── libopenspecfun.so.1 -> libopenspecfun.so.1.3
└── libopenspecfun.so.1.3
from specialfunctions.jl.
Related Issues (20)
- SpecialFunctions do not compile on an Apple M2 (but on an Apple M1)? HOT 2
- TagBot trigger issue HOT 4
- Derivative of the generalised zeta function
- Add logabsgamma(::Complex) HOT 3
- incorrect reference HOT 2
- Address known-broken ChainRules tests
- Add gamma(::Complex{BigFloat}) HOT 1
- Inverse of erfi
- Reduce/remove inner allocations (e.g. `gamma_inc_taylor`, `gamma_inc_asym`) HOT 9
- Segfault in besselj HOT 2
- Regularized Kumer Functions? HOT 1
- Generalize beta, logbeta, etc. to any number of arguments
- Accuracy of `digamma` function can be improved HOT 1
- What about `gamma_inc_inv`'s derivative ? HOT 2
- `expint(nu,z)` has bad precision for `nu != 1`
- Failing to build on Apple M1 Sonoma HOT 1
- Registering Functions with `Symbolics.jl` HOT 1
- Large negative real number arguments return NaN for expintx HOT 1
- Rewrite all AMOS code in julia HOT 5
- Internals of the incomplete gamma function does not work with `ForwardDiff.jl`'s `Dual()` type due to enforced floating point precision HOT 4
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from specialfunctions.jl.