Skip to content

Add initial-exec to picolibc workflow#882

Open
namikukr-qc wants to merge 1 commit intoqualcomm:mainfrom
namikukr-qc:tls-workflow
Open

Add initial-exec to picolibc workflow#882
namikukr-qc wants to merge 1 commit intoqualcomm:mainfrom
namikukr-qc:tls-workflow

Conversation

@namikukr-qc
Copy link

Adding tls-initial-exec as a workflow for picolibc builds.

llvm-target: AArch64
picolibc-default-config: ""
picolibc-no-tls: "-Dthread-local-storage=false"
picolibc-tls-ie: "-Dtls_model=initial-exec"
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Dont change the default, add a new one

Copy link
Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I think what I did is add a new step, I didn't change the default config.
picolibc-tls-ie is only used in in this step:

 name: Build Picolibc for ${{ matrix.arch.name }}, tls-ie

Do you want it in its own file? Because from what I understand I didn't change the default...

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Ok. I see the full change now.

Copy link
Contributor

@quic-seaswara quic-seaswara left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM, @quic-k can you please check this out!

llvm-target: AArch64
picolibc-default-config: ""
picolibc-no-tls: "-Dthread-local-storage=false"
picolibc-tls-ie: "-Dtls_model=initial-exec"
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Ok. I see the full change now.

@quic-seaswara quic-seaswara requested a review from quic-k February 26, 2026 22:32
name: nightly picolibc builder

on:
# pull_request: {} # Uncomment only to test this WF file update.
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

can you uncomment this line temporarily to run nightly workflow for this PR

Copy link
Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Done, ac22864

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

ok, ignore that, just needed maintainer approval to run the workflow
lets see which all archs work with inital-exec

Comment on lines +216 to +217
mkdir -p build-clang-${{ matrix.arch.name }}-picolibc-no-tls
cd build-clang-${{ matrix.arch.name }}-picolibc-no-tls
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

name build dir build-clang-${{ matrix.arch.name }}-picolibc-tls-ie for the intial-exec variant, right now it is conflicting with the no-tls config build dir

llvm-target: RISCV
picolibc-default-config: ""
picolibc-no-tls: "-Dthread-local-storage=false"
picolibc-tls-ie: "-Dtls_model=initial-exec"
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

config flag is tls-model and not tls_model

cd ${{ github.workspace }}/picolibc/build-clang-${{ matrix.arch.name }}-picolibc-default-config
ninja test

- name: Run Picolibc tests for ${{ matrix.arch.name }}, no-tls
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

you missed adding the run step for tls-ie, similar to this one, just cd to correct dir and run `ninja test1

@quic-k
Copy link
Contributor

quic-k commented Mar 4, 2026

CI looks good https://github.com/qualcomm/eld/actions/runs/22637687168?pr=882, riscv32 has unrelated fails

@namikukr-qc can you re-comment line 4 and squash everything into one commit to prepare this for merge

Adding tls-initial-exec as a workflow for picolibc builds.

Signed-off-by: Namish Kukreja <namikukr@qti.qualcomm.com>
@namikukr-qc
Copy link
Author

CI looks good https://github.com/qualcomm/eld/actions/runs/22637687168?pr=882, riscv32 has unrelated fails

@namikukr-qc can you re-comment line 4 and squash everything into one commit to prepare this for merge

Done in latest patch.

Copy link
Contributor

@quic-k quic-k left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM
thanks for working on this @namikukr-qc

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

Successfully merging this pull request may close these issues.

3 participants