manuel-serrano / hop

Multitier JavaScript
Other
142 stars 18 forks source link

hop 3.2 installation #56

Closed ghost closed 5 years ago

ghost commented 5 years ago

Hi Manuel,

Today I tried to install the last hop.js version (commit 1e82527) and i had an issue when i run the make command. I downloaded and installed the last bigloo (1072f3ca388872e8acb5fded5aaccd3ac4761032) before hop.js

I put bellow the list of commands i entered in my terminal

# In the bigloo folder
$ ./configure --prefix=/Users/ices/Hop/2019-01-30-3.2/install
$ make
$ make test
$ make install

# In the hop.js folder
$ ./configure --prefix=/Users/ices/Hop/2019-01-30-3.2/install --bigloo=/Users/ices/Hop/2019-01-30-3.2/install/bin/bigloo --bigloolibdir=/Users/ices/Hop/2019-01-30-3.2/install/lib/bigloo/4.3e
$ make

The make command stopped with the following lines

/Users/ices/Hop/2019-01-30-3.2/install/bin/bigloo -O2 -fsharing -L /Users/ices/Hop/2019-01-30-3.2/tgz/hop-3.2.x/lib/hop/3.2.0 -srfi bigloo-compile -lib-dir /Users/ices/Hop/2019-01-30-3.2/install/lib/bigloo/4.3e -srfi license-free -srfi enable-ssl -srfi enable-threads -srfi enable-upnp -srfi enable-libuv  -srfi hop-dynamic  -copt -fPIC -L /Users/ices/Hop/2019-01-30-3.2/tgz/hop-3.2.x/lib/hop/3.2.0 -srfi bigloo-compile -unsafe -safee -c array.scm -o o/array.o
o/array.c:3013:2: error: use of undeclared identifier 'ulong'; did you mean
      'long'?
(ulong)(BgL_idxz00_68) <= (ulong)(BgL_auxz00_17668); }  else 
 ^~~~~
 long
o/array.c:3013:2: error: use of undeclared identifier 'ulong'
o/array.c:3013:28: error: use of undeclared identifier 'ulong'; did you mean
      'long'?
(ulong)(BgL_idxz00_68) <= (ulong)(BgL_auxz00_17668); }  else 
                           ^~~~~
                           long
o/array.c:3013:28: error: use of undeclared identifier 'ulong'
o/array.c:3256:2: error: use of undeclared identifier 'ulong'; did you mean
      'long'?
(ulong)(BgL_idxz00_14956) <= (ulong)(BgL_auxz00_17744); }  else 
 ^~~~~
 long
o/array.c:3256:2: error: use of undeclared identifier 'ulong'
o/array.c:3256:31: error: use of undeclared identifier 'ulong'; did you mean
      'long'?
(ulong)(BgL_idxz00_14956) <= (ulong)(BgL_auxz00_17744); }  else 
                              ^~~~~
                              long
o/array.c:3256:31: error: use of undeclared identifier 'ulong'
o/array.c:3834:2: error: use of undeclared identifier 'ulong'; did you mean
      'long'?
(ulong)(BgL_idxz00_86) < (ulong)(
 ^~~~~
 long
o/array.c:3834:2: error: use of undeclared identifier 'ulong'
o/array.c:3834:27: error: use of undeclared identifier 'ulong'; did you mean
      'long'?
(ulong)(BgL_idxz00_86) < (ulong)(
                          ^~~~~
                          long
o/array.c:3834:27: error: use of undeclared identifier 'ulong'
o/array.c:3886:2: error: use of undeclared identifier 'ulong'; did you mean
      'long'?
(ulong)(BgL_idxz00_86) < (ulong)(BgL_auxz00_17965); }  else 
 ^~~~~
 long
o/array.c:3886:2: error: use of undeclared identifier 'ulong'
o/array.c:3886:27: error: use of undeclared identifier 'ulong'; did you mean
      'long'?
(ulong)(BgL_idxz00_86) < (ulong)(BgL_auxz00_17965); }  else 
                          ^~~~~
                          long
o/array.c:3886:27: error: use of undeclared identifier 'ulong'
o/array.c:4031:2: error: use of undeclared identifier 'ulong'; did you mean
      'long'?
(ulong)(BgL_idxz00_15044) <= (ulong)(BgL_auxz00_18016); }  else 
 ^~~~~
 long
o/array.c:4031:2: error: use of undeclared identifier 'ulong'
o/array.c:4031:31: error: use of undeclared identifier 'ulong'; did you mean
      'long'?
(ulong)(BgL_idxz00_15044) <= (ulong)(BgL_auxz00_18016); }  else 
                              ^~~~~
                              long
fatal error: too many errors emitted, stopping now [-ferror-limit=]
20 errors generated.
make[2]: *** [o/array.o] Error 1
make[1]: *** [lib-c-static] Error 2
make: *** [hopscript-lib] Error 2

I put also my bigloo and hop.js configuration summary

Release features: Bigloo release number................. 4.3e Bigloo supported backends............. native:yes JVM:no Bigloo default backend................ native APIs.................................. pthread fthread srfi18 ssl sqlite web multimedia mail calendar pkgcomp pkglib text srfi1 crypto openpgp csv upnp libuv wav phone srfi27 packrat patch Bigloo gc............................. custom (bigloogc_fth 762) support for native threads............ yes support for thread local storage ..... no Open SSL support...................... yes (dtls:yes, v2:yes, v3:yes, v23:yes) Sqlite ............................... sqltiny + sqlite support for dynamic libraries......... yes Bee support........................... partial

