[Date Prev][Date Next]
[Chronological]
[Thread]
[Top]
Re: (ITS#8830) build hardcodes gcc
On 04/01/2018 12:37 PM, Howard Chu wrote:
> vcunat@gmail.com wrote:
>> On 04/01/2018 12:12 PM, Howard Chu wrote:
>>> The rules you patched are only for generating gcov-compatible binaries.
>>> They aren't even invoked by "make test" so I don't see why this has any
>>> impact on your build at all.
>>>
>>
>> The build looks like this:
>> ...
>> running tests
>> ar rs liblmdb.a mdb.o midl.o
>> gcc -pthread -O2 -g -W -Wall -Wno-unused-parameter -Wbad-function-cast
>> -Wuninitialized  mdb_stat.o liblmdb.a -o mdb_stat
>> make: gcc: Command not found
>
> What's the actual command line you used to invoke this?
It should be basically `make` before that part and `make test` in the
"running tests" part. Some build flags were passed, too.
Hmm, weird, I can't see why make decided to do this, and it doesn't
happen with Linux+clang locally (I have no direct access to osx now).
Maybe I'm just tired ATM. Possibly the full failed build log will shed
light on this?
https://logs.nix.ci/?key=nixos/nixpkgs.38289&attempt_id=e3767f8e-8c1e-4404-93b1-d23d9fe429ee
If you can't see why, I'll try to revisit this weirdness to avoid
potential surprises in future.