You are not logged in.

#1 2015-06-19 21:22:11

x-yuri
Member
Registered: 2013-01-06
Posts: 160

[SOLVED] configure: C++ preprocessor "/lib/cpp" fails sanity check

Hi,

I'm trying to create custom `libsphinxclient` package of one particular version. And I've run across this issue. As far as I can tell, it's because `/lib/cpp` is missing in Arch Linux. At least `pkgfile /lib/cpp` says so. And in `config.log` I see:

./configure: line 4491: /lib/cpp: No such file or directory

I saw people suggesting:

sed -i 's/\/lib\/cpp/\/usr\/bin\/cpp/g' configure

But aren't there any better alternative? Like maybe creating symlink for one particular process.

P.S. Supposedly related discussion.

Last edited by x-yuri (2015-06-20 06:08:50)

Offline

#2 2015-06-19 23:00:32

Steef435
Member
Registered: 2013-08-29
Posts: 577
Website

Re: [SOLVED] configure: C++ preprocessor "/lib/cpp" fails sanity check

It would be even cleaner if you could do it using a variable, but editing the configuration script is definitely a lot cleaner than creating a symlink on your system just for this build process.

Have you tried building it like this? Does it work? If it doesn't, please post the PKGBUILD and relevant error messages.

Offline

#3 2015-06-19 23:14:28

WorMzy
Forum Moderator
From: Scotland
Registered: 2010-06-16
Posts: 11,845
Website

Re: [SOLVED] configure: C++ preprocessor "/lib/cpp" fails sanity check

x-yuri wrote:

I saw people suggesting:

sed -i 's/\/lib\/cpp/\/usr\/bin\/cpp/g' configure

But aren't there any better alternative?

Use colons.

sed -i 's:/lib/cpp:/usr/bin/cpp:g' configure

wink

This seems to come up from time to time. The solution you're suggesting was recommended by Allan (maintainer of Arch's toolchain).


Sakura:-
Mobo: MSI MAG X570S TORPEDO MAX // Processor: AMD Ryzen 9 5950X @4.9GHz // GFX: AMD Radeon RX 5700 XT // RAM: 32GB (4x 8GB) Corsair DDR4 (@ 3000MHz) // Storage: 1x 3TB HDD, 6x 1TB SSD, 2x 120GB SSD, 1x 275GB M2 SSD

Making lemonade from lemons since 2015.

Offline

#4 2015-06-20 04:41:55

x-yuri
Member
Registered: 2013-01-06
Posts: 160

Re: [SOLVED] configure: C++ preprocessor "/lib/cpp" fails sanity check

Steef435, I meant symlink visible to only one process (or rather process tree), which is probably not possible.

The solution you're suggesting was recommended by Allan (maintainer of Arch's toolchain).

First, I didn't suggest using `sed`. Then, you made me look into `./configure` (though, looking through `./configure --help` output should have been enough) and come up with a better solution:

CXXCPP=/usr/bin/cpp ./configure

Offline

Board footer

Powered by FluxBB