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

Error when compiling libtiff-model #9

Open
komorogrov opened this issue Jun 12, 2024 · 11 comments
Open

Error when compiling libtiff-model #9

komorogrov opened this issue Jun 12, 2024 · 11 comments

Comments

@komorogrov
Copy link

komorogrov commented Jun 12, 2024

Hello

I met some errors when compiling libtiff-model

clang: error: unsupported option '-V -Xclang'
configure:4132: $? = 1
configure:4121: /home/hunter/protest/NestFuzz/ipl-modeling/install/test-clang -qversion >&5
clang: error: unknown argument '-qversion'; did you mean '--version'?

nestfuzz-1

Is this related to the clang version? (I use clang 10) How to fix these errors?
Nestfuzz-2

@Mech0n
Copy link
Collaborator

Mech0n commented Jun 12, 2024

What is your libtiff version or commit? may be you need re autogen it.

@komorogrov
Copy link
Author

Libtiff version is 4.6.0. Is this the same version you're testing?

@Mech0n
Copy link
Collaborator

Mech0n commented Jun 13, 2024

I checked it on the latest version. Can you provide the config.log ?

@komorogrov
Copy link
Author

OK, this is the config.log.
config.log
The logs show that the error is coming from clang, as shown in the top image.

@komorogrov
Copy link
Author

Maybe it's a problem with the llvm installation. I installed it directly using apt-get install. I'm compiling and installing it from source code.

@komorogrov
Copy link
Author

After compiling and installing clang-10 from source code, I still face the same error.
clang: error: unsupported option '-V -Xclang'
Does clang support the -V option?

@komorogrov
Copy link
Author

Hello Mech0n:
I finally compiled the program by adding the --host=x86 option.
CC=/home/echo/NestFuzz/ipl-modeling/install/test-clang CXX=/home/echo/NestFuzz/ipl-modeling/install/test-clang++ ./configure --disable-shared --host=x86
But ,I don't know why.

@Mech0n
Copy link
Collaborator

Mech0n commented Jun 14, 2024

image

This is the reason. configure will ignore the check for -qversion and -V .

@Mech0n Mech0n closed this as completed Jun 14, 2024
@Mech0n Mech0n reopened this Jun 14, 2024
@Mech0n
Copy link
Collaborator

Mech0n commented Jun 14, 2024

configure is generated by autogen.sh. so mybe you need re run it.

@komorogrov
Copy link
Author

komorogrov commented Jun 16, 2024

I know why the --host option is needed, and I also get it from the logs. I'm just wondering, why do I need it while other people don't? Is it because of the development environment? I ran the whole experiment on ubuntu 20.04.

@Mech0n
Copy link
Collaborator

Mech0n commented Jun 17, 2024

You can connect us : [email protected]

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