[erlang-questions] R14B failed to build on Ubuntu 9.04

Mikael Pettersson <>
Sat Oct 16 16:23:51 CEST 2010


On Sat, 16 Oct 2010 06:05:45 -0700 (PDT), "ingo.schramm" <> wrote:
> R14B failed to build on Ubuntu 9.04
> 
> uname -a
> Linux hermes 2.6.28-19-generic #65-Ubuntu SMP Thu Sep 16 14:24:42 UTC
> 2010 x86_64 GNU/Linux
> 
> gcc --version
> gcc (GCC) 4.2.4 (Ubuntu 4.2.4-5ubuntu1)
> 
> ./configure --prefix=3D/opt/erlang/R14B
> 
> make
> 
> test X"$ERTS_SKIP_DEPEND" =3D X"true" || (cd erts/emulator && ERL_TOP=3D/
> home/ingo/install/otp_src_R14B make generate depend)
> make[1]: Entering directory `/home/ingo/install/otp_src_R14B/erts/
> emulator'
> make -f x86_64-unknown-linux-gnu/Makefile generate
> make[2]: Entering directory `/home/ingo/install/otp_src_R14B/erts/
> emulator'
> gcc  -g -O3 -I/home/ingo/install/otp_src_R14B/erts/x86_64-unknown-
> linux-gnu    -D_GNU_SOURCE  -DHAVE_CONFIG_H -Wall -Wstrict-prototypes -
> Wmissing-prototypes -Wdeclaration-after-statement -DUSE_THREADS -
> D_THREAD_SAFE -D_REENTRANT -DPOSIX_THREADS -
> D_POSIX_THREAD_SAFE_FUNCTIONS  -Ix86_64-unknown-linux-gnu/opt/plain -
> Ibeam -Isys/unix -Isys/common -Ix86_64-unknown-linux-gnu -Izlib  -
> Ipcre -Ihipe -I../include -I../include/x86_64-unknown-linux-gnu -I../
> include/internal -I../include/internal/x86_64-unknown-linux-gnu -c
> hipe/hipe_mkliterals.c -o obj/x86_64-unknown-linux-gnu/opt/plain/
> hipe_mkliterals.o
> hipe/hipe_mkliterals.c:23:20: error: config.h: No such file or
> directory

This is the real error.

> In file included from beam/sys.h:54,
>                  from hipe/hipe_mkliterals.c:30:
> sys/unix/erl_unix_sys.h:210: error: expected declaration specifiers or
> =91...=92 before =91*=92 token
> sys/unix/erl_unix_sys.h:210: warning: data definition has no type or
> storage class

The rest are just consequences of the first error.

./configure is supposed to create erts/x86_64-unknown-linux-gnu/config.h,
but apparently it failed to do so for you.  You need to figure out why,
or at least post the output of the ./configure step for us to look at.

FWIW, R14B builds just fine here on CentOS 5.5 / x86_64.

/Mikael


More information about the erlang-questions mailing list