Opened 15 years ago

Closed 13 years ago

#20566 closed defect (fixed)

javascript-lint port failed to build 64-bit

Reported by: conradwt (Conrad Taylor) Owned by: rwilcox (Ryan Wilcox)
Priority: Normal Milestone:
Component: ports Version: 1.8.0
Keywords: LP64 Cc: ryandesign (Ryan Carsten Schmidt), george@…, nerdling (Jeremy Lavergne), cz@…
Port: javascript-lint

Description (last modified by mf2k (Frank Schima))

The javascript-lint port failed to build on Snow Leopard. Here's the details about my environment:

$ sw_vers
ProductName:	Mac OS X
ProductVersion:	10.6
BuildVersion:	10A421a

Developer Information:

  Version:	3.2 (10A421)
  Location:	/Developer
  Applications:
  Xcode:	3.2 (1610)
  Interface Builder:	3.2 (732)
  Instruments:	2.0 (1094)
  Dashcode:	3.0 (328)
  SDKs:
  Mac OS X:
  10.5:	(9J61)
  10.6:	(10A421)
  iPhone OS:
  2.2.1:	(5H11)
  3.0:	(7A341)
  3.1:	(7C116a)
  iPhone Simulator:
  3.0:	(7A341)
  3.1:	(7C116a)
$ sudo port install javascript-lint
Password:
--->  Computing dependencies for javascript-lint
--->  Fetching javascript-lint
--->  Verifying checksum(s) for javascript-lint
--->  Extracting javascript-lint
--->  Configuring javascript-lint
--->  Building javascript-lint
Error: Target org.macports.build returned: shell command " cd "/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_release_ports_lang_javascript-lint/work/jsl-0.3.0/src" && /usr/bin/make -j2 -f Makefile.ref " returned error 2
Command output: a - Darwin_DBG.OBJ/s_expm1.o
a - Darwin_DBG.OBJ/s_fabs.o
a - Darwin_DBG.OBJ/s_finite.o
a - Darwin_DBG.OBJ/s_floor.o
a - Darwin_DBG.OBJ/s_frexp.o
a - Darwin_DBG.OBJ/s_ilogb.o
a - Darwin_DBG.OBJ/s_isnan.o
a - Darwin_DBG.OBJ/s_ldexp.o
a - Darwin_DBG.OBJ/s_lib_version.o
a - Darwin_DBG.OBJ/s_log1p.o
a - Darwin_DBG.OBJ/s_logb.o
a - Darwin_DBG.OBJ/s_matherr.o
a - Darwin_DBG.OBJ/s_modf.o
a - Darwin_DBG.OBJ/s_nextafter.o
a - Darwin_DBG.OBJ/s_rint.o
a - Darwin_DBG.OBJ/s_scalbn.o
a - Darwin_DBG.OBJ/s_signgam.o
a - Darwin_DBG.OBJ/s_significand.o
a - Darwin_DBG.OBJ/s_sin.o
a - Darwin_DBG.OBJ/s_tan.o
a - Darwin_DBG.OBJ/s_tanh.o
ranlib Darwin_DBG.OBJ/libfdm.a
/usr/bin/make -f Makefile.ref  Darwin_DBG.OBJ/libjs.a Darwin_DBG.OBJ/libjs.so Darwin_DBG.OBJ/jsl  Darwin_DBG.OBJ/jsautocfg.h Darwin_DBG.OBJ/jscpucfg Darwin_DBG.OBJ/jscpucfg.o Darwin_DBG.OBJ/jsmathtemp.o
cat: ../../dist/Darwin_DBG.OBJ/nspr/Version: No such file or directory
make[1]: Circular jscpucfg.h <- Darwin_DBG.OBJ/jsautocfg.h dependency dropped.
make[1]: Circular Darwin_DBG.OBJ/jsautocfg.h <- Darwin_DBG.OBJ/jsautocfg.h dependency dropped.
make[1]: *** No rule to make target `Darwin_DBG.OBJ/jsmathtemp.o'.  Stop.
make[1]: *** Waiting for unfinished jobs....
cc -o Darwin_DBG.OBJ/jscpucfg.o -c -Wall -Wno-format -g -DXP_UNIX -DSVR4 -DSYSV -D_BSD_SOURCE -DPOSIX_SOURCE -DDARWIN -DX86_LINUX  -DDEBUG -DDEBUG_root -DEDITLINE -IDarwin_DBG.OBJ  jscpucfg.c
make: *** [all] Error 2

Error: Status 1 encountered during processing.

Change History (12)

comment:1 Changed 15 years ago by mf2k (Frank Schima)

Description: modified (diff)
Owner: changed from macports-tickets@… to rwilcox@…

comment:2 Changed 15 years ago by ryandesign (Ryan Carsten Schmidt)

Cc: ryandesign@… added

Cc Me!

comment:3 Changed 15 years ago by ryandesign (Ryan Carsten Schmidt)

The first problem is that parallel building is on by default as of MacPorts 1.8.0 but javascript-lint doesn't seem to like it. I turned it off in r57177 and the port now builds again on Leopard.

The next problem is javascript-lint isn't being friendly with the 64-bit compilation that happens on Snow Leopard, so we're still left with:

cc -o Darwin_DBG.OBJ/jsparse.o -c -Wall -Wno-format -g -DXP_UNIX -DSVR4 -DSYSV -D_BSD_SOURCE -DPOSIX_SOURCE -DDARWIN -DX86_LINUX  -DDEBUG -DDEBUG_root -DEDITLINE -IDarwin_DBG.OBJ  jsparse.c
jsparse.c: In function 'FunctionDef':
jsparse.c:1088: warning: cast to pointer from integer of different size
cc -o Darwin_DBG.OBJ/jsprf.o -c -Wall -Wno-format -g -DXP_UNIX -DSVR4 -DSYSV -D_BSD_SOURCE -DPOSIX_SOURCE -DDARWIN -DX86_LINUX  -DDEBUG -DDEBUG_root -DEDITLINE -IDarwin_DBG.OBJ  jsprf.c
jsprf.c: In function 'BuildArgArray':
jsprf.c:620: error: incompatible types in assignment
make[1]: *** [Darwin_DBG.OBJ/jsprf.o] Error 1
make: *** [all] Error 2

comment:4 Changed 15 years ago by rwilcox (Ryan Wilcox)

I have a Snow Leopard machine, but it's a 32bit machine, so i can verify that it builds and runs on that env (but not in 64bit)

comment:5 Changed 15 years ago by george@…

Cc: george@… added

Cc Me!

comment:6 Changed 14 years ago by nerdling (Jeremy Lavergne)

Cc: snc@… added

Cc Me!

comment:7 in reply to:  3 ; Changed 14 years ago by devesas.campos@…

Replying to ryandesign@…:

The first problem is that parallel building is on by default as of MacPorts 1.8.0 but javascript-lint doesn't seem to like it. I turned it off in r57177 and the port now builds again on Leopard.

The next problem is javascript-lint isn't being friendly with the 64-bit compilation that happens on Snow Leopard, so we're still left with:

cc -o Darwin_DBG.OBJ/jsparse.o -c -Wall -Wno-format -g -DXP_UNIX -DSVR4 -DSYSV -D_BSD_SOURCE -DPOSIX_SOURCE -DDARWIN -DX86_LINUX  -DDEBUG -DDEBUG_root -DEDITLINE -IDarwin_DBG.OBJ  jsparse.c
jsparse.c: In function 'FunctionDef':
jsparse.c:1088: warning: cast to pointer from integer of different size
cc -o Darwin_DBG.OBJ/jsprf.o -c -Wall -Wno-format -g -DXP_UNIX -DSVR4 -DSYSV -D_BSD_SOURCE -DPOSIX_SOURCE -DDARWIN -DX86_LINUX  -DDEBUG -DDEBUG_root -DEDITLINE -IDarwin_DBG.OBJ  jsprf.c
jsprf.c: In function 'BuildArgArray':
jsprf.c:620: error: incompatible types in assignment
make[1]: *** [Darwin_DBG.OBJ/jsprf.o] Error 1
make: *** [all] Error 2

Fixed this problem by manually applying the change detailed in this patch http://github.com/janl/couchdbx-core/blob/ff47372552d10df00d74cb7989dfed4a19a6040d/patches/js/patch-jsprf.c (I didn't apply the patch itself, though; not sure if the line numbers match)

After that, I managed to compile and run (so far) without problems

comment:8 in reply to:  7 Changed 14 years ago by aizat.faiz@…

Ran into the same problem. So I just applied the change, and can verify that it works.

Replying to devesas.campos@…:

Replying to ryandesign@…:

The first problem is that parallel building is on by default as of MacPorts 1.8.0 but javascript-lint doesn't seem to like it. I turned it off in r57177 and the port now builds again on Leopard.

The next problem is javascript-lint isn't being friendly with the 64-bit compilation that happens on Snow Leopard, so we're still left with:

cc -o Darwin_DBG.OBJ/jsparse.o -c -Wall -Wno-format -g -DXP_UNIX -DSVR4 -DSYSV -D_BSD_SOURCE -DPOSIX_SOURCE -DDARWIN -DX86_LINUX  -DDEBUG -DDEBUG_root -DEDITLINE -IDarwin_DBG.OBJ  jsparse.c
jsparse.c: In function 'FunctionDef':
jsparse.c:1088: warning: cast to pointer from integer of different size
cc -o Darwin_DBG.OBJ/jsprf.o -c -Wall -Wno-format -g -DXP_UNIX -DSVR4 -DSYSV -D_BSD_SOURCE -DPOSIX_SOURCE -DDARWIN -DX86_LINUX  -DDEBUG -DDEBUG_root -DEDITLINE -IDarwin_DBG.OBJ  jsprf.c
jsprf.c: In function 'BuildArgArray':
jsprf.c:620: error: incompatible types in assignment
make[1]: *** [Darwin_DBG.OBJ/jsprf.o] Error 1
make: *** [all] Error 2

Fixed this problem by manually applying the change detailed in this patch http://github.com/janl/couchdbx-core/blob/ff47372552d10df00d74cb7989dfed4a19a6040d/patches/js/patch-jsprf.c (I didn't apply the patch itself, though; not sure if the line numbers match)

After that, I managed to compile and run (so far) without problems

comment:9 Changed 14 years ago by cz@…

Is there a chance to get this fixed? It's laying around for months now.

comment:10 Changed 14 years ago by cz@…

Cc: cz@… added

Cc Me!

comment:11 Changed 13 years ago by jmroot (Joshua Root)

Keywords: LP64 added; snowleopard removed
Summary: javascript-lint port failed to buildjavascript-lint port failed to build 64-bit

comment:12 Changed 13 years ago by jmroot (Joshua Root)

Resolution: fixed
Status: newclosed
Note: See TracTickets for help on using tickets.