You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
os << "/** Generated by " << getenv("USER") << " on " << dt ;
the getenv(USER) call seems to give issues in my buid environment (a podman container on an ARM node).
In my podman container the USER env variable is not set for some reasons. This ends up generating source code through ampgen which is truncated, which in itself ends up giving me build errors like this
I guess this could be solved by simply setting USER, but when I tried it failed (I think this is because I should have done a rebuild from scratch of the LHCb Gauss package, otherwise ampgen sopurce code is not regenerated?).
Anyway, my suggestion would be to add some sort of protection in "getenv(USER)" to handle correctly also the case when USER is not set.
In my LHCb Gauss build I simply added a hard workaround by removing getenv(USER) completely. https://gitlab.cern.ch/lhcb/Gauss/-/merge_requests/920
(Note: this also includes another patch for ARM for an issue with -march that you have since fixed in a newer version).
Thanks
Andrea
The text was updated successfully, but these errors were encountered:
Hi Tim, thanks a lot to you!
I am happy this was useful, cheers
Andrea
From: tevans1260 ***@***.***>
Sent: Monday, 13 February, 2023 17:59
To: GooFit/AmpGen ***@***.***>
Cc: Andrea Valassi ***@***.***>; Author ***@***.***>
Subject: Re: [GooFit/AmpGen] Issues with getenv(USER) in src/CompilerWrapper.cpp (Issue #30)
Dear Andrea,
Thanks for reporting.
I'll make a merge that fixes this shortly, then tag the corresponding change to be put into gauss.
Cheers, Tim.
—
Reply to this email directly, view it on GitHub<#30 (comment)>, or unsubscribe<https://github.com/notifications/unsubscribe-auth/AA2QBDUEUUQS267FSBDEDD3WXJR6TANCNFSM6AAAAAAT55LRUA>.
You are receiving this because you authored the thread.Message ID: ***@***.******@***.***>>
Hallo! I have been doing some minor contributions to the port of the LHCb simulation to ARM, and on the way I found a peculiar issue in AmpGen.
In this line
AmpGen/src/CompilerWrapper.cpp
Line 204 in c15ba4a
the getenv(USER) call seems to give issues in my buid environment (a podman container on an ARM node).
In my podman container the USER env variable is not set for some reasons. This ends up generating source code through ampgen which is truncated, which in itself ends up giving me build errors like this
I guess this could be solved by simply setting USER, but when I tried it failed (I think this is because I should have done a rebuild from scratch of the LHCb Gauss package, otherwise ampgen sopurce code is not regenerated?).
Anyway, my suggestion would be to add some sort of protection in "getenv(USER)" to handle correctly also the case when USER is not set.
In my LHCb Gauss build I simply added a hard workaround by removing getenv(USER) completely.
https://gitlab.cern.ch/lhcb/Gauss/-/merge_requests/920
(Note: this also includes another patch for ARM for an issue with -march that you have since fixed in a newer version).
Thanks
Andrea
The text was updated successfully, but these errors were encountered: