Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
dev-scheme/guile-2.0.12-r1 on arm - hangs and fails
View unanswered posts
View posts from last 24 hours

 
Reply to topic    Gentoo Forums Forum Index Gentoo on ARM
View previous topic :: View next topic  
Author Message
musv
Advocate
Advocate


Joined: 01 Dec 2002
Posts: 3365
Location: de

PostPosted: Thu Nov 03, 2016 7:17 pm    Post subject: dev-scheme/guile-2.0.12-r1 on arm - hangs and fails Reply with quote

Hi there,

wanted to install git on my arm box (NSA326).

emerge -pvt dev-vcs/git:


These are the packages that would be merged, in reverse order:

Calculating dependencies... done!
[ebuild  N     ] dev-vcs/git-2.10.2::gentoo  USE="blksha1 curl doc gpg iconv nls pcre perl python threads webdav -cgi -cvs -emacs -gnome-keyring -gtk -highlight -libressl (-mediawiki) -mediawiki-experimental (-ppcsha1) -subversion {-test} -tk -xinetd" LINGUAS="de -bg -ca -fr -is -it -ko -pt_PT -ru -sv -vi -zh_CN" PYTHON_TARGETS="python2_7" 0 KiB
[ebuild  N     ]  app-crypt/gnupg-2.1.15-r1::gentoo  USE="bzip2 doc gnutls nls readline -ldap (-selinux) -smartcard -system-cert-store -tofu -tools -usb" 0 KiB
[ebuild  N     ]   net-libs/gnutls-3.4.16:0/30::gentoo  USE="crywrap cxx doc nls openssl tls-heartbeat tools zlib (-dane) -examples -guile -idn -pkcs11 -static-libs {-test}" LINGUAS="de -cs -en -fi -fr -it -ms -nl -pl -sv -uk -vi -zh_CN" 0 KiB
[ebuild  N     ]    sys-devel/autogen-5.18.12::gentoo  USE="-libopts -static-libs" 0 KiB
[ebuild  N     ]     dev-scheme/guile-2.0.12-r1:12/22::gentoo  USE="deprecated networking nls regex threads -debug -debug-malloc" 0 KiB


That's fine so far. Here are the CFLAGS of the arm processor:
Code:
CFLAGS="-Ofast -march=armv7-a -mtune=cortex-a9 -mfpu=neon-fp16 -mtls-dialect=gnu -mfloat-abi=hard -pipe -fomit-frame-pointer -fstack-protector-strong"


