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

Ubuntu 14.04 Build Failure (regression) #236

Closed
brycepg opened this issue Nov 17, 2018 · 4 comments
Closed

Ubuntu 14.04 Build Failure (regression) #236

brycepg opened this issue Nov 17, 2018 · 4 comments

Comments

@brycepg
Copy link

brycepg commented Nov 17, 2018

  • OS and version used:
    Parent OS: 16.04
    Docker distro: Ubuntu 14.04

  • Python runtime used:
    CPython 2.7

  • SDK version used:
    release_2018_10_31

Description of the issue:

Recursively cloning the tag release_2018_10_31 fails to build on ubuntu 14.04
release_2018_09_17 works fine.

Code sample exhibiting the issue:

Run the following lines in a shell to reproduce the issue. Installing docker is required.

git clone --recursive --branch release_2018_10_31 https://github.com/Azure/azure-iot-sdk-python.git
cat <<EOF > azure-iot-sdk-python/Dockerfile
FROM ubuntu:14.04

# Update image
SHELL ["/bin/bash", "-c"]

RUN apt-get update && apt-get install -y sudo cmake build-essential curl libcurl4-openssl-dev \
    libssl-dev uuid-dev python-pip apt-utils

WORKDIR /usr/sdk

COPY ./ ./

RUN pip install --upgrade pip==10.0.1 && python -m pip install -U setuptools wheel
RUN ./build_all/linux/setup.sh
RUN ./build_all/linux/release.sh
EOF
cd azure-iot-sdk-python
docker build .

Run the lines above with branch release_2018_09_17 to verify the regression.

Console log of the issue:

The relevant error is during the build:

[ 24%] Building C object c-utility/CMakeFiles/aziotsharedutil.dir/src/ws_url.c.o
Linking C static library libaziotsharedutil.a
[ 24%] Built target aziotsharedutil
Linking CXX shared library provisioning_device_client_mock.so
[ 24%] Built target provisioning_device_client_mock
Linking CXX shared library iothub_client_mock.so
[ 24%] Built target iothub_client_mock
Linking CXX shared library iothub_service_client_mock.so
[ 24%] Built target iothub_service_client_mock
make: *** [all] Error 2
The command '/bin/bash -c ./build_all/linux/release.sh' returned a non-zero code: 1
@pierreca
Copy link
Contributor

we're not maintaining Ubuntu 14.04 as an active target. given the difficulties Boost present, we're rewriting the SDK to not use that and won't be investing time on the existing version fixing issues for unsupported targets.

@az-iot-builder-01
Copy link
Collaborator

@brycepg, thank you for your contribution to our open-sourced project! Please help us improve by filling out this 2-minute customer satisfaction survey

@markrad
Copy link
Member

markrad commented Nov 22, 2018

This issue has been identified and will be addressed shortly. In the meantime one can circumvent this issue by editing the file provisioning_client\samples\custom_hsm_example\CMakeLists.txt and adding compileAsC99() immediately after the line cmake_minimum_required(VERSION 2.8.11) close to the top of the file.

Mark Radbourne MSFT

@markrad
Copy link
Member

markrad commented Jan 3, 2019

This issue has been addressed.

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

4 participants