Mailing List Archive

cannot run test program while cross compiling
Hello
I was trying to cross-compile apache to no avail
How can I fix this error below?



apache2 branch trunk
install pcre-config from pcre.org

./configure --prefix=$PWD/final --host=aarch64-linux --with-pcre=/usr/local/pcre/bin/pcre2-config
CC = aarch64-gnu-linux-gcc -march=armv8-a+crc+sha2+sha3 -fstack-protector-strong -D_FORTIFY_SOURCE=2 -Wformat -Wformat-security --sysroot=/opt/drive5-linux/5.0.40.0-29154167/sysroots/aarch64-gnu-linux -lcrypt -lm


Thank you
Re: cannot run test program while cross compiling [ In reply to ]
On Tuesday 14 February 2023 at 13:12:19, ??? wrote:

> Hello
> I was trying to cross-compile apache to no avail
> How can I fix this error below?

What error are you trying to fix?

> apache2 branch trunk
> install pcre-config from pcre.org
>
> ./configure --prefix=$PWD/final --host=aarch64-linux
> --with-pcre=/usr/local/pcre/bin/pcre2-config CC = aarch64-gnu-linux-gcc
> -march=armv8-a+crc+sha2+sha3 -fstack-protector-strong -D_FORTIFY_SOURCE=2
> -Wformat -Wformat-security
> --sysroot=/opt/drive5-linux/5.0.40.0-29154167/sysroots/aarch64-gnu-linux
> -lcrypt -lm


Regards,


Antony.

--
Schrödinger's rule of data integrity: the condition of any backup is unknown
until a restore is attempted.

Please reply to the list;
please *don't* CC me.

---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@httpd.apache.org
For additional commands, e-mail: users-help@httpd.apache.org
Re: cannot run test program while cross compiling [ In reply to ]
Png file would be helpful
As i was configurating, it shows the same message as the title.

Namely, building issues
Thank you


-----Original Message-----
From: "Antony Stone"<Antony.Stone@apache.open.source.it>
To: <users@httpd.apache.org>;
Cc:
Sent: 2023-02-14 (?) 21:28:29 (GMT+09:00)
Subject: Re: [users@httpd] cannot run test program while cross compiling

On Tuesday 14 February 2023 at 13:12:19, ??? wrote:

> Hello
> I was trying to cross-compile apache to no avail
> How can I fix this error below?

What error are you trying to fix?

> apache2 branch trunk
> install pcre-config from pcre.org
>
> ./configure --prefix=$PWD/final --host=aarch64-linux
> --with-pcre=/usr/local/pcre/bin/pcre2-config CC = aarch64-gnu-linux-gcc
> -march=armv8-a+crc+sha2+sha3 -fstack-protector-strong -D_FORTIFY_SOURCE=2
> -Wformat -Wformat-security
> --sysroot=/opt/drive5-linux/5.0.40.0-29154167/sysroots/aarch64-gnu-linux
> -lcrypt -lm


Regards,


Antony.

--
Schrödinger's rule of data integrity: the condition of any backup is unknown
until a restore is attempted.

Please reply to the list;
please *don't* CC me.

---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@httpd.apache.org
For additional commands, e-mail: users-help@httpd.apache.org
Re: cannot run test program while cross compiling [ In reply to ]
On Tuesday 14 February 2023 at 13:35:14, ??? wrote:

> Png file would be helpful

Copy and paste (text) of the command you run and the *error* output you get
would be helpful.

> As i was configurating, it shows the same message as the title.

Is "cannot run test program while cross compiling" an error message, or simply
a notification telling you that this bit won't be run?

> Namely, building issues

Does the source code compile?


Antony.

> -----Original Message-----
> From: "Antony Stone"<Antony.Stone@apache.open.source.it>
> To: <users@httpd.apache.org>;
> Cc:
> Sent: 2023-02-14 (?) 21:28:29 (GMT+09:00)
> Subject: Re: [users@httpd] cannot run test program while cross compiling
>
> On Tuesday 14 February 2023 at 13:12:19, ??? wrote:
> > Hello
> > I was trying to cross-compile apache to no avail
> > How can I fix this error below?
>
> What error are you trying to fix?
>
> > apache2 branch trunk
> > install pcre-config from pcre.org
> >
> > ./configure --prefix=$PWD/final --host=aarch64-linux
> > --with-pcre=/usr/local/pcre/bin/pcre2-config CC = aarch64-gnu-linux-gcc
> > -march=armv8-a+crc+sha2+sha3 -fstack-protector-strong -D_FORTIFY_SOURCE=2
> > -Wformat -Wformat-security
> > --sysroot=/opt/drive5-linux/5.0.40.0-29154167/sysroots/aarch64-gnu-linux
> > -lcrypt -lm

