On January 28, 2018 6:10:48 PM CST, Baho Utot <[email protected]> wrote:
>
>On 1/28/2018 5:46 PM, Edgar Alwers wrote:
>> I finished the building process of an BLFS-8.1system on my main PC at
>
>> home and ported the image of the system to an lenovo ThinkPad laptop.
>
>> The system is working perfect on both units. Now, I needed to install
>
>> "samba". So I built Samba-4.6.7 on the PC according to the book,
>again 
>> OK. But when I try to build on the ThinkPad, I get the following
>results:
>> ---------------------
>> 'configure' finished successfully (2m10.700s)
>> make:
>> .......
>> ......
>> [ 592/3628] Compiling lib/util/util_file.c
>> [ 593/3628] Compiling lib/util/time.c
>> ../lib/util/time.c: In Funktion »timeval_elapsed2«:
>> ../lib/util/time.c:613:9: interner Compiler-Fehler: Ungültiger 
>> Maschinenbefehl
>>           (tv2->tv_usec - tv1->tv_usec)*1.0e-6;
>> Waf: Leaving directory `/sources_BLFS/samba-4.6.7/bin'
>> Build failed:  -> task failed (err #1):
>>      {task: cc time.c -> time_20.o}
>> -------------------
>> 
>> This behaviour is not limited to samba in so far. Intending to build 
>> other programs may went OK, or I get errors in the configuration
>process 
>> or during make. It seems to me, that the compilers are not more
>portable 
>> between different hardwares ( internal compiler error ), as they were
>in 
>> former times. Is this true ? what are the experiences of other users
>? 
>> And how could I solve the issue ?
>> 
>> Thanks in advance for advices !
>> Edgar
>> 
>> 
>
>I build my LFS and use the same build on 3 different computers.  They 
>are of varing vintages with one being a laptop Dell Inspiron 1501 which
>
>is over 10 years old, maybe older.  I build using a package manager 
>(rpm) and use the following options in CFLAGS='-march=x86-64 
>-mtune=generic -O2 -pipe -fstack-protector-strong-fno-plt -fpie -pie' 
>CXXFLAGS=${CFLAGS}.  That works for me.
>
>After building LFS onto a USB drive and installing grub, then boot and 
>install the packages.  Tickle some configuration files and it is good
>to 
>go.  My build system is an 8 core AMD FX-8320 with 16GB ram.
>
>-- 
>http://lists.linuxfromscratch.org/listinfo/blfs-support
>FAQ: http://www.linuxfromscratch.org/blfs/faq.html
>Unsubscribe: See the above information page

As Bruce mentioned, this is GMP. It unconditionally will use features from the 
CPU that is present at build time unless you use config.fsf. If those same 
features are not available in the downstream consumer, you get invalid 
instructions because they are invalid. Follow the note on the page, and for 
only that one package, and you'll likely be ok. You can also manually override 
CPU detection, but given the age difference, I'd just use the generic x86_64 
build.

--DJ

-- 
Sent from my Android device with K-9 Mail. Please excuse my brevity.

-- 
http://lists.linuxfromscratch.org/listinfo/blfs-support
FAQ: http://www.linuxfromscratch.org/blfs/faq.html
Unsubscribe: See the above information page

Reply via email to