NestFuzz icon indicating copy to clipboard operation
NestFuzz copied to clipboard

Error when compiling libtiff-model

Open komorogrov opened this issue 1 year ago • 11 comments

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

komorogrov avatar Jun 12 '24 03:06 komorogrov

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

Mech0n avatar Jun 12 '24 16:06 Mech0n

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

komorogrov avatar Jun 13 '24 01:06 komorogrov

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

Mech0n avatar Jun 13 '24 01:06 Mech0n

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 avatar Jun 13 '24 02:06 komorogrov

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 avatar Jun 13 '24 03:06 komorogrov

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 avatar Jun 13 '24 10:06 komorogrov

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.

komorogrov avatar Jun 14 '24 00:06 komorogrov

image

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

Mech0n avatar Jun 14 '24 01:06 Mech0n

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

Mech0n avatar Jun 14 '24 01:06 Mech0n

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.

komorogrov avatar Jun 16 '24 02:06 komorogrov

You can connect us : [email protected]

Mech0n avatar Jun 17 '24 02:06 Mech0n