--
BASIC is to computer languages what Roman numerals are to arithmetic.

Please reply to the list;
please *don't* CC me.

---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@httpd.apache.org
For additional commands, e-mail: users-help@httpd.apache.org
Re: cannot run test program while cross compiling [ In reply to ]
Q) Copy and paste (text) of the command you run and the *error* output you get
would be helpful.

A) ./configure --prefix=$PWD/final --host=aarch64-linux --with-pcre=/usr/local/pcre/bin/pcre2-config


Q) Is "cannot run test program while cross compiling" an error message, or simply
a notification telling you that this bit won't be run?

A) error message, it can't run further


Q) Does the source code compile?

A) I'm not sure of the words. I didn't put custom or private codes in httpd as well as I'm trying building it


-----Original Message-----
From: "Antony Stone"<Antony.Stone@apache.open.source.it>
To: <users@httpd.apache.org>;
Cc:
Sent: 2023-02-14 (?) 21:43:00 (GMT+09:00)
Subject: Re: [users@httpd] cannot run test program while cross compiling

On Tuesday 14 February 2023 at 13:35:14, ??? wrote:

> Png file would be helpful

Copy and paste (text) of the command you run and the *error* output you get
would be helpful.

> As i was configurating, it shows the same message as the title.

Is "cannot run test program while cross compiling" an error message, or simply
a notification telling you that this bit won't be run?

> Namely, building issues

Does the source code compile?


Antony.

> -----Original Message-----
> From: "Antony Stone"<Antony.Stone@apache.open.source.it>
> To: <users@httpd.apache.org>;
> Cc:
> Sent: 2023-02-14 (?) 21:28:29 (GMT+09:00)
> Subject: Re: [users@httpd] cannot run test program while cross compiling
>
> On Tuesday 14 February 2023 at 13:12:19, ??? wrote:
> > Hello
> > I was trying to cross-compile apache to no avail
> > How can I fix this error below?
>
> What error are you trying to fix?
>
> > apache2 branch trunk
> > install pcre-config from pcre.org
> >
> > ./configure --prefix=$PWD/final --host=aarch64-linux
> > --with-pcre=/usr/local/pcre/bin/pcre2-config CC = aarch64-gnu-linux-gcc
> > -march=armv8-a+crc+sha2+sha3 -fstack-protector-strong -D_FORTIFY_SOURCE=2
> > -Wformat -Wformat-security
> > --sysroot=/opt/drive5-linux/5.0.40.0-29154167/sysroots/aarch64-gnu-linux
> > -lcrypt -lm

--
BASIC is to computer languages what Roman numerals are to arithmetic.

Please reply to the list;
please *don't* CC me.

---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@httpd.apache.org
For additional commands, e-mail: users-help@httpd.apache.org
Re: cannot run test program while cross compiling [ In reply to ]
On Tue, Feb 14, 2023 at 1:13 PM ??? <seo0093@naver.com> wrote:
>
> Hello
> I was trying to cross-compile apache to no avail
> How can I fix this error below?

Can you try the attached patch?

Regards;
Yann.
Re: cannot run test program while cross compiling [ In reply to ]
On Tue, Feb 14, 2023 at 6:56 PM Yann Ylavic <ylavic.dev@gmail.com> wrote:
>
> On Tue, Feb 14, 2023 at 1:13 PM ??? <seo0093@naver.com> wrote:
> >
> > Hello
> > I was trying to cross-compile apache to no avail
> > How can I fix this error below?
>
> Can you try the attached patch?

