Re: Ensure ALFS build is compatible with valgrind

"Stuart" ([email protected] via alfs-discuss Mailing List) <[email protected]>
Newsgroups gmane.linux.lfs.automated
Message-ID <[email protected]>
On 20/07/2023 20:07, Stuart ([email protected] via alfs-discuss 
Mailing List) wrote:
> On 20/07/2023 18:15, Pierre Labastie ([email protected] via 
> alfs-discuss Mailing List) wrote:
>> Le 20 juil. 2023 12:32, Stuart Foster<[email protected]>  a ?crit :
>>> I have decided to setup a test enviroment for use with valgrind.
>>> I need to ensure that my ALFS build is fully compatible with valgrind.
>>> ie I believe that this can be acheived if the compiler is passed march=x86-64.
>>> If this is so how can I ensure that when I run the ALFS make that this option
>>> is included in the final system build phase.
>>> I assume that this is irrelevant for the tool building activities.
>>> Thanks
>>>
>>> -- 
>> I am not sure you need any options to set the arch to x86_64, but CFLAGS and the like can be set using the "optimization" machinery. Unfortunately the creators of jhalfs have made something that is flexible, but complicated. Look at the content of the optimize/opt_config.d directory, and I hope you'll find how to set up match...
>>
>> Pierre
>> PS I'm not at my computer now, so I cannot help much more...
>>
> That sound like what I was after.
>
> Thank you.
>
> Stuart
>
>
Everything has gone well up to the point when I try to build 
OpenJDK-20.0.1 (Apache-Ant-1.10.13 actually this is a dependancy) when I 
get the following:

...

The following warnings were produced. Repeated here for convenience:
WARNING: Ignoring CFLAGS(-march=x86-64 -O3 -w -pipe -fomit-frame-pointer 
-mfpmath=sse -m64) found in environment. Use --with-extra-cflags
WARNING: Ignoring CXXFLAGS(-march=x86-64 -O3 -w -pipe 
-fomit-frame-pointer -mfpmath=sse -m64) found in environment. Use 
--with-extra-cxxflags
WARNING: Ignoring LDFLAGS(-Wl,-O1,-S) found in environment. Use 
--with-extra-ldflags

Building target 'images' in configuration 'linux-x86_64-server-release'
/bin/bash: line 2: /dev/fd/63: No such file or directory

ERROR: Build failed for target 'images' in configuration 
'linux-x86_64-server-release' (exit code 1)

No indication of failed target found.
HELP: Try searching the build log for '] Error'.
HELP: Run 'make doctor' to diagnose build problems.

make[1]: *** [/sources/openjdk/jdk20u-jdk-20.0.1-ga/make/Init.gmk:320: 
main] Error 1
make: *** [/sources/openjdk/jdk20u-jdk-20.0.1-ga/make/Init.gmk:186: 
images] Error 2

I am not worried by the extra flags problem but the "/bin/bash: line 2: 
/dev/fd/63: No such file or directory" has me at a loss.

Any help in getting me in the right direction would be good.

Thanks

-- 
http://lists.linuxfromscratch.org/sympa/info/alfs-discuss
Unsubscribe: See the above information page
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.