Skip to content
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

link error in release mode #9

Open
dingiso opened this issue Feb 27, 2023 · 1 comment
Open

link error in release mode #9

dingiso opened this issue Feb 27, 2023 · 1 comment

Comments

@dingiso
Copy link
Contributor

dingiso commented Feb 27, 2023

Hi brett

I have tried to build stf_lib for riscv-perf-model in release mode and encountered an error

ltf_lib/lib/libstf.a: error adding symbols: file format not recognized
clang: error: linker command failed with exit code 1 (use -v to see invocation)

But it disappeared when compile using debug mode

These are my cmake, clang and linker versions

clang version 10.0.0-4ubuntu1
Target: x86_64-pc-linux-gnu
Thread model: posix
InstalledDir: /usr/bin

❯ ld --version
GNU ld (GNU Binutils for Ubuntu) 2.34
Copyright (C) 2020 Free Software Foundation, Inc.

❯ cmake --version
cmake version 3.25.2

CMake suite maintained and supported by Kitware (kitware.com/cmake).

May have a look at the optimization or something else 😸 ?

Thanks,
Dingisoul

@bdutro
Copy link
Collaborator

bdutro commented Feb 27, 2023

Can you give me more information about your build environment and which riscv-perf-model git SHA you're using? One thing to double check is that you aren't re-running a build with a different compiler (i.e., started a build with gcc, killed it, then re-ran with clang).

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants