mailing list of musl libc
 help / color / mirror / Atom feed
* [musl] how to compile musl pass on X86_64 host?
@ 2021-09-08 14:14 tugouxp
  2021-09-08 14:25 ` Rich Felker
  0 siblings, 1 reply; 2+ messages in thread
From: tugouxp @ 2021-09-08 14:14 UTC (permalink / raw)
  To: musl

[-- Attachment #1: Type: text/plain, Size: 2844 bytes --]

Hi guys:
i meet a compile failure when compile the musl libc on PC X86_64,with command "make ARCH=X86_64"
so, how to make this ok?


thanks for your help, the folling is the compile error log.
thank you again!
--------------------------------------------------------------------------------------------------------------------------------------------------------------------

   .__st_ctim32.tv_nsec = stx.stx_ctime.tv_nsec,
    ^~~~~~~~~~~
    st_ctim
src/stat/fstatat.c:66:26: warning: excess elements in struct initializer
   .__st_ctim32.tv_nsec = stx.stx_ctime.tv_nsec,
                          ^~~
src/stat/fstatat.c:66:26: note: (near initialization for ‘(anonymous)’)
src/stat/fstatat.c: In function ‘fstatat_kstat’:
src/stat/fstatat.c:122:4: error: ‘struct stat’ has no member named ‘__st_atim32’; did you mean ‘st_atim’?
   .__st_atim32.tv_sec = kst.st_atime_sec,
    ^~~~~~~~~~~
    st_atim
src/stat/fstatat.c:123:4: error: ‘struct stat’ has no member named ‘__st_atim32’; did you mean ‘st_atim’?
   .__st_atim32.tv_nsec = kst.st_atime_nsec,
    ^~~~~~~~~~~
    st_atim
src/stat/fstatat.c:123:26: warning: excess elements in struct initializer
   .__st_atim32.tv_nsec = kst.st_atime_nsec,
                          ^~~
src/stat/fstatat.c:123:26: note: (near initialization for ‘(anonymous)’)
src/stat/fstatat.c:124:4: error: ‘struct stat’ has no member named ‘__st_mtim32’; did you mean ‘st_mtim’?
   .__st_mtim32.tv_sec = kst.st_mtime_sec,
    ^~~~~~~~~~~
    st_mtim
src/stat/fstatat.c:124:25: warning: excess elements in struct initializer
   .__st_mtim32.tv_sec = kst.st_mtime_sec,
                         ^~~
src/stat/fstatat.c:124:25: note: (near initialization for ‘(anonymous)’)
src/stat/fstatat.c:125:4: error: ‘struct stat’ has no member named ‘__st_mtim32’; did you mean ‘st_mtim’?
   .__st_mtim32.tv_nsec = kst.st_mtime_nsec,
    ^~~~~~~~~~~
    st_mtim
src/stat/fstatat.c:125:26: warning: excess elements in struct initializer
   .__st_mtim32.tv_nsec = kst.st_mtime_nsec,
                          ^~~
src/stat/fstatat.c:125:26: note: (near initialization for ‘(anonymous)’)
src/stat/fstatat.c:126:4: error: ‘struct stat’ has no member named ‘__st_ctim32’; did you mean ‘st_ctim’?
   .__st_ctim32.tv_sec = kst.st_ctime_sec,
    ^~~~~~~~~~~
    st_ctim
src/stat/fstatat.c:126:25: warning: excess elements in struct initializer
   .__st_ctim32.tv_sec = kst.st_ctime_sec,
                         ^~~
src/stat/fstatat.c:126:25: note: (near initialization for ‘(anonymous)’)
src/stat/fstatat.c:127:4: error: ‘struct stat’ has no member named ‘__st_ctim32’; did you mean ‘st_ctim’?
   .__st_ctim32.tv_nsec = kst.st_ctime_nsec,
    ^~~~~~~~~~~
    st_ctim
src/stat/fstatat.c:127:26: warning: excess elements in struct initializer
   .__st_ctim32.tv_nsec = kst.st_ctime_nsec,


[-- Attachment #2: Type: text/html, Size: 4326 bytes --]

^ permalink raw reply	[flat|nested] 2+ messages in thread

* Re: [musl] how to compile musl pass on X86_64 host?
  2021-09-08 14:14 [musl] how to compile musl pass on X86_64 host? tugouxp
@ 2021-09-08 14:25 ` Rich Felker
  0 siblings, 0 replies; 2+ messages in thread
From: Rich Felker @ 2021-09-08 14:25 UTC (permalink / raw)
  To: tugouxp; +Cc: musl

On Wed, Sep 08, 2021 at 10:14:59PM +0800, tugouxp wrote:
> Hi guys:
> i meet a compile failure when compile the musl libc on PC X86_64,with command "make ARCH=X86_64"
> so, how to make this ok?

It's recommended to use configure. Running make ARCH=something
directly probably still works (assuming all the things configure would
check come out right) but if you used the literal command above, you
misspelled it. The arch is called x86_64 not X86_64. That might be the
cause of your problem. But really, use configure.

> thanks for your help, the folling is the compile error log.
> thank you again!
> --------------------------------------------------------------------------------------------------------------------------------------------------------------------
> 
>    .__st_ctim32.tv_nsec = stx.stx_ctime.tv_nsec,
>     ^~~~~~~~~~~
>     st_ctim
> src/stat/fstatat.c:66:26: warning: excess elements in struct initializer
>    .__st_ctim32.tv_nsec = stx.stx_ctime.tv_nsec,
>                           ^~~
> src/stat/fstatat.c:66:26: note: (near initialization for ‘(anonymous)’)
> src/stat/fstatat.c: In function ‘fstatat_kstat’:
> src/stat/fstatat.c:122:4: error: ‘struct stat’ has no member named ‘__st_atim32’; did you mean ‘st_atim’?
>    .__st_atim32.tv_sec = kst.st_atime_sec,
>     ^~~~~~~~~~~
>     st_atim
> src/stat/fstatat.c:123:4: error: ‘struct stat’ has no member named ‘__st_atim32’; did you mean ‘st_atim’?
>    .__st_atim32.tv_nsec = kst.st_atime_nsec,
>     ^~~~~~~~~~~
>     st_atim
> src/stat/fstatat.c:123:26: warning: excess elements in struct initializer
>    .__st_atim32.tv_nsec = kst.st_atime_nsec,
>                           ^~~
> src/stat/fstatat.c:123:26: note: (near initialization for ‘(anonymous)’)
> src/stat/fstatat.c:124:4: error: ‘struct stat’ has no member named ‘__st_mtim32’; did you mean ‘st_mtim’?
>    .__st_mtim32.tv_sec = kst.st_mtime_sec,
>     ^~~~~~~~~~~
>     st_mtim
> src/stat/fstatat.c:124:25: warning: excess elements in struct initializer
>    .__st_mtim32.tv_sec = kst.st_mtime_sec,
>                          ^~~
> src/stat/fstatat.c:124:25: note: (near initialization for ‘(anonymous)’)
> src/stat/fstatat.c:125:4: error: ‘struct stat’ has no member named ‘__st_mtim32’; did you mean ‘st_mtim’?
>    .__st_mtim32.tv_nsec = kst.st_mtime_nsec,
>     ^~~~~~~~~~~
>     st_mtim
> src/stat/fstatat.c:125:26: warning: excess elements in struct initializer
>    .__st_mtim32.tv_nsec = kst.st_mtime_nsec,
>                           ^~~
> src/stat/fstatat.c:125:26: note: (near initialization for ‘(anonymous)’)
> src/stat/fstatat.c:126:4: error: ‘struct stat’ has no member named ‘__st_ctim32’; did you mean ‘st_ctim’?
>    .__st_ctim32.tv_sec = kst.st_ctime_sec,
>     ^~~~~~~~~~~
>     st_ctim
> src/stat/fstatat.c:126:25: warning: excess elements in struct initializer
>    .__st_ctim32.tv_sec = kst.st_ctime_sec,
>                          ^~~
> src/stat/fstatat.c:126:25: note: (near initialization for ‘(anonymous)’)
> src/stat/fstatat.c:127:4: error: ‘struct stat’ has no member named ‘__st_ctim32’; did you mean ‘st_ctim’?
>    .__st_ctim32.tv_nsec = kst.st_ctime_nsec,
>     ^~~~~~~~~~~
>     st_ctim
> src/stat/fstatat.c:127:26: warning: excess elements in struct initializer
>    .__st_ctim32.tv_nsec = kst.st_ctime_nsec,

These look like it pulled in the wrong arch version some arch-specific
headers, possibly from your misspelling or something else that went
wrong.

^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2021-09-08 14:25 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2021-09-08 14:14 [musl] how to compile musl pass on X86_64 host? tugouxp
2021-09-08 14:25 ` Rich Felker

mailing list of musl libc

This inbox may be cloned and mirrored by anyone:

	git clone --mirror https://inbox.vuxu.org/musl

	# If you have public-inbox 1.1+ installed, you may
	# initialize and index your mirror using the following commands:
	public-inbox-init -V1 musl musl/ https://inbox.vuxu.org/musl \
		musl@inbox.vuxu.org
	public-inbox-index musl

Example config snippet for mirrors.
Newsgroup available over NNTP:
	nntp://inbox.vuxu.org/vuxu.archive.musl


code repositories for the project(s) associated with this inbox:

	https://git.vuxu.org/mirror/musl/

AGPL code for this site: git clone https://public-inbox.org/public-inbox.git