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

[package] libjpeg/9e: Cannot build for android on windows #17300

Open
birsoyo opened this issue Apr 28, 2023 · 2 comments
Open

[package] libjpeg/9e: Cannot build for android on windows #17300

birsoyo opened this issue Apr 28, 2023 · 2 comments
Labels
bug Something isn't working

Comments

@birsoyo
Copy link

birsoyo commented Apr 28, 2023

Description

When I try to build libjpeg for Android on Windows. The build fails with the following message:

/bin/sh: line 1: E:/cns6f49421bintoolchainsllvmprebuiltwindows-x86_64binx86_64-linux-android23-clang.cmd: No such file or directory

The forward slashes are missing.

Package and Environment Details

  • Package Name/Version: libjpeg/9e
  • Operating System+version: Windows 10
  • Compiler+version: Android/NDK r25c
  • Conan version: conan 1.59.0

Conan profile

My default profile is (this will also show up in the logs)
Configuration (profile_build):

[settings]
arch=x86_64
arch_build=x86_64
build_type=Release
compiler=Visual Studio
compiler.runtime=MD
compiler.version=17
os=Windows
os_build=Windows
[options]
[build_requires]
[env]

Steps to reproduce

conan install --build=missing -pr:h profile/android -s:h build_type=Debug -s:h arch=x86_64 -pr:b default libjpeg/9e@

Logs

Click to expand log
>conan install --build=missing -pr:h profile/android -s:h build_type=Debug -s:h arch=x86_64 -pr:b default libjpeg/9e@
Configuration (profile_host):
[settings]
arch=x86_64
build_type=Debug
compiler=clang
compiler.cppstd=17
compiler.libcxx=c++_shared
compiler.version=14
os=Android
os.api_level=23
[options]
[build_requires]
*: android-ndk/r25c
[env]

Configuration (profile_build):
[settings]
arch=x86_64
arch_build=x86_64
build_type=Release
compiler=Visual Studio
compiler.runtime=MD
compiler.version=17
os=Windows
os_build=Windows
[options]
[build_requires]
[env]

libjpeg/9e: WARN: Package binary is corrupted, removing: d3a0dc2b0a9c3350f109798eac433b32bf672dee
Installing package: libjpeg/9e
Requirements
    libjpeg/9e from 'cc' - Cache
Packages
    libjpeg/9e:d3a0dc2b0a9c3350f109798eac433b32bf672dee - Build
Build requirements
    android-ndk/r25c from 'cc' - Cache
    msys2/cci.latest from 'cc' - Cache
Build requirements packages
    android-ndk/r25c:ca33edce272a279b24f87dc0d4cf5bbdcffbc187 - Cache
    msys2/cci.latest:eee3fba89db6d777329de604625af8c30d46f080 - Cache

Cross-build from 'Windows:x86_64' to 'Android:x86_64'
Installing (downloading, building) binaries...
android-ndk/r25c: Already installed!
msys2/cci.latest: Already installed!
libjpeg/9e: Applying build-requirement: android-ndk/r25c
libjpeg/9e: Applying build-requirement: msys2/cci.latest
libjpeg/9e: WARN: Build folder is dirty, removing it: E:\src\Conan\data\libjpeg\9e\_\_\build\d3a0dc2b0a9c3350f109798eac433b32bf672dee
libjpeg/9e: Copying sources to build folder
libjpeg/9e: Building your package in E:\src\Conan\data\libjpeg\9e\_\_\build\d3a0dc2b0a9c3350f109798eac433b32bf672dee
libjpeg/9e: Generator txt created conanbuildinfo.txt
libjpeg/9e: Calling generate()
libjpeg/9e: Aggregating env generators
libjpeg/9e: Calling build()
libjpeg/9e: Apply patch (portability): Add support to generate DLL on Windows
libjpeg/9e: Calling:
 > "/e/src/conan/data/libjpeg/9e/_/_/build/d3a0dc2b0a9c3350f109798eac433b32bf672dee/src/configure" --disable-shared --enable-static --prefix=/ --bindir=${prefix}/bin --sbindir=${prefix}/bin --libdir=${prefix}/lib --includedir=${prefix}/include --oldincludedir=${prefix}/include --host=x86_64-linux-android --build=x86_64-windows
configure: loading site script /etc/config.site
checking build system type... x86_64-pc-windows
checking host system type... x86_64-pc-linux-android
checking target system type... x86_64-pc-linux-android
checking for a BSD-compatible install... /e/cns/4da31b/1/bin/msys64/usr/bin/install -c
checking whether build environment is sane... yes
checking for x86_64-linux-android-strip... /e/cns/6f4942/1/bin/toolchains/llvm/prebuilt/windows-x86_64/bin/llvm-strip.exe
checking for a race-free mkdir -p... /e/cns/4da31b/1/bin/msys64/usr/bin/mkdir -p
checking for gawk... gawk
checking whether make sets $(MAKE)... yes
checking whether make supports nested variables... yes
checking whether make supports nested variables... (cached) yes
checking whether to enable maintainer-specific portions of Makefiles... no
checking for x86_64-linux-android-gcc... E:/cns\6f4942\1\bin\toolchains\llvm\prebuilt\windows-x86_64\bin\x86_64-linux-android23-clang.cmd
checking whether the C compiler works... yes
checking for C compiler default output file name... a.out
checking for suffix of executables... 
checking whether we are cross compiling... yes
checking for suffix of object files... o
checking whether the compiler supports GNU C... yes
checking whether E:/cns\6f4942\1\bin\toolchains\llvm\prebuilt\windows-x86_64\bin\x86_64-linux-android23-clang.cmd accepts -g... yes
checking for E:/cns\6f4942\1\bin\toolchains\llvm\prebuilt\windows-x86_64\bin\x86_64-linux-android23-clang.cmd option to enable C11 features... none needed
checking whether E:/cns\6f4942\1\bin\toolchains\llvm\prebuilt\windows-x86_64\bin\x86_64-linux-android23-clang.cmd understands -c and -o together... yes
checking whether make supports the include directive... yes (GNU style)
checking dependency style of E:/cns\6f4942\1\bin\toolchains\llvm\prebuilt\windows-x86_64\bin\x86_64-linux-android23-clang.cmd... gcc3
checking how to run the C preprocessor... E:/cns\6f4942\1\bin\toolchains\llvm\prebuilt\windows-x86_64\bin\x86_64-linux-android23-clang.cmd -E
checking whether make sets $(MAKE)... (cached) yes
checking whether ln -s works... no, using cp -pR
checking for grep that handles long lines and -e... /e/cns/4da31b/1/bin/msys64/usr/bin/grep
checking for egrep... /e/cns/4da31b/1/bin/msys64/usr/bin/grep -E
checking for x86_64-linux-android-ar... /e/cns/6f4942/1/bin/toolchains/llvm/prebuilt/windows-x86_64/bin/llvm-ar.exe
checking the archiver (/e/cns/6f4942/1/bin/toolchains/llvm/prebuilt/windows-x86_64/bin/llvm-ar.exe) interface... ar
checking if LD -Wl,--version-script works... yes
checking for function prototypes... yes
checking for stdio.h... yes
checking for stdlib.h... yes
checking for string.h... yes
checking for inttypes.h... yes
checking for stdint.h... yes
checking for strings.h... yes
checking for sys/stat.h... yes
checking for sys/types.h... yes
checking for unistd.h... yes
checking for stddef.h... yes
checking for stdlib.h... (cached) yes
checking for locale.h... yes
checking for string.h... (cached) yes
checking for size_t... yes
checking for type unsigned char... yes
checking for type unsigned short... yes
checking for type void... yes
checking for an ANSI C-conforming const... yes
checking for inline... __inline__
checking for broken incomplete types... ok
checking for short external names... ok
checking to see if char is signed... configure: WARNING: Assuming that char is signed on target machine.
    If it is unsigned, this will be a little bit inefficient.
checking to see if right shift is signed... Assuming that right shift is signed on target machine.
checking to see if fopen accepts b spec... Assuming that it does.
checking how to print strings... printf
checking for a sed that does not truncate output... /e/cns/4da31b/1/bin/msys64/usr/bin/sed
checking for fgrep... /e/cns/4da31b/1/bin/msys64/usr/bin/grep -F
checking for ld used by E:/cns\6f4942\1\bin\toolchains\llvm\prebuilt\windows-x86_64\bin\x86_64-linux-android23-clang.cmd... /e/cns/6f4942/1/bin/toolchains/llvm/prebuilt/windows-x86_64/bin/ld.exe
checking if the linker (/e/cns/6f4942/1/bin/toolchains/llvm/prebuilt/windows-x86_64/bin/ld.exe) is GNU ld... yes
checking for BSD- or MS-compatible name lister (nm)... /e/cns/6f4942/1/bin/toolchains/llvm/prebuilt/windows-x86_64/bin/llvm-nm.exe
checking the name lister (/e/cns/6f4942/1/bin/toolchains/llvm/prebuilt/windows-x86_64/bin/llvm-nm.exe) interface... BSD nm
checking the maximum length of command line arguments... 24000
checking how to convert x86_64-pc-windows file names to x86_64-pc-linux-android format... func_convert_file_noop
checking how to convert x86_64-pc-windows file names to toolchain format... func_convert_file_noop
checking for /e/cns/6f4942/1/bin/toolchains/llvm/prebuilt/windows-x86_64/bin/ld.exe option to reload object files... -r
checking for x86_64-linux-android-objdump... /e/cns/6f4942/1/bin/toolchains/llvm/prebuilt/windows-x86_64/bin/llvm-objdump.exe
checking how to recognize dependent libraries... pass_all
checking for x86_64-linux-android-dlltool... no
checking for dlltool... dlltool
configure: WARNING: using cross tools not prefixed with host triplet
checking how to associate runtime and link libraries... printf %s\n
checking for x86_64-linux-android-ar... (cached) /e/cns/6f4942/1/bin/toolchains/llvm/prebuilt/windows-x86_64/bin/llvm-ar.exe
checking for archiver @FILE support... @
checking for x86_64-linux-android-strip... (cached) /e/cns/6f4942/1/bin/toolchains/llvm/prebuilt/windows-x86_64/bin/llvm-strip.exe
checking for x86_64-linux-android-ranlib... /e/cns/6f4942/1/bin/toolchains/llvm/prebuilt/windows-x86_64/bin/llvm-ranlib.exe
checking command to parse /e/cns/6f4942/1/bin/toolchains/llvm/prebuilt/windows-x86_64/bin/llvm-nm.exe output from E:/cns\6f4942\1\bin\toolchains\llvm\prebuilt\windows-x86_64\bin\x86_64-linux-android23-clang.cmd object... ok
checking for sysroot... no
checking for a working dd... /e/cns/4da31b/1/bin/msys64/usr/bin/dd
checking how to truncate binary pipes... /e/cns/4da31b/1/bin/msys64/usr/bin/dd bs=4096 count=1
checking for x86_64-linux-android-mt... no
checking for mt... no
checking if : is a manifest tool... no
checking for dlfcn.h... yes
checking for objdir... .libs
checking if E:/cns\6f4942\1\bin\toolchains\llvm\prebuilt\windows-x86_64\bin\x86_64-linux-android23-clang.cmd supports -fno-rtti -fno-exceptions... yes
checking for E:/cns\6f4942\1\bin\toolchains\llvm\prebuilt\windows-x86_64\bin\x86_64-linux-android23-clang.cmd option to produce PIC... -fPIC -DPIC
checking if E:/cns\6f4942\1\bin\toolchains\llvm\prebuilt\windows-x86_64\bin\x86_64-linux-android23-clang.cmd PIC flag -fPIC -DPIC works... yes
checking if E:/cns\6f4942\1\bin\toolchains\llvm\prebuilt\windows-x86_64\bin\x86_64-linux-android23-clang.cmd static flag -static works... yes
checking if E:/cns\6f4942\1\bin\toolchains\llvm\prebuilt\windows-x86_64\bin\x86_64-linux-android23-clang.cmd supports -c -o file.o... yes
checking if E:/cns\6f4942\1\bin\toolchains\llvm\prebuilt\windows-x86_64\bin\x86_64-linux-android23-clang.cmd supports -c -o file.o... (cached) yes
checking whether the E:/cns\6f4942\1\bin\toolchains\llvm\prebuilt\windows-x86_64\bin\x86_64-linux-android23-clang.cmd linker (/e/cns/6f4942/1/bin/toolchains/llvm/prebuilt/windows-x86_64/bin/ld.exe -m elf_x86_64) supports shared libraries... yes
checking dynamic linker characteristics... Android linker
checking how to hardcode library paths into programs... immediate
checking whether stripping libraries is possible... yes
checking if libtool supports shared libraries... yes
checking whether to build shared libraries... no
checking whether to build static libraries... yes
checking libjpeg version number... 9.5.0
checking that generated files are newer than configure... done
configure: creating ./config.status
config.status: creating Makefile
config.status: creating libjpeg.pc
config.status: creating jconfig.h
config.status: executing depfiles commands
config.status: executing libtool commands
make  all-am
make[1]: Entering directory '/e/src/Conan/data/libjpeg/9e/_/_/build/d3a0dc2b0a9c3350f109798eac433b32bf672dee/build-debug'
  CC       cjpeg.o
/bin/sh: line 1: E:/cns6f49421bintoolchainsllvmprebuiltwindows-x86_64binx86_64-linux-android23-clang.cmd: No such file or directory
make[1]: *** [Makefile:772: cjpeg.o] Error 127
make[1]: *** Waiting for unfinished jobs....
  CC       rdppm.o
/bin/sh: line 1: E:/cns6f49421bintoolchainsllvmprebuiltwindows-x86_64binx86_64-linux-android23-clang.cmd: No such file or directory
make[1]: *** [Makefile:772: rdppm.o] Error 127
  CC       rdgif.o
/bin/sh: line 1: E:/cns6f49421bintoolchainsllvmprebuiltwindows-x86_64binx86_64-linux-android23-clang.cmd: No such file or directory
make[1]: *** [Makefile:772: rdgif.o] Error 127
make[1]: Leaving directory '/e/src/Conan/data/libjpeg/9e/_/_/build/d3a0dc2b0a9c3350f109798eac433b32bf672dee/build-debug'
make: *** [Makefile:531: all] Error 2
libjpeg/9e:
libjpeg/9e: ERROR: Package 'd3a0dc2b0a9c3350f109798eac433b32bf672dee' build failed
libjpeg/9e: WARN: Build folder E:\src\Conan\data\libjpeg\9e\_\_\build\d3a0dc2b0a9c3350f109798eac433b32bf672dee\build-debug
ERROR: libjpeg/9e: Error in build() method, line 128
        autotools.make()
        ConanException: Error 2 while executing make -j24
@birsoyo birsoyo added the bug Something isn't working label Apr 28, 2023
@SpaceIm
Copy link
Contributor

SpaceIm commented Apr 28, 2023

Likely the same root cause than #17143, which is described in conan-io/conan#12194 (comment).

To summarize, it's a conan client issue which would have been fixed by conan-io/conan#12194 (but it has been rejected). There is an issue in conan repo: conan-io/conan#13780

@memsharded
Copy link
Member

conan-io/conan#13867 will be in 2.0.5, to fix this

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

3 participants