Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!

Bug 584978

Summary: dev-libs/quazip: fails to build when CFLAGS/CXXFLAGS has newlines/tabs
Product: Gentoo Linux Reporter: Luke-Jr <luke-jr+gentoobugs>
Component: [OLD] LibraryAssignee: Gentoo Science Related Packages <sci>
Status: RESOLVED WORKSFORME    
Severity: normal    
Priority: Normal    
Version: unspecified   
Hardware: All   
OS: Linux   
Whiteboard:
Package list:
Runtime testing required: ---
Attachments: build.log
emerge --info

Description Luke-Jr 2016-06-04 03:08:06 UTC
For clarity, my CFLAGS/CXXFLAGS spans multiple lines of make.conf. quazip apparently tries to do some magic to pass this into qmake, but fails to properly escape the unexpected whitespace.
Comment 1 Coacher 2016-06-04 13:27:17 UTC
What is your problem exactly? Build error, runtime error, QA warnings re CFLAGS?
Comment 2 Luke-Jr 2016-06-04 19:30:29 UTC
Created attachment 436478 [details]
build.log

Compile error: ***Unknown option -march=haswell 

Full build.log attached
Comment 3 Coacher 2016-06-04 19:56:53 UTC
Please also attach the output of `emerge --info'.
Comment 4 Luke-Jr 2016-06-04 20:26:32 UTC
Created attachment 436486 [details]
emerge --info
Comment 5 Andreas Sturmlechner gentoo-dev 2016-12-12 09:56:56 UTC
Still happening with 0.7.2?
Comment 6 Luke-Jr 2016-12-12 10:40:40 UTC
(In reply to Andreas Sturmlechner from comment #5)
> Still happening with 0.7.2?

0.7.2 doesn't build (linking fails) for me, but I think it's unrelated to this bug.

/usr/lib/gcc/x86_64-pc-linux-gnu/4.9.3/../../../../x86_64-pc-linux-gnu/bin/ld: CMakeFiles/quazip.dir/JlCompress.cpp.o: warning: relocation against `_ZN10JlCompress11extractFileER6QuaZip7QStringS2_' in readonly section `.text'.
/usr/lib/gcc/x86_64-pc-linux-gnu/4.9.3/../../../../x86_64-pc-linux-gnu/bin/ld: CMakeFiles/quazip.dir/unzip.c.o: relocation R_X86_64_PC32 against symbol `unzGoToFirstFile' can not be used when making a shared object; recompile with -fPIC
/usr/lib/gcc/x86_64-pc-linux-gnu/4.9.3/../../../../x86_64-pc-linux-gnu/bin/ld: final link failed: Bad value
Comment 7 Andreas Sturmlechner gentoo-dev 2016-12-23 10:09:16 UTC
fwiw, I can't reproduce that last error of yours (also GCC-4.9.3).