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

Aospless mesa build failed #11

Closed
asuka-mio opened this issue Sep 28, 2023 · 8 comments
Closed

Aospless mesa build failed #11

asuka-mio opened this issue Sep 28, 2023 · 8 comments

Comments

@asuka-mio
Copy link

See https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/25410
build.tar.gz
Btw I'm using latest Arch Linux

@rsglobal
Copy link
Member

rsglobal commented Sep 28, 2023

Thanks. I use clang-15 and have no such issue.

From meson-log.txt:

Command line: `/home/tarsin/Downloads/aospless/toolchain_wrapper/wrap_c /home/tarsin/Downloads/aospless/build/meson-private/tmptipbcfzv/testfile.c -o /home/tarsin/Downloads/aospless/build/meson-private/tmptipbcfzv/output.obj -c '[C_ARGS]' -D_FILE_OFFSET_BITS=64 -O0 -Werror=implicit-function-declaration -Werror=unknown-warning-option -Werror=unused-command-line-argument -Werror=ignored-optimization-argument -std=c11` -> 1
stderr:
clang: error: the flag '-enable-trivial-auto-var-init-zero-knowing-it-will-be-removed-from-clang' has been deprecated and will be ignored [-Werror,-Wunused-command-line-argument]
-----------
Checking whether type "struct stat" has member "st_birthtimespec.tv_nsec" : NO 
Running compile:
Working directory:  /home/tarsin/Downloads/aospless/build/meson-private/tmp6uvaz390
Code:
 #include <sys/stat.h>
        void bar(void) {
            struct stat foo;
            foo.st_mtimespec.tv_nsec;

        }
-----------

Looks like -enable-trivial-auto-var-init-zero-knowing-it-will-be-removed-from-clang is causing this issues.

Please remove this flag from all files in ./toolchain_wrapper/ directory.

ADD:
And do clean rebuild. make cleanup && make install

@asuka-mio
Copy link
Author

Thanks, IMapper4 API works,
No more disjoint planes

@rsglobal rsglobal reopened this Sep 28, 2023
@rsglobal
Copy link
Member

rsglobal commented Sep 28, 2023

I noticed a [DNM] Fix aospless build commit in your chain. Is it still required?

@asuka-mio
Copy link
Author

I noticed a [DNM] Fix aospless build commit in your chain. Is it still required?

Yup, libxml missing readline header

@rsglobal
Copy link
Member

Okay. It probably can be fixed by installing system libxml-dev or something like that.

@ilhan-athn7
Copy link

Okay. It probably can be fixed by installing system libxml-dev or something like that.

Hi, i am getting file not found error even through i have /usr/include/readline/readline.h on my archlinux setup.
I use same build.tar.gz linked above as workdir.
How should i fix it ?

@rsglobal
Copy link
Member

rsglobal commented Oct 1, 2023

@ilhan-athn7
Copy link

ilhan-athn7 commented Oct 1, 2023

Hi,

Try this: https://stackoverflow.com/questions/23085076/readline-readline-h-file-not-found

Thanks for the reply, i just built using ndk instead using aospless builder.

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

3 participants