1. Compiling with cross-compiler
Code:
libtool: link: /usr/x86_64-pc-linux-gnu/armv7a-hardfloat-linux-gnueabi/gcc-bin/5.4.0/armv7a-hardfloat-linux-gnueabi-gcc -shared  -fPIC -DPIC  .libs/libguile_2.0_la-alist.o .libs/libguile_2.0_la-arbiters.o .libs/libguile_2.0_la-array-handle.o .libs/libguile_2.0_la-array-map.o .libs/libguile_2.0_la-arrays.o .libs/libguile_2.0_la-async.o .libs/libguile_2.0_la-backtrace.o .libs/libguile_2.0_la-boolean.o .libs/libguile_2.0_la-bitvectors.o .libs/libguile_2.0_la-bytevectors.o .libs/libguile_2.0_la-chars.o .libs/libguile_2.0_la-control.o .libs/libguile_2.0_la-continuations.o .libs/libguile_2.0_la-debug.o .libs/libguile_2.0_la-deprecated.o .libs/libguile_2.0_la-deprecation.o .libs/libguile_2.0_la-dynwind.o .libs/libguile_2.0_la-eq.o .libs/libguile_2.0_la-error.o .libs/libguile_2.0_la-eval.o .libs/libguile_2.0_la-evalext.o .libs/libguile_2.0_la-expand.o .libs/libguile_2.0_la-extensions.o .libs/libguile_2.0_la-feature.o .libs/libguile_2.0_la-filesys.o .libs/libguile_2.0_la-finalizers.o .libs/libguile_2.0_la-fluids.o .libs/libguile_2.0_la-foreign.o .libs/libguile_2.0_la-fports.o .libs/libguile_2.0_la-frames.o .libs/libguile_2.0_la-gc-malloc.o .libs/libguile_2.0_la-gc.o .libs/libguile_2.0_la-gdbint.o .libs/libguile_2.0_la-gettext.o .libs/libguile_2.0_la-generalized-arrays.o .libs/libguile_2.0_la-generalized-vectors.o .libs/libguile_2.0_la-goops.o .libs/libguile_2.0_la-gsubr.o .libs/libguile_2.0_la-guardians.o .libs/libguile_2.0_la-hash.o .libs/libguile_2.0_la-hashtab.o .libs/libguile_2.0_la-hooks.o .libs/libguile_2.0_la-i18n.o .libs/libguile_2.0_la-init.o .libs/libguile_2.0_la-inline.o .libs/libguile_2.0_la-instructions.o .libs/libguile_2.0_la-ioext.o .libs/libguile_2.0_la-keywords.o .libs/libguile_2.0_la-list.o .libs/libguile_2.0_la-load.o .libs/libguile_2.0_la-macros.o .libs/libguile_2.0_la-mallocs.o .libs/libguile_2.0_la-memoize.o .libs/libguile_2.0_la-modules.o .libs/libguile_2.0_la-null-threads.o .libs/libguile_2.0_la-numbers.o .libs/libguile_2.0_la-objcodes.o .libs/libguile_2.0_la-objprop.o .libs/libguile_2.0_la-options.o .libs/libguile_2.0_la-pairs.o .libs/libguile_2.0_la-poll.o .libs/libguile_2.0_la-ports.o .libs/libguile_2.0_la-print.o .libs/libguile_2.0_la-procprop.o .libs/libguile_2.0_la-procs.o .libs/libguile_2.0_la-programs.o .libs/libguile_2.0_la-promises.o .libs/libguile_2.0_la-r6rs-ports.o .libs/libguile_2.0_la-random.o .libs/libguile_2.0_la-rdelim.o .libs/libguile_2.0_la-read.o .libs/libguile_2.0_la-root.o .libs/libguile_2.0_la-rw.o .libs/libguile_2.0_la-scmsigs.o .libs/libguile_2.0_la-script.o .libs/libguile_2.0_la-simpos.o .libs/libguile_2.0_la-smob.o .libs/libguile_2.0_la-sort.o .libs/libguile_2.0_la-srcprop.o .libs/libguile_2.0_la-srfi-1.o .libs/libguile_2.0_la-srfi-4.o .libs/libguile_2.0_la-srfi-13.o .libs/libguile_2.0_la-srfi-14.o .libs/libguile_2.0_la-srfi-60.o .libs/libguile_2.0_la-stackchk.o .libs/libguile_2.0_la-stacks.o .libs/libguile_2.0_la-stime.o .libs/libguile_2.0_la-strings.o .libs/libguile_2.0_la-strorder.o .libs/libguile_2.0_la-strports.o .libs/libguile_2.0_la-struct.o .libs/libguile_2.0_la-symbols.o .libs/libguile_2.0_la-threads.o .libs/libguile_2.0_la-throw.o .libs/libguile_2.0_la-trees.o .libs/libguile_2.0_la-unicode.o .libs/libguile_2.0_la-uniform.o .libs/libguile_2.0_la-values.o .libs/libguile_2.0_la-variable.o .libs/libguile_2.0_la-vectors.o .libs/libguile_2.0_la-version.o .libs/libguile_2.0_la-vm.o .libs/libguile_2.0_la-vports.o .libs/libguile_2.0_la-weaks.o .libs/libguile_2.0_la-dynl.o .libs/libguile_2.0_la-posix.o .libs/libguile_2.0_la-net_db.o .libs/libguile_2.0_la-socket.o .libs/libguile_2.0_la-regex-posix.o  -Wl,--whole-archive ../lib/.libs/libgnu.a -Wl,--no-whole-archive  -lgc -lffi -Wl,--as-needed -lunistring -lgmp /usr/lib/libltdl.so -ldl -lcrypt -lm  -pthread -Ofast -march=armv7-a -mtune=cortex-a9 -mfpu=neon-fp16 -mtls-dialect=gnu -mfloat-abi=hard -fstack-protector-strong -Wl,-z -Wl,relro -Wl,--version-script=./libguile.map -Wl,-O1   -pthread -Wl,-soname -Wl,libguile-2.0.so.22 -o .libs/libguile-2.0.so.22.8.0
/usr/lib/libltdl.so: file not recognized: File format not recognized
collect2: error: ld returned 1 exit status



2. Compiling in a qemu-user chroot environment
Code:
guild compile --target="armv7a-hardfloat-linux-gnueabi" -Wunbound-variable -Warity-mismatch -Wformat   \
  -L "/var/tmp/portage/dev-scheme/guile-2.0.12-r1/work/guile-2.0.12/module" -L "/var/tmp/portage/dev-scheme/guile-2.0.12-r1/work/guile-2.0.12/module"\
  -L "/var/tmp/portage/dev-scheme/guile-2.0.12-r1/work/guile-2.0.12/guile-readline"         \
  -o "language/objcode/spec.go" "language/objcode/spec.scm"
wrote `language/objcode/spec.go'
GUILE_INSTALL_LOCALE=1 GUILE_AUTO_COMPILE=0 \
../meta/build-env            \
guild compile --target="armv7a-hardfloat-linux-gnueabi" -Wunbound-variable -Warity-mismatch -Wformat   \
  -L "/var/tmp/portage/dev-scheme/guile-2.0.12-r1/work/guile-2.0.12/module" -L "/var/tmp/portage/dev-scheme/guile-2.0.12-r1/work/guile-2.0.12/module"\
  -L "/var/tmp/portage/dev-scheme/guile-2.0.12-r1/work/guile-2.0.12/guile-readline"         \
  -o "language/value/spec.go" "language/value/spec.scm"
wrote `language/value/spec.go'
GUILE_INSTALL_LOCALE=1 GUILE_AUTO_COMPILE=0 \
../meta/build-env            \
guild compile --target="armv7a-hardfloat-linux-gnueabi" -Wunbound-variable -Warity-mismatch -Wformat   \
  -L "/var/tmp/portage/dev-scheme/guile-2.0.12-r1/work/guile-2.0.12/module" -L "/var/tmp/portage/dev-scheme/guile-2.0.12-r1/work/guile-2.0.12/module"\
  -L "/var/tmp/portage/dev-scheme/guile-2.0.12-r1/work/guile-2.0.12/guile-readline"         \
  -o "language/scheme/spec.go" "language/scheme/spec.scm"
wrote `language/scheme/spec.go'
GUILE_INSTALL_LOCALE=1 GUILE_AUTO_COMPILE=0 \
../meta/build-env            \
guild compile --target="armv7a-hardfloat-linux-gnueabi" -Wunbound-variable -Warity-mismatch -Wformat   \
  -L "/var/tmp/portage/dev-scheme/guile-2.0.12-r1/work/guile-2.0.12/module" -L "/var/tmp/portage/dev-scheme/guile-2.0.12-r1/work/guile-2.0.12/module"\
  -L "/var/tmp/portage/dev-scheme/guile-2.0.12-r1/work/guile-2.0.12/guile-readline"         \
  -o "language/scheme/compile-tree-il.go" "language/scheme/compile-tree-il.scm"
wrote `language/scheme/compile-tree-il.go'
GUILE_INSTALL_LOCALE=1 GUILE_AUTO_COMPILE=0 \
../meta/build-env            \
guild compile --target="armv7a-hardfloat-linux-gnueabi" -Wunbound-variable -Warity-mismatch -Wformat   \
  -L "/var/tmp/portage/dev-scheme/guile-2.0.12-r1/work/guile-2.0.12/module" -L "/var/tmp/portage/dev-scheme/guile-2.0.12-r1/work/guile-2.0.12/module"\
  -L "/var/tmp/portage/dev-scheme/guile-2.0.12-r1/work/guile-2.0.12/guile-readline"         \
  -o "language/scheme/decompile-tree-il.go" "language/scheme/decompile-tree-il.scm"
