BrendelGroup / AEGeAn

Integrated toolkit for analysis and evaluation of annotated genomes
http://brendelgroup.github.io/AEGeAn
ISC License
24 stars 10 forks source link

Do not append "-m64" when building on non-x86_64 CPU #267

Closed martin-g closed 9 months ago

martin-g commented 9 months ago

Related-to: https://github.com/BrendelGroup/AEGeAn/issues/262

martin-g commented 9 months ago

This change fixes the build on Linux ARM64 (and any non-x86_64 CPU):

./data/scripts/github-actions-prereqs.sh                                                                                                                                                                  (aegean) 
--2024-01-15 15:11:15--  https://github.com/genometools/genometools/archive/v1.6.5.tar.gz
Resolving github.com (github.com)... 20.205.243.166
Connecting to github.com (github.com)|20.205.243.166|:443... connected.
HTTP request sent, awaiting response... 302 Found
Location: https://codeload.github.com/genometools/genometools/tar.gz/refs/tags/v1.6.5 [following]
--2024-01-15 15:11:15--  https://codeload.github.com/genometools/genometools/tar.gz/refs/tags/v1.6.5
Resolving codeload.github.com (codeload.github.com)... 20.205.243.165
Connecting to codeload.github.com (codeload.github.com)|20.205.243.165|:443... connected.
HTTP request sent, awaiting response... 200 OK
Length: unspecified [application/x-gzip]
Saving to: ‘/home/mgrigorov/local/src/v1.6.5.tar.gz’

v1.6.5.tar.gz                                             [                                        <=>                                                                            ]  13.50M  1.28MB/s    in 8.4s    

2024-01-15 15:11:24 (1.60 MB/s) - ‘/home/mgrigorov/local/src/v1.6.5.tar.gz’ saved [14156622]

test -d /home/mgrigorov/local/bin || mkdir -p /home/mgrigorov/local/bin
cp bin/gt /home/mgrigorov/local/bin
strip /home/mgrigorov/local/bin/gt
mkdir -p /home/mgrigorov/local/share/genometools
cp -a gtdata /home/mgrigorov/local/share/genometools/
test -d /home/mgrigorov/local/include/genometools/core \
  || mkdir -p /home/mgrigorov/local/include/genometools/core
cp src/core/*_api.h /home/mgrigorov/local/include/genometools/core
test -d /home/mgrigorov/local/include/genometools/extended \
          || mkdir -p /home/mgrigorov/local/include/genometools/extended
cp src/extended/*_api.h /home/mgrigorov/local/include/genometools/extended
test -d /home/mgrigorov/local/include/genometools/annotationsketch \
          || mkdir -p /home/mgrigorov/local/include/genometools/annotationsketch
cp src/annotationsketch/*_api.h \
          /home/mgrigorov/local/include/genometools/annotationsketch
test -d /home/mgrigorov/local/include/genometools/ltr \
          || mkdir -p /home/mgrigorov/local/include/genometools/ltr
cp src/ltr/*_api.h /home/mgrigorov/local/include/genometools/ltr
cp obj/gt_config.h /home/mgrigorov/local/include/genometools
cp src/genometools.h /home/mgrigorov/local/include/genometools
test -d /home/mgrigorov/local/lib || mkdir -p /home/mgrigorov/local/lib
cp lib/libgenometools.a /home/mgrigorov/local/lib
cp lib/libgenometools.so /home/mgrigorov/local/lib
[build config script install]
sed -e 's!@CC@!cc!' -e 's!@CFLAGS@!!' \
  -e 's!@CPPFLAGS@!-I\\"/home/mgrigorov/local/include\\" -D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64 -DHAVE_MEMMOVE -D_LARGEFILE64_SOURCE=1 -DHAVE_HIDDEN -DLUA_DL_DLOPEN -DLUA_USE_MKSTEMP -DGT_THREADS_ENABLED -DSQLITE_THREADSAFE=0 -DHAVE_SQLITE!' \
  -e 's!@CXX@!g++!' -e 's!@CXXFLAGS@!!' \
  -e 's!@LDFLAGS@!-L/home/mgrigorov/local/lib -L/usr/local/lib!' \
  -e 's!@LIBS@! -lm -ldl -lpango-1.0 -lgobject-2.0 -lglib-2.0 -lharfbuzz  -lcairo  -lpangocairo-1.0 -lpango-1.0 -lgobject-2.0 -lglib-2.0 -lharfbuzz -lcairo  -lpthread -lpthread -ldl!' -e "s!@VERSION@!`cat VERSION`!" \
  -e 's!@BUILDSTAMP@!"2024-01-15 15:11:24"!' \
  -e 's!@SYSTEM@!Linux!' <src/genometools-config.in \
  >/home/mgrigorov/local/bin/genometools-config
chmod 755 /home/mgrigorov/local/bin/genometools-config
/home/mgrigorov/git/hpc/AEGeAn
[print inc/core/AgnVersion.h]
[compile AgnAttributeFilterStream]
[compile AgnCliquePair]
[compile AgnCompareReportHTML]
[compile AgnCompareReportText]
[compile AgnComparison]
[compile AgnFilterStream]
[compile AgnGaevalVisitor]
[compile AgnGeneStream]
[compile AgnIdFilterStream]
[compile AgnInferCDSVisitor]
[compile AgnInferExonsVisitor]
[compile AgnInferParentStream]
[compile AgnLocus]
[compile AgnLocusFilterStream]
[compile AgnLocusMapVisitor]
[compile AgnLocusRefineStream]
[compile AgnLocusStream]
[compile AgnMrnaRepVisitor]
[compile AgnPseudogeneFixVisitor]
[compile AgnRemoveChildrenVisitor]
[compile AgnTranscriptClique]
[compile AgnTypecheck]
[compile AgnUnitTest]
[compile AgnUtils]
[compile ParsEval]
[compile CanonGFF3]
[compile LocusPocus]
[compile GAEVAL]
[compile Xtractore]
[compile bin/pmrna]
[compile bin/tidygff3]
[compile unit tests]
[create libaegean]
ar: creating libaegean.a
cp bin/parseval bin/canon-gff3 bin/locuspocus bin/gaeval bin/xtractore bin/pmrna bin/tidygff3 /home/mgrigorov/local/bin/.
cp libaegean.a /home/mgrigorov/local/lib/.
cp inc/core/*.h /home/mgrigorov/local/include/aegean/.
cp -r data/share/* /home/mgrigorov/local/share/aegean/.
cp data/scripts/*.p? /home/mgrigorov/local/bin/.

The PR is still a draft because I want to add CI too !

martin-g commented 9 months ago

I'll reopen the PR once the PR is green on my fork - https://github.com/martin-g/AEGeAn/actions/runs/7531124606/job/20498994639