Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
File format not recognized. crossdev build using host's libs
View unanswered posts
View posts from last 24 hours

 
Reply to topic    Gentoo Forums Forum Index Gentoo on Alternative Architectures
View previous topic :: View next topic  
Author Message
feystorm
Tux's lil' helper
Tux's lil' helper


Joined: 29 Jan 2004
Posts: 96

PostPosted: Tue Mar 01, 2011 1:45 am    Post subject: File format not recognized. crossdev build using host's libs Reply with quote

So I'm trying to get a crossdev system going and keep running across packages that try to use the host system's library paths. Is there a good generic way to solve this issue? I'm thinking something like having the build process chroot itself if possible. I would try to build the few packages that are broken like this on the target system, but I cant even get gcc to compile for the target to use because of this issue.

Latest example:
Code:
/bin/sh ./libtool --tag=CC   --mode=link arm-none-linux-gnueabi-gcc  -Os -pipe  -fomit-frame-pointer -I/usr/arm-none-linux-gnueabi/usr/include/ -I/usr/arm-none-linux-gnueabi/include/ -ffloat-store -version-info 3:2:2 -L/usr/arm-none-linux-gnueabi/lib -L/usr/arm-none-linux-gnueabi/usr/lib -o libmpfr.la -rpath /usr/lib exceptions.lo extract.lo uceil_exp2.lo uceil_log2.lo ufloor_log2.lo add.lo add1.lo add_ui.lo agm.lo clear.lo cmp.lo cmp_abs.lo cmp_si.lo cmp_ui.lo comparisons.lo div_2exp.lo div_2si.lo div_2ui.lo div.lo div_ui.lo dump.lo eq.lo exp10.lo exp2.lo exp3.lo exp.lo frac.lo get_d.lo get_exp.lo get_str.lo init.lo inp_str.lo isinteger.lo isinf.lo isnan.lo isnum.lo const_log2.lo log.lo modf.lo mul_2exp.lo mul_2si.lo mul_2ui.lo mul.lo mul_ui.lo neg.lo next.lo out_str.lo printf.lo vasprintf.lo const_pi.lo pow.lo pow_si.lo pow_ui.lo print_raw.lo print_rnd_mode.lo random2.lo random.lo reldiff.lo round_prec.lo set.lo setmax.lo setmin.lo set_d.lo set_dfl_prec.lo set_exp.lo set_rnd.lo set_f.lo set_prc_raw.lo set_prec.lo set_q.lo set_si.lo set_str.lo set_str_raw.lo set_ui.lo set_z.lo sqrt.lo sqrt_ui.lo sub.lo sub1.lo sub_ui.lo rint.lo ui_div.lo ui_sub.lo urandomb.lo get_z_exp.lo swap.lo factorial.lo cosh.lo sinh.lo tanh.lo sinh_cosh.lo acosh.lo asinh.lo atanh.lo atan.lo cmp2.lo exp_2.lo asin.lo const_euler.lo cos.lo sin.lo tan.lo fma.lo fms.lo hypot.lo log1p.lo expm1.lo log2.lo log10.lo ui_pow.lo ui_pow_ui.lo minmax.lo dim.lo signbit.lo copysign.lo setsign.lo gmp_op.lo init2.lo acos.lo sin_cos.lo set_nan.lo set_inf.lo powerof2.lo gamma.lo set_ld.lo get_ld.lo cbrt.lo volatile.lo fits_sshort.lo fits_sint.lo fits_slong.lo fits_ushort.lo fits_uint.lo fits_ulong.lo fits_uintmax.lo fits_intmax.lo get_si.lo get_ui.lo zeta.lo cmp_d.lo erf.lo inits.lo inits2.lo clears.lo sgn.lo check.lo sub1sp.lo version.lo mpn_exp.lo mpfr-gmp.lo mp_clz_tab.lo sum.lo add1sp.lo free_cache.lo si_op.lo cmp_ld.lo set_ui_2exp.lo set_si_2exp.lo set_uj.lo set_sj.lo get_sj.lo get_uj.lo get_z.lo iszero.lo cache.lo sqr.lo int_ceil_log2.lo isqrt.lo strtofr.lo pow_z.lo logging.lo mulders.lo get_f.lo round_p.lo erfc.lo atan2.lo subnormal.lo const_catalan.lo root.lo sec.lo csc.lo cot.lo eint.lo sech.lo csch.lo coth.lo round_near_x.lo constant.lo abort_prec_max.lo stack_interface.lo lngamma.lo zeta_ui.lo set_d64.lo get_d64.lo jn.lo yn.lo rem1.lo get_patches.lo add_d.lo sub_d.lo d_sub.lo mul_d.lo div_d.lo d_div.lo li2.lo rec_sqrt.lo  -lgmp
libtool: link: arm-none-linux-gnueabi-gcc -shared  .libs/exceptions.o .libs/extract.o .libs/uceil_exp2.o .libs/uceil_log2.o .libs/ufloor_log2.o .libs/add.o .libs/add1.o .libs/add_ui.o .libs/agm.o .libs/clear.o .libs/cmp.o .libs/cmp_abs.o .libs/cmp_si.o .libs/cmp_ui.o .libs/comparisons.o .libs/div_2exp.o .libs/div_2si.o .libs/div_2ui.o .libs/div.o .libs/div_ui.o .libs/dump.o .libs/eq.o .libs/exp10.o .libs/exp2.o .libs/exp3.o .libs/exp.o .libs/frac.o .libs/get_d.o .libs/get_exp.o .libs/get_str.o .libs/init.o .libs/inp_str.o .libs/isinteger.o .libs/isinf.o .libs/isnan.o .libs/isnum.o .libs/const_log2.o .libs/log.o .libs/modf.o .libs/mul_2exp.o .libs/mul_2si.o .libs/mul_2ui.o .libs/mul.o .libs/mul_ui.o .libs/neg.o .libs/next.o .libs/out_str.o .libs/printf.o .libs/vasprintf.o .libs/const_pi.o .libs/pow.o .libs/pow_si.o .libs/pow_ui.o .libs/print_raw.o .libs/print_rnd_mode.o .libs/random2.o .libs/random.o .libs/reldiff.o .libs/round_prec.o .libs/set.o .libs/setmax.o .libs/setmin.o .libs/set_d.o .libs/set_dfl_prec.o .libs/set_exp.o .libs/set_rnd.o .libs/set_f.o .libs/set_prc_raw.o .libs/set_prec.o .libs/set_q.o .libs/set_si.o .libs/set_str.o .libs/set_str_raw.o .libs/set_ui.o .libs/set_z.o .libs/sqrt.o .libs/sqrt_ui.o .libs/sub.o .libs/sub1.o .libs/sub_ui.o .libs/rint.o .libs/ui_div.o .libs/ui_sub.o .libs/urandomb.o .libs/get_z_exp.o .libs/swap.o .libs/factorial.o .libs/cosh.o .libs/sinh.o .libs/tanh.o .libs/sinh_cosh.o .libs/acosh.o .libs/asinh.o .libs/atanh.o .libs/atan.o .libs/cmp2.o .libs/exp_2.o .libs/asin.o .libs/const_euler.o .libs/cos.o .libs/sin.o .libs/tan.o .libs/fma.o .libs/fms.o .libs/hypot.o .libs/log1p.o .libs/expm1.o .libs/log2.o .libs/log10.o .libs/ui_pow.o .libs/ui_pow_ui.o .libs/minmax.o .libs/dim.o .libs/signbit.o .libs/copysign.o .libs/setsign.o .libs/gmp_op.o .libs/init2.o .libs/acos.o .libs/sin_cos.o .libs/set_nan.o .libs/set_inf.o .libs/powerof2.o .libs/gamma.o .libs/set_ld.o .libs/get_ld.o .libs/cbrt.o .libs/volatile.o .libs/fits_sshort.o .libs/fits_sint.o .libs/fits_slong.o .libs/fits_ushort.o .libs/fits_uint.o .libs/fits_ulong.o .libs/fits_uintmax.o .libs/fits_intmax.o .libs/get_si.o .libs/get_ui.o .libs/zeta.o .libs/cmp_d.o .libs/erf.o .libs/inits.o .libs/inits2.o .libs/clears.o .libs/sgn.o .libs/check.o .libs/sub1sp.o .libs/version.o .libs/mpn_exp.o .libs/mpfr-gmp.o .libs/mp_clz_tab.o .libs/sum.o .libs/add1sp.o .libs/free_cache.o .libs/si_op.o .libs/cmp_ld.o .libs/set_ui_2exp.o .libs/set_si_2exp.o .libs/set_uj.o .libs/set_sj.o .libs/get_sj.o .libs/get_uj.o .libs/get_z.o .libs/iszero.o .libs/cache.o .libs/sqr.o .libs/int_ceil_log2.o .libs/isqrt.o .libs/strtofr.o .libs/pow_z.o .libs/logging.o .libs/mulders.o .libs/get_f.o .libs/round_p.o .libs/erfc.o .libs/atan2.o .libs/subnormal.o .libs/const_catalan.o .libs/root.o .libs/sec.o .libs/csc.o .libs/cot.o .libs/eint.o .libs/sech.o .libs/csch.o .libs/coth.o .libs/round_near_x.o .libs/constant.o .libs/abort_prec_max.o .libs/stack_interface.o .libs/lngamma.o .libs/zeta_ui.o .libs/set_d64.o .libs/get_d64.o .libs/jn.o .libs/yn.o .libs/rem1.o .libs/get_patches.o .libs/add_d.o .libs/sub_d.o .libs/d_sub.o .libs/mul_d.o .libs/div_d.o .libs/d_div.o .libs/li2.o .libs/rec_sqrt.o   -L/usr/arm-none-linux-gnueabi/lib -L/usr/arm-none-linux-gnueabi/usr/lib /usr/lib/libgmp.so    -Wl,-soname -Wl,libmpfr.so.1 -o .libs/libmpfr.so.1.2.2
/usr/lib/libgmp.so: file not recognized: File format not recognized
collect2: ld returned 1 exit status
make[1]: *** [libmpfr.la] Error 1
make[1]: Leaving directory `/usr/arm-none-linux-gnueabi/tmp/portage/dev-libs/mpfr-2.4.2_p3/work/mpfr-2.4.2'
make: *** [all-recursive] Error 1
emake failed
 * ERROR: dev-libs/mpfr-2.4.2_p3 failed:
 *   emake failed
 *
 * Call stack:
 *     ebuild.sh, line   56:  Called src_compile
 *   environment, line 2336:  Called _eapi0_src_compile
 *     ebuild.sh, line  626:  Called _eapi2_src_compile
 *     ebuild.sh, line  660:  Called die
 * The specific snippet of code:
 *              emake || die "emake failed"
 *
 * If you need support, post the output of 'emerge --info =dev-libs/mpfr-2.4.2_p3',
 * the complete build log and the output of 'emerge -pqv =dev-libs/mpfr-2.4.2_p3'.
 * The complete build log is located at '/usr/arm-none-linux-gnueabi/tmp/portage/dev-libs/mpfr-2.4.2_p3/temp/build.log'.
 * The ebuild environment file is located at '/usr/arm-none-linux-gnueabi/tmp/portage/dev-libs/mpfr-2.4.2_p3/temp/environment'.
 * S: '/usr/arm-none-linux-gnueabi/tmp/portage/dev-libs/mpfr-2.4.2_p3/work/mpfr-2.4.2'



Thats from `emerge-wrapper --target arm-none-linux-gnueabi gcc` on the mpfr package on a *brand new* crossdev environment. There were no previous builds after crossdev was setup.
Back to top
View user's profile Send private message
lost-distance
n00b
n00b


Joined: 10 Apr 2003
Posts: 73

PostPosted: Thu Mar 03, 2011 1:34 am    Post subject: Reply with quote

This sounds horribly familiar. When cross-emerging I encountered several sorts of problem:

1. Some packages are not cross-compile friendly. These then need to be fixed and built by hand.
2. The autohell tools - especially libtool - can be bloody useless at cross-compiling. See fix below.
3. pkg-config also had problems with PKG_CONFIG_SYSROOT_DIR not working.

The easiest of these to fix was (2): literally delete all the .la files that are installed in the target root. Seriously. After emerging each cross-compiled package I would run the following:

find ${ROOT}/lib ${ROOT}/usr/lib -name '*.la' -exec rm '{}' ';'

where ROOT is /usr/arm-softfloat-linux-gnueabi or whatever. I don't guarantee this will fix your problem, but it's worth a quick try. If so then you might want to backup the .la files first, just in case.
Back to top
View user's profile Send private message
feystorm
Tux's lil' helper
Tux's lil' helper


Joined: 29 Jan 2004
Posts: 96

PostPosted: Sun May 29, 2011 5:29 am    Post subject: Reply with quote

Realized I never got back to this thread. The .la files were the issue. What I do now is I periodically move all the .la files in the tree to a tarball. So if for some reason I ever do need them, I've got them easily accessible.

Thanks for the help distance
Back to top
View user's profile Send private message
phoenix_me
Apprentice
Apprentice


Joined: 24 Dec 2003
Posts: 281
Location: Lubliniec

PostPosted: Mon Aug 15, 2011 8:15 pm    Post subject: Reply with quote

feystorm wrote:
Realized I never got back to this thread. The .la files were the issue. What I do now is I periodically move all the .la files in the tree to a tarball. So if for some reason I ever do need them, I've got them easily accessible.

Thanks for the help distance


Very useful - thanks
_________________
phoenix
___
myslenie ma przyszlosc
___
Back to top
View user's profile Send private message
nemasu
n00b
n00b


Joined: 17 Mar 2011
Posts: 6

PostPosted: Mon Nov 28, 2011 5:38 pm    Post subject: Reply with quote

EDIT: Turns out things break when you want to use a different ROOT, I kept defaults (eg. /usr/armv7a-blah-blah-blah/) and it works fine now.




I'm having the same problem (except it's not using libtool I think, tried removing all la files, no change). I'm trying to compile bash but I get:

Code:


armv7a-hardfloat-linux-gnueabi-gcc -L./builtins -L./lib/readline -L./lib/readline -L./lib/glob -L./lib/tilde  -L./lib/sh -L/root/armroot/usr/lib -L/root/armroot/lib  -rdynamic  -O2 -pipe -march=armv7-a -mfpu=vfpv3-d16 -mfloat-abi=hard -o bash shell.o eval.o y.tab.o general.o make_cmd.o print_cmd.o  dispose_cmd.o execute_cmd.o variables.o copy_cmd.o error.o expr.o flags.o jobs.o subst.o hashcmd.o hashlib.o mailcheck.o trap.o input.o unwind_prot.o pathexp.o sig.o test.o version.o alias.o array.o arrayfunc.o assoc.o braces.o bracecomp.o bashhist.o bashline.o  list.o stringlib.o locale.o findcmd.o redir.o pcomplete.o pcomplib.o syntax.o xmalloc.o signames.o -lbuiltins -lglob -lsh -lreadline -lhistory -lcurses -ltilde     -ldl
/lib/libncurses.so.5: file not recognized: File format not recognized
collect2: ld returned 1 exit status



Is this a need-to-compile-by-hand issue?




Emerge info:

Code:


armv7a-hardfloat-linux-gnueabi-emerge --info =app-shells/bash-4.1_p9
Portage 2.1.10.11 (default/linux/arm/10.0, gcc-4.5.3, unavailable, 3.0.6-gentoo x86_64)
=================================================================
                        System Settings
=================================================================
System uname: Linux-3.0.6-gentoo-x86_64-AMD_Athlon-tm-_II_X2_250_Processor-with-gentoo-2.0.3
Timestamp of tree: Mon, 28 Nov 2011 04:00:01 +0000
app-shells/bash:          4.1_p9
dev-java/java-config:     2.1.11-r3
dev-lang/python:          2.7.1-r1, 3.1.3-r1
dev-util/cmake:           2.8.4-r1
dev-util/pkgconfig:       0.26
sys-apps/baselayout:      2.0.3
sys-apps/openrc:          0.8.3-r1
sys-apps/sandbox:         2.4
sys-devel/autoconf:       2.13, 2.68
sys-devel/automake:       1.9.6-r3, 1.11.1
sys-devel/binutils:       2.21.1-r1
sys-devel/gcc:            4.4.5
sys-devel/gcc-config:     1.4.1-r1
sys-devel/libtool:        2.4-r1
sys-devel/make:           3.81-r1
sys-kernel/linux-headers: 2.6.36.1 (virtual/os-headers)
sys-libs/glibc:           2.12.2
Repositories: gentoo spring
ACCEPT_KEYWORDS="arm"
ACCEPT_LICENSE="* -@EULA"
CBUILD="x86_64-pc-linux-gnu"
CFLAGS="-O2 -pipe -march=armv7-a -mfpu=vfpv3-d16 -mfloat-abi=hard"
CHOST="armv7a-hardfloat-linux-gnueabi"
CONFIG_PROTECT="/etc /usr/share/config /usr/share/gnupg/qualified.txt /var/lib/hsqldb"
CONFIG_PROTECT_MASK="/etc/ca-certificates.conf /etc/env.d /etc/env.d/java/ /etc/fonts/fonts.conf /etc/gconf /etc/gentoo-release /etc/php/apache2-php5.3/ext-active/ /etc/php/cgi-php5.3/ext-active/ /etc/php/cli-php5.3/ext-active/ /etc/revdep-rebuild /etc/sandbox.d /etc/terminfo"
CXXFLAGS="-O2 -pipe -march=armv7-a -mfpu=vfpv3-d16 -mfloat-abi=hard"
DISTDIR="/usr/portage/distfiles"
FEATURES="assume-digests binpkg-logs distlocks ebuild-locks fixlafiles fixpackages news parallel-fetch protect-owned sandbox sfperms strict unknown-features-warn unmerge-logs unmerge-orphans"
FFLAGS=""
GENTOO_MIRRORS="http://distfiles.gentoo.org"
LANG="en_US.UTF-8"
LDFLAGS="-L/root/armroot/usr/lib -L/root/armroot/lib"
MAKEOPTS="-j2"
PKGDIR="/root/armroot/pkgdir"
PORTAGE_CONFIGROOT="/root/armroot/"
PORTAGE_RSYNC_OPTS="--recursive --links --safe-links --perms --times --compress --force --whole-file --delete --stats --timeout=180 --exclude=/distfiles --exclude=/local --exclude=/packages"
PORTAGE_TMPDIR="/var/tmp"
PORTDIR="/usr/portage"
PORTDIR_OVERLAY=""
SYNC="rsync://rsync.gentoo.org/gentoo-portage"
USE="X acl arm berkdb bzip2 cli cracklib crypt cups cxx fortran gdbm gpm iconv ipv6 jpeg modules mudflap ncurses nls nptl nptlonly openmp pam pcre png pppd readline session ssl sysfs tcpd unicode xorg zlib" ALSA_PCM_PLUGINS="adpcm alaw asym copy dmix dshare dsnoop empty extplug file hooks iec958 ioplug ladspa lfloat linear meter mmap_emul mulaw multi null plug rate route share shm softvol" APACHE2_MODULES="actions alias auth_basic authn_alias authn_anon authn_dbm authn_default authn_file authz_dbm authz_default authz_groupfile authz_host authz_owner authz_user autoindex cache cgi cgid dav dav_fs dav_lock deflate dir disk_cache env expires ext_filter file_cache filter headers include info log_config logio mem_cache mime mime_magic negotiation rewrite setenvif speling status unique_id userdir usertrack vhost_alias" CALLIGRA_FEATURES="kexi words flow plan stage tables krita karbon braindump" CAMERAS="ptp2" COLLECTD_PLUGINS="df interface irq load memory rrdtool swap syslog" ELIBC="glibc" GPSD_PROTOCOLS="ashtech aivdm earthmate evermore fv18 garmin garmintxt gpsclock itrax mtk3301 nmea ntrip navcom oceanserver oldstyle oncore rtcm104v2 rtcm104v3 sirf superstar2 timing tsip tripmate tnt ubx" INPUT_DEVICES="keyboard mouse evdev" KERNEL="linux" LCD_DEVICES="bayrad cfontz cfontz633 glk hd44780 lb216 lcdm001 mtxorb ncurses text" PHP_TARGETS="php5-3" RUBY_TARGETS="ruby18" USERLAND="GNU" VIDEO_CARDS="fbdev omapfb dummy v4l" XTABLES_ADDONS="quota2 psd pknock lscan length2 ipv4options ipset ipp2p iface geoip fuzzy condition tee tarpit sysrq steal rawnat logmark ipmark dhcpmac delude chaos account"
Unset:  CPPFLAGS, CTARGET, EMERGE_DEFAULT_OPTS, INSTALL_MASK, LC_ALL, LINGUAS, PORTAGE_BUNZIP2_COMMAND, PORTAGE_COMPRESS, PORTAGE_COMPRESS_FLAGS, PORTAGE_RSYNC_EXTRA_OPTS

Back to top
View user's profile Send private message
dsamersoff
n00b
n00b


Joined: 20 Feb 2007
Posts: 30
Location: St.Petersburg,Russia

PostPosted: Fri Oct 30, 2015 10:17 pm    Post subject: Reply with quote

Hit the same problem cross compiled X11 libraries (libX11, libxcb etc) for armv6j-hardfloat-linux-gnueabi - libtool tryies to pick host library from /usr/lib and fail. No ideas how to solve it.

What is weird - aarch64 works fine on the same system.
_________________
*There will come soft rains ...
Back to top
View user's profile Send private message
popham
n00b
n00b


Joined: 07 Jan 2016
Posts: 2

PostPosted: Fri Jan 15, 2016 8:17 pm    Post subject: Reply with quote

I had the same problem and traced it back to a patch that no longer applies (cross/link-ROOT). Version 2.4.4 of libtool bumped ltmain.sh around so that the patch no longer applies. (The changes weren't substantial--some quotes were removed and a few `test "$asdf" = k`es were swapped for `test k = "$asdf"`es.)

If you're impatient, then dump the following into `/usr/portage/eclass/ELT-patches/cross/link-ROOT-2.4.4`:
Code:

--- libltdl/config/ltmain.sh    2016-01-01 00:00:00.000000000 +0000
+++ libltdl/config/ltmain.sh.new        2016-01-01 00:00:00.000000000 +0000
@@ -5768,7 +5768,7 @@
               test no = "$hardcode_direct_absolute"; then
              add=$libdir/$linklib
            elif test yes = "$hardcode_minus_L"; then
-             add_dir=-L$libdir
+             add_dir=-L$ROOT/$libdir
              add=-l$name
            elif test yes = "$hardcode_shlibpath_var"; then
              case :$finalize_shlibpath: in
@@ -5785,7 +5785,7 @@
              fi
            else
              # We cannot seem to hardcode it, guess we'll fake it.
-             add_dir=-L$libdir
+             add_dir=-L$ROOT/$libdir
              # Try looking first in the location we're being installed to.
              if test -n "$inst_prefix_dir"; then
                case $libdir in


Submitting a bug.... Track it: https://bugs.gentoo.org/show_bug.cgi?id=572038
Back to top
View user's profile Send private message
musv
Advocate
Advocate


Joined: 01 Dec 2002
Posts: 3333
Location: de

PostPosted: Fri Aug 26, 2016 8:35 pm    Post subject: Reply with quote

The problem still exists. I failed to compile dev-scheme/guile with this error.

The patch is already outdated.

Any ideas to get it working?
Back to top
View user's profile Send private message
twalter
Tux's lil' helper
Tux's lil' helper


Joined: 07 Apr 2004
Posts: 103
Location: Churchill, Canada

PostPosted: Fri Jul 27, 2018 2:13 pm    Post subject: Reply with quote

musv wrote:
The problem still exists. I failed to compile dev-scheme/guile with this error.

The patch is already outdated.

Any ideas to get it working?


This problem still exists, years later. Did you ever find a solution?
Back to top
View user's profile Send private message
twalter
Tux's lil' helper
Tux's lil' helper


Joined: 07 Apr 2004
Posts: 103
Location: Churchill, Canada

PostPosted: Fri Jul 27, 2018 3:56 pm    Post subject: Reply with quote

Modifying the ebuild's ECONF section with:

Code:

--prefix=${ROOT} \
--with-sysroot=${ROOT} \
--with-libltdl-prefix=${ROOT} \


results in a successful compile but the install portion bombs at:

Code:

mv: cannot stat '/usr/aarch64-unknown-linux-gnu/tmp/portage/dev-scheme/guile-2.0.14-r3/image//usr/lib64/libguile-*-gdb.scm': No such file or directory
 * ERROR: dev-scheme/guile-2.0.14-r3::gentoo failed (install phase):
 *   (no error message)
 *
 * Call stack:
 *     ebuild.sh, line 124:  Called src_install
 *   environment, line 2652:  Called die
 * The specific snippet of code:
 *       mv "${ED}"/usr/$(get_libdir)/libguile-*-gdb.scm "${ED}"/usr/share/gdb/auto-load/$(get_libdir) || die;
 *
 * If you need support, post the output of `emerge --info '=dev-scheme/guile-2.0.14-r3::gentoo'`,
 * the complete build log and the output of `emerge -pqv '=dev-scheme/guile-2.0.14-r3::gentoo'`.
 * The complete build log is located at '/usr/aarch64-unknown-linux-gnu/tmp/portage/dev-scheme/guile-2.0.14-r3/temp/build.log'.
 * The ebuild environment file is located at '/usr/aarch64-unknown-linux-gnu/tmp/portage/dev-scheme/guile-2.0.14-r3/temp/environment'.
 * Working directory: '/usr/aarch64-unknown-linux-gnu/tmp/portage/dev-scheme/guile-2.0.14-r3/work/guile-2.0.14'
 * S: '/usr/aarch64-unknown-linux-gnu/tmp/portage/dev-scheme/guile-2.0.14-r3/work/guile-2.0.14'

>>> Failed to emerge dev-scheme/guile-2.0.14-r3 for /usr/aarch64-unknown-linux-gnu/, Log file:



I see this file was touched in response to Novell bug, I'll try and suss out what got borked with my prefix change (probably the image tree)
Back to top
View user's profile Send private message
twalter
Tux's lil' helper
Tux's lil' helper


Joined: 07 Apr 2004
Posts: 103
Location: Churchill, Canada

PostPosted: Fri Jul 27, 2018 4:59 pm    Post subject: Reply with quote

Hello future Googlers,

Making the following changes to the Guile ebuild:

Code:

--with-sysroot=${ROOT} \  # add this
--with-libltdl-prefix=${ROOT} \ # replaces the --without-libltdl-prefix


will result in a functional build for your host and crossdev. At least it did for me on x86_64 / aarch (RPi3)
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Gentoo on Alternative Architectures 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