On 05.05.2019 00:15, Gabor Z. Papp wrote:
> Hello all,
>
> I'm trying to build serf 1.3.9 with scons 3.0.5 on Linux where the toolchain 
> is
> at /pkg/bin like gcc, as and co. PREFIX=/pkg of course.
>
> $ scons PREFIX=$PREFIX APR=$PREFIX APU=$PREFIX OPENSSL=$PREFIX
> scons: Reading SConscript files ...
> Checking for GNU-compatible C compiler...no
> scons: done reading SConscript files.
> scons: Building targets ...
> gcc -o context.o -c -O2 -pthread -DNDEBUG -DLINUX -D_REENTRANT -D_GNU_SOURCE 
> -I. -I/pkg/include/apr-1.0 -I/pkg/include context.c
> sh: gcc: command not found
> scons: *** [context.o] Error 127
> scons: building terminated because of errors.
>
> If I specify CC too, then the next tool "as" not found:
>
> $ scons PREFIX=$PREFIX APR=$PREFIX APU=$PREFIX OPENSSL=$PREFIX 
> CC=$PREFIX/bin/gcc
> scons: Reading SConscript files ...
> Checking for GNU-compatible C compiler...no
> scons: done reading SConscript files.
> scons: Building targets ...
> /pkg/bin/gcc -o context.o -c -O2 -pthread -DNDEBUG -DLINUX -D_REENTRANT 
> -D_GNU_SOURCE -I. -I/pkg/include/apr-1.0 -I/pkg/include context.c
> gcc: error trying to exec 'as': execvp: No such file or directory
> scons: *** [context.o] Error 1
> scons: building terminated because of errors.
> Error: serf build
>
> I have read some trick and tips and faqs like:
>
> https://scons.org/faq.html#Why_doesn.27t_SCons_find_my_compiler.2BAC8-linker.2BAC8-etc..3F_I_can_execute_it_just_fine_from_the_command_line.
>
> But seems like nothing helps to find my gcc & tools.
>
> I think the problem is around:
>
> conf = Configure(env, custom_tests = dict(CheckGnuCC=CheckGnuCC))
>
> in SConstruct file, but I don't talk python, so I'm not sure.

Please show the config.log file that SCons generates.

-- Brane

Reply via email to