wrote `language/scheme/decompile-tree-il.go'
GUILE_INSTALL_LOCALE=1 GUILE_AUTO_COMPILE=0 \
../meta/build-env            \
guild compile --target="armv7a-hardfloat-linux-gnueabi" -Wunbound-variable -Warity-mismatch -Wformat   \
  -L "/var/tmp/portage/dev-scheme/guile-2.0.12-r1/work/guile-2.0.12/module" -L "/var/tmp/portage/dev-scheme/guile-2.0.12-r1/work/guile-2.0.12/module"\
  -L "/var/tmp/portage/dev-scheme/guile-2.0.12-r1/work/guile-2.0.12/guile-readline"         \
  -o "system/base/pmatch.go" "system/base/pmatch.scm"
wrote `system/base/pmatch.go'
GUILE_INSTALL_LOCALE=1 GUILE_AUTO_COMPILE=0 \
../meta/build-env            \
guild compile --target="armv7a-hardfloat-linux-gnueabi" -Wunbound-variable -Warity-mismatch -Wformat   \
  -L "/var/tmp/portage/dev-scheme/guile-2.0.12-r1/work/guile-2.0.12/module" -L "/var/tmp/portage/dev-scheme/guile-2.0.12-r1/work/guile-2.0.12/module"\
  -L "/var/tmp/portage/dev-scheme/guile-2.0.12-r1/work/guile-2.0.12/guile-readline"         \
  -o "system/base/syntax.go" "system/base/syntax.scm"
wrote `system/base/syntax.go'
GUILE_INSTALL_LOCALE=1 GUILE_AUTO_COMPILE=0 \
../meta/build-env            \
guild compile --target="armv7a-hardfloat-linux-gnueabi" -Wunbound-variable -Warity-mismatch -Wformat   \
  -L "/var/tmp/portage/dev-scheme/guile-2.0.12-r1/work/guile-2.0.12/module" -L "/var/tmp/portage/dev-scheme/guile-2.0.12-r1/work/guile-2.0.12/module"\
  -L "/var/tmp/portage/dev-scheme/guile-2.0.12-r1/work/guile-2.0.12/guile-readline"         \
  -o "system/base/compile.go" "system/base/compile.scm"
^C

Exiting on signal 2

At this point the compiler seems to hang. It has already built for more than 4 hours. There's no cpu last anymore.

3. Compiling native on the arm device
Code:
 -L "/var/tmp/portage/dev-scheme/guile-2.0.12-r1/work/guile-2.0.12/guile-readline"                     \
  -o "scripts/scan-api.go" "scripts/scan-api.scm"
scripts/autofrisk.scm:185:2: warning: non-literal format string
wrote `scripts/autofrisk.go'
GUILE_INSTALL_LOCALE=1 GUILE_AUTO_COMPILE=0 \
../meta/build-env                               \
guild compile --target="armv7a-hardfloat-linux-gnueabi" -Wunbound-variable -Warity-mismatch -Wformat    \
  -L "/var/tmp/portage/dev-scheme/guile-2.0.12-r1/work/guile-2.0.12/module" -L "/var/tmp/portage/dev-scheme/guile-2.0.12-r1/work/guile-2.0.12/module"           \
  -L "/var/tmp/portage/dev-scheme/guile-2.0.12-r1/work/guile-2.0.12/guile-readline"                     \
  -o "language/ecmascript/tokenize.go" "language/ecmascript/tokenize.scm"
wrote `scripts/scan-api.go'
GUILE_INSTALL_LOCALE=1 GUILE_AUTO_COMPILE=0 \
../meta/build-env                               \
guild compile --target="armv7a-hardfloat-linux-gnueabi" -Wunbound-variable -Warity-mismatch -Wformat    \
  -L "/var/tmp/portage/dev-scheme/guile-2.0.12-r1/work/guile-2.0.12/module" -L "/var/tmp/portage/dev-scheme/guile-2.0.12-r1/work/guile-2.0.12/module"           \
  -L "/var/tmp/portage/dev-scheme/guile-2.0.12-r1/work/guile-2.0.12/guile-readline"                     \
  -o "language/ecmascript/parse.go" "language/ecmascript/parse.scm"
wrote `language/ecmascript/tokenize.go'
GUILE_INSTALL_LOCALE=1 GUILE_AUTO_COMPILE=0 \
../meta/build-env                               \
guild compile --target="armv7a-hardfloat-linux-gnueabi" -Wunbound-variable -Warity-mismatch -Wformat    \
  -L "/var/tmp/portage/dev-scheme/guile-2.0.12-r1/work/guile-2.0.12/module" -L "/var/tmp/portage/dev-scheme/guile-2.0.12-r1/work/guile-2.0.12/module"           \
  -L "/var/tmp/portage/dev-scheme/guile-2.0.12-r1/work/guile-2.0.12/guile-readline"                     \
  -o "language/ecmascript/impl.go" "language/ecmascript/impl.scm"
