-
Notifications
You must be signed in to change notification settings - Fork 6.4k
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
gdal build failure #16271
Comments
Hi @ywang2017 Thanks for posting this issue. Could you please help provide the log from |
I got same error after run apt-get install libopenexr-dev |
It seems weird. I also don't install |
I used docker file build, not machine |
our local base imageFROM gcc:7.3.0 LABEL description="Container for use with Visual Studio" add ec2-userRUN useradd -m -d /home/ec2-user -s /bin/bash -G sudo ec2-user WORKDIR /home/ec2-user #Install the required essentials gdb debugRUN apt-get install -y libc6-dbg gdb ENV PATH=/usr/bin/ninja-build:$PATH configure SSH for communication with Visual StudioRUN mkdir -p /var/run/sshd RUN echo 'PasswordAuthentication yes' >> /etc/ssh/sshd_config && \ #Install CMake and set the path ENV PATH=/usr/bin/cmake/bin:$PATH RUN apt-get install libopenexr-dev -y #Install vcpkg and required packages and set the path
ENV PATH=/home/ec2-user/vcpkg:$PATH expose port 22EXPOSE 22 |
please run the build with "--recurse". without this option, the gdal was older version. but with this option, compile failed. |
Sorry I don't have docker environment. I can install Why do you install |
I created EC2 with ubuntu, still got same error even without libgdal-dev . what OS is your system? |
Ubuntu 18.04 , gcc 10.1.0
|
Hi @ywang2017 Is this still a problem for you now? Have you tried with the latest vcpkg to rebuild |
I assume this is fixed. |
@ywang2017 , This issue has been fixed by #17205, please git pull your vcpkg and try again |
Host Environment
To Reproduce
Steps to reproduce the behavior:
#Install vcpkg and required packages and set the path
RUN git clone https://github.com/Microsoft/vcpkg &&
cd vcpkg &&
./bootstrap-vcpkg.sh -disableMetrics &&
./vcpkg install aws-sdk-cpp[s3] &&
./vcpkg install tbb hdf5[cpp] &&
./vcpkg install sqlite3 tinyxml2 &&
./vcpkg install gtest gdal log4cxx --recurse
Failure logs
#13 891.6 Starting package 21/23: gdal:x64-linux
#13 891.6 Building package gdal[core]:x64-linux...
#13 1086.3 -- Downloading http://download.osgeo.org/gdal/3.1.3/gdal313.zip -> gdal313.zip...
#13 1086.3 -- Extracting source /home/ec2-user/vcpkg/downloads/gdal313.zip
#13 1086.3 -- Applying patch 0001-Fix-debug-crt-flags.patch
#13 1086.3 -- Applying patch 0002-Fix-build.patch
#13 1086.3 -- Applying patch 0003-Fix-static-build.patch
#13 1086.3 -- Applying patch 0004-Fix-std-fabs.patch
#13 1086.3 -- Applying patch 0005-Fix-cfitsio.patch
#13 1086.3 -- Using source at /home/ec2-user/vcpkg/buildtrees/gdal/src/gdal313-b1dafdc415.clean
#13 1086.3 -- Configuring x64-linux-dbg
#13 1086.3 -- Configuring x64-linux-rel
#13 1086.3 -- Generating configure for x64-linux
#13 1086.3 -- Finished generating configure for x64-linux
#13 1086.3 -- Configuring x64-linux-dbg
#13 1086.3 -- Configuring x64-linux-rel
#13 1086.3 -- Building x64-linux-dbg
#13 1086.3 CMake Error at scripts/cmake/vcpkg_execute_build_process.cmake:144 (message):
#13 1086.3 Command failed: /usr/bin/make V=1 -j 17 -f GNUmakefile all
#13 1086.3 Working Directory: /home/ec2-user/vcpkg/buildtrees/gdal/x64-linux-dbg
#13 1086.3 See logs for more information:
#13 1086.3 /home/ec2-user/vcpkg/buildtrees/gdal/build-x64-linux-dbg-out.log
#13 1086.3 /home/ec2-user/vcpkg/buildtrees/gdal/build-x64-linux-dbg-err.log
#13 1086.3
#13 1086.3 Call Stack (most recent call first):
#13 1086.3 scripts/cmake/vcpkg_build_make.cmake:195 (vcpkg_execute_build_process)
#13 1086.3 scripts/cmake/vcpkg_install_make.cmake:26 (vcpkg_build_make)
#13 1086.3 ports/gdal/portfile.cmake:201 (vcpkg_install_make)
#13 1086.3 scripts/ports.cmake:131 (include)
#13 1086.3
#13 1086.3
#13 1086.3 Error: Building package gdal:x64-linux failed with: BUILD_FAILED
#13 1086.3 Please ensure you're using the latest portfiles with
./vcpkg update
, then#13 1086.3 submit an issue at https://github.com/Microsoft/vcpkg/issues including:
#13 1086.3 Package: gdal:x64-linux
#13 1086.3 Vcpkg version: 2021-01-13-unknownhash
The text was updated successfully, but these errors were encountered: