Bug 102550 - libssp cannot find size_t. they do not include stddef.h
Summary: libssp cannot find size_t. they do not include stddef.h
Status: RESOLVED FIXED
Alias: None
Product: gcc
Classification: Unclassified
Component: other (show other bugs)
Version: 12.0
: P3 normal
Target Milestone: ---
Assignee: Not yet assigned to anyone
URL:
Keywords: build
Depends on:
Blocks:
 
Reported: 2021-10-01 05:21 UTC by cqwrteur
Modified: 2022-11-30 05:02 UTC (History)
1 user (show)

See Also:
Host: x86_64-ubuntu-linux-gnu
Target: arm-none-eabi
Build: x86_64-ubuntu-linux-gnu
Known to work:
Known to fail:
Last reconfirmed: 2021-10-01 00:00:00


Attachments
error log (1.39 KB, text/plain)
2021-10-01 05:21 UTC, cqwrteur
Details
config file (18.34 KB, application/x-zip-compressed)
2021-10-01 05:52 UTC, cqwrteur
Details
libssp configs (24.66 KB, application/x-7z-compressed)
2021-10-01 06:05 UTC, cqwrteur
Details

Note You need to log in before you can comment on or make changes to this bug.
Description cqwrteur 2021-10-01 05:21:42 UTC
Created attachment 51526 [details]
error log

stddef.h is missing. do not know what's wrong with the build script of libssp
Comment 1 cqwrteur 2021-10-01 05:29:07 UTC
libc is newlib-cygwin
Comment 2 Andrew Pinski 2021-10-01 05:50:21 UTC
How did you configure and invoke make?
Was newlib installed already or you building a combined tree?
Comment 3 cqwrteur 2021-10-01 05:52:59 UTC
Created attachment 51527 [details]
config file
Comment 4 cqwrteur 2021-10-01 05:53:52 UTC
(In reply to Andrew Pinski from comment #2)
> How did you configure and invoke make?
> Was newlib installed already or you building a combined tree?

of course it is installed. no it is completely separate. Even libstdc++ was successfully built.

if I remembered correctly I saw that issue months ago with picolibc too.
Comment 5 Andrew Pinski 2021-10-01 06:03:39 UTC
Can you attach the config.log from the libssp directory?
Comment 6 cqwrteur 2021-10-01 06:05:55 UTC
Created attachment 51528 [details]
libssp configs

configs
Comment 7 Andrew Pinski 2021-10-01 06:12:28 UTC
configure:3409: /home/cqwrteur/myhome/arm_build/cross/gcc/./gcc/xgcc -B/home/cqwrteur/myhome/arm_build/cross/gcc/./gcc/ -B/home/cqwrteur/cross/arm-none-eabi/arm-none-eabi/bin/ -B/home/cqwrteur/cross/arm-none-eabi/arm-none-eabi/lib/ -isystem /home/cqwrteur/cross/arm-none-eabi/arm-none-eabi/include -isystem /home/cqwrteur/cross/arm-none-eabi/arm-none-eabi/sys-include    -o conftest -g -O2   conftest.c  >&5
conftest.c:11:10: fatal error: stdio.h: No such file or directory
   11 | #include <stdio.h>
      |          ^~~~~~~~~

Well the newly build compiler is not finding the headers.

This looks wrong:
-isystem /home/cqwrteur/cross/arm-none-eabi/arm-none-eabi/include

How did you config/build newlib? and is the directory "/home/cqwrteur/cross/arm-none-eabi/arm-none-eabi/include" or "/home/cqwrteur/cross/arm-none-eabi/include"
Comment 8 cqwrteur 2021-10-01 06:41:28 UTC
arm/arm

Get Outlook for Android<https://aka.ms/AAb9ysg>
________________________________
From: pinskia at gcc dot gnu.org <gcc-bugzilla@gcc.gnu.org>
Sent: Friday, October 1, 2021 2:12:28 AM
To: unlvsur@live.com <unlvsur@live.com>
Subject: [Bug other/102550] libssp cannot find size_t. they do not include stddef.h

https://na01.safelinks.protection.outlook.com/?url=https%3A%2F%2Fgcc.gnu.org%2Fbugzilla%2Fshow_bug.cgi%3Fid%3D102550&amp;data=04%7C01%7C%7Cc0f0d6306be849f87f0f08d984a272c0%7C84df9e7fe9f640afb435aaaaaaaaaaaa%7C1%7C0%7C637686655521708926%7CUnknown%7CTWFpbGZsb3d8eyJWIjoiMC4wLjAwMDAiLCJQIjoiV2luMzIiLCJBTiI6Ik1haWwiLCJXVCI6Mn0%3D%7C1000&amp;sdata=OoJExyZ2%2BKftCJf3JlWzH4gop15tPeFac7vc3MLpxJ4%3D&amp;reserved=0

--- Comment #7 from Andrew Pinski <pinskia at gcc dot gnu.org> ---
configure:3409: /home/cqwrteur/myhome/arm_build/cross/gcc/./gcc/xgcc
-B/home/cqwrteur/myhome/arm_build/cross/gcc/./gcc/
-B/home/cqwrteur/cross/arm-none-eabi/arm-none-eabi/bin/
-B/home/cqwrteur/cross/arm-none-eabi/arm-none-eabi/lib/ -isystem
/home/cqwrteur/cross/arm-none-eabi/arm-none-eabi/include -isystem
/home/cqwrteur/cross/arm-none-eabi/arm-none-eabi/sys-include    -o conftest -g
-O2   conftest.c  >&5
conftest.c:11:10: fatal error: stdio.h: No such file or directory
   11 | #include <stdio.h>
      |          ^~~~~~~~~

Well the newly build compiler is not finding the headers.

This looks wrong:
-isystem /home/cqwrteur/cross/arm-none-eabi/arm-none-eabi/include

How did you config/build newlib? and is the directory
"/home/cqwrteur/cross/arm-none-eabi/arm-none-eabi/include" or
"/home/cqwrteur/cross/arm-none-eabi/include"

--
You are receiving this mail because:
You reported the bug.
You are on the CC list for the bug.
Comment 9 Andrew Pinski 2022-11-30 05:02:15 UTC
Never supplied full configure line for either GCC nor newlib in over a year so closing.