fdu-sec / NestFuzz

A structure-aware grey box fuzzer based on modeling the input processing logic.
Apache License 2.0
158 stars 12 forks source link

Error when compiling libtiff-model #9

Open komorogrov opened 3 months ago

komorogrov commented 3 months ago

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 commented 3 months ago

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

komorogrov commented 3 months ago

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

Mech0n commented 3 months ago

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

komorogrov commented 3 months ago

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 commented 3 months ago

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 commented 3 months ago

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 commented 3 months ago

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 commented 3 months ago
image

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

Mech0n commented 3 months ago

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

komorogrov commented 3 months ago

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 commented 3 months ago

You can connect us : fdu_sec@163.com