I have regressions with my normal 8.0, so I decided to build alfs with gcc 6.2.0 and glibc 2.24.

I have no idea why cmake does not find the available
/usr/include/c++/6.2.0/stdlib.h and
/usr/include/c++/6.2.0/iostream

Under 7.10 this has worked under manual build.
I include the log file. Only 3 kb.

Thanks
Gerhard
Try: cc
Line: cc  cmake_bootstrap_636_test.c -o cmake_bootstrap_636_test
----------  file   -----------------------

#ifdef __cplusplus
# error "The CMAKE_C_COMPILER is set to a C++ compiler"
#endif

#include<stdio.h>

#if defined(__CLASSIC_C__)
int main(argc, argv)
  int argc;
  char* argv[];
#else
int main(int argc, char* argv[])
#endif
{
  printf("%d%c", (argv != 0), (char)0x0a);
  return argc-1;
}

------------------------------------------
1
Test succeeded
Try: g++
Line: g++  -DTEST1 cmake_bootstrap_636_test.cxx -o cmake_bootstrap_636_test
----------  file   -----------------------

#if defined(TEST1)
# include <iostream>
#else
# include <iostream.h>
#endif

class NeedCXX
{
public:
  NeedCXX() { this->Foo = 1; }
  int GetFoo() { return this->Foo; }
private:
  int Foo;
};
int main()
{
  NeedCXX c;
#ifdef TEST3
  cout << c.GetFoo() << endl;
#else
  std::cout << c.GetFoo() << std::endl;
#endif
  return 0;
}

------------------------------------------
In file included from /usr/include/c++/6.2.0/ext/string_conversions.h:41:0,
                 from /usr/include/c++/6.2.0/bits/basic_string.h:5402,
                 from /usr/include/c++/6.2.0/string:52,
                 from /usr/include/c++/6.2.0/bits/locale_classes.h:40,
                 from /usr/include/c++/6.2.0/bits/ios_base.h:41,
                 from /usr/include/c++/6.2.0/ios:42,
                 from /usr/include/c++/6.2.0/ostream:38,
                 from /usr/include/c++/6.2.0/iostream:39,
                 from cmake_bootstrap_636_test.cxx:3:
/usr/include/c++/6.2.0/cstdlib:75:25: fatal error: stdlib.h: No such file or directory
 #include_next <stdlib.h>
                         ^
compilation terminated.
Test failed to compile
Try: g++
Line: g++  -DTEST2 cmake_bootstrap_636_test.cxx -o cmake_bootstrap_636_test
----------  file   -----------------------

#if defined(TEST1)
# include <iostream>
#else
# include <iostream.h>
#endif

class NeedCXX
{
public:
  NeedCXX() { this->Foo = 1; }
  int GetFoo() { return this->Foo; }
private:
  int Foo;
};
int main()
{
  NeedCXX c;
#ifdef TEST3
  cout << c.GetFoo() << endl;
#else
  std::cout << c.GetFoo() << std::endl;
#endif
  return 0;
}

------------------------------------------
cmake_bootstrap_636_test.cxx:5:23: fatal error: iostream.h: No such file or directory
 # include <iostream.h>
                       ^
compilation terminated.
Test failed to compile
Try: g++
Line: g++  -DTEST3 cmake_bootstrap_636_test.cxx -o cmake_bootstrap_636_test
----------  file   -----------------------

#if defined(TEST1)
# include <iostream>
#else
# include <iostream.h>
#endif

class NeedCXX
{
public:
  NeedCXX() { this->Foo = 1; }
  int GetFoo() { return this->Foo; }
private:
  int Foo;
};
int main()
{
  NeedCXX c;
#ifdef TEST3
  cout << c.GetFoo() << endl;
#else
  std::cout << c.GetFoo() << std::endl;
#endif
  return 0;
}

------------------------------------------
cmake_bootstrap_636_test.cxx:5:23: fatal error: iostream.h: No such file or directory
 # include <iostream.h>
                       ^
compilation terminated.
Test failed to compile
-- 
http://lists.linuxfromscratch.org/listinfo/alfs-discuss
FAQ: http://www.linuxfromscratch.org/faq/
Unsubscribe: See the above information page

Reply via email to