gcc-8
is not needed if the -fcommon
flag is passed to gcc. Editing the PKGBUILD build()
phase to have:
build() {
cd "$pkgname-$pkgver/src"
make CC='gcc -fcommon'
}
Solves the problem for me.
Git Clone URL: | https://aur.archlinux.org/sc-im.git (read-only, click to copy) |
---|---|
Package Base: | sc-im |
Description: | A spreadsheet program based on SC |
Upstream URL: | https://github.com/andmarti1424/sc-im |
Licenses: | BSD |
Conflicts: | sc-im-git, scim-spreadsheet |
Submitter: | Rhinoceros |
Maintainer: | Rhinoceros (andmarti1424) |
Last Packager: | Rhinoceros |
Votes: | 60 |
Popularity: | 0.88 |
First Submitted: | 2015-09-05 01:44 (UTC) |
Last Updated: | 2024-03-23 01:20 (UTC) |
gcc-8
is not needed if the -fcommon
flag is passed to gcc. Editing the PKGBUILD build()
phase to have:
build() {
cd "$pkgname-$pkgver/src"
make CC='gcc -fcommon'
}
Solves the problem for me.
Thanks @teleportex for all that information! I've updated the PKGBUILD. A few notes:
-C
flag with a clean directory.gcc8
was added to makedependsgnuplot
was added to optdepends, because the main functionality of sc-im
works without itThanks again.
I have ecnountered 2 problems when building:
Changes to the PKGBUILD:
build(){
cd "$pkgname-$pkgver"
make -C src CC=gcc-8
}
@Tymekm: That's true. yacc is provided by bison, which is part of base-devel. base-devel is assumed as an implicit dependency for building any package (see <https://wiki.archlinux.org/index.php/PKGBUILD#makedepends>). This is why bison is not included in the makedepends array. Seeing that you don't seem to have bison installed on your system, you might want to run pacman -S base-devel
.
[Sorry for cross-posting from sc-im-git, but this may be useful to know here as well.]
The build will fail without yacc.
yacc -d gram.y
make: yacc: Command not found
make: *** [Makefile:167: gram.c] Error 127
@Rhinoceros It does indeed look like it. Last comment suggests that trouble comes from "shared formulas", but these are so common in speadsheets!
@snake Looks like this? https://github.com/andmarti1424/sc-im/issues/218
Did anyone manage to make the --xlsx_readformulas option work? On my system it fails with a segmentation fault.
@terinjokes That's pretty straightforward for me to do, but I'm surprised that github.com would be reachable and githubusercontent.com wouldn't be?
Do you mind including the patch in the Git repo, rather than fetching it from GitHub? I was having issues fetching it this morning.
Pinned Comments