%% Reduce/Reduce conflict (reduce 11, reduce 7) on '--' in state 422
%% Reduce/Reduce conflict (reduce 11, reduce 7) on '++' in state 422
%% Reduce/Reduce conflict (reduce 11, reduce 7) on '-' in state 422
%% Reduce/Reduce conflict (reduce 11, reduce 7) on '+' in state 422
%% Reduce/Reduce conflict (reduce 11, reduce 7) on 'semicolon' in state 422
%% Reduce/Reduce conflict (reduce 11, reduce 7) on 'dot' in state 422
%% Reduce/Reduce conflict (reduce 11, reduce 7) on 'lbracket' in state 422
%% Reduce/Reduce conflict (reduce 11, reduce 7) on 'lparen' in state 422
%% Reduce/Reduce conflict (reduce 9, reduce 6) on '--' in state 397
%% Reduce/Reduce conflict (reduce 9, reduce 6) on '++' in state 397
%% Reduce/Reduce conflict (reduce 9, reduce 6) on '-' in state 397
%% Reduce/Reduce conflict (reduce 9, reduce 6) on '+' in state 397
%% Reduce/Reduce conflict (reduce 9, reduce 6) on 'semicolon' in state 397
%% Reduce/Reduce conflict (reduce 9, reduce 6) on 'dot' in state 397
%% Reduce/Reduce conflict (reduce 9, reduce 6) on 'lbracket' in state 397
%% Reduce/Reduce conflict (reduce 9, reduce 6) on 'lparen' in state 397
%% Shift/Reduce conflict (shift 367, reduce 49) on 'else' in state 319
%% Shift/Reduce conflict (shift 144, reduce 177) on 'in' in state 242
%% Shift/Reduce conflict (shift 144, reduce 178) on 'in' in state 241
%% Shift/Reduce conflict (shift 144, reduce 179) on 'in' in state 240
%% Shift/Reduce conflict (shift 144, reduce 180) on 'in' in state 239
%% Shift/Reduce conflict (shift 80, reduce 119) on 'colon' in state 125
%% Shift/Reduce conflict (shift 170, reduce 139) on '++' in state 85
%% Shift/Reduce conflict (shift 169, reduce 139) on '--' in state 85
%% Shift/Reduce conflict (shift 153, reduce 159) on '+' in state 49
%% Shift/Reduce conflict (shift 152, reduce 159) on '-' in state 49
%% Shift/Reduce conflict (shift 144, reduce 176) on 'in' in state 47
make[2]: *** [Makefile:2235: language/ecmascript/impl.go] Floating point exception
make[2]: *** Waiting for unfinished jobs....
wrote `language/ecmascript/parse.go'
make[2]: Leaving directory '/var/tmp/portage/dev-scheme/guile-2.0.12-r1/work/guile-2.0.12/module'
make[1]: *** [Makefile:1838: all-recursive] Error 1
make[1]: Leaving directory '/var/tmp/portage/dev-scheme/guile-2.0.12-r1/work/guile-2.0.12'
make: *** [Makefile:1724: all] Error 2
 * ERROR: dev-scheme/guile-2.0.12-r1::gentoo failed (compile phase):
 *   emake failed


Is there a way to get this package built?
Back to top
View user's profile Send private message
musv
Advocate
Advocate


Joined: 01 Dec 2002
Posts: 3365
Location: de

PostPosted: Mon Nov 07, 2016 8:15 am    Post subject: Reply with quote

Created a bug-report.

https://bugs.gentoo.org/show_bug.cgi?id=598986

In the meantime I masked:

> sys-devel/autogen-18.4
>= dev-scheme/guile-2.0

guile-1.8 built fine and works so far.
Back to top
View user's profile Send private message
snorkellingcactus
n00b
n00b


Joined: 24 Dec 2012
Posts: 2

PostPosted: Wed Dec 07, 2016 1:25 am    Post subject: Reply with quote

Hi. I'm an exherbo user with the same problem. I solved it by changing CFLAGS. I used a very aggressive ones first and changed to empty CFLAGS and LDFLAGS later with sucess.
If i have time i will test which particular cflags are the problem, but you know now where to see to fix your build.

The pkg version i've installed with sucess is 2.0.13.
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Gentoo on ARM All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum