View previous topic :: View next topic |
Author |
Message |
damianb n00b
Joined: 21 Sep 2023 Posts: 5
|
Posted: Thu Sep 21, 2023 1:37 pm Post subject: app-admin/apache-tools-2.4.57::gentoo fails to compile on Pi |
|
|
Hello, trying to compile apache. The apache-tools fails to compile with:
Code: | 57/modules/session -I/var/tmp/portage/app-admin/apache-tools-2.4.57/work/httpd-2.4.57/modules/ssl -I/var/tmp/portage/app-admin/apache-tools-2.4.57/work/httpd-2.4.57/modules/test -I/var/tmp/portage/app-admin/apache-tools-2.4.57/work/httpd-2.4.57/server -I/var/tmp/portage/app-admin/apache-tools-2.4.57/work/httpd-2.4.57/modules/md -I/var/tmp/portage/app-admin/apache-tools-2.4.57/work/httpd-2.4.57/modules/arch/unix -I/var/tmp/portage/app-admin/apache-tools-2.4.57/work/httpd-2.4.57/modules/dav/main -I/var/tmp/portage/app-admin/apache-tools-2.4.57/work/httpd-2.4.57/modules/generators -I/var/tmp/portage/app-admin/apache-tools-2.4.57/work/httpd-2.4.57/modules/mappers -c passwd_common.c -o passwd_common.o
passwd_common.c: In function 'get_password':
passwd_common.c:170:32: warning: format '%lu' expects argument of type 'long unsigned int', but argument 3 has type 'unsigned int' [-Wformat=]
170 | "password too long (>%" APR_SIZE_T_FMT ")",
| ^~~~~~~~~~~~~~~~~~~~~~~
171 | sizeof(buf) - 1);
| ~~~~~~~~~~~~~~~
| |
| unsigned int
In file included from passwd_common.h:20,
from passwd_common.c:17:
/usr/include/apr-1/apr.h:555:26: note: format string is defined here
555 | #define APR_SIZE_T_FMT "lu"
/bin/sh /var/tmp/portage/app-admin/apache-tools-2.4.57/work/httpd-2.4.57/libtool --mode=link armv6j-unknown-linux-gnueabihf-gcc -O2 -pipe -march=armv6j -mfpu=vfp -mfloat-abi=hard -Wl,-O1 -Wl,--as-needed -o htpasswd htpasswd.lo passwd_common.lo -laprutil-1 -lgdbm -lapr-1 -lcrypt
libtool: link: armv6j-unknown-linux-gnueabihf-gcc -O2 -pipe -march=armv6j -mfpu=vfp -mfloat-abi=hard -Wl,-O1 -o htpasswd htpasswd.o passwd_common.o -Wl,--as-needed -laprutil-1 -lgdbm -lapr-1 -lcrypt
/usr/lib/gcc/armv6j-unknown-linux-gnueabihf/12/../../../../armv6j-unknown-linux-gnueabihf/bin/ld: /usr/lib/gcc/armv6j-unknown-linux-gnueabihf/12/../../../libapr-1.so: undefined reference to `__atomic_fetch_sub_8'
/usr/lib/gcc/armv6j-unknown-linux-gnueabihf/12/../../../../armv6j-unknown-linux-gnueabihf/bin/ld: /usr/lib/gcc/armv6j-unknown-linux-gnueabihf/12/../../../libapr-1.so: undefined reference to `__atomic_load_8'
/usr/lib/gcc/armv6j-unknown-linux-gnueabihf/12/../../../../armv6j-unknown-linux-gnueabihf/bin/ld: /usr/lib/gcc/armv6j-unknown-linux-gnueabihf/12/../../../libapr-1.so: undefined reference to `__atomic_exchange_8'
/usr/lib/gcc/armv6j-unknown-linux-gnueabihf/12/../../../../armv6j-unknown-linux-gnueabihf/bin/ld: /usr/lib/gcc/armv6j-unknown-linux-gnueabihf/12/../../../libapr-1.so: undefined reference to `__atomic_store_8'
/usr/lib/gcc/armv6j-unknown-linux-gnueabihf/12/../../../../armv6j-unknown-linux-gnueabihf/bin/ld: /usr/lib/gcc/armv6j-unknown-linux-gnueabihf/12/../../../libapr-1.so: undefined reference to `__atomic_fetch_add_8'
/usr/lib/gcc/armv6j-unknown-linux-gnueabihf/12/../../../../armv6j-unknown-linux-gnueabihf/bin/ld: /usr/lib/gcc/armv6j-unknown-linux-gnueabihf/12/../../../libapr-1.so: undefined reference to `__atomic_compare_exchange_8'
collect2: error: ld returned 1 exit status
make[1]: *** [Makefile:33: htpasswd] Error 1
make[1]: Leaving directory '/var/tmp/portage/app-admin/apache-tools-2.4.57/work/httpd-2.4.57/support'
make: *** [/var/tmp/portage/app-admin/apache-tools-2.4.57/work/httpd-2.4.57/build/rules.mk:75: all-recursive] Error 1
make: Leaving directory '/var/tmp/portage/app-admin/apache-tools-2.4.57/work/httpd-2.4.57/support'
* ERROR: app-admin/apache-tools-2.4.57::gentoo failed (compile phase):
* emake failed
*
* If you need support, post the output of `emerge --info '=app-admin/apache-tools-2.4.57::gentoo'`,
* the complete build log and the output of `emerge -pqv '=app-admin/apache-tools-2.4.57::gentoo'`.
* The complete build log is located at '/var/tmp/portage/app-admin/apache-tools-2.4.57/temp/build.log'.
* The ebuild environment file is located at '/var/tmp/portage/app-admin/apache-tools-2.4.57/temp/environment'.
* Working directory: '/var/tmp/portage/app-admin/apache-tools-2.4.57/work/httpd-2.4.57'
* S: '/var/tmp/portage/app-admin/apache-tools-2.4.57/work/httpd-2.4.57'
>>> Failed to emerge app-admin/apache-tools-2.4.57, Log file:
>>> '/var/tmp/portage/app-admin/apache-tools-2.4.57/temp/build.log'
* Messages for package app-admin/apache-tools-2.4.57:
* ERROR: app-admin/apache-tools-2.4.57::gentoo failed (compile phase):
* emake failed
*
* If you need support, post the output of `emerge --info '=app-admin/apache-tools-2.4.57::gentoo'`,
* the complete build log and the output of `emerge -pqv 'app=-admin/apache-tools-2.4.57::gentoo'`.
* The complete build log is located at '/var/tmp/portage/app-admin/apache-tools-2.4.57/temp/build.log'.
* The ebuild environment file is located at '/var/tmp/portage/app-admin/apache-tools-2.4.57/temp/environment'.
* Working directory: '/var/tmp/portage/app-admin/apache-tools-2.4.57/work/httpd-2.4.57'
* S: '/var/tmp/portage/app-admin/apache-tools-2.4.57/work/httpd-2.4.57'
|
emerge --info '=app-admin/apache-tools-2.4.57::gentoo'
Code: | emerge --info '=app-admin/apache-tools-2.4.57::gentoo'
Portage 3.0.49 (python 3.11.5-final-0, default/linux/arm/17.0/armv6j, gcc-12, gl ibc-2.37-r3, 6.1.47+ armv6l)
=================================================================
System Settings
=================================================================
System uname: Linux-6.1.47+-armv6l-ARMv6-compatible_processor_rev_7_-v6l-with-gl ibc2.37
KiB Mem: 439636 total, 75040 free
KiB Swap: 524284 total, 520956 free
Timestamp of repository gentoo: Mon, 18 Sep 2023 01:00:01 +0000
Head commit of repository gentoo: 735fa9cf30b911363a9e63d8900bdd63e2e7ca01
sh bash 5.1_p16-r6
ld GNU ld (Gentoo 2.40 p5) 2.40.0
app-misc/pax-utils: 1.3.7::gentoo
app-shells/bash: 5.1_p16-r6::gentoo
dev-lang/perl: 5.38.0-r1::gentoo
dev-lang/python: 3.11.5::gentoo
dev-util/cmake: 3.26.5-r2::gentoo
dev-util/meson: 1.1.1::gentoo
sys-apps/baselayout: 2.14::gentoo
sys-apps/openrc: 0.48::gentoo
sys-apps/sandbox: 2.37::gentoo
sys-devel/autoconf: 2.71-r6::gentoo
sys-devel/automake: 1.16.5::gentoo
sys-devel/binutils: 2.40-r5::gentoo
sys-devel/binutils-config: 5.5::gentoo
sys-devel/gcc: 12.3.1_p20230526::gentoo
sys-devel/gcc-config: 2.11::gentoo
sys-devel/libtool: 2.4.7-r1::gentoo
sys-devel/make: 4.4.1-r1::gentoo
sys-kernel/linux-headers: 6.1::gentoo (virtual/os-headers)
sys-libs/glibc: 2.37-r3::gentoo
Repositories:
gentoo
location: /var/db/repos/gentoo
sync-type: rsync
sync-uri: rsync://rsync1.ca.gentoo.org/gentoo-portage/
priority: -1000
volatile: False
sync-rsync-verify-metamanifest: yes
sync-rsync-verify-max-age: 24
sync-rsync-extra-opts:
sync-rsync-verify-jobs: 1
ACCEPT_KEYWORDS="arm"
ACCEPT_LICENSE="@FREE"
CBUILD="armv6j-unknown-linux-gnueabihf"
CFLAGS="-O2 -pipe -march=armv6j -mfpu=vfp -mfloat-abi=hard"
CHOST="armv6j-unknown-linux-gnueabihf"
CONFIG_PROTECT="/etc /usr/share/gnupg/qualified.txt"
CONFIG_PROTECT_MASK="/etc/ca-certificates.conf /etc/env.d /etc/gconf /etc/gentoo -release /etc/sandbox.d /etc/terminfo"
CXXFLAGS="-O2 -pipe -march=armv6j -mfpu=vfp -mfloat-abi=hard"
DISTDIR="/var/cache/distfiles"
ENV_UNSET="CARGO_HOME DBUS_SESSION_BUS_ADDRESS DISPLAY GDK_PIXBUF_MODULE_FILE GO BIN GOPATH PERL5LIB PERL5OPT PERLPREFIX PERL_CORE PERL_MB_OPT PERL_MM_OPT XAUTHO RITY XDG_CACHE_HOME XDG_CONFIG_HOME XDG_DATA_HOME XDG_RUNTIME_DIR XDG_STATE_HOME "
FCFLAGS="-O2 -pipe -march=armv6j -mfpu=vfp -mfloat-abi=hard"
FEATURES="assume-digests binpkg-docompress binpkg-dostrip binpkg-logs binpkg-mul ti-instance buildpkg-live config-protect-if-modified distlocks ebuild-locks fixl afiles ipc-sandbox merge-sync multilib-strict network-sandbox news parallel-fetc h pid-sandbox preserve-libs protect-owned qa-unresolved-soname-deps sandbox sfpe rms strict unknown-features-warn unmerge-logs unmerge-orphans userfetch userpriv usersandbox usersync xattr"
FFLAGS="-O2 -pipe -march=armv6j -mfpu=vfp -mfloat-abi=hard"
GENTOO_MIRRORS="http://distfiles.gentoo.org"
LANG="C.UTF8"
LDFLAGS="-Wl,-O1 -Wl,--as-needed"
LEX="flex"
PKGDIR="/var/cache/binpkgs"
PORTAGE_CONFIGROOT="/"
PORTAGE_RSYNC_OPTS="--recursive --links --safe-links --perms --times --omit-dir- times --compress --force --whole-file --delete --stats --human-readable --timeou t=180 --exclude=/distfiles --exclude=/local --exclude=/packages --exclude=/.git"
PORTAGE_TMPDIR="/var/tmp"
SHELL="/bin/bash"
USE="acl apache2 arm bzip2 cli crypt dbus dri fortran gdbm iconv ipv6 mysql ncur ses nfsv4 nls nptl openmp openssl pam pcre postgres readline seccomp split-usr s sl test-rust threads unicode usb utils xattr xml zlib" ADA_TARGET="gnat_2021" AP ACHE2_MODULES="actions alias slotmem_shm auth_basic authn_anon authn_core authn_ dbm authn_file authz_core authz_dbm authz_groupfile authz_host authz_owner authz _user auth_digest auth_form auth_dbd autoindex cache cgi cgid dav dav_fs dav_loc k deflate dir env dbd expires ext_filter file_cache filter headers http2 include info log_config ident logio mime mime_magic negotiation proxy proxy_ajp proxy_b alancer proxy_connect proxy_fcgi proxy_ftp proxt_html proxy_http proxy_http2 pro xy_scgi proxy_uwsgi proxy_wstunnel ratelimit remoteip reqtimeout rewrite session session_cookie session_crypto session_dbd setenvif socache_shmcb speling status unique_id unixd userdir usertrack vhost_alias tls" CALLIGRA_FEATURES="karbon sh eets words" COLLECTD_PLUGINS="df interface irq load memory rrdtool swap syslog" CPU_FLAGS_ARM="edsp thumb v4 v5 v6" ELIBC="glibc" GPSD_PROTOCOLS="ashtech aivdm earthmate evermore fv18 garmin garmintxt gpsclock greis isync itrax mtk3301 nmea ntrip navcom oceanserver oldstyle oncore rtcm104v2 rtcm104v3 sirf skytraq super star2 timing tsip tripmate tnt ublox ubx" INPUT_DEVICES="libinput" KERNEL="linux " LCD_DEVICES="bayrad cfontz cfontz633 glk hd44780 lb216 lcdm001 mtxorb ncurses text" LIBREOFFICE_EXTENSIONS="presenter-console presenter-minimizer" LUA_SINGLE_ TARGET="lua5-1" LUA_TARGETS="lua5-1" OFFICE_IMPLEMENTATION="libreoffice" PHP_TAR GETS="php8-1" POSTGRES_TARGETS="postgres15" PYTHON_SINGLE_TARGET="python3_11" PY THON_TARGETS="python3_11" RUBY_TARGETS="ruby31" VIDEO_CARDS="exynos fbdev omap d ummy v4l" XTABLES_ADDONS="quota2 psd pknock lscan length2 ipv4options ipset ipp2 p iface geoip fuzzy condition tee tarpit sysrq proto steal rawnat logmark ipmark dhcpmac delude chaos account"
Unset: ADDR2LINE, AR, ARFLAGS, AS, ASFLAGS, CC, CCLD, CONFIG_SHELL, CPP, CPPFLA GS, CTARGET, CXX, CXXFILT, ELFEDIT, EMERGE_DEFAULT_OPTS, EXTRA_ECONF, F77FLAGS, FC, GCOV, GPROF, INSTALL_MASK, LC_ALL, LD, LFLAGS, LIBTOOL, LINGUAS, MAKE, MAKEF LAGS, MAKEOPTS, NM, OBJCOPY, OBJDUMP, PORTAGE_BINHOST, PORTAGE_BUNZIP2_COMMAND, PORTAGE_COMPRESS, PORTAGE_COMPRESS_FLAGS, PORTAGE_RSYNC_EXTRA_OPTS, RANLIB, READ ELF, RUSTFLAGS, SIZE, STRINGS, STRIP, YACC, YFLAGS |
emerge -pqv =app-admin/apache-tools-2.4.57::gentoo
Code: | [ebuild N ] app-admin/apache-tools-2.4.57 USE="ssl" |
Thank you.
[Moderator edit: added [code] tags to preserve output layout. -Hu] |
|
Back to top |
|
|
eccerr0r Watchman
Joined: 01 Jul 2004 Posts: 9815 Location: almost Mile High in the USA
|
Posted: Thu Sep 21, 2023 4:26 pm Post subject: |
|
|
Seems like a yet resolved bug in libapr on non-x86 hardware ...
I only have x86 hardware running Gentoo at the moment unfortunately (I really need to get off of raspbian but my pi0w's are not good portage runners much like my P3's...), does dev-libs/apr build correctly for you? (emerge -1 dev-libs/apr) ?
Have a feeling that apr just needs to be linked up with whatever gcc you're using or something... _________________ Intel Core i7 2700K/Radeon R7 250/24GB DDR3/256GB SSD
What am I supposed watching? |
|
Back to top |
|
|
damianb n00b
Joined: 21 Sep 2023 Posts: 5
|
Posted: Thu Sep 21, 2023 5:15 pm Post subject: |
|
|
Yes, i have dev-libs/apr-1.7.4::gentoo
Redoing it now just to make sure.
Is the linking you speak of something I can do or do I need to wait for update to the ebuild?
My /usr/lib has :
Code: |
ls -l /usr/lib/*atom*
lrwxrwxrwx 1 root root 22 Sep 19 17:59 /usr/lib/libatomic_ops.so -> libatomic_ops.so.1.2.0
lrwxrwxrwx 1 root root 22 Sep 19 17:59 /usr/lib/libatomic_ops.so.1 -> libatomic_ops.so.1.2.0
-rwxr-xr-x 1 root root 9372 Sep 19 18:00 /usr/lib/libatomic_ops.so.1.2.0
lrwxrwxrwx 1 root root 26 Sep 19 17:59 /usr/lib/libatomic_ops_gpl.so -> libatomic_ops_gpl.so.1.2.0
lrwxrwxrwx 1 root root 26 Sep 19 17:59 /usr/lib/libatomic_ops_gpl.so.1 -> libatomic_ops_gpl.so.1.2.0
-rwxr-xr-x 1 root root 5288 Sep 19 18:00 /usr/lib/libatomic_ops_gpl.so.1.2.0
|
And APR I got:
Code: |
ls -l /usr/lib/*apr*
lrwxrwxrwx 1 root root 17 Sep 19 19:27 /usr/lib/libapr-1.so -> libapr-1.so.0.7.4
lrwxrwxrwx 1 root root 17 Sep 19 19:27 /usr/lib/libapr-1.so.0 -> libapr-1.so.0.7.4
-rwxr-xr-x 1 root root 191512 Sep 19 19:28 /usr/lib/libapr-1.so.0.7.4
lrwxrwxrwx 1 root root 21 Sep 19 14:50 /usr/lib/libaprutil-1.so -> libaprutil-1.so.0.6.3
lrwxrwxrwx 1 root root 21 Sep 19 14:50 /usr/lib/libaprutil-1.so.0 -> libaprutil-1.so.0.6.3
-rwxr-xr-x 1 root root 150112 Sep 19 14:51 /usr/lib/libaprutil-1.so.0.6.3
/usr/lib/apr-util-1:
total 60
-rwxr-xr-x 1 root root 9652 Sep 19 14:51 apr_crypto_openssl-1.so
lrwxrwxrwx 1 root root 23 Sep 19 14:50 apr_crypto_openssl.so -> apr_crypto_openssl-1.so
-rwxr-xr-x 1 root root 17944 Sep 19 14:51 apr_dbd_mysql-1.so
lrwxrwxrwx 1 root root 18 Sep 19 14:50 apr_dbd_mysql.so -> apr_dbd_mysql-1.so
-rwxr-xr-x 1 root root 13652 Sep 19 14:51 apr_dbd_pgsql-1.so
lrwxrwxrwx 1 root root 18 Sep 19 14:50 apr_dbd_pgsql.so -> apr_dbd_pgsql-1.so
-rwxr-xr-x 1 root root 9476 Sep 19 14:51 apr_dbm_gdbm-1.so
lrwxrwxrwx 1 root root 17 Sep 19 14:50 apr_dbm_gdbm.so -> apr_dbm_gdbm-1.so
|
|
|
Back to top |
|
|
eccerr0r Watchman
Joined: 01 Jul 2004 Posts: 9815 Location: almost Mile High in the USA
|
Posted: Thu Sep 21, 2023 7:10 pm Post subject: |
|
|
as far as I understand which I'm making large assumptions and may be wrong here, your apr is somehow not linked to the gcc libraries that define the atomic definitions which are mostly x86 instructions. However this must be remapped to something else for arm. Because of this your apr is not quite usable and hence anything that links to these apr libraries will fail.
I don't know if there's a workaround that you could add libgcc or something to force it, but this doesn't seem like the right way imho. Don't know for sure...
BTW try a older/newer version of apr, may be a new build issue. Also if you have gcc11 installed, try building apr with that. _________________ Intel Core i7 2700K/Radeon R7 250/24GB DDR3/256GB SSD
What am I supposed watching? |
|
Back to top |
|
|
damianb n00b
Joined: 21 Sep 2023 Posts: 5
|
Posted: Fri Sep 22, 2023 4:50 pm Post subject: |
|
|
So I tried earlier version of apr (1.7.2) of the emerge, that didnt work.
Then I tried the sources (apr, apr utilties, and apache itself) from the apache website. that didnt work. (same error about __atomic stuff)
Now installing the gcc 11 and will try it again with that once done. |
|
Back to top |
|
|
NeddySeagoon Administrator
Joined: 05 Jul 2003 Posts: 54572 Location: 56N 3W
|
Posted: Fri Sep 22, 2023 5:54 pm Post subject: |
|
|
damianb,
I tried cross compiling but -utilties failed.
I don't think I have a QEMU static-user for armv6j-unknown-linux-gnueabihf but thaf could well be the next step.
I have built and run apache on a Pi1B with 256M RAM but that was in 2012. _________________ Regards,
NeddySeagoon
Computer users fall into two groups:-
those that do backups
those that have never had a hard drive fail. |
|
Back to top |
|
|
damianb n00b
Joined: 21 Sep 2023 Posts: 5
|
Posted: Sun Sep 24, 2023 3:49 pm Post subject: |
|
|
Yes, I had it running on these very same Pis long time ago. I found them in a box in the garage and figured I put them to a good use. I'm setting up distcc cuz it was taking waay too long . Also had to use nfs share as my /var/tmp as I was running out of space.
I also got RioT board and two Pine64, and a Pi 3B boards. |
|
Back to top |
|
|
NeddySeagoon Administrator
Joined: 05 Jul 2003 Posts: 54572 Location: 56N 3W
|
Posted: Sun Sep 24, 2023 5:18 pm Post subject: |
|
|
damianb,
distcc will help a bit but configure and linking is still done on the Pi. distcc can only do the compile phase.
Cross compile or QEMU with static-user, (or a mix) is the way to go now.
Then you install the binary packages on the Pi. _________________ Regards,
NeddySeagoon
Computer users fall into two groups:-
those that do backups
those that have never had a hard drive fail. |
|
Back to top |
|
|
sam_ Developer
Joined: 14 Aug 2020 Posts: 1938
|
|
Back to top |
|
|
damianb n00b
Joined: 21 Sep 2023 Posts: 5
|
Posted: Mon Sep 25, 2023 2:36 pm Post subject: |
|
|
Updated arp to 1.7.4-r1 and the apache-tools compiled. Thank you for the fix. |
|
Back to top |
|
|
|
|
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
|
|