Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 781851 - dev-ml/llvm-ocaml: uses hardcoded CC from OCaml build-time
Summary: dev-ml/llvm-ocaml: uses hardcoded CC from OCaml build-time
Status: CONFIRMED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: All Linux
: Normal normal (vote)
Assignee: LLVM support project
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2021-04-09 14:45 UTC by Michał Górny
Modified: 2021-04-11 10:44 UTC (History)
2 users (show)

See Also:
Package list:
Runtime testing required: ---


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Michał Górny archtester Gentoo Infrastructure gentoo-dev Security 2021-04-09 14:45:55 UTC
Let's figure out how to force CC/CXX in there.

FAILED: bindings/ocaml/llvm/llvm_ocaml.o 
cd /var/tmp/portage/dev-ml/llvm-ocaml-12.0.0_rc5/work/llvm-ocaml-12.0.0_rc5_build/bindings/ocaml/llvm && /usr/bin/ocamlfind ocamlc -c /var/tmp/portage/dev-ml/llvm-ocaml-12.0.0_rc5/work/llvm-ocaml-12.0.0_rc5_build/bindings/ocaml/llvm/llvm_ocaml.c -ccopt " -D_GNU_SOURCE -D__STDC_CONSTANT_MACROS -D__STDC_FORMAT_MACROS -D__STDC_LIMIT_MACROS -I/var/tmp/portage/dev-ml/llvm-ocaml-12.0.0_rc5/work/llvm-ocaml-12.0.0_rc5_build/include -I/var/tmp/portage/dev-ml/llvm-ocaml-12.0.0_rc5/work/llvm/include  -DNDEBUG "
sh: line 1: x86_64-pc-linux-gnu-gcc-10.2.0: command not found
File "/var/tmp/portage/dev-ml/llvm-ocaml-12.0.0_rc5/work/llvm-ocaml-12.0.0_rc5_build/bindings/ocaml/llvm/llvm_ocaml.c", line 1:
Error: I/O error: x86_64-pc-linux-gnu-gcc-10.2.0 -O2 -fno-strict-aliasing -fwrapv -fPIC -D_FILE_OFFSET_BITS=64 -D_REENTRANT   -c   -D_GNU_SOURCE -D__STDC_CONSTANT_MACROS -D__STDC_FORMAT_MACROS -D__STDC_LIMIT_MACROS -I/var/tmp/portage/dev-ml/llvm-ocaml-12.0.0_rc5/work/llvm-ocaml-12.0.0_rc5_build/include -I/var/tmp/portage/dev-ml/llvm-ocaml-12.0.0_rc5/work/llvm/include  -DNDEBUG   -I'/usr/lib64/ocaml' '/var/tmp/portage/dev-ml/llvm-ocaml-12.0.0_rc5/work/llvm-ocaml-12.0.0_rc5_build/bindings/ocaml/llvm/llvm_ocaml.c'
Comment 1 Michał Górny archtester Gentoo Infrastructure gentoo-dev Security 2021-04-11 10:44:24 UTC
'ocamlfind ocamlc' apparently accepts -cc arg but I can't figure out how to make 'ocamlfind ocamlmklib' accept compiler override.