[erlang-bugs] R15B01 Bug - Fail to Compile in Solaris 5.10 - i386-pc-solaris2.10/opt/smp/hipe_x86_bifs.S:2176:2: error: #endif without #if

Fabrício Dias fmgdias@REDACTED
Sun May 20 19:56:15 CEST 2012


Uowww....it works...

I changed path to:
export PATH=/usr/sbin:/usr/bin:/opt/csw/bin:/opt/csw/i386-pc-solaris2.9/bin

# Links
#ln -s /opt/csw/bin/gcc /usr/bin
#ln -s /opt/csw/bin/autoconf /usr/bin
#ln -s /opt/csw/gnu/m4 /usr/bin
#ln -s /opt/csw/i386-pc-solaris2.9/bin/ar /usr/bin
#ln -s /opt/csw/i386-pc-solaris2.9/bin/ld /usr/bin

-bash-3.00# uname -a
SunOS HOST 5.10 Generic_142910-17 i86pc i386 i86pc
-bash-3.00# echo $PATH
/usr/sbin:/usr/bin:/opt/csw/bin:/opt/csw/i386-pc-solaris2.9/bin
-bash-3.00# gcc --version
gcc (GCC) 4.6.3
Copyright (C) 2011 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.

-bash-3.00# autoconf --version
autoconf (GNU Autoconf) 2.69
Copyright (C) 2012 Free Software Foundation, Inc.
License GPLv3+/Autoconf: GNU GPL version 3 or later
<http://gnu.org/licenses/gpl.html>, <http://gnu.org/licenses/exceptions.html
>
This is free software: you are free to change and redistribute it.
There is NO WARRANTY, to the extent permitted by law.

Written by David J. MacKenzie and Akim Demaille.
-bash-3.00# m4 --version
m4 (GNU M4) 1.4.16
Copyright (C) 2011 Free Software Foundation, Inc.
License GPLv3+: GNU GPL version 3 or later <http://gnu.org/licenses/gpl.html
>.
This is free software: you are free to change and redistribute it.
There is NO WARRANTY, to the extent permitted by law.

Written by Rene' Seindal.
-bash-3.00# ar --version
GNU ar (GNU Binutils) 2.21.1
Copyright 2011 Free Software Foundation, Inc.
This program is free software; you may redistribute it under the terms of
the GNU General Public License version 3 or (at your option) any later
version.
This program has absolutely no warranty.
-bash-3.00# ld --version
GNU ld (GNU Binutils) 2.21.1
Copyright 2011 Free Software Foundation, Inc.
This program is free software; you may redistribute it under the terms of
the GNU General Public License version 3 or (at your option) a later
version.
This program has absolutely no warranty.
-bash-3.00#

And...
./bin/erl --version
Erlang R15B01 (erts-5.9.1) [source] [smp:16:16] [async-threads:0] [hipe]
[kernel-poll:false]

Eshell V5.9.1  (abort with ^G)
1>
BREAK: (a)bort (c)ontinue (p)roc info (i)nfo (l)oaded
       (v)ersion (k)ill (D)b-tables (d)istribution
^C-bash-3.00#

Thanks Mikael Pettersson

2012/5/20 Mikael Pettersson <mikpe@REDACTED>

> > m4  -DERTS_SMP=3D1 -DTARGET=3Di386-pc-solaris2.10 -DOPSYS=3Dsol2
> -DARCH=3Dx=
> > 86
> > hipe/hipe_x86_bifs.m4 > i386-pc-solaris2.10/opt/smp/hipe_x86_bifs.S
> > gcc -g -O2 -I/dados/install-src/otp_src_R15B01/erts/i386-pc-solaris2.10
> > -D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=3D64 -fno-tree-copyrename
> > -DERTS_SMP -DHAVE_CONFIG_H -Wall -Wstrict-prototypes -Wmissing-prototypes
> > -Wdeclaration-after-statement -DUSE_THREADS -D_THREAD_SAFE -D_REENTRANT
> > -DPOSIX_THREADS -D_POSIX_PTHREAD_SEMANTICS  -Ii386-pc-solaris2.10/opt/smp
> > -Ibeam -Isys/unix -Isys/common -Ii386-pc-solaris2.10 -Izlib  -Ipcre
> -Ihipe
> > -I../include -I../include/i386-pc-solaris2.10 -I../include/internal
> > -I../include/internal/i386-pc-solaris2.10 -c
> > i386-pc-solaris2.10/opt/smp/hipe_x86_bifs.S -o
> > obj/i386-pc-solaris2.10/opt/smp/hipe_x86_bifs.o
> > i386-pc-solaris2.10/opt/smp/hipe_x86_bifs.S:2176:2: error: #endif without
> > #if
>
> Make sure m4 is a link to GNU m4, not /usr/ccs/bin/m4, then try again
> in a clean unpack of the sources (i.e., rm -rf the old source dir first,
> do not try a 'make clean' because that just doesn't work).
>
> If that still fails, email me a copy of the offending hipe_x86_bifs.S file
> and I'll have a look.
>



-- 
Fabrício Dias
fmgdias@REDACTED
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://erlang.org/pipermail/erlang-bugs/attachments/20120520/aa8d8584/attachment.htm>


More information about the erlang-bugs mailing list