-
Notifications
You must be signed in to change notification settings - Fork 562
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
New recipe: catchaMouse16-v0.1.0 #9151
New recipe: catchaMouse16-v0.1.0 #9151
Conversation
Co-authored-by: Mosè Giordano <[email protected]>
Co-authored-by: Mosè Giordano <[email protected]>
Co-authored-by: Mosè Giordano <[email protected]>
Co-authored-by: Mosè Giordano <[email protected]>
Co-authored-by: Mosè Giordano <[email protected]>
Co-authored-by: Mosè Giordano <[email protected]>
Co-authored-by: Mosè Giordano <[email protected]>
Error on aarch64 darwin with Clang (which is always the preferred compiler on BSD systems) is
Sketch of a solution: Yggdrasil/N/Notcurses/build_tarballs.jl Lines 48 to 52 in c0ead9c
Yggdrasil/N/Notcurses/build_tarballs.jl Lines 81 to 84 in c0ead9c
|
Thanks so much 😊
|
C/catchaMouse16/build_tarballs.jl
Outdated
.PHONY: all; | ||
all: ${TARGET_LIB} | ||
$(TARGET_LIB): $(OBJS) | ||
$(CC) ${LDFLAGS} -o $@ $^ |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Linking order is important, see for example https://wiki.gentoo.org/wiki/Project:Quality_Assurance/As-needed#Importance_of_linking_order (this may fix the issue on Windows):
$(CC) ${LDFLAGS} -o $@ $^ | |
$(CC) -o $@ $^ $(LDFLAGS) |
C/catchaMouse16/build_tarballs.jl
Outdated
clean:-${RM} ${TARGET_LIB} ${OBJS} $(SRCS:.c=.d) | ||
.PHONY: install | ||
install: | ||
install -Dvm 755 "./lib${SRC_NAME}.$(dlext)" "$(libdir)/lib$(SRC_NAME).$(dlext)" |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
clean:-${RM} ${TARGET_LIB} ${OBJS} $(SRCS:.c=.d) | |
.PHONY: install | |
install: | |
install -Dvm 755 "./lib${SRC_NAME}.$(dlext)" "$(libdir)/lib$(SRC_NAME).$(dlext)" | |
clean:-$(RM) $(TARGET_LIB) $(OBJS) $(SRCS:.c=.d) | |
.PHONY: install | |
install: | |
install -Dvm 755 "./lib$(SRC_NAME).$(dlext)" "$(libdir)/lib$(SRC_NAME).$(dlext)" |
C/catchaMouse16/build_tarballs.jl
Outdated
cd $WORKSPACE/srcdir | ||
cd catchaMouse16/C/src/ |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
cd $WORKSPACE/srcdir | |
cd catchaMouse16/C/src/ | |
cd ${WORKSPACE}/srcdir/catchaMouse16/C/src/ |
C/catchaMouse16/build_tarballs.jl
Outdated
RM = rm -f | ||
TARGET_LIB = "lib$(SRC_NAME).$(dlext)" | ||
|
||
SRCS = main.c fft.c stats.c helper_functions.c histcounts.c CO_AddNoise.c CO_AutoCorr.c CO_HistogramAMI.c CO_NonlinearAutocorr.c CO_TranslateShape.c DN_RemovePoints.c FC_LoopLocalSimple.c IN_AutoMutualInfoStats.c PH_Walker.c SC_FluctAnal.c ST_LocalExtrema.c SY_DriftingMean.c SY_SlidingWindow.c |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Maybe do https://github.com/DynamicsAndNeuralSystems/catchaMouse16/blob/56ad41b669a750df3be60d008010c8a84a5cf4bd/C/Makefile#L18 instead of listing the files manually? This isn't very sustainable if the source code upstream changes.
Thanks for your help, will pick this up again in the morning :) |
Uhm https://buildkite.com/julialang/yggdrasil/builds/12165#01910162-a083-4498-8f3f-aa33363f4411/674-871
|
It doesn't seem to be enough, also, we have the same on x86_64 darwin too. |
@giordano should be ok now, I think; appears to build successfully on all platforms |
Co-authored-by: Mosè Giordano <[email protected]>
This pull request contains a new build recipe: