mainManeage - Support: sr #110710, GCC building failed on a CentOS...


sr #110710: GCC building failed on a CentOS based manylinux2014_x86_64 system

Submitter:  Jash Shah <jash_shah>
Submitted:  Thu 01 Sep 2022 07:55:15 PM UTC
Category:  None Priority:  5 - Normal
Severity:  3 - Normal Status:  None
Privacy:  Public Assigned to:  None
Open/Closed:  Open Operating System:  GNU/Linux
* Mandatory Fields

Add a New Comment (Rich Markup)

Fri 02 Sep 2022 07:00:59 PM UTC, comment #2: 

Thanks for the quick reply Mohammad!

Yes, I did go with the --host-cc option, and the project was configured without any errors! I also moved forward with building the Python wheels, without modifying any dependencies or the for now, and the wheel had very less amount of dependencies than before!

Now, I'm trying by modifying the file, where I move all the .so files of the dependencies of Gnuastro out of the /build/software/installed /lib directory, so that the file is built statically.

== Reproduce the Problem ==

1. Clone the repo.
2. Have docker setup in your environment.
3. Follow the steps in
4. Except in Step 3, change line 1 in Dockerfile to


5. The error appears after running step 10.

I've also attached a longer .log file of the output of ./project configure.

(file #53653)

Jash Shah <jash_shah>
Thu 01 Sep 2022 09:23:10 PM UTC, comment #1: 

Thanks for sharing this problem Jash.

Unfortunately the log file doesn't contain the actual error! It must have been caused by lines above the part you sent. Do you still have the terminal open? If not, can you post the name of the Docker image you used so I can try it?

Until then, to get things going, you can use '--host-cc' (as the suggestion at the end of the log says). With this option, Maneage will not build GCC, and will use the host GCC and C++ Standard library for the high-level software. It shouldn't affect Gnuastro's library because Gnuastro (or its dependencies) don't link with the C++ library.

Mohammad Akhlaghi <makhlaghi>
Project Administrator
Thu 01 Sep 2022 07:55:15 PM UTC, original submission:  

I've been working on building a Python implementation of Gnuastro. This required me to use a manylinux2014_x86_64 based docker image, which uses CentOS 7.

I chose gnuastro-in-maneage-static maneage project to build gnuastro statically, so that the Python package extension modules would only have to link to one shared lib, and thus only that one library( is included in the Python distribution wheel. Look at auditwheel for more info.

However while following the steps to Build only a software env in the docker the build failed with the following error while building GCC.

I've included as much as my terminals max output allowed in the attached log file. Any help would be great!

Jash Shah <jash_shah>


(Note: upload size limit is set to 16384 kB, after insertion of the required escape characters.)

Attach Files:

Attached Files
file #53653:  gcc-failed.log added by jash_shah (1MiB - text/x-log)
file #53647:  gcc-failed.log added by jash_shah (72KiB - text/x-log)


Depends on the following items: None found

Items that depend on this one: None found


Carbon-Copy List
  • -email is unavailable- added by makhlaghi (Posted a comment)
  • -email is unavailable- added by jash_shah (Submitted the item)

    There are 0 votes so far. Votes easily highlight which items people would like to see resolved in priority, independently of the priority of the item set by tracker managers.

    Only logged-in users can vote.





    Follow 2 latest changes.

    Date Changed by Updated Field Previous Value => Replaced by
    2022-09-02 jash_shah Attached File- Added gcc-failed.log, #53653
    2022-09-01 jash_shah Attached File- Added gcc-failed.log, #53647

    Back to the top

    Powered by Savane 3.11