Created attachment 427704 [details] Output of emerge --info media-libs/libnsbmp-0.1.3 compiles with one error, placing its header file in /usr/libnsbmp.h. media-libs/libnsbmp-0.1.2-r1 installs the file into the correct location, but has the same error. The error for both media-libs/libnsbmp-0.1.3 and media-libs/libnsbmp-0.1.2-r1 is: >>> Compiling source in /var/tmp/portage/media-libs/libnsbmp-0.1.3/work/libnsbmp-0.1.3 ... * found bad flags: * ./Makefile:40:TESTCFLAGS := -g -O2 * abi_x86_32.x86: running multilib-minimal_abi_src_compile make -j9 -l8 'CC=x86_64-pc-linux-gnu-gcc -m32' 'LD=x86_64-pc-linux-gnu-ld -m elf_i386' NSSHARED=/var/tmp/portage/media-libs/libnsbmp-0.1.3/work/buildsystem-1.3 Q= HOST_CC=$(CC) CCOPT= CCNOOPT= CCDBG= LDDBG= AR=x86_64-pc-linux-gnu-ar BUILD=release PREFIX=/usr COMPONENT_TYPE=lib-shared LIBDIR=lib32 which: invalid option -- 'm' which: invalid option -- '3' which: invalid option -- '2' mkdir -p build-release-x86_64-pc-linux-gnu-release-lib-shared The "bad flags" message is only with the newer version. Attached is the 0.1.3 and 0.1.2-r1 build logs (with --jobs=1). The -noflags build was produced with FEATURES=keeptemp CFLAGS="" CXXFLAGS="" FCFLAGS="" FFLAGS="" emerge -va1 'media-libs/libnsbmp' --jobs=1
Created attachment 427706 [details] media-libs/libsmbmp-0.1.2-r1 build log Installs header file to correct location, although also shows -m32 error while building
Created attachment 427708 [details] media-libs/libsmbmp-0.1.3 build log Installs header file to wrong location
Created attachment 427710 [details] media-libs/libsmbmp-0.1.3 build log with no C/CXX/F/FC FLAGS Tested if my *FLAGS were causing a warning (although I don't have -g in my CFLAGS).
the -m32 error is most probably from an unquoted $CC in `which $CC`. I got the same bad installation path, will be fixed soon
https://cgit.gentoo.org/repo/gentoo.git/commit/?id=7bba73a2a9e8492c1956dc95017064522e8cf22c