Summary: | [guru] app-admin/hardinfo2-2.2.1 overwrites CFLAGS/CXXFLAGS or adds uncommon ones | ||
---|---|---|---|
Product: | GURU | Reporter: | Agostino Sarubbo <ago> |
Component: | Package issues | Assignee: | Quincy Fleming <quincyf467> |
Status: | CONFIRMED --- | ||
Severity: | normal | CC: | guru-bugs, quincyf467 |
Priority: | Normal | ||
Version: | unspecified | ||
Hardware: | All | ||
OS: | Linux | ||
Whiteboard: | |||
Package list: | Runtime testing required: | --- | |
Bug Depends on: | |||
Bug Blocks: | 785607 | ||
Attachments: | build.log |
Description
Agostino Sarubbo
2024-05-30 10:22:45 UTC
Created attachment 894650 [details]
build.log
build log and emerge --info
Can we make an exception for this? The developer insists optimization flags should be turned off just for compiling these parts of the code as defined here in CMakeLists.txt:313-320 set_source_files_properties( modules/benchmark/blowfish.c modules/benchmark/fftbench.c modules/benchmark/md5.c modules/benchmark/sha1.c PROPERTIES COMPILE_FLAGS "-O0 -Wall -Wextra -Werror=implicit-function-declaration" ) The developer states the reason in modules/benchmark/md5.c:34-36 and in modules/benchmark/sha1.c:36-38 #if defined(__OPTIMIZE__) #error You must compile this program without "-O". (Or else the benchmark results may be different!) #endif which will cause the program to not compile if optimizations are turned on for this part of the code. I can just remove those 3 lines of code from both modules/benchmark/md5.c and modules/benchmark/sha1.c, and remove the -O0 flag from CMakeLists.txt and it will compile just fine but benchmark results may be different as the developer states. guru_ci has reproduced this issue with version 2.1.11-r1 - Updating summary. guru_ci has reproduced this issue with version 2.1.14 - Updating summary. guru_ci has reproduced this issue with version 2.1.17 - Updating summary. guru_ci has reproduced this issue with version 2.2.1 - Updating summary. |