Skip to Content.
Sympa Menu

cado-nfs - Re: [Cado-nfs-discuss] GF2X problem

Subject: Discussion related to cado-nfs

List archive

Re: [Cado-nfs-discuss] GF2X problem


Chronological Thread 
  • From: Emmanuel Thomé <Emmanuel.Thome@inria.fr>
  • To: cado-nfs-discuss@lists.gforge.inria.fr
  • Subject: Re: [Cado-nfs-discuss] GF2X problem
  • Date: Sun, 12 Apr 2020 10:24:19 +0200
  • List-archive: <http://lists.gforge.inria.fr/pipermail/cado-nfs-discuss/>
  • List-id: A discussion list for Cado-NFS <cado-nfs-discuss.lists.gforge.inria.fr>

https://gitlab.inria.fr/cado-nfs/cado-nfs/issues/21824

On Sun, Apr 12, 2020 at 10:20:09AM +0200, Emmanuel Thomé wrote:
> I think that the compiler works fine. It just seems that calling it
> requires some contortions.
>
> Adolfo, I _think_ that a temporary workaround could be:
>
> rm -rf build/*
> LANG=C LC_CTYPE=C CC=/usr/bin/cc CXX=/usr/bin/c++ make cmake
> LANG=C LC_CTYPE=C CC=/usr/bin/cc CXX=/usr/bin/c++ make cmake
> LANG=C LC_CTYPE=C CC=/usr/bin/cc CXX=/usr/bin/c++ make -j8
>
> (yes, "make cmake" twice).
>
> It seems that forcing the compiler on macs currently reuires two cmake
> runs. There's a cmake inconsistency going on, I will try to find out
> what happens.
>
> As for cmake's auto-detection procedure, cmake seems to really, really
> like to set CMAKE_C_COMPILER to the value that xcode returns with "xcrun
> --find cc". Unfortunately, this bug shows that `xcrun --find cc` hello.c
> just doesn't work alone. So if cmake really really wants to go that way,
> it should not expand the tool paths, and wrap everything through xcrun
> instead (that means cc, c++, ld, make, ...)
>
> Weird.
>
> E.
>
> On Sun, Apr 12, 2020 at 10:08:52AM +0200, Paul Zimmermann wrote:
> > Dear Adolfo,
> >
> > > Attached the log file where I could not spot any error ...
> > > unfortunately.
> >
> > the error you get is exactly the same as Emmanuel got:
> >
> > conftest.c:9:10: fatal error: 'stdio.h' file not found
> > #include <stdio.h>
> > ^~~~~~~~~
> > 1 error generated.
> >
> > It seems your compiler is not working properly.
> >
> > Best regards,
> > Paul
> > _______________________________________________
> > Cado-nfs-discuss mailing list
> > Cado-nfs-discuss@lists.gforge.inria.fr
> > https://lists.gforge.inria.fr/mailman/listinfo/cado-nfs-discuss
> _______________________________________________
> Cado-nfs-discuss mailing list
> Cado-nfs-discuss@lists.gforge.inria.fr
> https://lists.gforge.inria.fr/mailman/listinfo/cado-nfs-discuss




Archive powered by MHonArc 2.6.19+.

Top of Page