Directories where Bigloo will be installed: binaries.............................. /Users/ices/Hop/2019-01-30-3.2/install/bin libraries............................. /Users/ices/Hop/2019-01-30-3.2/install/lib files directory....................... bigloo/4.3e standard zip.......................... /Users/ices/Hop/2019-01-30-3.2/install/lib/bigloo/4.3e standard dll.......................... /Users/ices/Hop/2019-01-30-3.2/install/lib/bigloo/4.3e standard dll (os dependent)........... manual pages.......................... /Users/ices/Hop/2019-01-30-3.2/install/man/man1 info documentation.................... /Users/ices/Hop/2019-01-30-3.2/install/info lisp files............................ temporary dir......................... /var/folders/kt/w75w1k9917g71m7xzzp1x0500000gn/T/

Compilers and linkers: C compiler used....................... gcc options for compiling................. -fbracket-depth=1024 -Wno-unused-value -Wno-parentheses-equality -Wno-parentheses -Wno-invalid-source-encoding -Wno-return-type options for optimizing................ -O3 options for stripping................. -s options for PIC code.................. -fPIC options for NAN code.................. -DBGL_NAN_TAGGING=0 options for profiling................. -pg -fno-inline options for linking................... -ldl -lresolv -lgmp -lunistring -lpcre -lm assembly.............................. gcc -c -x assembler-with-cpp static library builder................ ar shared library builder................ gcc options for building static libs...... qc socket libraries...................... gmp version........................... 6.1.2 unistring library..................... unistring pthread libraries..................... -lpthread openssl libraries..................... -L/usr/local/Cellar/openssl/1.0.2p/lib -lssl -lcrypto sqlite libraries...................... -lsqlite3 suffix of shared libraries............ dylib options for linking with shared libs.. dynamically linked compiler........... yes dynamically linked bde tools.......... yes

GC configuration: options for compiling the collector... -DHAS_X86_THREAD_STATE64___RAX -DBGL_PTHREAD_KILL -DFINALIZE_ON_DEMAND options for compiling with threads.... -D_THREAD_SAFE -D_REENTRANT -DGC_THREADS -DFINALIZE_ON_DEMAND -DPARALLEL_MARK

Emacs configuration: emacs................................. emacs emacs brand........................... emacs22 lisp directory........................ /usr/share/emacs/22.1/site-lisp/bigloo

Misc configuration: mask for installed files.............. 644 mask for installed executable......... 755 mask for installed directories........ 755

System configuration: hardware tuning....................... operating system...................... darwin default executable name............... a.out


- hop.js (I don't have a `configure.log` file, so i put the summary printed on my terminal)

Configuration summary

Release: hop release number.................... 3.2.0-pre2 (free) hop build id.......................... 4c24d656c1044358cd648d9cbd9c447e hop build tag......................... bigloo................................ /Users/ices/Hop/2019-01-30-3.2/install/bin/bigloo (4.3e) backend............................... native link.................................. dynamic devel mode............................ product

Optional features: multi-threading....................... yes https support......................... yes zeroconf.............................. no documentation......................... yes

Directories where Hop will be installed: etc directory......................... /Users/ices/Hop/2019-01-30-3.2/install/etc bin directory......................... /Users/ices/Hop/2019-01-30-3.2/install/bin lib directory......................... /Users/ices/Hop/2019-01-30-3.2/install/lib share directory....................... /Users/ices/Hop/2019-01-30-3.2/install/share/hop man directory......................... /Users/ices/Hop/2019-01-30-3.2/install/man/man1 weblets directory..................... /Users/ices/Hop/2019-01-30-3.2/install/lib/hop/3.2.0/weblets contribs directory.................... /Users/ices/Hop/2019-01-30-3.2/install/share/hop/contribs doc directory......................... /Users/ices/Hop/2019-01-30-3.2/install/share/doc/hop doc official url...................... http://hop-dev.inria.fr/home/lang.html

Internals: bigloo compilation flags.............. -O2 -fsharing -L $(BUILDLIBDIR) -srfi bigloo-compile -lib-dir /Users/ices/Hop/2019-01-30-3.2/install/lib/bigloo/4.3e -srfi license-free -srfi enable-ssl -srfi enable-threads -srfi enable-upnp -srfi enable-libuv bigloo link flags..................... -rpath $(HOPLIBDIR)/$(HOPFILDIR) runtime compilation flags............. -unsafe -safee mime types............................ /etc/mime.types default JavaScript mime type.......... application/x-javascript default CSS mime type................. text/css closure compiler (optional)........... cat

Bootstrap compilers: hop................................... /Users/ices/Hop/2019-01-30-3.2/tgz/hop-3.2.x/bin/hop hopc.................................. /Users/ices/Hop/2019-01-30-3.2/tgz/hop-3.2.x/bin/hopc



At the end of November, I was able to install hop.js 3.2 with these same commands without any problems.

Thanks you for your help,
Cedric
manuel-serrano commented 5 years ago

I see the problem. I thought (without double checking) that ulong was a standard C type but it does not seem to be. It is defined by the glibc but apparently not on your MacOS. The fix is easy, it merely consists in replacing "ulong" with "unsigned long". I have applied the modification. I will push a new version in a couple of minutes...

Thanks for the bug report.

ghost commented 5 years ago

Thanks for the fix. I can install hop.js 3.2 now.