Closed YuqiHuai closed 4 months ago
@YuqiHuai Thank you for reporting the issue. However, in my environment, the error does not occur, and the build succeeds. Could you please provide your OS and PC architecture to help identify the cause?
Hi @KYabuuchi thanks for getting back to me! I noticed build would succeed in the docker container but for some reason fails outside.
I am currently running Intel Core i9-12900K running Ubuntu 22.04.1 (Linux yuqi-MS-7D31 6.5.0-35-generic #35~22.04.1-Ubuntu), cmake version 3.22.1
I am currently trying to develop a Python script that subscribes to different Autoware topics and I wanted to develop this outside of the docker container therefore I attempted to build from source. Considering my purpose and this build issue potentially being specific to myself, would you recommend I stay with using the container image for now?
@YuqiHuai Thanks for sharing the OS and other info. However, I don't see anything that could be the cause... I don't know of any solutions right now, so I would recommend using the environment once you are able to compile it. Sorry.
I noticed that literals become warnings in gcc7 and earlier. Are you using older gcc in your environment?
reference: https://gcc.gnu.org/bugzilla/show_bug.cgi?id=65923#c8
Hi @KYabuuchi , thanks for helping me to do more investigation. Apparently I have
gcc --version
gcc (Ubuntu 11.4.0-1ubuntu1~22.04) 11.4.0
therefore it might be something else :(
Hmm... :cry: I can't provide an immediate solution. Sorry
Sorry for barging in. could you check if you have any non standard environment variables set with printenv
?
As a hotfix, in your environment you could probably use --cmake-args
and -Wno-error=literal-suffix
@KYabuuchi no worries! I guess if this is really just a specific issue on my machine we can close this issue, I should try different ways to figure this myself and maybe provide an update if I am able to figure it out. Currently I will stay with docker installation.
@knzo25 Thank you for barging in! Well, unfortunately I am not too familiary with cmake args and I am not sure what "non standard environment" there could be. I have already gone through many problems because I was using pyenv
, I had to totally disable that and use only system Python. This hot fix will likely work and thank you for this suggestion! But for now I am deciding to stay with docker build as I am able to very consistently build Autoware in the container.
Since this seems to be the author-specific issue, I will close the issue. If anyone has new information, or finds that it is an autoware issue, please feel free to reopen it. :pray:
Checklist
Description
I am attempting to install Autoware following source installation method but always fail during
colcon build
.Expected behavior
Autoware builds without error.
Actual behavior
Steps to reproduce
Followed steps on https://autowarefoundation.github.io/autoware-documentation/main/installation/autoware/source-installation/
Versions
Possible causes
No response
Additional context
No response