Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Cannot install Erlang on Valve Steam Deck #256

Open
lawik opened this issue Aug 2, 2022 · 5 comments
Open

Cannot install Erlang on Valve Steam Deck #256

lawik opened this issue Aug 2, 2022 · 5 comments

Comments

@lawik
Copy link

lawik commented Aug 2, 2022

Hey

Love asdf for Erlang and Elixir.

I wanted to get Erlang and Elixir going on the Valve Steam Deck. It's an AMD machine running Arch fundamentally.

So what I've done is to unlock the readonly parts of the deck, then added Arch package repos, followed the asdf erlang docs for Arch and installing dependencies. Now this is what I get:

(deck@steamdeck ~)$ asdf install erlang 25.0.3
asdf_25.0.3 is not a kerl-managed Erlang/OTP installation
The asdf_25.0.3 build has been deleted
Extracting source code
Building Erlang/OTP 25.0.3 (asdf_25.0.3), please wait...
Build failed.
checking for C compiler default output file name... a.out
checking for suffix of executables... 
checking whether we are cross compiling... configure: error: in `/home/deck/.asdf/plugins/erlang/kerl-home/builds/asdf_25.0.3/otp_src_25.0.3/erts':
configure: error: cannot run C compiled programs.
If you meant to cross compile, use `--host'.
See `config.log' for more details
ERROR: /home/deck/.asdf/plugins/erlang/kerl-home/builds/asdf_25.0.3/otp_src_25.0.3/erts/configure failed!
./configure: line 366: kill: (-6988) - No such process
make: *** No rule to make target 'is_cross_configured'.  Stop.
make: *** No rule to make target 'all'.  Stop.

Please see /home/deck/.asdf/plugins/erlang/kerl-home/builds/asdf_25.0.3/otp_build_25.0.3.log for full details.

If there is interest in me trying some things I'm happy to. I'm not very knowledgeable about this build process so don't have much more I can add.

ASDF version: v0.10.2-7e7a1fa

@Stratus3D
Copy link
Member

What is in /home/deck/.asdf/plugins/erlang/kerl-home/builds/asdf_25.0.3/otp_build_25.0.3.log?

@lawik
Copy link
Author

lawik commented Aug 3, 2022

Not much :/

(130)(deck@steamdeck ~)$ cat /home/deck/.asdf/plugins/erlang/kerl-home/builds/asdf_25.0.3/otp_build_25.0.3.log
/home/deck/.asdf/plugins/erlang/kerl-home/builds/asdf_25.0.3/otp_src_25.0.3/configure  --cache-file=/dev/null
=== Running configure in /home/deck/.asdf/plugins/erlang/kerl-home/builds/asdf_25.0.3/otp_src_25.0.3/erts ===
./configure --disable-option-checking --cache-file=/dev/null --srcdir="/home/deck/.asdf/plugins/erlang/kerl-home/builds/asdf_25.0.3/otp_src_25.0.3/erts"
checking build system type... x86_64-pc-linux-gnu
checking host system type... x86_64-pc-linux-gnu
checking target system type... x86_64-pc-linux-gnu
checking for gcc... gcc
checking whether the C compiler works... yes
checking for C compiler default output file name... a.out
checking for suffix of executables... 
checking whether we are cross compiling... configure: error: in `/home/deck/.asdf/plugins/erlang/kerl-home/builds/asdf_25.0.3/otp_src_25.0.3/erts':
configure: error: cannot run C compiled programs.
If you meant to cross compile, use `--host'.
See `config.log' for more details
ERROR: /home/deck/.asdf/plugins/erlang/kerl-home/builds/asdf_25.0.3/otp_src_25.0.3/erts/configure failed!
./configure: line 366: kill: (-6988) - No such process
make: *** No rule to make target 'is_cross_configured'.  Stop.
make: *** No rule to make target 'all'.  Stop.

@lawik
Copy link
Author

lawik commented Aug 3, 2022

The config.log seems more helpful. I saw something about stdio.h missing and I think that went away with installing glibc.

But now it seems very stuck on that /lib/cpp sanity check:

(deck@steamdeck ~)$ cat ./.asdf/plugins/erlang/kerl-home/builds/asdf_25.0.3/otp_src_25.0.3/erts/config.log
This file contains any messages produced by compilers while
running configure, to aid debugging if configure makes a mistake.

It was created by configure, which was
generated by GNU Autoconf 2.71.  Invocation command line was

  $ ./configure --disable-option-checking --cache-file=/dev/null --srcdir=/home/deck/.asdf/plugins/erlang/kerl-home/builds/asdf_25.0.3/otp_src_25.0.3/erts

## --------- ##
## Platform. ##
## --------- ##

hostname = steamdeck
uname -m = x86_64
uname -r = 5.13.0-valve15-1-neptune-02197-gf6ec7ad3762a
uname -s = Linux
uname -v = #1 SMP PREEMPT Thu, 26 May 2022 19:57:25 +0000

/usr/bin/uname -p = unknown
/bin/uname -X     = unknown

/bin/arch              = unknown
/usr/bin/arch -k       = unknown
/usr/convex/getsysinfo = unknown
/usr/bin/hostinfo      = unknown
/bin/machine           = unknown
/usr/bin/oslevel       = unknown
/bin/universe          = unknown

PATH: /home/deck/.asdf/shims/
PATH: /home/deck/.asdf/bin/
PATH: /usr/local/sbin/
PATH: /usr/local/bin/
PATH: /usr/bin/
PATH: /var/lib/flatpak/exports/bin/
PATH: /usr/lib/jvm/default/bin/
PATH: /usr/bin/site_perl/
PATH: /usr/bin/vendor_perl/
PATH: /usr/bin/core_perl/


## ----------- ##
## Core tests. ##
## ----------- ##

configure:3333: looking for aux files: install-sh config.guess config.sub
configure:3346:  trying /home/deck/.asdf/plugins/erlang/kerl-home/builds/asdf_25.0.3/otp_src_25.0.3/make/autoconf/
configure:3357:   /home/deck/.asdf/plugins/erlang/kerl-home/builds/asdf_25.0.3/otp_src_25.0.3/make/autoconf/install-sh found
configure:3375:   /home/deck/.asdf/plugins/erlang/kerl-home/builds/asdf_25.0.3/otp_src_25.0.3/make/autoconf/config.guess found
configure:3375:   /home/deck/.asdf/plugins/erlang/kerl-home/builds/asdf_25.0.3/otp_src_25.0.3/make/autoconf/config.sub found
configure:3678: checking build system type
configure:3693: result: x86_64-pc-linux-gnu
configure:3713: checking host system type
configure:3727: result: x86_64-pc-linux-gnu
configure:3747: checking target system type
configure:3761: result: x86_64-pc-linux-gnu
configure:3929: checking for gcc
configure:3950: found /usr/bin/gcc
configure:3961: result: gcc
configure:4314: checking for C compiler version
configure:4323: gcc --version >&5
gcc (GCC) 11.1.0
Copyright (C) 2021 Free Software Foundation, Inc.
This is free software; see the source for copying conditions.  There is NO
warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.

configure:4334: $? = 0
configure:4323: gcc -v >&5
Using built-in specs.
COLLECT_GCC=gcc
COLLECT_LTO_WRAPPER=/usr/lib/gcc/x86_64-pc-linux-gnu/11.1.0/lto-wrapper
Target: x86_64-pc-linux-gnu
Configured with: /build/gcc/src/gcc/configure --prefix=/usr --libdir=/usr/lib --libexecdir=/usr/lib --mandir=/usr/share/man --infodir=/usr/share/info --with-bugurl=https://bugs.archlinux.org/ --enable-languages=c,c++,ada,fortran,go,lto,objc,obj-c++,d --with-isl --with-linker-hash-style=gnu --with-system-zlib --enable-__cxa_atexit --enable-cet=auto --enable-checking=release --enable-clocale=gnu --enable-default-pie --enable-default-ssp --enable-gnu-indirect-function --enable-gnu-unique-object --enable-install-libiberty --enable-linker-build-id --enable-lto --enable-multilib --enable-plugin --enable-shared --enable-threads=posix --disable-libssp --disable-libstdcxx-pch --disable-libunwind-exceptions --disable-werror gdc_include_dir=/usr/include/dlang/gdc
Thread model: posix
Supported LTO compression algorithms: zlib zstd
gcc version 11.1.0 (GCC) 
configure:4334: $? = 0
configure:4323: gcc -V >&5
gcc: error: unrecognized command-line option '-V'
gcc: fatal error: no input files
compilation terminated.
configure:4334: $? = 1
configure:4323: gcc -qversion >&5
gcc: error: unrecognized command-line option '-qversion'; did you mean '--version'?
gcc: fatal error: no input files
compilation terminated.
configure:4334: $? = 1
configure:4323: gcc -version >&5
gcc: error: unrecognized command-line option '-version'
gcc: fatal error: no input files
compilation terminated.
configure:4334: $? = 1
configure:4354: checking whether the C compiler works
configure:4376: gcc    conftest.c  >&5
configure:4380: $? = 0
configure:4430: result: yes
configure:4433: checking for C compiler default output file name
configure:4435: result: a.out
configure:4441: checking for suffix of executables
configure:4448: gcc -o conftest    conftest.c  >&5
configure:4452: $? = 0
configure:4475: result: 
configure:4497: checking whether we are cross compiling
configure:4505: gcc -o conftest    conftest.c  >&5
configure:4509: $? = 0
configure:4516: ./conftest
configure:4520: $? = 0
configure:4535: result: no
configure:4540: checking for suffix of object files
configure:4563: gcc -c   conftest.c >&5
configure:4567: $? = 0
configure:4589: result: o
configure:4593: checking whether the compiler supports GNU C
configure:4613: gcc -c   conftest.c >&5
configure:4613: $? = 0
configure:4623: result: yes
configure:4634: checking whether gcc accepts -g
configure:4655: gcc -c -g  conftest.c >&5
configure:4655: $? = 0
configure:4699: result: yes
configure:4719: checking for gcc option to enable C11 features
configure:4734: gcc  -c -g -O2  conftest.c >&5
configure:4734: $? = 0
configure:4752: result: none needed
configure:4863: checking for library containing strerror
configure:4893: gcc -o conftest -g -O2   conftest.c  >&5
configure:4893: $? = 0
configure:4913: result: none required
configure:5199: checking OTP release
configure:5202: result: 25
configure:5206: checking OTP version
configure:5209: result: 25.0.3
configure:5418: checking for gcc
configure:5450: result: gcc
configure:5803: checking for C compiler version
configure:5812: gcc --version >&5
gcc (GCC) 11.1.0
Copyright (C) 2021 Free Software Foundation, Inc.
This is free software; see the source for copying conditions.  There is NO
warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.

configure:5823: $? = 0
configure:5812: gcc -v >&5
Using built-in specs.
COLLECT_GCC=gcc
COLLECT_LTO_WRAPPER=/usr/lib/gcc/x86_64-pc-linux-gnu/11.1.0/lto-wrapper
Target: x86_64-pc-linux-gnu
Configured with: /build/gcc/src/gcc/configure --prefix=/usr --libdir=/usr/lib --libexecdir=/usr/lib --mandir=/usr/share/man --infodir=/usr/share/info --with-bugurl=https://bugs.archlinux.org/ --enable-languages=c,c++,ada,fortran,go,lto,objc,obj-c++,d --with-isl --with-linker-hash-style=gnu --with-system-zlib --enable-__cxa_atexit --enable-cet=auto --enable-checking=release --enable-clocale=gnu --enable-default-pie --enable-default-ssp --enable-gnu-indirect-function --enable-gnu-unique-object --enable-install-libiberty --enable-linker-build-id --enable-lto --enable-multilib --enable-plugin --enable-shared --enable-threads=posix --disable-libssp --disable-libstdcxx-pch --disable-libunwind-exceptions --disable-werror gdc_include_dir=/usr/include/dlang/gdc
Thread model: posix
Supported LTO compression algorithms: zlib zstd
gcc version 11.1.0 (GCC) 
configure:5823: $? = 0
configure:5812: gcc -V >&5
gcc: error: unrecognized command-line option '-V'
gcc: fatal error: no input files
compilation terminated.
configure:5823: $? = 1
configure:5812: gcc -qversion >&5
gcc: error: unrecognized command-line option '-qversion'; did you mean '--version'?
gcc: fatal error: no input files
compilation terminated.
configure:5823: $? = 1
configure:5812: gcc -version >&5
gcc: error: unrecognized command-line option '-version'
gcc: fatal error: no input files
compilation terminated.
configure:5823: $? = 1
configure:5827: checking whether the compiler supports GNU C
configure:5857: result: yes
configure:5868: checking whether gcc accepts -g
configure:5933: result: yes
configure:5953: checking for gcc option to enable C11 features
configure:5986: result: none needed
configure:6167: checking for g++
configure:6188: found /usr/bin/g++
configure:6199: result: g++
configure:6226: checking for C++ compiler version
configure:6235: g++ --version >&5
g++ (GCC) 11.1.0
Copyright (C) 2021 Free Software Foundation, Inc.
This is free software; see the source for copying conditions.  There is NO
warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.

configure:6246: $? = 0
configure:6235: g++ -v >&5
Using built-in specs.
COLLECT_GCC=g++
COLLECT_LTO_WRAPPER=/usr/lib/gcc/x86_64-pc-linux-gnu/11.1.0/lto-wrapper
Target: x86_64-pc-linux-gnu
Configured with: /build/gcc/src/gcc/configure --prefix=/usr --libdir=/usr/lib --libexecdir=/usr/lib --mandir=/usr/share/man --infodir=/usr/share/info --with-bugurl=https://bugs.archlinux.org/ --enable-languages=c,c++,ada,fortran,go,lto,objc,obj-c++,d --with-isl --with-linker-hash-style=gnu --with-system-zlib --enable-__cxa_atexit --enable-cet=auto --enable-checking=release --enable-clocale=gnu --enable-default-pie --enable-default-ssp --enable-gnu-indirect-function --enable-gnu-unique-object --enable-install-libiberty --enable-linker-build-id --enable-lto --enable-multilib --enable-plugin --enable-shared --enable-threads=posix --disable-libssp --disable-libstdcxx-pch --disable-libunwind-exceptions --disable-werror gdc_include_dir=/usr/include/dlang/gdc
Thread model: posix
Supported LTO compression algorithms: zlib zstd
gcc version 11.1.0 (GCC) 
configure:6246: $? = 0
configure:6235: g++ -V >&5
g++: error: unrecognized command-line option '-V'
g++: fatal error: no input files
compilation terminated.
configure:6246: $? = 1
configure:6235: g++ -qversion >&5
g++: error: unrecognized command-line option '-qversion'; did you mean '--version'?
g++: fatal error: no input files
compilation terminated.
configure:6246: $? = 1
configure:6250: checking whether the compiler supports GNU C++
configure:6270: g++ -c   conftest.cpp >&5
configure:6270: $? = 0
configure:6280: result: yes
configure:6291: checking whether g++ accepts -g
configure:6312: g++ -c -g  conftest.cpp >&5
configure:6312: $? = 0
configure:6356: result: yes
configure:6376: checking for g++ option to enable C++11 features
configure:6391: g++  -c -g -O2  conftest.cpp >&5
conftest.cpp:20:10: fatal error: cstdlib: No such file or directory
   20 | #include <cstdlib>
      |          ^~~~~~~~~
compilation terminated.
configure:6391: $? = 1
configure: failed program was:
| /* confdefs.h */
| #define PACKAGE_NAME ""
| #define PACKAGE_TARNAME ""
| #define PACKAGE_VERSION ""
| #define PACKAGE_STRING ""
| #define PACKAGE_BUGREPORT ""
| #define PACKAGE_URL ""
| #define ASSUMED_CACHE_LINE_SIZE 64
| #define ERTS_ENABLE_MSACC 1
| #define ERTS_NO_RETPOLINE 
| /* end confdefs.h.  */
| 
| // Does the compiler advertise C++98 conformance?
| #if !defined __cplusplus || __cplusplus < 199711L
| # error "Compiler does not advertise C++98 conformance"
| #endif
| 
| // These inclusions are to reject old compilers that
| // lack the unsuffixed header files.
| #include <cstdlib>
| #include <exception>
| 
| // <cassert> and <cstring> are *not* freestanding headers in C++98.
| extern void assert (int);
| namespace std {
|   extern int strcmp (const char *, const char *);
| }
| 
| // Namespaces, exceptions, and templates were all added after "C++ 2.0".
| using std::exception;
| using std::strcmp;
| 
| namespace {
| 
| void test_exception_syntax()
| {
|   try {
|     throw "test";
|   } catch (const char *s) {
|     // Extra parentheses suppress a warning when building autoconf itself,
|     // due to lint rules shared with more typical C programs.
|     assert (!(strcmp) (s, "test"));
|   }
| }
| 
| template <typename T> struct test_template
| {
|   T const val;
|   explicit test_template(T t) : val(t) {}
|   template <typename U> T add(U u) { return static_cast<T>(u) + val; }
| };
| 
| } // anonymous namespace
| 
| 
| // Does the compiler advertise C++ 2011 conformance?
| #if !defined __cplusplus || __cplusplus < 201103L
| # error "Compiler does not advertise C++11 conformance"
| #endif
| 
| namespace cxx11test
| {
|   constexpr int get_val() { return 20; }
| 
|   struct testinit
|   {
|     int i;
|     double d;
|   };
| 
|   class delegate
|   {
|   public:
|     delegate(int n) : n(n) {}
|     delegate(): delegate(2354) {}
| 
|     virtual int getval() { return this->n; };
|   protected:
|     int n;
|   };
| 
|   class overridden : public delegate
|   {
|   public:
|     overridden(int n): delegate(n) {}
|     virtual int getval() override final { return this->n * 2; }
|   };
| 
|   class nocopy
|   {
|   public:
|     nocopy(int i): i(i) {}
|     nocopy() = default;
|     nocopy(const nocopy&) = delete;
|     nocopy & operator=(const nocopy&) = delete;
|   private:
|     int i;
|   };
| 
|   // for testing lambda expressions
|   template <typename Ret, typename Fn> Ret eval(Fn f, Ret v)
|   {
|     return f(v);
|   }
| 
|   // for testing variadic templates and trailing return types
|   template <typename V> auto sum(V first) -> V
|   {
|     return first;
|   }
|   template <typename V, typename... Args> auto sum(V first, Args... rest) -> V
|   {
|     return first + sum(rest...);
|   }
| }
| 
| 
| int
| main (int argc, char **argv)
| {
|   int ok = 0;
|   
|   assert (argc);
|   assert (! argv[0]);
| {
|   test_exception_syntax ();
|   test_template<double> tt (2.0);
|   assert (tt.add (4) == 6.0);
|   assert (true && !false);
| }
| 
|   
| {
|   // Test auto and decltype
|   auto a1 = 6538;
|   auto a2 = 48573953.4;
|   auto a3 = "String literal";
| 
|   int total = 0;
|   for (auto i = a3; *i; ++i) { total += *i; }
| 
|   decltype(a2) a4 = 34895.034;
| }
| {
|   // Test constexpr
|   short sa[cxx11test::get_val()] = { 0 };
| }
| {
|   // Test initializer lists
|   cxx11test::testinit il = { 4323, 435234.23544 };
| }
| {
|   // Test range-based for
|   int array[] = {9, 7, 13, 15, 4, 18, 12, 10, 5, 3,
|                  14, 19, 17, 8, 6, 20, 16, 2, 11, 1};
|   for (auto &x : array) { x += 23; }
| }
| {
|   // Test lambda expressions
|   using cxx11test::eval;
|   assert (eval ([](int x) { return x*2; }, 21) == 42);
|   double d = 2.0;
|   assert (eval ([&](double x) { return d += x; }, 3.0) == 5.0);
|   assert (d == 5.0);
|   assert (eval ([=](double x) mutable { return d += x; }, 4.0) == 9.0);
|   assert (d == 5.0);
| }
| {
|   // Test use of variadic templates
|   using cxx11test::sum;
|   auto a = sum(1);
|   auto b = sum(1, 2);
|   auto c = sum(1.0, 2.0, 3.0);
| }
| {
|   // Test constructor delegation
|   cxx11test::delegate d1;
|   cxx11test::delegate d2();
|   cxx11test::delegate d3(45);
| }
| {
|   // Test override and final
|   cxx11test::overridden o1(55464);
| }
| {
|   // Test nullptr
|   char *c = nullptr;
| }
| {
|   // Test template brackets
|   test_template<::test_template<int>> v(test_template<int>(12));
| }
| {
|   // Unicode literals
|   char const *utf8 = u8"UTF-8 string \u2500";
|   char16_t const *utf16 = u"UTF-8 string \u2500";
|   char32_t const *utf32 = U"UTF-32 string \u2500";
| }
| 
|   return ok;
| }
| 
configure:6409: result: none needed
configure:6475: checking for grep that handles long lines and -e
configure:6539: result: /usr/bin/grep
configure:6544: checking for egrep
configure:6612: result: /usr/bin/grep -E
configure:6622: checking how to run the C preprocessor
configure:6648: gcc -E  conftest.c
In file included from /usr/include/bits/posix1_lim.h:161,
                 from /usr/include/limits.h:195,
                 from /usr/lib/gcc/x86_64-pc-linux-gnu/11.1.0/include-fixed/limits.h:203,
                 from /usr/lib/gcc/x86_64-pc-linux-gnu/11.1.0/include-fixed/syslimits.h:7,
                 from /usr/lib/gcc/x86_64-pc-linux-gnu/11.1.0/include-fixed/limits.h:34,
                 from conftest.c:12:
/usr/include/bits/local_lim.h:38:10: fatal error: linux/limits.h: No such file or directory
   38 | #include <linux/limits.h>
      |          ^~~~~~~~~~~~~~~~
compilation terminated.
configure:6648: $? = 1
configure: failed program was:
| /* confdefs.h */
| #define PACKAGE_NAME ""
| #define PACKAGE_TARNAME ""
| #define PACKAGE_VERSION ""
| #define PACKAGE_STRING ""
| #define PACKAGE_BUGREPORT ""
| #define PACKAGE_URL ""
| #define ASSUMED_CACHE_LINE_SIZE 64
| #define ERTS_ENABLE_MSACC 1
| #define ERTS_NO_RETPOLINE 
| /* end confdefs.h.  */
| #include <limits.h>
| 		     Syntax error
configure:6648: gcc -E  conftest.c
In file included from /usr/include/bits/posix1_lim.h:161,
                 from /usr/include/limits.h:195,
                 from /usr/lib/gcc/x86_64-pc-linux-gnu/11.1.0/include-fixed/limits.h:203,
                 from /usr/lib/gcc/x86_64-pc-linux-gnu/11.1.0/include-fixed/syslimits.h:7,
                 from /usr/lib/gcc/x86_64-pc-linux-gnu/11.1.0/include-fixed/limits.h:34,
                 from conftest.c:12:
/usr/include/bits/local_lim.h:38:10: fatal error: linux/limits.h: No such file or directory
   38 | #include <linux/limits.h>
      |          ^~~~~~~~~~~~~~~~
compilation terminated.
configure:6648: $? = 1
configure: failed program was:
| /* confdefs.h */
| #define PACKAGE_NAME ""
| #define PACKAGE_TARNAME ""
| #define PACKAGE_VERSION ""
| #define PACKAGE_STRING ""
| #define PACKAGE_BUGREPORT ""
| #define PACKAGE_URL ""
| #define ASSUMED_CACHE_LINE_SIZE 64
| #define ERTS_ENABLE_MSACC 1
| #define ERTS_NO_RETPOLINE 
| /* end confdefs.h.  */
| #include <limits.h>
| 		     Syntax error
configure:6648: gcc -E -traditional-cpp  conftest.c
In file included from /usr/include/features.h:474,
                 from /usr/include/bits/libc-header-start.h:34,
                 from /usr/include/limits.h:27,
                 from /usr/lib/gcc/x86_64-pc-linux-gnu/11.1.0/include-fixed/limits.h:204,
                 from /usr/lib/gcc/x86_64-pc-linux-gnu/11.1.0/include-fixed/syslimits.h:8,
                 from /usr/lib/gcc/x86_64-pc-linux-gnu/11.1.0/include-fixed/limits.h:35,
                 from conftest.c:13:
/usr/include/sys/cdefs.h:30:3: error: #error "You need a ISO C conforming compiler to use the glibc headers"
   30 | # error "You need a ISO C conforming compiler to use the glibc headers"
      |   ^~~~~
In file included from /usr/include/limits.h:27,
                 from /usr/lib/gcc/x86_64-pc-linux-gnu/11.1.0/include-fixed/limits.h:204,
                 from /usr/lib/gcc/x86_64-pc-linux-gnu/11.1.0/include-fixed/syslimits.h:8,
                 from /usr/lib/gcc/x86_64-pc-linux-gnu/11.1.0/include-fixed/limits.h:35,
                 from conftest.c:13:
/usr/include/bits/libc-header-start.h:56: error: token "##" is not valid in preprocessor expressions
   56 | #if __GLIBC_USE (IEC_60559_BFP_EXT) || __GLIBC_USE (ISOC2X)
      | 
/usr/include/bits/libc-header-start.h:73: error: token "##" is not valid in preprocessor expressions
   73 | #if __GLIBC_USE (IEC_60559_FUNCS_EXT) || __GLIBC_USE (ISOC2X)
      | 
In file included from /usr/lib/gcc/x86_64-pc-linux-gnu/11.1.0/include-fixed/limits.h:204,
                 from /usr/lib/gcc/x86_64-pc-linux-gnu/11.1.0/include-fixed/syslimits.h:8,
                 from /usr/lib/gcc/x86_64-pc-linux-gnu/11.1.0/include-fixed/limits.h:35,
                 from conftest.c:13:
/usr/include/limits.h:145: error: token "##" is not valid in preprocessor expressions
  145 | #if __GLIBC_USE (IEC_60559_BFP_EXT_C2X)
      | 
/usr/include/limits.h:184: error: token "##" is not valid in preprocessor expressions
  184 | #if __GLIBC_USE (ISOC2X)
      | 
In file included from /usr/include/bits/posix1_lim.h:162,
                 from /usr/include/limits.h:196,
                 from /usr/lib/gcc/x86_64-pc-linux-gnu/11.1.0/include-fixed/limits.h:204,
                 from /usr/lib/gcc/x86_64-pc-linux-gnu/11.1.0/include-fixed/syslimits.h:8,
                 from /usr/lib/gcc/x86_64-pc-linux-gnu/11.1.0/include-fixed/limits.h:35,
                 from conftest.c:13:
/usr/include/bits/local_lim.h:39:2: fatal error: linux/limits.h: No such file or directory
   39 | 
      |  ^               
compilation terminated.
configure:6648: $? = 1
configure: failed program was:
| /* confdefs.h */
| #define PACKAGE_NAME ""
| #define PACKAGE_TARNAME ""
| #define PACKAGE_VERSION ""
| #define PACKAGE_STRING ""
| #define PACKAGE_BUGREPORT ""
| #define PACKAGE_URL ""
| #define ASSUMED_CACHE_LINE_SIZE 64
| #define ERTS_ENABLE_MSACC 1
| #define ERTS_NO_RETPOLINE 
| /* end confdefs.h.  */
| #include <limits.h>
| 		     Syntax error
configure:6648: gcc -E -traditional-cpp  conftest.c
In file included from /usr/include/features.h:474,
                 from /usr/include/bits/libc-header-start.h:34,
                 from /usr/include/limits.h:27,
                 from /usr/lib/gcc/x86_64-pc-linux-gnu/11.1.0/include-fixed/limits.h:204,
                 from /usr/lib/gcc/x86_64-pc-linux-gnu/11.1.0/include-fixed/syslimits.h:8,
                 from /usr/lib/gcc/x86_64-pc-linux-gnu/11.1.0/include-fixed/limits.h:35,
                 from conftest.c:13:
/usr/include/sys/cdefs.h:30:3: error: #error "You need a ISO C conforming compiler to use the glibc headers"
   30 | # error "You need a ISO C conforming compiler to use the glibc headers"
      |   ^~~~~
In file included from /usr/include/limits.h:27,
                 from /usr/lib/gcc/x86_64-pc-linux-gnu/11.1.0/include-fixed/limits.h:204,
                 from /usr/lib/gcc/x86_64-pc-linux-gnu/11.1.0/include-fixed/syslimits.h:8,
                 from /usr/lib/gcc/x86_64-pc-linux-gnu/11.1.0/include-fixed/limits.h:35,
                 from conftest.c:13:
/usr/include/bits/libc-header-start.h:56: error: token "##" is not valid in preprocessor expressions
   56 | #if __GLIBC_USE (IEC_60559_BFP_EXT) || __GLIBC_USE (ISOC2X)
      | 
/usr/include/bits/libc-header-start.h:73: error: token "##" is not valid in preprocessor expressions
   73 | #if __GLIBC_USE (IEC_60559_FUNCS_EXT) || __GLIBC_USE (ISOC2X)
      | 
In file included from /usr/lib/gcc/x86_64-pc-linux-gnu/11.1.0/include-fixed/limits.h:204,
                 from /usr/lib/gcc/x86_64-pc-linux-gnu/11.1.0/include-fixed/syslimits.h:8,
                 from /usr/lib/gcc/x86_64-pc-linux-gnu/11.1.0/include-fixed/limits.h:35,
                 from conftest.c:13:
/usr/include/limits.h:145: error: token "##" is not valid in preprocessor expressions
  145 | #if __GLIBC_USE (IEC_60559_BFP_EXT_C2X)
      | 
/usr/include/limits.h:184: error: token "##" is not valid in preprocessor expressions
  184 | #if __GLIBC_USE (ISOC2X)
      | 
In file included from /usr/include/bits/posix1_lim.h:162,
                 from /usr/include/limits.h:196,
                 from /usr/lib/gcc/x86_64-pc-linux-gnu/11.1.0/include-fixed/limits.h:204,
                 from /usr/lib/gcc/x86_64-pc-linux-gnu/11.1.0/include-fixed/syslimits.h:8,
                 from /usr/lib/gcc/x86_64-pc-linux-gnu/11.1.0/include-fixed/limits.h:35,
                 from conftest.c:13:
/usr/include/bits/local_lim.h:39:2: fatal error: linux/limits.h: No such file or directory
   39 | 
      |  ^               
compilation terminated.
configure:6648: $? = 1
configure: failed program was:
| /* confdefs.h */
| #define PACKAGE_NAME ""
| #define PACKAGE_TARNAME ""
| #define PACKAGE_VERSION ""
| #define PACKAGE_STRING ""
| #define PACKAGE_BUGREPORT ""
| #define PACKAGE_URL ""
| #define ASSUMED_CACHE_LINE_SIZE 64
| #define ERTS_ENABLE_MSACC 1
| #define ERTS_NO_RETPOLINE 
| /* end confdefs.h.  */
| #include <limits.h>
| 		     Syntax error
configure:6648: cpp  conftest.c
In file included from /usr/include/bits/posix1_lim.h:161,
                 from /usr/include/limits.h:195,
                 from /usr/lib/gcc/x86_64-pc-linux-gnu/11.1.0/include-fixed/limits.h:203,
                 from /usr/lib/gcc/x86_64-pc-linux-gnu/11.1.0/include-fixed/syslimits.h:7,
                 from /usr/lib/gcc/x86_64-pc-linux-gnu/11.1.0/include-fixed/limits.h:34,
                 from conftest.c:12:
/usr/include/bits/local_lim.h:38:10: fatal error: linux/limits.h: No such file or directory
   38 | #include <linux/limits.h>
      |          ^~~~~~~~~~~~~~~~
compilation terminated.
configure:6648: $? = 1
configure: failed program was:
| /* confdefs.h */
| #define PACKAGE_NAME ""
| #define PACKAGE_TARNAME ""
| #define PACKAGE_VERSION ""
| #define PACKAGE_STRING ""
| #define PACKAGE_BUGREPORT ""
| #define PACKAGE_URL ""
| #define ASSUMED_CACHE_LINE_SIZE 64
| #define ERTS_ENABLE_MSACC 1
| #define ERTS_NO_RETPOLINE 
| /* end confdefs.h.  */
| #include <limits.h>
| 		     Syntax error
configure:6648: cpp  conftest.c
In file included from /usr/include/bits/posix1_lim.h:161,
                 from /usr/include/limits.h:195,
                 from /usr/lib/gcc/x86_64-pc-linux-gnu/11.1.0/include-fixed/limits.h:203,
                 from /usr/lib/gcc/x86_64-pc-linux-gnu/11.1.0/include-fixed/syslimits.h:7,
                 from /usr/lib/gcc/x86_64-pc-linux-gnu/11.1.0/include-fixed/limits.h:34,
                 from conftest.c:12:
/usr/include/bits/local_lim.h:38:10: fatal error: linux/limits.h: No such file or directory
   38 | #include <linux/limits.h>
      |          ^~~~~~~~~~~~~~~~
compilation terminated.
configure:6648: $? = 1
configure: failed program was:
| /* confdefs.h */
| #define PACKAGE_NAME ""
| #define PACKAGE_TARNAME ""
| #define PACKAGE_VERSION ""
| #define PACKAGE_STRING ""
| #define PACKAGE_BUGREPORT ""
| #define PACKAGE_URL ""
| #define ASSUMED_CACHE_LINE_SIZE 64
| #define ERTS_ENABLE_MSACC 1
| #define ERTS_NO_RETPOLINE 
| /* end confdefs.h.  */
| #include <limits.h>
| 		     Syntax error
configure:6648: /lib/cpp  conftest.c
./configure: line 1969: /lib/cpp: No such file or directory
configure:6648: $? = 127
configure: failed program was:
| /* confdefs.h */
| #define PACKAGE_NAME ""
| #define PACKAGE_TARNAME ""
| #define PACKAGE_VERSION ""
| #define PACKAGE_STRING ""
| #define PACKAGE_BUGREPORT ""
| #define PACKAGE_URL ""
| #define ASSUMED_CACHE_LINE_SIZE 64
| #define ERTS_ENABLE_MSACC 1
| #define ERTS_NO_RETPOLINE 
| /* end confdefs.h.  */
| #include <limits.h>
| 		     Syntax error
configure:6648: /lib/cpp  conftest.c
./configure: line 1969: /lib/cpp: No such file or directory
configure:6648: $? = 127
configure: failed program was:
| /* confdefs.h */
| #define PACKAGE_NAME ""
| #define PACKAGE_TARNAME ""
| #define PACKAGE_VERSION ""
| #define PACKAGE_STRING ""
| #define PACKAGE_BUGREPORT ""
| #define PACKAGE_URL ""
| #define ASSUMED_CACHE_LINE_SIZE 64
| #define ERTS_ENABLE_MSACC 1
| #define ERTS_NO_RETPOLINE 
| /* end confdefs.h.  */
| #include <limits.h>
| 		     Syntax error
configure:6690: result: /lib/cpp
configure:6704: /lib/cpp  conftest.c
./configure: line 1969: /lib/cpp: No such file or directory
configure:6704: $? = 127
configure: failed program was:
| /* confdefs.h */
| #define PACKAGE_NAME ""
| #define PACKAGE_TARNAME ""
| #define PACKAGE_VERSION ""
| #define PACKAGE_STRING ""
| #define PACKAGE_BUGREPORT ""
| #define PACKAGE_URL ""
| #define ASSUMED_CACHE_LINE_SIZE 64
| #define ERTS_ENABLE_MSACC 1
| #define ERTS_NO_RETPOLINE 
| /* end confdefs.h.  */
| #include <limits.h>
| 		     Syntax error
configure:6704: /lib/cpp  conftest.c
./configure: line 1969: /lib/cpp: No such file or directory
configure:6704: $? = 127
configure: failed program was:
| /* confdefs.h */
| #define PACKAGE_NAME ""
| #define PACKAGE_TARNAME ""
| #define PACKAGE_VERSION ""
| #define PACKAGE_STRING ""
| #define PACKAGE_BUGREPORT ""
| #define PACKAGE_URL ""
| #define ASSUMED_CACHE_LINE_SIZE 64
| #define ERTS_ENABLE_MSACC 1
| #define ERTS_NO_RETPOLINE 
| /* end confdefs.h.  */
| #include <limits.h>
| 		     Syntax error
configure:6737: error: in `/home/deck/.asdf/plugins/erlang/kerl-home/builds/asdf_25.0.3/otp_src_25.0.3/erts':
configure:6739: error: C preprocessor "/lib/cpp" fails sanity check
See `config.log' for more details

## ---------------- ##
## Cache variables. ##
## ---------------- ##

ac_cv_build=x86_64-pc-linux-gnu
ac_cv_c_compiler_gnu=yes
ac_cv_cxx_compiler_gnu=yes
ac_cv_env_AR_set=
ac_cv_env_AR_value=
ac_cv_env_CCC_set=
ac_cv_env_CCC_value=
ac_cv_env_CC_set=
ac_cv_env_CC_value=
ac_cv_env_CFLAGS_set=
ac_cv_env_CFLAGS_value=
ac_cv_env_CFLAG_RUNTIME_LIBRARY_PATH_set=
ac_cv_env_CFLAG_RUNTIME_LIBRARY_PATH_value=
ac_cv_env_CPPFLAGS_set=
ac_cv_env_CPPFLAGS_value=
ac_cv_env_CPP_set=
ac_cv_env_CPP_value=
ac_cv_env_CXXFLAGS_set=
ac_cv_env_CXXFLAGS_value=
ac_cv_env_CXX_set=
ac_cv_env_CXX_value=
ac_cv_env_DED_LDFLAGS_set=
ac_cv_env_DED_LDFLAGS_value=
ac_cv_env_DED_LD_FLAG_RUNTIME_LIBRARY_PATH_set=
ac_cv_env_DED_LD_FLAG_RUNTIME_LIBRARY_PATH_value=
ac_cv_env_DED_LD_set=
ac_cv_env_DED_LD_value=
ac_cv_env_ERL_TOP_set=set
ac_cv_env_ERL_TOP_value=/home/deck/.asdf/plugins/erlang/kerl-home/builds/asdf_25.0.3/otp_src_25.0.3
ac_cv_env_GETCONF_set=
ac_cv_env_GETCONF_value=
ac_cv_env_LDFLAGS_set=
ac_cv_env_LDFLAGS_value=
ac_cv_env_LD_set=
ac_cv_env_LD_value=
ac_cv_env_LFS_CFLAGS_set=
ac_cv_env_LFS_CFLAGS_value=
ac_cv_env_LFS_LDFLAGS_set=
ac_cv_env_LFS_LDFLAGS_value=
ac_cv_env_LFS_LIBS_set=
ac_cv_env_LFS_LIBS_value=
ac_cv_env_LIBS_set=
ac_cv_env_LIBS_value=
ac_cv_env_RANLIB_set=
ac_cv_env_RANLIB_value=
ac_cv_env_STATIC_CFLAGS_set=
ac_cv_env_STATIC_CFLAGS_value=
ac_cv_env_YACC_set=
ac_cv_env_YACC_value=
ac_cv_env_YFLAGS_set=
ac_cv_env_YFLAGS_value=
ac_cv_env_build_alias_set=
ac_cv_env_build_alias_value=
ac_cv_env_erl_xcomp_after_morecore_hook_set=
ac_cv_env_erl_xcomp_after_morecore_hook_value=
ac_cv_env_erl_xcomp_bigendian_set=
ac_cv_env_erl_xcomp_bigendian_value=
ac_cv_env_erl_xcomp_clock_gettime_cpu_time_set=
ac_cv_env_erl_xcomp_clock_gettime_cpu_time_value=
ac_cv_env_erl_xcomp_dlsym_brk_wrappers_set=
ac_cv_env_erl_xcomp_dlsym_brk_wrappers_value=
ac_cv_env_erl_xcomp_double_middle_endian_set=
ac_cv_env_erl_xcomp_double_middle_endian_value=
ac_cv_env_erl_xcomp_getaddrinfo_set=
ac_cv_env_erl_xcomp_getaddrinfo_value=
ac_cv_env_erl_xcomp_gethrvtime_procfs_ioctl_set=
ac_cv_env_erl_xcomp_gethrvtime_procfs_ioctl_value=
ac_cv_env_erl_xcomp_isysroot_set=
ac_cv_env_erl_xcomp_isysroot_value=
ac_cv_env_erl_xcomp_kqueue_set=
ac_cv_env_erl_xcomp_kqueue_value=
ac_cv_env_erl_xcomp_linux_nptl_set=
ac_cv_env_erl_xcomp_linux_nptl_value=
ac_cv_env_erl_xcomp_linux_usable_sigaltstack_set=
ac_cv_env_erl_xcomp_linux_usable_sigaltstack_value=
ac_cv_env_erl_xcomp_linux_usable_sigusrx_set=
ac_cv_env_erl_xcomp_linux_usable_sigusrx_value=
ac_cv_env_erl_xcomp_poll_set=
ac_cv_env_erl_xcomp_poll_value=
ac_cv_env_erl_xcomp_putenv_copy_set=
ac_cv_env_erl_xcomp_putenv_copy_value=
ac_cv_env_erl_xcomp_reliable_fpe_set=
ac_cv_env_erl_xcomp_reliable_fpe_value=
ac_cv_env_erl_xcomp_sysroot_set=
ac_cv_env_erl_xcomp_sysroot_value=
ac_cv_env_host_alias_set=
ac_cv_env_host_alias_value=
ac_cv_env_target_alias_set=
ac_cv_env_target_alias_value=
ac_cv_host=x86_64-pc-linux-gnu
ac_cv_objext=o
ac_cv_path_EGREP='/usr/bin/grep -E'
ac_cv_path_GREP=/usr/bin/grep
ac_cv_prog_CPP=/lib/cpp
ac_cv_prog_ac_ct_CC=gcc
ac_cv_prog_ac_ct_CXX=g++
ac_cv_prog_cc_c11=
ac_cv_prog_cc_g=yes
ac_cv_prog_cc_stdc=
ac_cv_prog_cxx_11=no
ac_cv_prog_cxx_g=yes
ac_cv_prog_cxx_stdcxx=
ac_cv_search_strerror='none required'
ac_cv_target=x86_64-pc-linux-gnu

## ----------------- ##
## Output variables. ##
## ----------------- ##

AR=''
ARCH=''
BITS64=''
CC32=''
CC='gcc'
CFLAGS32=''
CFLAGS='-g -O2'
CFLAG_RUNTIME_LIBRARY_PATH=''
CP=''
CPP='/lib/cpp'
CPPFLAGS=''
CPU_SUP_LIBS=''
CROSS_COMPILING='no'
CXX='g++'
CXXFLAGS='-g -O2'
DEBUG_CFLAGS=''
DEBUG_FLAGS=''
DED_LD=''
DED_LDFLAGS=''
DED_LD_FLAG_RUNTIME_LIBRARY_PATH=''
DEFAULT_TYPES=''
DEFS=''
DEXPORT=''
DIRTY_SCHEDULER_TEST=''
DTRACE=''
DTRACE_CPP=''
DTRACE_ENABLED=''
DTRACE_ENABLED_2STEP=''
ECHO_C=''
ECHO_N='-n'
ECHO_T=''
EGREP='/usr/bin/grep -E'
EMU_CC=''
EMU_LOCK_CHECKING=''
EMU_THR_DEFS=''
EMU_THR_LIBS=''
EMU_THR_LIB_NAME=''
EMU_THR_X_LIBS=''
ENABLE_ALLOC_TYPE_VARS=''
ERLANG_OSTYPE=''
ERL_TOP='/home/deck/.asdf/plugins/erlang/kerl-home/builds/asdf_25.0.3/otp_src_25.0.3'
ERTS_BUILD_FALLBACK_POLL=''
ERTS_CONFIG_H_IDIR=''
ERTS_INTERNAL_X_LIBS=''
ETHR_DEFS=''
ETHR_LIBS=''
ETHR_LIB_NAME=''
ETHR_THR_LIB_BASE=''
ETHR_THR_LIB_BASE_DIR=''
ETHR_X86_SSE2_ASM=''
ETHR_X_LIBS=''
EXEEXT=''
EXTERNAL_WORD_SIZE=''
FLAVORS=''
FOP=''
GCC='yes'
GETCONF=''
GREP='/usr/bin/grep'
HAVE_VALGRIND=''
HCC=''
HCFLAGS=''
INSTALL_DATA=''
INSTALL_DIR=''
INSTALL_PROGRAM=''
INSTALL_SCRIPT=''
JAVAC=''
JIT_ARCH=''
JIT_ENABLED=''
LD=''
LDFLAGS=''
LFS_CFLAGS=''
LFS_LDFLAGS=''
LFS_LIBS=''
LIBCARBON=''
LIBOBJS=''
LIBRT=''
LIBS=''
LIBSCTP=''
LLVM_PROFDATA=''
LN_S=''
LTLIBOBJS=''
M4=''
MIXED_MINGW=''
MIXED_VC=''
MKDIR=''
OBJEXT='o'
OPSYS=''
OTP_RELEASE=''
OTP_VERSION='25.0.3'
PACKAGE_BUGREPORT=''
PACKAGE_NAME=''
PACKAGE_STRING=''
PACKAGE_TARNAME=''
PACKAGE_URL=''
PACKAGE_VERSION=''
PATH_SEPARATOR=':'
PERL=''
PRIMARY_FLAVOR=''
PROFILE_COMPILER=''
RANLIB=''
SHELL='/bin/sh'
SOCKET_LIBS=''
STATIC_CFLAGS=''
STATIC_DRIVERS='no'
STATIC_NIFS='no'
SYSTEMD_DAEMON_LIBS=''
SYSTEM_VSN='25'
TERMCAP_LIB=''
THR_DEFS=''
THR_LIBS=''
USE_PGO=''
USE_VM_PROBES=''
WERRORFLAGS=''
WFLAGS=''
XCRUN=''
XMLLINT=''
XSLTPROC=''
YACC=''
YFLAGS=''
Z_LIB=''
ac_ct_CC='gcc'
ac_ct_CXX='g++'
bindir='${exec_prefix}/bin'
build='x86_64-pc-linux-gnu'
build_alias=''
build_cpu='x86_64'
build_os='linux-gnu'
build_vendor='pc'
datadir='${datarootdir}'
datarootdir='${prefix}/share'
docdir='${datarootdir}/doc/${PACKAGE}'
dvidir='${docdir}'
erl_xcomp_after_morecore_hook=''
erl_xcomp_bigendian=''
erl_xcomp_clock_gettime_cpu_time=''
erl_xcomp_dlsym_brk_wrappers=''
erl_xcomp_double_middle_endian=''
erl_xcomp_getaddrinfo=''
erl_xcomp_gethrvtime_procfs_ioctl=''
erl_xcomp_isysroot=''
erl_xcomp_kqueue=''
erl_xcomp_linux_nptl=''
erl_xcomp_linux_usable_sigaltstack=''
erl_xcomp_linux_usable_sigusrx=''
erl_xcomp_poll=''
erl_xcomp_putenv_copy=''
erl_xcomp_reliable_fpe=''
erl_xcomp_sysroot=''
exec_prefix='NONE'
host='x86_64-pc-linux-gnu'
host_alias=''
host_cpu='x86_64'
host_os='linux-gnu'
host_vendor='pc'
htmldir='${docdir}'
includedir='${prefix}/include'
infodir='${datarootdir}/info'
libdir='${exec_prefix}/lib'
libexecdir='${exec_prefix}/libexec'
localedir='${datarootdir}/locale'
localstatedir='${prefix}/var'
mandir='${datarootdir}/man'
oldincludedir='/usr/include'
os_mon_programs=''
pdfdir='${docdir}'
prefix='NONE'
program_transform_name='s,x,x,'
psdir='${docdir}'
runstatedir='${localstatedir}/run'
sbindir='${exec_prefix}/sbin'
sharedstatedir='${prefix}/com'
sysconfdir='${prefix}/etc'
target='x86_64-pc-linux-gnu'
target_alias=''
target_cpu='x86_64'
target_os='linux-gnu'
target_vendor='pc'

## ----------- ##
## confdefs.h. ##
## ----------- ##

/* confdefs.h */
#define PACKAGE_NAME ""
#define PACKAGE_TARNAME ""
#define PACKAGE_VERSION ""
#define PACKAGE_STRING ""
#define PACKAGE_BUGREPORT ""
#define PACKAGE_URL ""
#define ASSUMED_CACHE_LINE_SIZE 64
#define ERTS_ENABLE_MSACC 1
#define ERTS_NO_RETPOLINE 

configure: exit 1

@jurassicjordan
Copy link

did you find a solution?

@lawik
Copy link
Author

lawik commented Feb 4, 2024

No, I haven't revisited the attempt since. I should though.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants