Skip to content

add tests that fails in armhf , fixe by increase c.bignm.size, mask entry2, remove -march=arm optimization, use numberp instaed of isnum (=isint) #432

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 11 commits into from
May 25, 2020

Conversation

k-okada
Copy link
Member

@k-okada k-okada commented May 24, 2020

increse c.bignm.size

inline pointer stretch_big(x, i)
pointer x;
eusinteger_t i;
{ pointer bn=x->c.bgnm.bv;
  int vlen=vecsize(bn);
  pointer newv, oldv;
  register int j;
  newv=makevector(C_INTVECTOR, vlen+1);
  for (j=0; j<vlen; j++) newv->c.ivec.iv[j]=bn->c.ivec.iv[j];
  newv->c.ivec.iv[vlen]=i;
  pointer_update(x->c.bgnm.bv, newv);
+  x->c.bgnm.size=makeint(vlen+1);
  return(newv);
  }

mask entry2

#if ARM
      mod->c.ldmod.entry2=makeint((eusinteger_t)initfunc);
      mod->c.ldmod.entry2=makeint(((eusinteger_t)initfunc)&0x3);
#endif

use numberp (=isnum || pisextnum) instead of isnum (= isint || isflt , = integerp)

    (send self :push
	  (format nil "(~A(w)?T:NIL)"
	       (cdr (assoc pred '((symbolp . "issymbol") (consp . "iscons")
				  (numberp . "isnum") (integerp . "isint")
				  (numberp . "numberp") (integerp . "isint")
				  (floatp . "isflt") (stringp . "isstring")
				 ))))))

remove cpu optimization

CPU_OPTIMIZE=-march=arm*

This closes armhf errorrs:
#232 (arm で通っていないテストがある.)
#427 (geo/intersection.c: fix intersection3 (may be optimization problem) )

@k-okada k-okada force-pushed the fix_intersection3_entry2 branch from df47406 to 111d497 Compare May 24, 2020 12:25
@k-okada k-okada force-pushed the fix_intersection3_entry2 branch 2 times, most recently from 8bfec37 to 6b2000b Compare May 24, 2020 22:36
@k-okada k-okada force-pushed the fix_intersection3_entry2 branch from 6b2000b to 7b64430 Compare May 24, 2020 22:53
@k-okada k-okada force-pushed the fix_intersection3_entry2 branch from 52083db to bf516b4 Compare May 25, 2020 12:39
@k-okada k-okada merged commit 21a5d86 into euslisp:master May 25, 2020
@k-okada k-okada deleted the fix_intersection3_entry2 branch May 25, 2020 23:49
@k-okada k-okada changed the title add tests that fails in armhf add tests that fails in armhf , fixe by increase c.bignm.size, mask entry2, remove -march=arm optimization, use numberp instaed of isnum (=isint) May 25, 2020
k-okada added a commit to YoheiKakiuchi/jskeus that referenced this pull request May 26, 2020
k-okada added a commit to k-okada/EusLisp that referenced this pull request Nov 11, 2021
Add glpixmapsurface, no-xwidnow version of viewsurface for offline rendering (euslisp#438)
Add -fPIC for lisp/image/jpeg (euslisp#441)
Do not use gensym for compiled function/method name, use defclass compiler symstr/symid (euslisp#441)
Close help file after reading (euslisp#447)
Use :primitive to create *body-class* for make-gdome and make-body-from-vertices (euslisp#452)
[armhf] Fix foreign function call on armhf, armhf , fixe by increase c.bignm.size, mask entry2, remove -march=arm optimization, use numberp instaed of isnum (=isint) (euslisp#432)
[armhf] Add defforeign function for armhf (euslisp#434)
[i386] Use gcc for linker in comp.l, fix i386 fails because of __stack_chk_fail_local with -fstack-protector-strong, possible solution is add -lc or -lssp, or use gcc, see https://www.openwall.com/lists/musl/2018/09/11/2 or https://ubuntuforums.org/showthread.php?t=1906102 (https://github.com/euslisp/EusLisp/pull/423/files)
k-okada added a commit to k-okada/EusLisp that referenced this pull request Nov 11, 2021
- Add glpixmapsurface, no-xwidnow version of viewsurface for offline rendering (euslisp#438)
- Add -fPIC for lisp/image/jpeg (euslisp#441)
- Do not use gensym for compiled function/method name, use defclass compiler symstr/symid (euslisp#441)
- Close help file after reading (euslisp#447)
- Use :primitive to create *body-class* for make-gdome and make-body-from-vertices (euslisp#452)
- [armhf] Fix foreign function call on armhf, armhf , fixe by increase c.bignm.size, mask entry2, remove -march=arm optimization, use numberp instaed of isnum (=isint) (euslisp#432)
- [armhf] Add defforeign function for armhf (euslisp#434)
- [i386] Use gcc for linker in comp.l, fix i386 fails because of __stack_chk_fail_local with -fstack-protector-strong, possible solution is add -lc or -lssp, or use gcc, see https://www.openwall.com/lists/musl/2018/09/11/2 or https://ubuntuforums.org/showthread.php?t=1906102 (https://github.com/euslisp/EusLisp/pull/423/files)
k-okada added a commit to k-okada/EusLisp that referenced this pull request Nov 11, 2021
- Add glpixmapsurface, no-xwidnow version of viewsurface for offline rendering (euslisp#438)
- Add -fPIC for lisp/image/jpeg (euslisp#441)
- Do not use gensym for compiled function/method name, use defclass compiler symstr/symid (euslisp#441)
- Close help file after reading (euslisp#447)
- Use :primitive to create *body-class* for make-gdome and make-body-from-vertices (euslisp#452)
- [armhf] Fix foreign function call on armhf, armhf , fixe by increase c.bignm.size, mask entry2, remove -march=arm optimization, use numberp instaed of isnum (=isint) (euslisp#432)
- [armhf] Add defforeign function for armhf (euslisp#434)
- [i386] Use gcc for linker in comp.l, fix i386 fails because of __stack_chk_fail_local with -fstack-protector-strong, possible solution is add -lc or -lssp, or use gcc, see https://www.openwall.com/lists/musl/2018/09/11/2 or https://ubuntuforums.org/showthread.php?t=1906102 (https://github.com/euslisp/EusLisp/pull/423/files)
This was referenced Nov 11, 2021
k-okada added a commit that referenced this pull request Nov 14, 2021
- Add glpixmapsurface, no-xwidnow version of viewsurface for offline rendering (#438)
- Add -fPIC for lisp/image/jpeg (#441)
- Do not use gensym for compiled function/method name, use defclass compiler symstr/symid (#441)
- Close help file after reading (#447)
- Use :primitive to create *body-class* for make-gdome and make-body-from-vertices (#452)
- [armhf] Fix foreign function call on armhf, armhf , fixe by increase c.bignm.size, mask entry2, remove -march=arm optimization, use numberp instaed of isnum (=isint) (#432)
- [armhf] Add defforeign function for armhf (#434)
- [i386] Use gcc for linker in comp.l, fix i386 fails because of __stack_chk_fail_local with -fstack-protector-strong, possible solution is add -lc or -lssp, or use gcc, see https://www.openwall.com/lists/musl/2018/09/11/2 or https://ubuntuforums.org/showthread.php?t=1906102 (https://github.com/euslisp/EusLisp/pull/423/files)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant