Skip to content
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

1.7.5 cross compile failure #79

Closed
lucize opened this issue Feb 19, 2024 · 3 comments
Closed

1.7.5 cross compile failure #79

lucize opened this issue Feb 19, 2024 · 3 comments

Comments

@lucize
Copy link

lucize commented Feb 19, 2024

with the new update, cross compile doesn't work anymore:

checking for sys/un.h... yes
checking for mmap... yes
checking if mmap(MAP_ANON|MAP_SHARED) works... configure: error: in `/home/build/proxy/build_dir/target-x86_64_musl/uacme-upstream-1.7.5':
configure: error: cannot run test program while cross compiling
See `config.log' for more details

configure:7108: checking for mmap
configure:7108: x86_64-openwrt-linux-musl-gcc -o conftest -Os -pipe -g3 -fno-caller-saves -fno-plt -fhonour-copts -fmacro-prefix-map
=/home/build/proxy/build_dir/target-x86_64_musl/uacme-upstream-1.7.5=uacme-upstream-1.7.5 -Wformat -Werror=format-security -fstack-p
rotector -D_FORTIFY_SOURCE=1 -Wl,-z,now -Wl,-z,relro  -I/home/build/proxy/staging_dir/toolchain-x86_64_gcc-12.3.0_musl/usr/include -
I/home/build/proxy/staging_dir/toolchain-x86_64_gcc-12.3.0_musl/include -I/home/build/proxy/staging_dir/toolchain-x86_64_gcc-12.3.0_
musl/include/fortify  -I/home/build/proxy/staging_dir/target-x86_64_musl/usr/include -L/home/build/proxy/staging_dir/toolchain-x86_6
4_gcc-12.3.0_musl/usr/lib -L/home/build/proxy/staging_dir/toolchain-x86_64_gcc-12.3.0_musl/lib -fuse-ld=bfd -znow -zrelro -Wl,--gc-s
ections,--as-needed  -L/home/build/proxy/staging_dir/target-x86_64_musl/usr/lib conftest.c -lssl -lcrypto  >&5
configure:7108: $? = 0
configure:7108: result: yes
configure:7119: checking if mmap(MAP_ANON|MAP_SHARED) works
configure:7122: error: in `/home/build/proxy/build_dir/target-x86_64_musl/uacme-upstream-1.7.5':
configure:7124: error: cannot run test program while cross compiling
See `config.log' for more details

@lucize
Copy link
Author

lucize commented Feb 23, 2024

@ndilieto tried the last patch and it seems that I stil can't compile it

checking for mmap... yes
checking if mmap(MAP_ANON|MAP_SHARED) works... configure: error: in `/home/build/proxy/build_dir/target-x86_64_musl/uacme-upstream-1.7.5':
configure: error: cannot run test program while cross compiling
See `config.log' for more details
make[2]: *** [Makefile:133: /home/build/proxy/build_dir/target-x86_64_musl/uacme-upstream-1.7.5/.configured_fe3f01096345b9e32dd868065a6ad243] Error 1
make[2]: Leaving directory '/home/build/proxy/feeds/packages/net/uacme'
time: package/feeds/packages/uacme/compile#1.87#0.75#2.38
    ERROR: package/feeds/packages/uacme failed to build.
make[1]: *** [package/Makefile:128: package/feeds/packages/uacme/compile] Error 1

@ndilieto
Copy link
Owner

Not sure about openwrt, but in buildroot patching configure.ac requires extra care to insure that autoreconf runs after the patch is applied. Please check https://patchwork.ozlabs.org/project/buildroot/patch/20240220195007.380433-1-fontaine.fabrice@gmail.com/

@lucize
Copy link
Author

lucize commented Feb 26, 2024

adding autoreconf fixes the issue
thanks!

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

No branches or pull requests

2 participants