make problems, OTP P8A

Mikael Pettersson <>
Mon Oct 15 17:28:35 CEST 2001


Ulf Wiger writes:
 > 
 > When I tried to compile OTP P8A (the 20011007 snapshot), I
 > stumbled on the following error (paths slightly edited by hand):
 > 
 > gcc -g -O2
 > -I/.../p8a/otp_src_P8A-20011007-SNAPSHOT/erts/sparc-sun-solaris2.7
 > -DHAVE_CONFIG_H -Wall -DHIPE_ARCHITECTURE=ultrasparc
 > -Wa,-xarch=v8plusa -Ibeam -Isys/unix -Isparc-sun-solaris2.7
 > -Izlib -Ihipe -c hipe/hipe_sparc_glue.S -o
 > /.../otp_src_P8A-20011007-SNAPSHOT/erts/obj.beam/sparc-sun-solaris2.7/hipe_sparc_glue.o
 > m4 -Ibeam -Isys/unix -Isparc-sun-solaris2.7 -Izlib -Ihipe
 > hipe/hipe_sparc_bifs.m4 > sparc-sun-solaris2.7/hipe_sparc_bifs.S
 > m4: bad option: -Ibeam
 > make[3]: *** [sparc-sun-solaris2.7/hipe_sparc_bifs.S] Error 1
 > make[3]: Leaving directory
 > `/.../otp_src_P8A-20011007-SNAPSHOT/erts/emulator'
 > 
 > I'm not familiar with m4, but the man page on my machine
 > (/usr/ccs/bin/m4 on SunOS Release 5.7 Generic_106541-12) mentions
 > nothing about an -I option. Is there another m4 that I should be
 > using?

You MUST use a decent m4, i.e. GNU m4 or some other m4 that accepts the "-I" option.

/Mikael



More information about the erlang-questions mailing list