Open Alexey-Tsarev opened 4 years ago
Solution:
make LDFLAGS="-latomic"
Does cherry-picking 7933ccb660de3f4b5cd8d2ac2af00d4d4e6acdf3 also fix the issue? There is no libcrucible.so in the master branch any more, only libcrucible.a.
Shortly, NO.
pi@laser-pi:~/dev/bees$ git branch
* master
pi@laser-pi:~/dev/bees$ git pull
Already up to date.
pi@laser-pi:~/dev/bees$ make -j 4
...
task.cc:(.text+0x42f8): undefined reference to `__atomic_fetch_add_8'
collect2: error: ld returned 1 exit status
make[1]: *** [Makefile:48: ../bin/bees] Error 1
make[1]: Leaving directory '/home/pi/dev/bees/src'
make: *** [Makefile:38: src] Error 2
Looks like the pointed commit is already included in the master:
➜ bees git:(master) ✗ git cherry-pick 7933ccb660de3f4b5cd8d2ac2af00d4d4e6acdf3
Auto-merging lib/Makefile
Auto-merging docs/install.md
On branch master
Your branch is up to date with 'origin/master'.
You are currently cherry-picking commit 7933ccb.
(all conflicts fixed: run "git cherry-pick --continue")
(use "git cherry-pick --skip" to skip this patch)
(use "git cherry-pick --abort" to cancel the cherry-pick operation)
Untracked files:
(use "git add <file>..." to include in what will be committed)
.idea/
nothing added to commit but untracked files present (use "git add" to track)
The previous cherry-pick is now empty, possibly due to conflict resolution.
If you wish to commit it anyway, use:
git commit --allow-empty
Otherwise, please use 'git cherry-pick --skip'
➜ bees git:(master) ✗
So, reverse mode. From the scratch:
pi@laser-pi:~/dev/bees$ git revert 7933ccb660de3f4b5cd8d2ac2af00d4d4e6acdf3
pi@laser-pi:~/dev/bees$ git log
commit 7e57a5e2562ee7cfd0f42b8ef3b7bcf98b38d310 (HEAD -> master)
Author: Zygo Blaxell <bees@furryterror.org>
Date: Sun Dec 9 17:23:54 2018 -0500
Revert "build: make libcrucible a static library"
This reverts commit 7933ccb660de3f4b5cd8d2ac2af00d4d4e6acdf3.
commit 05bd65444d7f6735a68292c299adaa26bd92e3dc (origin/master, origin/HEAD)
Author: Zygo Blaxell <bees@furryterror.org>
Date: Mon Aug 31 22:22:57 2020 -0400
bees: initialize context in the correct order
We cannot use BeesContext::roots() until after
BeesContext::set_root_path() has been called.
Save up the parameter settings until then.
Signed-off-by: Zygo Blaxell <bees@furryterror.org>
pi@laser-pi:~/dev/bees$ make clean
pi@laser-pi:~/dev/bees$ make
...
/usr/bin/ld: ../lib/libcrucible.so: undefined reference to `__atomic_fetch_add_8'
collect2: error: ld returned 1 exit status
make[1]: *** [Makefile:48: ../bin/bees] Error 1
make[1]: Leaving directory '/home/pi/dev/bees/src'
make: *** [Makefile:38: src] Error 2
I am using Raspberry Pi 4 and trying to make the app:
How it can be fixed?