Comments (6)
Hi @samhorsfield96. Try changing the /path/to/seq/lib
to the specific path where the Seq shared libs are installed on your system. e.g. For me it is /home/mhenders/.seq/lib/seq
. You could also consider setting the LD_LIBRARY_PATH variable (see here for a brief discussion).
You may also need to try it without the -no-pie
option, as shown here.
from seq.
Hi @markhend, thanks for such a speedy response. I am already linking directly to the seq lib directory (I changed it in the example just for readability). I am also already adding the seq lib directory to the LD_LIBRARY_PATH variable, and still run into the same issues.
I did try without -no-pie
however I run into the below error:
/usr/bin/ld: foo.o: relocation R_X86_64_32 against `.bss' can not be used when making a shared object; recompile with -fPIC
/usr/bin/ld: final link failed: Nonrepresentable section on output
collect2: error: ld returned 1 exit status
from seq.
@samhorsfield96 I have been running the examples again and seeing the same issues as you - lots of 'multiple definition of' errors. I'm using Ubuntu (WSL) as well. Let us dig in a bit more to see if we can determine the root cause. Thank you.
from seq.
@samhorsfield96, I haven't determined root cause yet. I got a little closer. Perhaps this might help you.
$ seqc build -o foo.o foo.seq --relocation-model=pic
$ gcc -shared -L/home/mhenders/.seq/lib/seq -o libfoo.so foo.o -lseqrt -lomp
$ gcc -o foo -L/home/mhenders/.seq/lib/seq -lseqrt -L. -lfoo foo.c
/usr/bin/ld: /tmp/ccXc1N7d.o: in function `main':
foo.c:(.text+0xe): undefined reference to `foo'
collect2: error: ld returned 1 exit status
from seq.
@markhend unfortunately I run into the same issue as you
/tmp/ccBJNODw.o: In function `main':
foo.c:(.text+0xa): undefined reference to `foo'
collect2: error: ld returned 1 exit status
from seq.
@markhend compiling with the -c
flag gets rid of the multiple definition errors, however foo
is an object and not an executable
$ seqc build -o foo.o foo.seq
$ gcc -shared -L/path/to/seq/lib -o libfoo.so foo.o -no-pie -lseqrt -lomp
$ gcc -o foo -lfoo -c foo.c
$ ./foo
-bash: ./foo: cannot execute binary file: Exec format error
from seq.
Related Issues (20)
- Running seq on WSL2 HOT 4
- Levenshtein distance HOT 5
- Windows compatibility of seq-lang? HOT 2
- importing C libraries HOT 9
- Compiling on M1 Mac HOT 4
- Example not working HOT 2
- undefined reference to seq_alloc when seqc build HOT 3
- Fails to build on Apple M1 HOT 7
- Any potential clash with biopython HOT 2
- error: cannot find magic 'matmul' in seq HOT 2
- index file from class FMIndex HOT 4
- Is it possible calling seq from python module?
- llvm::sys::fs::F_None is removed in recent releases HOT 1
- Build an execution program not depending on the runtime libraries HOT 1
- Failed to build seq in Arch Linux
- New parser in seq 0.11.0 does not support backslash line continuation in print statements.
- file_obj.read function requires number of bytes to be read as mandatory argument
- Is seq-lang still being maintained and updated?
- Is seq-lang still being updated and maintained HOT 5
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 seq.