Possible adding ap_cv_crypt_sha2=no (or =yes if you know that the
target system's crypt() supports SHA-2) to the "./configure ..."
command line could do it too, by forcing the test decision rather than
running it.

>
> Regards;
> Yann.

---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@httpd.apache.org
For additional commands, e-mail: users-help@httpd.apache.org
Re: cannot run test program while cross compiling [ In reply to ]
Thank you for your supports

I pass through but having new error in make command.
"libtool: command not found"

But the thing is libtool-bin's been installed by sudo apt install command, so as to run configure command which had an error about libtool not found as well.
but now it seems like trying to find it in httpd directory in make command

Regards



-----Original Message-----
From: "Yann Ylavic"<ylavic.dev@gmail.com>
To: <users@httpd.apache.org>;
Cc:
Sent: 2023-02-15 (?) 03:01:10 (GMT+09:00)
Subject: Re: [users@httpd] cannot run test program while cross compiling

On Tue, Feb 14, 2023 at 6:56 PM Yann Ylavic <ylavic.dev@gmail.com> wrote:
>
> On Tue, Feb 14, 2023 at 1:13 PM ??? <seo0093@naver.com> wrote:
> >
> > Hello
> > I was trying to cross-compile apache to no avail
> > How can I fix this error below?
>
> Can you try the attached patch?

Possible adding ap_cv_crypt_sha2=no (or =yes if you know that the
target system's crypt() supports SHA-2) to the "./configure ..."
command line could do it too, by forcing the test decision rather than
running it.

>
> Regards;
> Yann.

---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@httpd.apache.org
For additional commands, e-mail: users-help@httpd.apache.org
Re: cannot run test program while cross compiling [ In reply to ]
Hello,

Did you try to rename `aarch64-linux-libtool` to `libtool`?

Regards,


On Wed, Feb 15, 2023 at 1:35 AM ??? <seo0093@naver.com> wrote:

> Thank you for your supports
>
> I pass through but having new error in make command.
> "libtool: command not found"
>
> But the thing is libtool-bin's been installed by sudo apt install command,
> so as to run configure command which had an error about libtool not found
> as well.
> but now it seems like trying to find it in httpd directory in make command
>
> Regards
>
>
>
> -----Original Message-----
> *From:* "Yann Ylavic"<ylavic.dev@gmail.com>
> *To:* <users@httpd.apache.org>;
> *Cc:*
> *Sent:* 2023-02-15 (?) 03:01:10 (GMT+09:00)
> *Subject:* Re: [users@httpd] cannot run test program while cross compiling
>
> On Tue, Feb 14, 2023 at 6:56 PM Yann Ylavic <ylavic.dev@gmail.com> wrote:
> >
> > On Tue, Feb 14, 2023 at 1:13 PM ??? <seo0093@naver.com> wrote:
> > >
> > > Hello
> > > I was trying to cross-compile apache to no avail
> > > How can I fix this error below?
> >
> > Can you try the attached patch?
>
> Possible adding ap_cv_crypt_sha2=no (or =yes if you know that the
> target system's crypt() supports SHA-2) to the "./configure ..."
> command line could do it too, by forcing the test decision rather than
> running it.
>
> >
> > Regards;
> > Yann.
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: users-unsubscribe@httpd.apache.org
> For additional commands, e-mail: users-help@httpd.apache.org
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: users-unsubscribe@httpd.apache.org
> For additional commands, e-mail: users-help@httpd.apache.org
>


--
Vladimír Chlup
Re: cannot run test program while cross compiling [ In reply to ]
No, so I tried and all compiles process works
I moved httpd and what should be required to the target and it fails with core dumped

It seems no log there
I have no clue about what i should do next
Thank you


-----Original Message-----
From: "Vladimir Chlup"<vchlup@redhat.com>
To: <users@httpd.apache.org>;
Cc:
Sent: 2023-02-15 (?) 17:07:41 (GMT+09:00)
Subject: Re: [users@httpd] cannot run test program while cross compiling

Hello,

Did you try to rename `aarch64-linux-libtool` to `libtool`?

Regards,


On Wed, Feb 15, 2023 at 1:35 AM ??? <seo0093@naver.com> wrote:

Thank you for your supports

I pass through but having new error in make command.
"libtool: command not found"

But the thing is libtool-bin's been installed by sudo apt install command, so as to run configure command which had an error about libtool not found as well.
but now it seems like trying to find it in httpd directory in make command

Regards



-----Original Message-----
From: "Yann Ylavic"<ylavic.dev@gmail.com>
To: <users@httpd.apache.org>;
Cc:
Sent: 2023-02-15 (?) 03:01:10 (GMT+09:00)
Subject: Re: [users@httpd] cannot run test program while cross compiling

On Tue, Feb 14, 2023 at 6:56 PM Yann Ylavic <ylavic.dev@gmail.com> wrote:
>
> On Tue, Feb 14, 2023 at 1:13 PM ??? <seo0093@naver.com> wrote:
> >
> > Hello
> > I was trying to cross-compile apache to no avail
> > How can I fix this error below?
>
> Can you try the attached patch?

Possible adding ap_cv_crypt_sha2=no (or =yes if you know that the
target system's crypt() supports SHA-2) to the "./configure ..."
command line could do it too, by forcing the test decision rather than
running it.

>
> Regards;
> Yann.

---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@httpd.apache.org
For additional commands, e-mail: users-help@httpd.apache.org





---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@httpd.apache.org
For additional commands, e-mail: users-help@httpd.apache.org



--
Vladimír Chlup
Re: cannot run test program while cross compiling [ In reply to ]
I can't find any trace tho.. can you suggest?

Added build options

-----------------------------------
configure: summary of build options:



Server Version: 2.5.1

Install prefix: /usr/local/apache2

C compiler: aarch64-gnu-linux-gcc -march=armv8-a+crc -fstack-protector-strong -D_FORTIFY_SOURCE=2 -Wformat -Wformat-security --sysroot=/opt/drive5-linux/5.0.40.0-29154167/s ysroots/aarch64-gnu-linux

CFLAGS: -O2 -pipe -g -feliminate-unused-debug-types -fno-diagnostics-show-caret

CPPFLAGS: -DLINUX -D_REENTRANT -D_GNU_SOURCE

LDFLAGS: -Wl,-O1 -Wl,--hash-style=gnu -Wl,--as-needed -fstack-protector-strong -Wl,-z,relro,-z,now

LIBS:

C preprocessor: aarch64-gnu-linux-gcc -E -march=armv8-a+crc -fstack-protector-strong -D_FORTIFY_SOURCE=2 -Wformat -Wformat-security --sysroot=/opt/drive5-linux/5.0.40.0-2915416

-----------------------------------
-----Original Message-----
From: "???"<seo0093@naver.com>
To: <users@httpd.apache.org>;
Cc:
Sent: 2023-02-15 (?) 18:20:09 (GMT+09:00)
Subject: Re: [users@httpd] cannot run test program while cross compiling

No, so I tried and all compiles process works
I moved httpd and what should be required to the target and it fails with core dumped

It seems no log there
I have no clue about what i should do next
Thank you


-----Original Message-----
From: "Vladimir Chlup"<vchlup@redhat.com>
To: <users@httpd.apache.org>;
Cc:
Sent: 2023-02-15 (?) 17:07:41 (GMT+09:00)
Subject: Re: [users@httpd] cannot run test program while cross compiling

Hello,

Did you try to rename `aarch64-linux-libtool` to `libtool`?

Regards,


On Wed, Feb 15, 2023 at 1:35 AM ??? <seo0093@naver.com> wrote:

Thank you for your supports

I pass through but having new error in make command.
"libtool: command not found"

But the thing is libtool-bin's been installed by sudo apt install command, so as to run configure command which had an error about libtool not found as well.
but now it seems like trying to find it in httpd directory in make command

Regards



-----Original Message-----
From: "Yann Ylavic"<ylavic.dev@gmail.com>
To: <users@httpd.apache.org>;
Cc:
Sent: 2023-02-15 (?) 03:01:10 (GMT+09:00)
Subject: Re: [users@httpd] cannot run test program while cross compiling

On Tue, Feb 14, 2023 at 6:56 PM Yann Ylavic <ylavic.dev@gmail.com> wrote:
>
> On Tue, Feb 14, 2023 at 1:13 PM ??? <seo0093@naver.com> wrote:
> >
> > Hello
> > I was trying to cross-compile apache to no avail
> > How can I fix this error below?
>
> Can you try the attached patch?

Possible adding ap_cv_crypt_sha2=no (or =yes if you know that the
target system's crypt() supports SHA-2) to the "./configure ..."
command line could do it too, by forcing the test decision rather than
running it.

>
> Regards;
> Yann.

---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@httpd.apache.org
For additional commands, e-mail: users-help@httpd.apache.org





---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@httpd.apache.org
For additional commands, e-mail: users-help@httpd.apache.org



--
Vladimír Chlup