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

Bug 562182

Summary: dev-lang/ocaml: hardcodes CC, CFLAGS, LDFLAGS used during build-time
Product: Gentoo Linux Reporter: Michał Górny <mgorny>
Component: Current packagesAssignee: Gentoo Team for the ML programming language family <ml>
Status: RESOLVED UPSTREAM    
Severity: major    
Priority: Normal    
Version: unspecified   
Hardware: All   
OS: Linux   
Whiteboard:
Package list:
Runtime testing required: ---

Description Michał Górny archtester Gentoo Infrastructure gentoo-dev Security 2015-10-04 07:01:32 UTC
/usr/lib64/ocaml/Makefile.config:# generated by ./configure --prefix /usr --bindir /usr/bin --libdir /usr/lib64/ocaml --mandir /usr/share/man -target x86_64-pc-linux-gnu -host x86_64-pc-linux-gnu -cc x86_64-pc-linux-gnu-gcc-4.9.2 -as x86_64-pc-linux-gnu-as -aspp x86_64-pc-linux-gnu-gcc-4.9.2 -c -partialld x86_64-pc-linux-gnu-ld -r --with-pthread
/usr/lib64/ocaml/Makefile.config:BYTECC=x86_64-pc-linux-gnu-gcc-4.9.2
/usr/lib64/ocaml/Makefile.config:NATIVECC=x86_64-pc-linux-gnu-gcc-4.9.2
/usr/lib64/ocaml/Makefile.config:ASPP=x86_64-pc-linux-gnu-gcc-4.9.2 -c
/usr/lib64/ocaml/Makefile.config:MKDLL=x86_64-pc-linux-gnu-gcc-4.9.2 -shared -Wl,-O1 -Wl,--as-needed -Wl,--hash-style=gnu
/usr/lib64/ocaml/Makefile.config:MKMAINDLL=x86_64-pc-linux-gnu-gcc-4.9.2 -shared -Wl,-O1 -Wl,--as-needed -Wl,--hash-style=gnu

And now random packages fail to build trying to use this no-longer-existent gcc version.
Comment 1 Michał Górny archtester Gentoo Infrastructure gentoo-dev Security 2015-10-04 07:06:21 UTC
Oh, it's also included in executables. Really awesome.
Comment 2 Alexis Ballier gentoo-dev 2015-10-04 09:06:59 UTC
yes, it is known and documented by upstream: feel free to poke them about hardcoding it in Makefile.config and other places and if there's a way to make it dynamic, but I doubt this will be changed.



On the other hand, you seem to have messed up $CC: it uses tc-getCC & friends, which here is x86_64-pc-linux-gnu-gcc and I've never seen it using versionned $CC...
Comment 3 Michał Górny archtester Gentoo Infrastructure gentoo-dev Security 2015-10-04 09:10:11 UTC
No, I haven't 'messed it up'. I am using the only CC that makes sense in distcc environment.